registerSuccess.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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. async 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. var data = {
  79. appid: "__UNI__D4FE29A"
  80. }
  81. let res = await this.$http.get('/sysVersion/queryMaxNum', data);
  82. if (res.code == '200') {
  83. window.open(res.data.path);
  84. }
  85. }
  86. },
  87. downloadApp(typeId) {
  88. var btn = document.getElementById(typeId);
  89. this.weixinTip(btn);
  90. },
  91. hideDownload() {
  92. document.getElementById('weixin-tip').style.display = 'none';
  93. }
  94. }
  95. }
  96. </script>
  97. <style scoped>
  98. /*核心css*/
  99. .wxtip {
  100. background: rgba(0, 0, 0, 0.8);
  101. text-align: center;
  102. position: fixed;
  103. left: 0;
  104. top: 0;
  105. width: 100%;
  106. height: 100%;
  107. z-index: 998;
  108. display: none;
  109. }
  110. .wxtip-icon {
  111. width: 52px;
  112. height: 67px;
  113. background: url(http://caibaojian.com/d/uploads/2016/01/weixin-tip.png) no-repeat;
  114. display: block;
  115. position: absolute;
  116. right: 30px;
  117. top: 20px;
  118. }
  119. .wxtip-txt {
  120. padding-top: 107px;
  121. color: #fff;
  122. font-size: 16px;
  123. line-height: 1.5;
  124. }
  125. .pageBody {
  126. max-width: 750rpx;
  127. min-height: 100vh;
  128. background: #f5f5f5;
  129. font-family: "Arial,Helvetica,sans-serif,PingFangSC";
  130. }
  131. .info {
  132. background: url(/static/image/register/success-bg.jpg) no-repeat center bottom;
  133. background-size: cover;
  134. color: #fff;
  135. padding: 100rpx 0;
  136. }
  137. .info .ok-btn {
  138. width: 130rpx;
  139. margin: 0 auto;
  140. padding-bottom: 30rpx;
  141. text-align: center;
  142. }
  143. .info .ok-btn image {
  144. width: 100%;
  145. }
  146. .info .entry-con {
  147. font-size: 28rpx;
  148. text-align: center;
  149. }
  150. .info .entry-hd {
  151. font-size: 50rpx;
  152. letter-spacing: 15rpx;
  153. font-weight: bold;
  154. text-align: center;
  155. }
  156. .info .info-list {
  157. margin: 40rpx 80rpx 0;
  158. list-style: none;
  159. font-size: 28rpx;
  160. text-align: center;
  161. }
  162. .info .info-list>view {
  163. padding-top: 30upx;
  164. border-bottom: 1px solid #D1EAEE;
  165. padding-bottom: 10upx;
  166. }
  167. .download {
  168. color: #4D4D4D;
  169. background-color: #FFFFFF;
  170. padding: 50upx 50upx 70upx;
  171. }
  172. .download .entry-con {
  173. font-size: 28upx;
  174. text-align: center;
  175. }
  176. .download .entry-hd {
  177. font-size: 50upx;
  178. letter-spacing: 5upx;
  179. font-weight: bold;
  180. text-align: center;
  181. }
  182. .download .download-btn {
  183. padding-top: 30upx;
  184. }
  185. .download .download-btn>view {
  186. width: 325upx;
  187. padding: 0 32.5rpx;
  188. box-sizing: border-box;
  189. display: inline-block;
  190. vertical-align: top;
  191. text-align: center;
  192. }
  193. .download .download-btn>view>image {
  194. width: 100%;
  195. }
  196. .app {
  197. background-color: #FFFFFF;
  198. }
  199. .app>image {
  200. width: 640upx;
  201. margin: 0 auto;
  202. display: block;
  203. margin-bottom: 26upx;
  204. }
  205. .app .entry-con {
  206. font-size: 28upx;
  207. text-align: center;
  208. }
  209. .footer-bg {
  210. background: #2D2D2D;
  211. color: #E4E4E4;
  212. padding: 25upx 15upx;
  213. text-align: center;
  214. }
  215. .footer-bg .entry-con {
  216. font-size: 24upx;
  217. text-align: center;
  218. }
  219. #weixin-tip {
  220. display: none;
  221. position: fixed;
  222. left: 0;
  223. top: 0;
  224. background: rgba(0, 0, 0, 0.8);
  225. filter: alpha(opacity=80);
  226. width: 100%;
  227. height: 100%;
  228. z-index: 100;
  229. }
  230. #weixin-tip p {
  231. text-align: center;
  232. margin-top: 75upx;
  233. padding: 0 40upx;
  234. position: relative;
  235. }
  236. #weixin-tip .close {
  237. color: #fff;
  238. padding: 5px;
  239. font: bold 20px/20px simsun;
  240. text-shadow: 0 1px 0 #ddd;
  241. position: absolute;
  242. top: 0;
  243. left: 5%;
  244. }
  245. </style>