registerSuccess.vue 5.4 KB

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