registerSuccess.vue 5.9 KB

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