user.vue 19 KB

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