download.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. <template>
  2. <view style="background: #FFFFFF;">
  3. <view style="text-align: center;">
  4. <image style="width: 160upx;height: 160upx;margin-top: 200upx;border-radius:20upx;" src="/static/logo.png"></image>
  5. <view style="font-size: 46upx;margin-top: 20upx;color: #333333;font-weight: 500;">上门服务APP</view>
  6. <view style="font-size: 28upx;margin-top: 8upx;color: #333333;font-weight: 500;">{{message}}</view>
  7. <button class="confirm-btn" @click="taobaoLogin">下载上门服务APP</button>
  8. </view>
  9. <view id="shareit" v-if="show_share" @tap="closeShare">
  10. <image class="arrow" src="../../static/img/jiant.png"></image>
  11. <view id="follow">点击右上角按钮,选择浏览器打开下载!</view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. mobile: '',
  20. code: '',
  21. show_share: false,
  22. relationId: '',
  23. openShare: false,
  24. openShares: false,
  25. invitationCode: '',
  26. message:'',
  27. sending: false,
  28. sendTime: '获取验证码',
  29. count: 60
  30. };
  31. },
  32. onLoad(e) {
  33. // this.$Request.getT('/common/type/93').then(res => {
  34. // if (res.status == 0) {
  35. // if (res.data && res.data.value && res.data.value == '是') {
  36. // this.openShare = true;
  37. // } else {
  38. // this.openShare = false;
  39. // }
  40. // }
  41. // });
  42. // this.$Request.getT('/common/type/94').then(res => {
  43. // if (res.status == 0) {
  44. // if (res.data && res.data.value && res.data.value == '是') {
  45. // this.openShares = true;
  46. // } else {
  47. // this.openShares = false;
  48. // }
  49. // }
  50. // });
  51. this.$Request.getT('/app/common/type/116').then(res => {
  52. if (res.code === 0) {
  53. if (res.data && res.data.value) {
  54. this.message = res.data.value;
  55. }
  56. }
  57. });
  58. },
  59. methods: {
  60. closeShare() {
  61. this.show_share = false;
  62. },
  63. copy() {
  64. uni.setClipboardData({
  65. data: this.invitationCode,
  66. success: r => {
  67. this.$queue.showToast('邀请码复制成功');
  68. }
  69. });
  70. },
  71. taobaoLogin() {
  72. var u = navigator.userAgent;
  73. if (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1) {
  74. this.$Request.getT('/app/common/type/49').then(res => {
  75. if (res.code == 0) {
  76. if (res.data && res.data.value) {
  77. if(this.openShare){
  78. let ua = navigator.userAgent.toLowerCase();
  79. if (ua.indexOf('micromessenger') === -1) {
  80. this.show_share = false;
  81. window.location.href = res.data.value;
  82. }else{
  83. this.show_share = true;
  84. }
  85. }else{
  86. window.location.href = res.data.value;
  87. }
  88. }
  89. }
  90. });
  91. } else {
  92. this.$Request.getT('/app/common/type/50').then(res => {
  93. if (res.code == 0) {
  94. if (res.data && res.data.value) {
  95. if(this.openShares){
  96. let ua = navigator.userAgent.toLowerCase();
  97. if (ua.indexOf('micromessenger') === -1) {
  98. this.show_share = false;
  99. window.location.href = res.data.value;
  100. }else{
  101. this.show_share = true;
  102. }
  103. }else{
  104. window.location.href = res.data.value;
  105. }
  106. }
  107. }
  108. });
  109. }
  110. }
  111. }
  112. };
  113. </script>
  114. <style lang="scss">
  115. #shareit {
  116. -webkit-user-select: none;
  117. position: fixed;
  118. /*width: 100%;*/
  119. height: 2000px;
  120. background: rgba(0, 0, 0, 0.85);
  121. text-align: center;
  122. top: 0;
  123. left: 0;
  124. z-index: 999;
  125. }
  126. #shareit img {
  127. max-width: 100%;
  128. }
  129. .arrow {
  130. width: 100px;
  131. height: 150px;
  132. position: absolute;
  133. right: 5%;
  134. top: 1%;
  135. }
  136. #follow {
  137. margin-right: 60px;
  138. margin-left: 30px;
  139. width: 90%;
  140. height: 50px;
  141. line-height: 50px;
  142. text-align: left;
  143. text-decoration: none;
  144. font-size: 18px;
  145. color: white;
  146. float: left;
  147. margin-top: 160px;
  148. }
  149. .footer {
  150. padding-left: 140upx;
  151. margin-top: 32upx;
  152. font-size: 24upx;
  153. color: #666666;
  154. text-align: center;
  155. display: flex;
  156. }
  157. page {
  158. background: #fff;
  159. }
  160. .send-msg {
  161. border-radius: 30px;
  162. color: black;
  163. background: white;
  164. height: 30px;
  165. font-size: 14px;
  166. line-height: 30px;
  167. }
  168. .container {
  169. top: 0;
  170. padding-top: 50px;
  171. position: relative;
  172. width: 100%;
  173. height: 100%;
  174. overflow: hidden;
  175. background: #fff;
  176. }
  177. .wrapper {
  178. position: relative;
  179. z-index: 90;
  180. background: #fff;
  181. padding-bottom: 20px;
  182. }
  183. .back-btn {
  184. position: absolute;
  185. left: 20px;
  186. z-index: 9999;
  187. padding-top: var(--status-bar-height);
  188. top: 20px;
  189. font-size: 20px;
  190. color: #303133;
  191. }
  192. .left-top-sign {
  193. font-size: 80px;
  194. color: #f8f8f8;
  195. position: relative;
  196. }
  197. .right-top-sign {
  198. position: absolute;
  199. top: 40px;
  200. right: -15px;
  201. z-index: 95;
  202. &:before,
  203. &:after {
  204. display: block;
  205. content: '';
  206. width: 20px;
  207. height: 40px;
  208. background: #FF2638;
  209. }
  210. &:before {
  211. transform: rotate(50deg);
  212. border-radius: 0 50px 0 0;
  213. }
  214. &:after {
  215. position: absolute;
  216. right: -198px;
  217. top: 0;
  218. transform: rotate(-50deg);
  219. border-radius: 50px 0 0 0;
  220. /* background: pink; */
  221. }
  222. }
  223. .left-bottom-sign {
  224. position: absolute;
  225. left: -270px;
  226. bottom: -320px;
  227. /*border: 100upx solid #d0d1fd;*/
  228. border-radius: 50%;
  229. padding: 90px;
  230. }
  231. .welcome {
  232. position: relative;
  233. left: 30px;
  234. top: -55px;
  235. font-size: 28px;
  236. color: #555;
  237. text-shadow: 1px 0px 1px rgba(0, 0, 0, 0.3);
  238. }
  239. .input-content {
  240. padding: 0 20px;
  241. }
  242. .input-item {
  243. display: flex;
  244. flex-direction: column;
  245. align-items: flex-start;
  246. justify-content: center;
  247. padding: 0 30px;
  248. background: #f8f6fc;
  249. height: 64px;
  250. border-radius: 4px;
  251. margin-bottom: 30px;
  252. &:last-child {
  253. margin-bottom: 0;
  254. }
  255. .tit {
  256. height: 30px;
  257. line-height: 28px;
  258. font-size: 26upx;
  259. color: #606266;
  260. }
  261. input {
  262. height: 40px;
  263. font-size: 30upx;
  264. color: #303133;
  265. width: 100%;
  266. }
  267. }
  268. .confirm-btn {
  269. width: 500upx;
  270. height: 100upx;
  271. line-height: 100upx;
  272. margin-top: 200upx;
  273. color: #FFFFFF;
  274. background: #005dff;
  275. border-radius: 50upx;
  276. font-size: 38upx;
  277. font-weight: 500;
  278. // &:after {
  279. // border-radius: 60px;
  280. // }
  281. }
  282. .confirm-btn1 {
  283. width: 300px;
  284. height: 42px;
  285. line-height: 42px;
  286. border-radius: 30px;
  287. margin-top: 40px;
  288. background: whitesmoke;
  289. color: grey;
  290. font-size: 32upx;
  291. &:after {
  292. border-radius: 60px;
  293. }
  294. }
  295. .forget-section {
  296. font-size: 26upx;
  297. color: #4399fc;
  298. text-align: center;
  299. margin-top: 40px;
  300. }
  301. .register-section {
  302. left: 0;
  303. margin-top: 30px;
  304. bottom: 30px;
  305. width: 100%;
  306. font-size: 26upx;
  307. color: #606266;
  308. text-align: center;
  309. text {
  310. color: #4399fc;
  311. margin-left: 10px;
  312. }
  313. }
  314. </style>