user.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  1. <template>
  2. <view class="container">
  3. <scroll-view class="content-box" scroll-y="true">
  4. <view class="user-section">
  5. <view class="bg"><image src="/static/img/userBg.png" mode=""></image></view>
  6. <view class="user-info-box ">
  7. <view class="detail flex">
  8. <view class="portrait-box" @click="navTo('/pages/set/userinfo')">
  9. <image class="portrait" :src="userInfo.avatar || '/static/error/missing-face.png'"></image>
  10. </view>
  11. <view class="info-box">
  12. <view class="info-top flex">
  13. <view class="username clamp">{{ userInfo.nickname || '游客' }}</view>
  14. <view class="vip" v-if="userInfo.level > 0">
  15. <image class="vip-bg" src="../../static/img/vip.png" mode=""></image>
  16. <view class="vip-title">{{ userInfo.level_info.name }}</view>
  17. </view>
  18. </view>
  19. <view class="font-size-sm">{{ userInfo.account }}</view>
  20. </view>
  21. </view>
  22. <view class="my-info flex" @click="navTo('/pages/set/userinfo')" v-if="hasLogin">
  23. <image src="../../static/icon/i6.png" mode=""></image>
  24. <view class="title">设置</view>
  25. </view>
  26. </view>
  27. </view>
  28. <!-- 订单 -->
  29. <view class="item-box item-box-b">
  30. <view class="box-title flex borde-b">
  31. <view class="title"><text>我的订单</text></view>
  32. <view class="link" @click="navTo('/pages/order/order?state=0')" hover-class="common-hover"><text class="iconfont iconenter"></text></view>
  33. </view>
  34. <view class="order-section">
  35. <view class="order-item" @click="navTo('/pages/order/order?state=0')" hover-class="common-hover" :hover-stay-time="50">
  36. <view class=" icon position-relative">
  37. <image class="icon-img" src="/static/user/order1.png" mode="aspectFit"></image>
  38. <view class="corner" v-if="orderInfo.unpaid_count > 0">
  39. <text>{{ orderInfo.unpaid_count }}</text>
  40. </view>
  41. </view>
  42. <text>待付款</text>
  43. </view>
  44. <view class="order-item" @click="navTo('/pages/order/order?state=1')" hover-class="common-hover" :hover-stay-time="50">
  45. <view class=" icon position-relative">
  46. <image class="icon-img" src="/static/user/order2.png" mode="aspectFit"></image>
  47. <view class="corner" v-if="orderInfo.unshipped_count > 0">
  48. <text>{{ orderInfo.unshipped_count }}</text>
  49. </view>
  50. </view>
  51. <text>待发货</text>
  52. </view>
  53. <view class="order-item" @click="navTo('/pages/order/order?state=2')" hover-class="common-hover" :hover-stay-time="50">
  54. <view class="icon position-relative">
  55. <image class="icon-img" src="/static/user/order3.png" mode="aspectFit"></image>
  56. <view class="corner" v-if="orderInfo.received_count > 0">
  57. <text>{{ orderInfo.received_count }}</text>
  58. </view>
  59. </view>
  60. <text>待收货</text>
  61. </view>
  62. <view class="order-item" @click="navTo('/pages/order/order?state=4')" hover-class="common-hover" :hover-stay-time="50">
  63. <view class="icon position-relative"><image class="icon-img" src="/static/user/order4.png" mode="aspectFit"></image></view>
  64. <text>已完成</text>
  65. </view>
  66. </view>
  67. </view>
  68. <view>
  69. <view class="item-box item-box-a">
  70. <view class="order-section">
  71. <view class="order-item" @click="navTo('/pages/user/award')" hover-class="common-hover" :hover-stay-time="50">
  72. <view class="icon icon-b"><image class="icon-img" src="/static/user/yue.png" mode="aspectFit"></image></view>
  73. <view class="order-font">我的余额</view>
  74. </view>
  75. <view class="order-item" @click="navTo('/pages/money/wallet')" hover-class="common-hover" :hover-stay-time="50">
  76. <view class="icon icon-b"><image class="icon-img" src="/static/user/yongjin.png" mode="aspectFit"></image></view>
  77. <view class="order-font">我的佣金</view>
  78. </view>
  79. <view class="order-item" @click="navTo('/pages/user/team')" hover-class="common-hover" :hover-stay-time="50">
  80. <view class="icon icon-b"><image class="icon-img" src="/static/user/yaoqing.png" mode="aspectFit"></image></view>
  81. <view class="order-font">我的推广</view>
  82. </view>
  83. <view class="order-item" @click="navTo('/pages/user/shareQrCode')" hover-class="common-hover" :hover-stay-time="50">
  84. <view class="icon icon-b"><image class="icon-img" src="/static/user/tuiguang.png" mode="aspectFit"></image></view>
  85. <view class="order-font">邀请海报</view>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="history-section icon">
  90. <uni-list>
  91. <uni-list-item title="我的收藏" @click="navTo('/pages/user/favorites')" thumb="/static/user/shoucang.png"></uni-list-item>
  92. <uni-list-item title="收货地址" @click="navTo('/pages/set/address')" thumb="/static/user/dizhi.png"></uni-list-item>
  93. <!-- <uni-list-item title="联系客服" @click="showPopup" thumb="/static/user/kefu.png"></uni-list-item> -->
  94. </uni-list>
  95. </view>
  96. </view>
  97. </scroll-view>
  98. </view>
  99. </template>
  100. <script>
  101. import { mapState, mapMutations } from 'vuex';
  102. import uniList from '@/components/uni-list/uni-list.vue';
  103. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  104. import { orderData, getUserInfo, getMyStore } from '@/api/user.js';
  105. import { saveUrl, interceptor } from '@/utils/loginUtils.js';
  106. import { logout } from '@/api/set.js';
  107. // import uniCopy from '@/js_sdk/xb-copy/uni-copy.js';
  108. let startY = 0,
  109. moveY = 0,
  110. pageAtTop = true;
  111. export default {
  112. components: {
  113. uniList,
  114. uniListItem
  115. },
  116. data() {
  117. return {
  118. coverTransform: 'translateY(0px)',
  119. coverTransition: '0s',
  120. moving: false,
  121. userDowm: 0, //卡片升级专属高度
  122. userMaxDowm: 0, //卡片最高高度
  123. };
  124. },
  125. onShow() {
  126. // 判断是否已经登录
  127. if (this.hasLogin) {
  128. this.loadBaseData();
  129. this.getMyStore();
  130. }
  131. },
  132. onReady() {
  133. // 初始化获取页面宽度
  134. uni.createSelectorQuery()
  135. .select('.container')
  136. .fields(
  137. {
  138. size: true
  139. },
  140. data => {
  141. // 计算最多下拉的高度
  142. this.userDowm = Math.floor((data.width / 750) * 185);
  143. // 计算最大触发修改高度事件
  144. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  145. }
  146. )
  147. .exec();
  148. },
  149. // #ifndef MP
  150. // onNavigationBarButtonTap(e) {
  151. // const index = e.index;
  152. // if (index === 0) {
  153. // this.navTo('/pages/set/set');
  154. // } else if (index === 1) {
  155. // // #ifdef APP-PLUS
  156. // const pages = getCurrentPages();
  157. // const page = pages[pages.length - 1];
  158. // const currentWebview = page.$getAppWebview();
  159. // currentWebview.hideTitleNViewButtonRedDot({
  160. // index
  161. // });
  162. // // #endif
  163. // uni.navigateTo({
  164. // url: '/pages/user/notice'
  165. // });
  166. // }
  167. // },
  168. // #endif
  169. computed: {
  170. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  171. },
  172. methods: {
  173. ...mapMutations('user', ['setUserInfo', 'logout']),
  174. copy(content) {
  175. /**
  176. * 小程序端 和 app端的复制逻辑
  177. */
  178. //#ifndef H5
  179. uni.setClipboardData({
  180. data: content,
  181. success: function() {
  182. console.log('success');
  183. return true;
  184. }
  185. });
  186. //#endif
  187. /**
  188. * H5端的复制逻辑
  189. */
  190. // #ifdef H5
  191. if (!document.queryCommandSupported('copy')) {
  192. //为了兼容有些浏览器 queryCommandSupported 的判断
  193. // 不支持
  194. return false;
  195. }
  196. let textarea = document.createElement('textarea');
  197. textarea.value = content;
  198. textarea.readOnly = 'readOnly';
  199. document.body.appendChild(textarea);
  200. textarea.select(); // 选择对象
  201. textarea.setSelectionRange(0, content.length); //核心
  202. let result = document.execCommand('copy'); // 执行浏览器复制命令
  203. textarea.remove();
  204. return result;
  205. // #endif
  206. },
  207. bc_code() {
  208. let that = this;
  209. console.log('保存二维码', this.erweima);
  210. uni.downloadFile({
  211. //获得二维码的临时地址
  212. url: this.erweima,
  213. success: res => {
  214. //console.log('获取url',res)
  215. if (res.statusCode == 200) {
  216. uni.saveImageToPhotosAlbum({
  217. filePath: res.tempFilePath, //传入临时地址
  218. success() {
  219. that.$api.msg('保存成功'); //封装的提示
  220. },
  221. fail() {
  222. that.$api.msg('保存失败');
  223. }
  224. });
  225. }
  226. }
  227. });
  228. },
  229. showPopup() {
  230. this.$refs.popup.open();
  231. },
  232. close() {
  233. this.$refs.popup.close();
  234. },
  235. comfirm(text) {
  236. console.log(text);
  237. const result = this.uniCopy(text);
  238. if (result === false) {
  239. uni.showToast({
  240. title: '不支持'
  241. });
  242. } else {
  243. uni.showToast({
  244. title: '复制成功',
  245. icon: 'none'
  246. });
  247. }
  248. this.$refs.popup.close();
  249. },
  250. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  251. // 加载初始数据
  252. loadBaseData() {
  253. getUserInfo({})
  254. .then(({ data }) => {
  255. console.log(data, 'userInfo+++++++++++++++++++');
  256. this.setUserInfo(data);
  257. // 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
  258. orderData({})
  259. .then(({ data }) => {
  260. this.setOrderInfo(data);
  261. })
  262. .catch(e => {
  263. this.setOrderInfo({
  264. complete_count: 0, //完成
  265. received_count: 0, //待收货
  266. unshipped_count: 0, //待发货
  267. order_count: 0, //订单总数
  268. unpaid_count: 0 //待付款
  269. });
  270. });
  271. })
  272. .catch(e => {
  273. console.log(e);
  274. });
  275. },
  276. /**
  277. * 统一跳转接口,拦截未登录路由
  278. * navigator标签现在默认没有转场动画,所以用view
  279. */
  280. navTo(url) {
  281. if (!this.hasLogin) {
  282. // 保存地址
  283. saveUrl();
  284. // 登录拦截
  285. interceptor();
  286. } else {
  287. uni.navigateTo({
  288. url
  289. });
  290. }
  291. },
  292. /**
  293. * 会员卡下拉和回弹
  294. * 1.关闭bounce避免ios端下拉冲突
  295. * 2.由于touchmove事件的缺陷(以前做小程序就遇到,比如20跳到40,h5反而好很多),下拉的时候会有掉帧的感觉
  296. * transition设置0.1秒延迟,让css来过渡这段空窗期
  297. * 3.回弹效果可修改曲线值来调整效果,推荐一个好用的bezier生成工具 http://cubic-bezier.com/
  298. */
  299. coverTouchstart(e) {
  300. // console.log(e);
  301. if (pageAtTop === false) {
  302. return;
  303. }
  304. this.coverTransition = 'transform .1s linear';
  305. startY = e.touches[0].clientY;
  306. },
  307. coverTouchmove(e) {
  308. // console.log(e);
  309. moveY = e.touches[0].clientY;
  310. let moveDistance = moveY - startY;
  311. let maxDowm = this.userMaxDowm;
  312. let Dowm = this.userDowm;
  313. if (moveDistance < 0) {
  314. this.moving = false;
  315. return;
  316. }
  317. this.moving = true;
  318. if (moveDistance >= Dowm && moveDistance < maxDowm) {
  319. moveDistance = Dowm;
  320. }
  321. if (moveDistance > 0 && moveDistance <= Dowm) {
  322. this.coverTransform = `translateY(${moveDistance}px)`;
  323. }
  324. },
  325. coverTouchend() {
  326. if (this.moving === false) {
  327. return;
  328. }
  329. this.moving = false;
  330. this.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';
  331. this.coverTransform = 'translateY(0px)';
  332. },
  333. getMyStore() {
  334. getMyStore().then(res => {
  335. console.log('getMyStore', res);
  336. });
  337. },
  338. outlogin() {
  339. let obj = this;
  340. uni.showModal({
  341. content: '确定要退出登录么',
  342. success: e => {
  343. if (e.confirm) {
  344. logout({})
  345. .then(e => {
  346. obj.logout();
  347. uni.navigateTo({
  348. url: '/pages/public/login'
  349. });
  350. })
  351. .catch(e => {
  352. console.log(e);
  353. });
  354. }
  355. }
  356. });
  357. }
  358. }
  359. };
  360. </script>
  361. <style lang="scss">
  362. page {
  363. height: 100%;
  364. background-color: $page-color-base;
  365. }
  366. %flex-center {
  367. display: flex;
  368. flex-direction: column;
  369. justify-content: center;
  370. align-items: center;
  371. }
  372. %section {
  373. display: flex;
  374. justify-content: space-around;
  375. align-content: center;
  376. background: #fff;
  377. border-radius: 10rpx;
  378. }
  379. .container {
  380. height: 100%;
  381. background-color: #fff;
  382. }
  383. .content-box {
  384. height: 100%;
  385. }
  386. .user-section {
  387. height: 420rpx;
  388. padding: 50rpx 0rpx 0 30rpx;
  389. position: relative;
  390. .bg {
  391. position: absolute;
  392. left: 0;
  393. top: 0;
  394. width: 100%;
  395. height: 100%;
  396. background: linear-gradient(180deg, #08c4e6, #50ead2);
  397. // z-index: 1;
  398. // background-color: $base-color;
  399. image {
  400. width: 100%;
  401. height: 100%;
  402. }
  403. }
  404. }
  405. .user-info-box {
  406. height: 180rpx;
  407. color: white;
  408. display: flex;
  409. align-items: center;
  410. justify-content: space-between;
  411. position: relative;
  412. z-index: 1;
  413. .detail {
  414. height: 130rpx;
  415. .portrait-box {
  416. height: 100%;
  417. .portrait {
  418. width: 130rpx;
  419. height: 100%;
  420. border: 5rpx solid #fff;
  421. border-radius: 50%;
  422. }
  423. }
  424. .info-box {
  425. margin-left: 20rpx;
  426. line-height: 1.5;
  427. .username {
  428. font-size: $font-lg + 2rpx;
  429. height: 100%;
  430. max-width: 200rpx;
  431. }
  432. .vip {
  433. position: relative;
  434. margin-left: 12rpx;
  435. width: 120rpx;
  436. height: 40rpx;
  437. .vip-bg {
  438. position: absolute;
  439. top: 0;
  440. left: 0;
  441. right: 0;
  442. width: 100%;
  443. height: 100%;
  444. }
  445. .vip-title {
  446. position: relative;
  447. z-index: 10;
  448. font-size: 20rpx;
  449. font-family: PingFang SC;
  450. font-weight: 500;
  451. color: #93794b;
  452. padding-left: 36rpx;
  453. line-height: 40rpx;
  454. }
  455. }
  456. .username-t {
  457. font-size: $font-lg + 6rpx;
  458. // height: 32rpx;
  459. display: flex;
  460. align-items: center;
  461. image {
  462. display: inline-block;
  463. margin-left: 10rpx;
  464. width: 147rpx;
  465. height: 32rpx;
  466. }
  467. }
  468. .user-get {
  469. font-size: $font-lg;
  470. text {
  471. font-size: $font-lg + 6rpx;
  472. }
  473. }
  474. }
  475. }
  476. .config {
  477. font-size: 48rpx;
  478. height: 130rpx;
  479. .setting {
  480. margin-right: 51rpx;
  481. }
  482. }
  483. .my-info {
  484. margin-right: 30rpx;
  485. width: 130rpx;
  486. height: 50rpx;
  487. border: 1px solid #ffffff;
  488. border-radius: 26rpx;
  489. justify-content: center;
  490. image {
  491. width: 30rpx;
  492. height: 30rpx;
  493. }
  494. .title {
  495. padding-left: 9rpx;
  496. font-size: 24rpx;
  497. font-family: PingFang SC;
  498. font-weight: 500;
  499. color: #ffffff;
  500. }
  501. }
  502. }
  503. .vip-card-box {
  504. display: flex;
  505. flex-direction: column;
  506. color: #f7d680;
  507. height: 240rpx;
  508. background: linear-gradient(left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  509. border-radius: 16rpx 16rpx 0 0;
  510. overflow: hidden;
  511. position: relative;
  512. padding: 20rpx 24rpx;
  513. .card-bg {
  514. position: absolute;
  515. top: 20rpx;
  516. right: 0;
  517. width: 380rpx;
  518. height: 260rpx;
  519. }
  520. .b-btn {
  521. position: absolute;
  522. right: 20rpx;
  523. top: 16rpx;
  524. width: 132rpx;
  525. height: 40rpx;
  526. text-align: center;
  527. line-height: 40rpx;
  528. font-size: 22rpx;
  529. color: #36343c;
  530. border-radius: 20px;
  531. background: linear-gradient(left, #f9e6af, #ffd465);
  532. z-index: 1;
  533. }
  534. .tit {
  535. font-size: $font-base + 2rpx;
  536. color: #f7d680;
  537. margin-bottom: 28rpx;
  538. .iconfont {
  539. color: #f6e5a3;
  540. margin-right: 16rpx;
  541. }
  542. }
  543. .e-b {
  544. font-size: $font-sm;
  545. color: #d8cba9;
  546. margin-top: 10rpx;
  547. }
  548. }
  549. .cover-container {
  550. background: $page-color-base;
  551. margin-top: -150rpx;
  552. padding: 0 30rpx;
  553. position: relative;
  554. background: #f5f5f5;
  555. padding-bottom: 20rpx;
  556. .arc {
  557. position: absolute;
  558. left: 0;
  559. top: -34rpx;
  560. width: 100%;
  561. height: 36rpx;
  562. }
  563. }
  564. .tj-sction {
  565. @extend %section;
  566. .tj-item {
  567. @extend %flex-center;
  568. flex-direction: column;
  569. height: 140rpx;
  570. font-size: $font-sm;
  571. color: #75787d;
  572. }
  573. .num {
  574. font-size: $font-lg;
  575. color: $font-color-dark;
  576. margin-bottom: 8rpx;
  577. }
  578. }
  579. .item-box {
  580. // width: 710rpx;
  581. // height: 221rpx;
  582. // background: #FFFFFF;
  583. // box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  584. // border-radius: 20rpx;
  585. // position: relative;
  586. // top: -150rpx;
  587. // left: 0;
  588. // right: 0;
  589. // margin: 0 auto -150rpx;
  590. margin: 20rpx 0;
  591. .box-title {
  592. background-color: #fff;
  593. line-height: 1;
  594. // padding: 30rpx;
  595. padding: 0 36rpx 0 35rpx;
  596. height: 73rpx;
  597. border-radius: 20rpx 20rpx 0 0;
  598. .title {
  599. font-weight: bold;
  600. font-size: 30rpx;
  601. font-family: PingFang SC;
  602. font-weight: bold;
  603. color: #333333;
  604. }
  605. .link {
  606. font-size: $font-base - 2rpx;
  607. color: $font-color-light;
  608. }
  609. }
  610. .order-section {
  611. height: 146rpx;
  612. @extend %section;
  613. // padding: 28rpx 0;
  614. .order-item {
  615. @extend %flex-center;
  616. width: 120rpx;
  617. height: 146rpx;
  618. border-radius: 10rpx;
  619. font-size: $font-sm;
  620. color: $font-color-dark;
  621. }
  622. .iconfont {
  623. font-size: 48rpx;
  624. margin-bottom: 18rpx;
  625. color: #fa436a;
  626. }
  627. .icon-shouhoutuikuan {
  628. font-size: 44rpx;
  629. }
  630. .icon {
  631. height: 50rpx;
  632. width: 48rpx;
  633. margin-bottom: 18rpx;
  634. background-size: 100%;
  635. background-repeat: no-repeat;
  636. background-position: center;
  637. .icon-img {
  638. width: 100%;
  639. height: 100%;
  640. }
  641. }
  642. .icon-b {
  643. height: 90rpx;
  644. width: 88rpx;
  645. }
  646. }
  647. }
  648. .history-section {
  649. // padding: 30rpx 0 0;
  650. margin-top: 20rpx;
  651. background: #fff;
  652. border-radius: 10rpx;
  653. .sec-header {
  654. display: flex;
  655. align-items: center;
  656. font-size: $font-base;
  657. color: $font-color-dark;
  658. line-height: 40rpx;
  659. margin-left: 30rpx;
  660. padding-top: 30rpx;
  661. .iconfont {
  662. font-size: 44rpx;
  663. color: $color-red;
  664. margin-right: 16rpx;
  665. line-height: 40rpx;
  666. }
  667. }
  668. .h-list {
  669. white-space: nowrap;
  670. padding: 30rpx 30rpx 0;
  671. .h-list-image {
  672. display: inline-block;
  673. width: 160rpx;
  674. height: 160rpx;
  675. margin-right: 20rpx;
  676. border-radius: 10rpx;
  677. }
  678. }
  679. }
  680. .up-box {
  681. margin: 21rpx auto;
  682. width: 710rpx;
  683. height: 90rpx;
  684. background: linear-gradient(73deg, #ffffff 0%, #fffbeb 0%, #fff1da 0%, #fed591 100%);
  685. border-radius: 20rpx;
  686. image {
  687. width: 100%;
  688. height: 100%;
  689. border-radius: 20rpx;
  690. }
  691. }
  692. .item-box-b {
  693. width: 710rpx;
  694. height: 221rpx;
  695. background: #ffffff;
  696. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.5);
  697. border-radius: 20rpx;
  698. position: relative;
  699. top: -150rpx;
  700. left: 0;
  701. right: 0;
  702. margin: 0 auto -150rpx;
  703. }
  704. .popup {
  705. width: 640rpx;
  706. background-color: #ffffff;
  707. border-radius: 15rpx;
  708. text-align: center;
  709. .popup-dox {
  710. position: relative;
  711. top: -60rpx;
  712. .popup-logo {
  713. width: 460rpx;
  714. height: 132rpx;
  715. }
  716. .pop-title {
  717. font-size: 40rpx;
  718. font-weight: bold;
  719. color: #333333;
  720. padding: 25rpx 0rpx;
  721. margin-bottom: 50rpx;
  722. }
  723. .popup-text {
  724. width: 400rpx;
  725. height: 400rpx;
  726. margin-bottom: 50rpx;
  727. }
  728. .btn {
  729. width: 300rpx;
  730. height: 50rpx;
  731. line-height: 50rpx;
  732. background: #96e4f2;
  733. margin: 0 auto;
  734. color: #ffffff;
  735. border-radius: 25rpx;
  736. }
  737. .pop-tip {
  738. font-size: 30rpx;
  739. font-weight: 500;
  740. color: #333333;
  741. justify-content: center;
  742. margin-top: 20rpx;
  743. .weixin {
  744. width: 48rpx;
  745. height: 40rpx;
  746. margin-right: 14rpx;
  747. image {
  748. width: 48rpx;
  749. height: 40rpx;
  750. }
  751. }
  752. }
  753. }
  754. }
  755. .close_icon {
  756. width: 60rpx;
  757. height: 60rpx;
  758. margin: 88rpx auto 0;
  759. image {
  760. width: 100%;
  761. height: 100%;
  762. }
  763. }
  764. .outlogin {
  765. margin: 40rpx auto;
  766. width: 500rpx;
  767. background-color: #fff;
  768. color: #ff4c4b;
  769. border: 1px solid #ff4c4b;
  770. text-align: center;
  771. padding: 10rpx 0rpx;
  772. border-radius: 50rpx;
  773. }
  774. .order-font {
  775. margin-top: -24rpx;
  776. }
  777. </style>