registerSuccess.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <template>
  2. <view class="pageBody">
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <view>
  6. <view class="info">
  7. <view class="ok-btn">
  8. <image src="/static/image/register/ok.png" alt="注册成功" mode="widthFix"></image>
  9. </view>
  10. <p class="entry-con">感谢您加入掌柜</p>
  11. <h2 class="entry-hd">恭喜注册成功</h2>
  12. <view class="info-list">
  13. <view>您的掌柜会员号:{{id}}</view>
  14. <view>您的关联手机:{{phone}}</view>
  15. </view>
  16. </view>
  17. <view class="download">
  18. <h3 class="entry-hd">立即下载晋掌柜</h3>
  19. <p class="entry-con">即可享受保险特别特别优惠</p>
  20. <p class="entry-con">点击下方按钮复制会员号并下载</p>
  21. <view class="download-btn d-flex a-center j-center">
  22. <!-- <view><image src="/static/image/register/ios-btn.png" alt="苹果版下载" mode="widthFix"></image></view> -->
  23. <view><image id="android" src="/static/image/register/android-btn.png" @tap="downloadApp('android')" alt="安卓版下载" mode="widthFix"></image></view>
  24. </view>
  25. </view>
  26. <view class="app">
  27. <image src="/static/image/register/app.jpg" mode="widthFix" alt="应用预览"></image>
  28. <p class="entry-con">下载完成后,在晋掌柜中登录<br>进行账号认证即可正常使用<br>如有下载困难,请致电:4006-333-016</p>
  29. </view>
  30. <view class="footer-bg">
  31. <p class="entry-con">注:微信用户请在右上角选择“在浏览器中打开”,再选择下载应用</p>
  32. </view>
  33. </view>
  34. <view id="weixin-tip">
  35. <p>
  36. <image src="/static/image/register/live_weixin.png" alt="微信打开" mode="widthFix"></image>
  37. <span id="close" title="关闭" class="close" @tap="hideDownload" >×</span></p>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. id:"",
  46. phone:"",
  47. }
  48. },
  49. onLoad(params) {
  50. this.id = params.id;
  51. this.phone = params.phone;
  52. if(!!this.id){
  53. uni.setClipboardData({ data:this.id })
  54. }
  55. },
  56. methods: {
  57. // 判断是不是微信
  58. weixinTip(ele){
  59. var ua = navigator.userAgent;
  60. var isWeixin = !!/MicroMessenger/i.test(ua);
  61. if(isWeixin){
  62. ele.onclick=function(e){
  63. window.event? window.event.returnValue = false : e.preventDefault();
  64. document.getElementById('weixin-tip').style.display='block';
  65. }
  66. }else{
  67. if(!!this.id){
  68. uni.setClipboardData({data:this.id })
  69. }
  70. window.open(this.$base.baseUrl+'/app/android/zgcx.apk');
  71. }
  72. },
  73. downloadApp(typeId){
  74. var btn = document.getElementById(typeId);
  75. this.weixinTip(btn);
  76. },
  77. hideDownload(){
  78. document.getElementById('weixin-tip').style.display='none';
  79. }
  80. }
  81. }
  82. </script>
  83. <style scoped>
  84. /*核心css*/
  85. .wxtip{background: rgba(0,0,0,0.8); text-align: center; position: fixed; left:0; top: 0; width: 100%; height: 100%; z-index: 998; display: none;}
  86. .wxtip-icon{width: 52px; height: 67px; background: url(http://caibaojian.com/d/uploads/2016/01/weixin-tip.png) no-repeat; display: block; position: absolute; right: 30px; top: 20px;}
  87. .wxtip-txt{padding-top: 107px; color: #fff; font-size: 16px; line-height: 1.5;}
  88. .pageBody{
  89. max-width: 750rpx;
  90. min-height: 100vh;
  91. background: #f5f5f5;
  92. font-family: "Arial,Helvetica,sans-serif,PingFangSC";
  93. }
  94. .info{
  95. background: url(/static/image/register/success-bg.jpg) no-repeat center bottom;
  96. background-size: cover;
  97. color: #fff;
  98. padding: 100rpx 0;
  99. }
  100. .info .ok-btn{
  101. width: 130rpx;
  102. margin: 0 auto;
  103. padding-bottom: 30rpx;
  104. text-align: center;
  105. }
  106. .info .ok-btn image{
  107. width: 100%;
  108. }
  109. .info .entry-con{
  110. font-size: 28rpx;
  111. text-align: center;
  112. }
  113. .info .entry-hd{
  114. font-size: 50rpx;
  115. letter-spacing: 15rpx;
  116. font-weight: bold;
  117. text-align: center;
  118. }
  119. .info .info-list {
  120. margin: 40rpx 80rpx 0;
  121. list-style: none;
  122. font-size: 28rpx;
  123. text-align: center;
  124. }
  125. .info .info-list>view {
  126. padding-top: 30upx;
  127. border-bottom: 1px solid #D1EAEE;
  128. padding-bottom: 10upx;
  129. }
  130. .download{
  131. color: #4D4D4D;
  132. background-color: #FFFFFF;
  133. padding: 50upx 50upx 70upx;
  134. }
  135. .download .entry-con{
  136. font-size: 28upx;
  137. text-align: center;
  138. }
  139. .download .entry-hd{
  140. font-size: 50upx;
  141. letter-spacing: 5upx;
  142. font-weight: bold;
  143. text-align: center;
  144. }
  145. .download .download-btn{
  146. padding-top: 30upx;
  147. }
  148. .download .download-btn>view{
  149. width: 325upx;
  150. padding: 0 32.5rpx;
  151. box-sizing: border-box;
  152. display: inline-block;
  153. vertical-align: top;
  154. text-align: center;
  155. }
  156. .download .download-btn>view>image{
  157. width: 100%;
  158. }
  159. .app{
  160. background-color: #FFFFFF;
  161. }
  162. .app>image{
  163. width: 640upx;
  164. margin: 0 auto;
  165. display: block;
  166. margin-bottom: 26upx;
  167. }
  168. .app .entry-con{
  169. font-size: 28upx;
  170. text-align: center;
  171. }
  172. .footer-bg {
  173. background: #2D2D2D;
  174. color: #E4E4E4;
  175. padding: 25upx 15upx;
  176. text-align: center;
  177. }
  178. .footer-bg .entry-con{
  179. font-size: 24upx;
  180. text-align: center;
  181. }
  182. #weixin-tip {
  183. display: none;
  184. position: fixed;
  185. left: 0;
  186. top: 0;
  187. background: rgba(0,0,0,0.8);
  188. filter: alpha(opacity=80);
  189. width: 100%;
  190. height: 100%;
  191. z-index: 100;
  192. }
  193. #weixin-tip p {
  194. text-align: center;
  195. margin-top: 75upx;
  196. padding: 0 40upx;
  197. position: relative;
  198. }
  199. #weixin-tip .close {
  200. color: #fff;
  201. padding: 5px;
  202. font: bold 20px/20px simsun;
  203. text-shadow: 0 1px 0 #ddd;
  204. position: absolute;
  205. top: 0;
  206. left: 5%;
  207. }
  208. </style>