download.vue 6.8 KB

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