registerSuccess.vue 6.0 KB

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