user.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964
  1. <template>
  2. <view class="container">
  3. <!-- #ifdef APP-PLUS -->
  4. <view class="bar-height"></view>
  5. <!-- #endif -->
  6. <!-- <scroll-view class="content-box" scroll-y="true"> -->
  7. <view class="user-section">
  8. <view class="bg">
  9. <image src="../../static/user/ground.png" mode=""></image>
  10. </view>
  11. <!-- top -->
  12. <view class="user-box">
  13. <view class="detail" @click="navTo('/pages/userinfo/userinfo')">
  14. <image class="portrait" :src="userInfo.avatar || '/static/error/missing-face.png'"></image>
  15. <view class="username">{{ userInfo.nickname || '游客' }}</view>
  16. <view class="font-size-sm" v-if="userInfo.uid">邀请码:{{ userInfo.uid }}<text
  17. v-if="userInfo.level == 1" style="color: #5dbc7c;margin-left: 10rpx;">会员</text><text
  18. v-if="userInfo.level == 2" style="color: #dab176;margin-left: 10rpx;">副店长</text><text
  19. v-if="userInfo.level == 3" style="color: #dab176;margin-left: 10rpx;">店长</text>
  20. </view>
  21. <view class="font-size-sm" style="color: #5dbc7c;"
  22. v-if="userInfo.level == 1 && userInfo.service == 0">
  23. {{'会员股权:' + userInfo.vip.stock_rights + ' 消费股权:' + userInfo.vip.consume_rights}}
  24. </view>
  25. </view>
  26. <view class="sy-box flex">
  27. <view class="sy-item" @click="navTo('/pages/wallet/wallet')">
  28. <view class="sy-item-val">{{userInfo.now_money|| 0}}</view>
  29. <view class="sy-item-name">我的余额</view>
  30. </view>
  31. <view class="jg"></view>
  32. <view class="sy-item" @click="navTo('/pages/award/award')">
  33. <view class="sy-item-val">{{userInfo.brokerage_price|| 0}}</view>
  34. <view class="sy-item-name">我的奖金</view>
  35. </view>
  36. <view class="jg"></view>
  37. <view class="sy-item" @click="navTo('/pages/scoreAccumulate/scoreAccumulate')">
  38. <view class="sy-item-val">{{userInfo.integral||0}}</view>
  39. <view class="sy-item-name">我的积分</view>
  40. </view>
  41. <view class="jg"></view>
  42. <view class="sy-item" @click="navTo('/pages/coupon/consumer')">
  43. <view class="sy-item-val">{{userInfo.consumer || 0}}</view>
  44. <view class="sy-item-name">我的消费券</view>
  45. </view>
  46. </view>
  47. </view>
  48. <!-- 会员卡功能 -->
  49. </view>
  50. <view class="my-order">
  51. <view class="box-title flex borde-b">
  52. <view class="title"><text>我的订单</text></view>
  53. <view class="link" @click="navTo('/pages/order/order?state=5')" hover-class="common-hover"><text
  54. class="iconfont iconenter"></text></view>
  55. </view>
  56. <view class="order-section">
  57. <view class="order-item" @click="navTo('/pages/order/order?state=1')" hover-class="common-hover"
  58. :hover-stay-time="50">
  59. <view class=" icon1 position-relative">
  60. <image class="icon-img" src="/static/icon/i2.png" mode="aspectFit"></image>
  61. <view class="corner" v-if="orderInfo.unshipped_count > 0">
  62. <text>{{ orderInfo.unshipped_count }}</text>
  63. </view>
  64. </view>
  65. <text>待发货</text>
  66. </view>
  67. <view class="order-item" @click="navTo('/pages/order/order?state=2')" hover-class="common-hover"
  68. :hover-stay-time="50">
  69. <view class="icon1 position-relative">
  70. <image class="icon-img" src="/static/icon/i3.png" mode="aspectFit"></image>
  71. <view class="corner" v-if="orderInfo.received_count > 0">
  72. <text>{{ orderInfo.received_count }}</text>
  73. </view>
  74. </view>
  75. <text>待收货</text>
  76. </view>
  77. <view class="order-item" @click="navTo('/pages/order/order?state=3')" hover-class="common-hover"
  78. :hover-stay-time="50">
  79. <view class="icon1 position-relative">
  80. <image class="icon-img" src="/static/icon/i4.png" mode="aspectFit"></image>
  81. <view class="corner" v-if="orderInfo.evaluated_count > 0">
  82. <text>{{ orderInfo.evaluated_count }}</text>
  83. </view>
  84. </view>
  85. <text>待评价</text>
  86. </view>
  87. <view class="order-item" @click="navTo('/pages/order/refundOrder?state=0')" hover-class="common-hover"
  88. :hover-stay-time="50">
  89. <view class=" icon1 position-relative">
  90. <image class="icon-img" src="/static/icon/i1.png" mode="aspectFit"></image>
  91. </view>
  92. <text>退款</text>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="my-order">
  97. <view class="box-title flex borde-b">
  98. <view class="title"><text>我的奖励</text></view>
  99. </view>
  100. <view class="sy-box flex">
  101. <view class="sy-item">
  102. <view class="sy-item-name">团队等级</view>
  103. <view class="sy-item-val">
  104. {{ userInfo.group_level_info != null? userInfo.group_level_info.name : '无' }}
  105. </view>
  106. </view>
  107. <view class="jg"></view>
  108. <view class="sy-item">
  109. <view class="sy-item-name">奖励等级</view>
  110. <!-- <view class="sy-item-val">{{jcdj}}</view> -->
  111. <view class="sy-item-val">
  112. {{userInfo.award_level_info!= null? userInfo.award_level_info.name : '无'}}
  113. </view>
  114. </view>
  115. <view class="jg"></view>
  116. <view class="sy-item">
  117. <view class="sy-item-name">冻结奖</view>
  118. <view class="sy-item-val">{{ userInfo.lock_group_award || 0 }}</view>
  119. </view>
  120. </view>
  121. </view>
  122. <view class="my-order">
  123. <view class="box-title flex borde-b">
  124. <view class="title"><text>我的单数</text></view>
  125. </view>
  126. <view class="order-section">
  127. <view class="order-item">
  128. <view class="order-num">
  129. {{userInfo.suit_num || 0}}
  130. </view>
  131. <text>套装单数</text>
  132. </view>
  133. <view class="xian"></view>
  134. <view class="order-item">
  135. <view class="order-num">
  136. {{userInfo.recommend_suit_num || 0}}
  137. </view>
  138. <text>直推单数</text>
  139. </view>
  140. <view class="xian"></view>
  141. <view class="order-item">
  142. <view class="order-num">
  143. {{userInfo.group_suit_num || 0}}
  144. </view>
  145. <text>团队单数</text>
  146. </view>
  147. </view>
  148. </view>
  149. <view class="list-box" v-if="isShowIllegality">
  150. <view class="user-list flex" @click="navTo('/pages/shareQrCode/index')">
  151. <image src="../../static/user/u1.png" mode="" class="left-img"></image>
  152. <view class="">邀请海报</view>
  153. <image src="../../static/user/right.png" mode="" class="right-img"></image>
  154. </view>
  155. <view class="user-list flex" @click="navTo('/pages/myteam/myteam')">
  156. <image src="../../static/user/u2.png" mode="widthFix" class="left-img"></image>
  157. <view class="">我的推广</view>
  158. <image src="../../static/user/right.png" mode="" class="right-img"></image>
  159. </view>
  160. <view class="user-list flex" @click="navTo('/pages/set/phone')">
  161. <image src="../../static/user/u3.png" mode="widthFix" class="left-img"></image>
  162. <view class="">绑定手机号</view>
  163. <image src="../../static/user/right.png" mode="" class="right-img"></image>
  164. </view>
  165. <view class="user-list flex" @click="navTo('/pages/favorites/favorites')">
  166. <image src="../../static/user/u4.png" mode="widthFix" class="left-img"></image>
  167. <view class="">我的收藏</view>
  168. <image src="../../static/user/right.png" mode="" class="right-img"></image>
  169. </view>
  170. <view class="user-list flex" @click="openKf()">
  171. <image src="../../static/user/u5.png" mode="widthFix" class="left-img"></image>
  172. <view class="">客服中心</view>
  173. <image src="../../static/user/right.png" mode="" class="right-img"></image>
  174. </view>
  175. <view class="user-list flex" @click="navTo('/pages/address/address')">
  176. <image src="../../static/user/u6.png" mode="widthFix" class="left-img"></image>
  177. <view class="">收货地址</view>
  178. <image src="../../static/user/right.png" mode="" class="right-img"></image>
  179. </view>
  180. <view class="user-list flex" @click="navTo('/pages/userinfo/userinfo')">
  181. <image src="../../static/user/u7.png" mode="widthFix" class="left-img"></image>
  182. <view class="">设置</view>
  183. <image src="../../static/user/right.png" mode="" class="right-img"></image>
  184. </view>
  185. <view class="user-list flex" @click="navTo('/pages/myteam/myteamQian')">
  186. <image src="../../static/user/u8.png" mode="widthFix" class="left-img"></image>
  187. <view class="">百业推广</view>
  188. <image src="../../static/user/right.png" mode="" class="right-img"></image>
  189. </view>
  190. <view class="user-list flex" v-if="userInfo.service == 1 || type==1"
  191. @click="navTo('/pages/merchant/merchant')">
  192. <image src="../../static/user/u9.png" mode="widthFix" class="left-img"></image>
  193. <view class="">商家入口</view>
  194. <image src="../../static/user/right.png" mode="" class="right-img"></image>
  195. </view>
  196. <view class="user-list flex" v-if="userInfo.service == 1 || type==1" @click="openewm()">
  197. <image src="../../static/user/u11.png" mode="widthFix" class="left-img"></image>
  198. <view class="">商家收款码</view>
  199. <image src="../../static/user/right.png" mode="" class="right-img"></image>
  200. </view>
  201. <view class="user-list flex" @click="navTo('/pages/merchant/becomeShop')">
  202. <image src="../../static/user/u10.png" mode="widthFix" class="left-img"></image>
  203. <view class="">商家入驻{{type==-1?'':type==0?'(审核中)':type==1?'(成功)':'(失败)'}}</view>
  204. <image src="../../static/user/right.png" mode="" class="right-img"></image>
  205. </view>
  206. </view>
  207. <uni-popup ref="popupkf" type="center">
  208. <view class="popup-box">
  209. <view class="img">
  210. <image src="../../static/img/img009.png" mode=""></image>
  211. </view>
  212. <view class="mian">
  213. <view class="delivery">
  214. <view class="title">已经为您定制专属客服</view>
  215. <image src="../../static/img/img010.png" mode=""></image>
  216. </view>
  217. <view class="nocancel">客服VX:{{ text }}</view>
  218. <view class="comfirm-box">
  219. <view class="cancel" @click="cancel">取消</view>
  220. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  221. </view>
  222. </view>
  223. </view>
  224. </uni-popup>
  225. <uni-popup ref="ewm" type="center">
  226. <view class="hym-wrap">
  227. <view class="hym-tit">
  228. 收款码地址
  229. </view>
  230. <view class="hym-val">
  231. <tki-qrcode :key="hym" cid="tki-qrcode-canvas" ref="qrcode" :val="hym" :size="300" unit="upx"
  232. background="#ffffff" foreground="#333333" pdground="#333333" icon="" :iconSize="0" :lv="3"
  233. :onval="true" :loadMake="true" :usingComponents="true" />
  234. </view>
  235. </view>
  236. </uni-popup>
  237. </view>
  238. </template>
  239. <script>
  240. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  241. import {
  242. verification,
  243. storeIndex
  244. } from '@/api/merchant.js';
  245. import {
  246. mapState,
  247. mapMutations
  248. } from 'vuex';
  249. import uniList from '@/components/uni-list/uni-list.vue';
  250. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  251. import {
  252. orderData,
  253. } from '@/api/user.js';
  254. import {
  255. getUserInfo
  256. } from '@/api/login.js';
  257. import tkiQrcodes from '@/components/tki-qrcode/tki-qrcode.vue';
  258. let startY = 0,
  259. moveY = 0,
  260. pageAtTop = true;
  261. export default {
  262. components: {
  263. uniList,
  264. uniListItem,
  265. uniPopup,
  266. tkiQrcodes
  267. },
  268. data() {
  269. return {
  270. type: -1, //-1无事发生0审核中1成功2失败
  271. hym: '', //会员编号
  272. orderinfo: {
  273. complete_count: 0,
  274. received_count: 0,
  275. unshipped_count: 0,
  276. order_count: 0
  277. },
  278. // 判断是否已经点击过一次取消关注公众号
  279. watchful: true,
  280. card: '',
  281. pwd: '',
  282. text: '111',
  283. qrsize: 80, // 二维码大小
  284. cid: 'tki-qrcode-canvas', //canvasId,页面存在多个二维码组件时需设置不同的ID
  285. size: 500, //生成的二维码大小
  286. unit: 'upx', //大小单位尺寸
  287. // show: true,//默认使用组件中的image标签显示二维码
  288. val: '', //要生成的内容
  289. background: '#ffffff', //二维码背景色
  290. foreground: '#333333', //二维码前景色
  291. pdground: '#333333', //二维码角标色
  292. icon: '', //二维码图标URL(必须是本地图片,网络图需要先下载至本地)
  293. iconSize: 40, //二维码图标大小
  294. lv: 3, //容错级别
  295. onval: true, //监听val值变化自动重新生成二维码
  296. loadMake: false, //组件初始化完成后自动生成二维码,val需要有值
  297. usingComponents: false, //是否使用了自定义组件模式(主要是为了修复非自定义组件模式时 v-if 无法生成二维码的问题)
  298. showLoading: true, //是否显示loading
  299. loadingText: '二维码生成中', //loading文字
  300. src: '', // 二维码生成后的图片地址或base64
  301. ratio: 1, //页面比例用于计算
  302. ctxSrc: '', //要显示的图片
  303. loading: true, //是否载入图片中
  304. };
  305. },
  306. onShow() {
  307. // 判断是否已经登录
  308. if (this.hasLogin) {
  309. this.loadBaseData();
  310. }
  311. },
  312. onReady() {
  313. // 初始化获取页面宽度
  314. uni.createSelectorQuery()
  315. .select('.container')
  316. .fields({
  317. size: true
  318. },
  319. data => {
  320. // 计算最多下拉的高度
  321. this.userDowm = Math.floor((data.width / 750) * 200);
  322. // 计算最大触发修改高度事件
  323. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  324. }
  325. )
  326. .exec();
  327. },
  328. computed: {
  329. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin']),
  330. jcdj() {
  331. if (this.userInfo.award_level_info != null) {
  332. if (this.userInfo.group_level_info != null) {
  333. return this.userInfo.award_level_info.id < this.userInfo.group_level_info.id ? this.userInfo
  334. .award_level_info.name : this.userInfo.group_level_info.name
  335. } else {
  336. return this.userInfo.award_level_info.name
  337. }
  338. } else {
  339. if (this.userInfo.group_level_info != null) {
  340. return this.userInfo.group_level_info.name
  341. } else {
  342. return '无'
  343. }
  344. }
  345. },
  346. // #ifdef H5
  347. ...mapState(['weichatObj']),
  348. // #endif
  349. ...mapState(['isShowIllegality', 'canChange', 'storeInfo', 'baseURL'])
  350. },
  351. methods: {
  352. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  353. // 加载初始数据
  354. loadBaseData() {
  355. let obj = this;
  356. getUserInfo({})
  357. .then(({
  358. data
  359. }) => {
  360. orderData({})
  361. .then(({
  362. data
  363. }) => {
  364. obj.setOrderInfo(data);
  365. })
  366. .catch(e => {
  367. obj.setOrderInfo({
  368. complete_count: 0, //完成
  369. received_count: 0, //待收货
  370. unshipped_count: 0, //待发货
  371. order_count: 0, //订单总数
  372. unpaid_count: 0 //待付款
  373. });
  374. });
  375. obj.setUserInfo(data);
  376. // 判断是否已经关注公众号
  377. if (data.wechat.subscribe == 0 && obj.watchful) {
  378. uni.showModal({
  379. title: '温馨提醒',
  380. content: '为提供更好的服务,请关注公众号。',
  381. success: res => {
  382. obj.watchful = false;
  383. // 判断是否点击了确认
  384. if (res.confirm) {
  385. uni.navigateTo({
  386. url: '/pages/shareQrCode/wechatQr'
  387. });
  388. }
  389. }
  390. });
  391. }
  392. })
  393. .catch(e => {
  394. console.log(e);
  395. });
  396. storeIndex({}).then(e => {
  397. if (!e.data.apply) {
  398. obj.type = -1;
  399. if (e.data.store_info) {
  400. obj.type = 1;
  401. }
  402. } else {
  403. obj.type = e.data.apply.status;
  404. }
  405. })
  406. },
  407. openKf() {
  408. this.$refs.popupkf.open();
  409. },
  410. openewm() {
  411. this.hym = this.baseURL + '/index/pages/received/ipad?token=' + uni.getStorageSync('token');
  412. this.$refs.ewm.open();
  413. },
  414. // 关闭客服
  415. cancel() {
  416. this.$refs.popupkf.close();
  417. },
  418. comfirm(text) {
  419. console.log(text);
  420. const result = this.uniCopy(text);
  421. if (result === false) {
  422. uni.showToast({
  423. title: '不支持'
  424. });
  425. } else {
  426. uni.showToast({
  427. title: '复制成功',
  428. icon: 'none'
  429. });
  430. }
  431. this.$refs.popupkf.close();
  432. },
  433. uniCopy(content) {
  434. /**
  435. * 小程序端 和 app端的复制逻辑
  436. */
  437. //#ifndef H5
  438. uni.setClipboardData({
  439. data: content,
  440. success: function() {
  441. console.log('success');
  442. return true;
  443. }
  444. });
  445. //#endif
  446. /**
  447. * H5端的复制逻辑
  448. */
  449. // #ifdef H5
  450. if (!document.queryCommandSupported('copy')) {
  451. //为了兼容有些浏览器 queryCommandSupported 的判断
  452. // 不支持
  453. return false;
  454. }
  455. let textarea = document.createElement('textarea');
  456. textarea.value = content;
  457. textarea.readOnly = 'readOnly';
  458. document.body.appendChild(textarea);
  459. textarea.select(); // 选择对象
  460. textarea.setSelectionRange(0, content.length); //核心
  461. let result = document.execCommand('copy'); // 执行浏览器复制命令
  462. textarea.remove();
  463. return result;
  464. // #endif
  465. },
  466. /**
  467. * 统一跳转接口,拦截未登录路由
  468. * navigator标签现在默认没有转场动画,所以用view
  469. */
  470. navTo(url) {
  471. if (!this.hasLogin) {
  472. url = '/pages/public/login';
  473. // #ifdef H5
  474. let weichatBrowser = uni.getStorageSync('weichatBrowser');
  475. // 判断是否为微信浏览器
  476. if (weichatBrowser) {
  477. url = '/pages/public/wxLogin';
  478. }
  479. // #endif
  480. // #ifdef MP-WEIXIN
  481. url = '/pages/public/wxLogin';
  482. // #endif
  483. }
  484. uni.navigateTo({
  485. url
  486. });
  487. },
  488. }
  489. };
  490. </script>
  491. <style lang="scss">
  492. %flex-center {
  493. display: flex;
  494. flex-direction: column;
  495. justify-content: center;
  496. align-items: center;
  497. }
  498. %section {
  499. display: flex;
  500. justify-content: space-around;
  501. align-content: center;
  502. background: #fff;
  503. border-radius: 10rpx;
  504. }
  505. .container {
  506. height: 100%;
  507. background-color: #f8f8f8;
  508. /* #ifdef APP-PLUS */
  509. .bar-height {
  510. height: var(--status-bar-height);
  511. background-color: $base-color;
  512. }
  513. /* #endif */
  514. }
  515. .content-box {
  516. height: 100%;
  517. }
  518. .user-section {
  519. padding: 60rpx 0 0 0;
  520. position: relative;
  521. .bg {
  522. position: absolute;
  523. height: 228rpx;
  524. width: 100%;
  525. left: 0;
  526. top: 0;
  527. image {
  528. width: 100%;
  529. height: 100%;
  530. }
  531. // background-color: $base-color;
  532. }
  533. }
  534. .sy-box {
  535. height: 148rpx;
  536. background-color: #ffffff;
  537. .sy-item {
  538. width: 30%;
  539. flex-grow: 1;
  540. text-align: center;
  541. font-size: 24rpx;
  542. font-family: PingFang SC;
  543. font-weight: 500;
  544. color: #3bbc88;
  545. .sy-item-val {
  546. margin-top: 6rpx;
  547. font-size: 28rpx;
  548. }
  549. .sy-item-name {
  550. color: #000000;
  551. }
  552. }
  553. .jg {
  554. width: 2rpx;
  555. height: 40rpx;
  556. background-color: #d4ded8;
  557. }
  558. }
  559. .user-box {
  560. padding: 54rpx 0 40rpx;
  561. position: relative;
  562. z-index: 0;
  563. margin: 0 auto;
  564. width: 90%;
  565. background-color: #ffffff;
  566. border-radius: 20rpx;
  567. }
  568. .detail {
  569. display: flex;
  570. flex-direction: column;
  571. align-items: center;
  572. justify-content: center;
  573. .portrait {
  574. width: 130rpx;
  575. height: 130rpx;
  576. border-radius: 50%;
  577. }
  578. .username {
  579. color: black;
  580. margin-top: 20rpx;
  581. font-size: $font-lg + 6rpx;
  582. height: 100%;
  583. }
  584. .uservip {
  585. display: flex;
  586. align-items: center;
  587. justify-content: center;
  588. margin-top: 10rpx;
  589. background: url('../../static/img/vip-bg.png') 100%/contain no-repeat;
  590. padding: 6rpx 72rpx;
  591. font-size: 20rpx;
  592. font-family: PingFang SC;
  593. font-weight: 500;
  594. color: #93794B;
  595. }
  596. }
  597. .cover-container {
  598. display: flex;
  599. flex-direction: column;
  600. background: $page-color-base;
  601. padding: 0 30rpx;
  602. position: relative;
  603. background: #f5f5f5;
  604. padding-bottom: 20rpx;
  605. margin-top: -110rpx;
  606. }
  607. .tj-sction {
  608. @extend %section;
  609. .tj-item {
  610. @extend %flex-center;
  611. flex-direction: column;
  612. height: 140rpx;
  613. font-size: $font-sm;
  614. color: #75787d;
  615. }
  616. .num {
  617. font-size: $font-lg;
  618. color: $font-color-dark;
  619. margin-bottom: 8rpx;
  620. }
  621. }
  622. .my-order {
  623. width: 690rpx;
  624. margin: 20rpx auto 0;
  625. border-radius: 20rpx;
  626. }
  627. .box-title {
  628. line-height: 1;
  629. padding: 30rpx;
  630. background: #ffffff;
  631. .title {
  632. font-size: $font-lg;
  633. font-weight: bold;
  634. }
  635. .link {
  636. font-size: $font-base - 2rpx;
  637. color: $font-color-light;
  638. }
  639. }
  640. // .order{
  641. // margin-top: 70rpx;
  642. // }
  643. .order-section {
  644. @extend %section;
  645. padding: 40rpx 0;
  646. align-items: center;
  647. .order-item {
  648. @extend %flex-center;
  649. // width: 120rpx;
  650. width: 25%;
  651. border-radius: 10rpx;
  652. font-size: $font-sm;
  653. color: $font-color-dark;
  654. }
  655. .xian {
  656. height: 30rpx;
  657. width: 1rpx;
  658. background: #000000;
  659. }
  660. .order-num {
  661. font-size: $font-sm + 10rpx;
  662. margin-bottom: 10rpx;
  663. }
  664. .iconfont {
  665. font-size: 48rpx;
  666. margin-bottom: 18rpx;
  667. color: #fa436a;
  668. }
  669. .icon-shouhoutuikuan {
  670. font-size: 44rpx;
  671. }
  672. .icon {
  673. height: 88rpx;
  674. width: 90rpx;
  675. margin-bottom: 18rpx;
  676. background-size: 100%;
  677. background-repeat: no-repeat;
  678. background-position: center;
  679. .icon-img {
  680. width: 100%;
  681. height: 100%;
  682. }
  683. }
  684. .icon1 {
  685. height: 50rpx;
  686. width: 48rpx;
  687. margin-bottom: 18rpx;
  688. background-size: 100%;
  689. background-repeat: no-repeat;
  690. background-position: center;
  691. .icon-img {
  692. width: 100%;
  693. height: 100%;
  694. }
  695. }
  696. }
  697. .history-section {
  698. // padding: 30rpx 0 0;
  699. margin-top: 20rpx;
  700. background: #fff;
  701. border-radius: 10rpx;
  702. .sec-header {
  703. display: flex;
  704. align-items: center;
  705. font-size: $font-base;
  706. color: $font-color-dark;
  707. line-height: 40rpx;
  708. margin-left: 30rpx;
  709. padding-top: 30rpx;
  710. .iconfont {
  711. font-size: 44rpx;
  712. color: $color-red;
  713. margin-right: 16rpx;
  714. line-height: 40rpx;
  715. }
  716. }
  717. .h-list {
  718. white-space: nowrap;
  719. padding: 30rpx 30rpx 0;
  720. image {
  721. display: inline-block;
  722. width: 160rpx;
  723. height: 160rpx;
  724. margin-right: 20rpx;
  725. border-radius: 10rpx;
  726. }
  727. }
  728. }
  729. .sy-box {
  730. padding: 30rpx 0 40rpx;
  731. line-height: 1;
  732. .sy-item {
  733. width: 30%;
  734. flex-grow: 1;
  735. text-align: center;
  736. font-size: 24rpx;
  737. font-family: PingFang SC;
  738. font-weight: 500;
  739. color: #3bbc88;
  740. .sy-item-val {
  741. font-size: 36rpx;
  742. font-family: PingFang SC;
  743. font-weight: bold;
  744. color: #333333;
  745. }
  746. .sy-item-name {
  747. font-size: 24rpx;
  748. font-family: PingFang SC;
  749. font-weight: 500;
  750. color: #666666;
  751. margin-top: 16rpx;
  752. }
  753. }
  754. .jg {
  755. width: 1rpx;
  756. height: 58rpx;
  757. background: #EEEEEE;
  758. }
  759. }
  760. .list-box {
  761. width: 690rpx;
  762. margin: 20rpx auto 0;
  763. padding: 8rpx;
  764. }
  765. .user-list {
  766. border-radius: 28rpx;
  767. background: #ffffff;
  768. margin: 20rpx 0 0;
  769. width: 100%;
  770. background: #ffffff;
  771. padding: 30rpx 25rpx;
  772. .left-img {
  773. width: 40rpx;
  774. height: 40rpx;
  775. }
  776. view {
  777. padding-left: 20rpx;
  778. flex-grow: 1;
  779. font-size: 29rpx;
  780. font-weight: bold;
  781. color: #5d5d5d;
  782. }
  783. .right-img {
  784. width: 13rpx;
  785. height: 23rpx;
  786. }
  787. }
  788. .popup-box {
  789. width: 522rpx;
  790. height: 605rpx;
  791. background-color: #ffffff;
  792. border-radius: 20rpx;
  793. position: relative;
  794. .img {
  795. position: relative;
  796. top: -56rpx;
  797. left: 0;
  798. width: 522rpx;
  799. height: 132rpx;
  800. display: flex;
  801. justify-content: center;
  802. image {
  803. border-radius: 20rpx 20rpx 0 0;
  804. width: 450rpx;
  805. height: 132rpx;
  806. }
  807. }
  808. .mian {
  809. margin-top: -44rpx;
  810. display: flex;
  811. flex-direction: column;
  812. align-items: center;
  813. // padding: 32rpx 32rpx;
  814. background-color: #ffffff;
  815. border-radius: 0 0 20rpx 20rpx;
  816. text-align: center;
  817. .delivery {
  818. font-size: 40rpx;
  819. color: #333333;
  820. display: flex;
  821. align-items: center;
  822. flex-direction: column;
  823. image {
  824. margin-top: 48rpx;
  825. width: 172rpx;
  826. height: 160rpx;
  827. }
  828. }
  829. .nocancel {
  830. font-size: 32rpx;
  831. color: #333333;
  832. margin-top: 14rpx;
  833. }
  834. .comfirm-box {
  835. margin-top: 52rpx;
  836. display: flex;
  837. // margin-bottom: 32rpx;
  838. // justify-content: space-around;
  839. .cancel {
  840. display: flex;
  841. align-items: center;
  842. justify-content: center;
  843. width: 197rpx;
  844. height: 74rpx;
  845. border: 1px solid #dcc786;
  846. border-radius: 38rpx;
  847. font-size: 32rpx;
  848. color: #605128;
  849. }
  850. .comfirm {
  851. margin-left: 32rpx;
  852. display: flex;
  853. align-items: center;
  854. justify-content: center;
  855. width: 197rpx;
  856. height: 74rpx;
  857. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  858. border-radius: 38px;
  859. font-size: 32rpx;
  860. color: #605128;
  861. }
  862. }
  863. }
  864. }
  865. .hym-wrap {
  866. width: 500rpx;
  867. height: 500rpx;
  868. background-color: #fff;
  869. text-align: center;
  870. border-radius: 20rpx;
  871. .hym-tit {
  872. color: $base-color;
  873. padding: 20rpx 0;
  874. font-size: 48rpx;
  875. }
  876. .hym-val {
  877. width: 300rpx;
  878. height: 300rpx;
  879. margin: auto;
  880. }
  881. .hym-num {
  882. font-size: 28rpx;
  883. font-weight: bold;
  884. padding-top: 20rpx;
  885. }
  886. }
  887. </style>