index - 副本.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  1. <template>
  2. <view>
  3. <!-- 状态栏高度 -->
  4. <view :style="{ height: `${statusBarHeight}px` }"></view>
  5. <!-- 导航栏 -->
  6. <view :style="{ height: `${navigationBarHeight}px`,lineHeight: `${navigationBarHeight}px`}" class="order-nav">
  7. 个人中心
  8. </view>
  9. <view style="background-color: #FF6702;height: 60rpx;"></view>
  10. <view class="card">
  11. <view class="card-left">
  12. <view class="name" v-if="!isLogin" @tap="openAuto">
  13. <image class="avatar tui-skeleton-rect" :src='userInfo.avatar' v-if="userInfo.avatar" @click="goEdit()"></image>
  14. <image v-else class="avatar tui-skeleton-rect" :src="urlDomain+'crmebimage/presets/morenT.png'" mode="" @click="goEdit()">
  15. </image>
  16. <view class="username">请点击登录</view>
  17. </view>
  18. <template v-else>
  19. <image class="avatar tui-skeleton-rect" :src='userInfo.avatar' v-if="userInfo.avatar" @click="goEdit()"></image>
  20. <image v-else class="avatar tui-skeleton-rect" :src="urlDomain+'crmebimage/presets/morenT.png'" mode="" @click="goEdit()">
  21. </image>
  22. <view class="username">
  23. {{userInfo.nickname}}
  24. <!-- <image src="/static/img/ic-code.png" class="code"></image> -->
  25. </view>
  26. <view class="phone-info">
  27. <text>绑定手机号:{{userInfo.phone}}</text>
  28. <image src="/static/img/ic-copy.png">
  29. </image>
  30. </view>
  31. </template>
  32. </view>
  33. <view class="card-right">
  34. <view class="card-content">
  35. <!--view class="content-item" @click="menusTap('/pages/users/user_coupon/index')">
  36. <img class="content-icon" src="/static/img/ic-vouchers.png" alt="我的票劵">
  37. <view class="content-text1">优惠券</view>
  38. </view-->
  39. <!--view class="content-item" @click="menusTap('/pages/goods/order_list/index')">
  40. <img class="content-icon" src="/static/img/ic-order.png" alt="我的订单">
  41. <view class="content-text2">我的订单</view>
  42. </view-->
  43. <view class="content-item" @click="menusTap('/pages/merchant/user_integral/index')">
  44. <img class="content-icon" src="/static/img/ic-tickets.png" alt="我的积分">
  45. <view class="content-text3">我的积分</view>
  46. </view>
  47. <view class="content-item app_set" @click="goEdit()">
  48. <text class="iconfont icon-shezhi">设置</text>
  49. </view>
  50. </view>
  51. <!-- <view class="profile-link">
  52. <text>个人中心</text>
  53. <img src="/static/img/ic-right.png" />
  54. </view> -->
  55. </view>
  56. <view class="num-wrapper tui-skeleton-rect">
  57. <view class="num-item" @click="goMenuPage('/pages/merchant/user_integral/index')">
  58. <text class="num">{{userInfo.integral && uid ? userInfo.integral: 0}}</text>
  59. <view class="txt">积分</view>
  60. </view>
  61. <view class="num-item" @click="goMenuPage('/pages/users/user_coupon/index')">
  62. <text
  63. class="num">{{userInfo.couponCount && uid ? userInfo.couponCount : 0}}</text>
  64. <view class="txt">优惠券</view>
  65. </view>
  66. <view class="num-item"
  67. @click="goMenuPage('/pages/goods/user_goods_collection/index')">
  68. <text
  69. class="num">{{userInfo.collectCount && uid ? userInfo.collectCount : 0}}</text>
  70. <view class="txt">收藏</view>
  71. </view>
  72. <view class="num-item" @click="goMenuPage('/pages/goods/browsing_history/index')">
  73. <text class="num">{{userInfo.browseNum && uid ? userInfo.browseNum:0}}</text>
  74. <view class="txt">浏览记录</view>
  75. </view>
  76. </view>
  77. </view>
  78. <view style="position: relative;top: -90rpx;">
  79. <view class="item-settled">
  80. <image @tap="menusTap('/pages/users/settled/index')" src="/static/img/ic-settled-left.png" style="width: 350rpx;height: 116rpx;"></image>
  81. <image src="/static/img/ic-bg-line.png" style="width: 10rpx;height: 154rpx;margin: 0 20rpx;"></image>
  82. <image v-if="!userInfo.isRider" @tap="menusRider('/pages/users/user_rider/index')" src="/static/img/ic-settled-right.png"
  83. style="width: 350rpx;height: 116rpx;"></image>
  84. <image v-else @tap="menusRider('/pages/rider_index/index', true)" src="/static/img/go-shipping.png" style="width: 350rpx;height: 116rpx;"></image>
  85. </view>
  86. <view class="order-box" v-if="isLogin">
  87. <view class="order-hd flex">
  88. <view class="left">订单中心</view>
  89. <view class="right flex" @click="menusTap('/pages/goods/order_list/index')">查看全部
  90. <text class="iconfont icon-xiangyou"></text>
  91. </view>
  92. </view>
  93. <view class="order-bd">
  94. <block v-for="(item,index) in orderMenu" :key="index">
  95. <view class="order-item" @click="menusTap(item.url)">
  96. <view class="pic">
  97. <text class="iconfont pic_status" :class="item.img"></text>
  98. <text class="order-status-num" v-if="item.num > 0">{{ item.num }}</text>
  99. </view>
  100. <view class="txt tui-skeleton-rect">{{item.title}}</view>
  101. </view>
  102. </block>
  103. </view>
  104. </view>
  105. <view class="item-features" v-if="isLogin">
  106. <view class="item-features-title">我的功能</view>
  107. <div class="grid-container">
  108. <!-- 示例:12 个格子(3行x4列) -->
  109. <div class="grid-item" v-for="item in featuresList" :key="item.id" @click="menusTap(item.url)">
  110. <img class="grid-img" :src="item.icon">
  111. <div class="grid-text">{{item.text}}</div>
  112. </div>
  113. </div>
  114. </view>
  115. <!-- 商家管理 -->
  116. <view class="user-menus mt20" v-if="isEmployee">
  117. <view class="menu-title">店铺管理</view>
  118. <view class="list-box">
  119. <view class="item" @click="toggle('bottom')">
  120. <image :src="urlDomain+'crmebimage/presets/adminImg/sjgl.png'"></image>
  121. <text>商家管理</text>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. <image :src="copyImage" alt="" class='support'></image>
  127. </view>
  128. </view>
  129. </template>
  130. <script>
  131. var statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
  132. let app = getApp();
  133. import {
  134. userCenterInfo,
  135. copyrightImageApi
  136. } from '@/api/user.js';
  137. import Cache from '@/utils/cache';
  138. import {
  139. orderNum
  140. } from '@/api/order.js';
  141. import {
  142. toLogin
  143. } from '@/libs/login.js';
  144. import {
  145. mapGetters
  146. } from "vuex";
  147. import {
  148. BACK_URL
  149. } from '@/config/cache';
  150. import {
  151. MerchantBelongListApi,
  152. merchantActive
  153. } from '@/api/work.js';
  154. import animationType from '@/utils/animationType.js'
  155. export default {
  156. computed: mapGetters(['isLogin', 'chatUrl', 'uid', 'globalData', 'bottomNavigationIsCustom',
  157. 'merchantEmployeeList', 'isEmployee', 'selectMerId'
  158. ]),
  159. data() {
  160. return {
  161. copyImage: '',
  162. statusBarHeight: app.globalData.statusBarHeight,
  163. navigationBarHeight: 0,
  164. userInfo: {},
  165. urlDomain: this.$Cache.get("imgHost"),
  166. orderMenu: [{
  167. img: 'icon-daifukuan',
  168. title: '待付款',
  169. url: '/pages/goods/order_list/index?status=0',
  170. num: 0
  171. },
  172. {
  173. img: 'icon-daifahuo',
  174. title: '待发货',
  175. url: '/pages/goods/order_list/index?status=1',
  176. num: 0
  177. },
  178. {
  179. img: 'icon-daihexiao',
  180. title: '待核销',
  181. url: '/pages/goods/order_list/index?status=3',
  182. num: 0
  183. },
  184. {
  185. img: 'icon-daishouhuo',
  186. title: '待收货',
  187. url: '/pages/goods/order_list/index?status=4',
  188. num: 0
  189. },
  190. {
  191. img: 'icon-daipingjia',
  192. title: '待评价',
  193. url: '/pages/goods/evaluation_list/index',
  194. num: 0
  195. },
  196. {
  197. img: 'icon-a-shouhoutuikuan',
  198. title: '售后/退款',
  199. url: '/pages/goods/user_return_list/index',
  200. num: 0
  201. },
  202. ],
  203. featuresList: [{
  204. id: 1,
  205. icon: '/static/img/ic-express.png',
  206. text: '我的快递',
  207. url: '/pages/substitute_fast_mail/my_fast_mail/index'
  208. },
  209. {
  210. id: 2,
  211. icon: '/static/img/ic-address.png',
  212. text: '通用地址',
  213. url: '/pages/address/user_address_list/index'
  214. },
  215. // {
  216. // id: 3,
  217. // icon: '/static/img/ic-comments.png',
  218. // text: '我的评论',
  219. // url: ''
  220. // },
  221. {
  222. id: 4,
  223. icon: '/static/img/ic-collection.png',
  224. text: '我的收藏',
  225. url: '/pages/goods/user_goods_collection/index'
  226. },
  227. {
  228. id: 5,
  229. icon: '/static/img/ic-buy.png',
  230. text: '我的团购',
  231. url: ''
  232. },
  233. {
  234. id: 6,
  235. icon: '/static/img/ic-vouchers.png',
  236. text: '二手交易',
  237. url: '/pages/goods/order_list/index?orderType=secondHand&status=-1'
  238. },
  239. {
  240. id: 7,
  241. icon: '/static/img/ic-distribution.png',
  242. text: '我的分销',
  243. url: '/pages/users/user_spread_user/index'
  244. },
  245. {
  246. id: 8,
  247. icon: '/static/img/ic-friend.png',
  248. text: '邀请好友',
  249. url: ''
  250. },
  251. // {
  252. // id: 9,
  253. // icon: '/static/img/ic-feedback.png',
  254. // text: '帮助反馈',
  255. // url: ''
  256. // },
  257. {
  258. id: 9,
  259. icon: '/static/img/ic-feedback.png',
  260. text: '我的账户',
  261. url: '/pages/users/user_money/index'
  262. },
  263. {
  264. id: 10,
  265. icon: '/static/img/ic-security-settings.png',
  266. text: '安全设置',
  267. url: '/pages/users/user_setting/index'
  268. }
  269. ],
  270. }
  271. },
  272. onLoad(options) {
  273. let that = this;
  274. //首页数据加载
  275. // this.getIndexConfig();
  276. // #ifdef MP-WEIXIN
  277. // 获取微信胶囊的位置信息 width,height,top,right,left,bottom
  278. const custom = wx.getMenuButtonBoundingClientRect()
  279. // 导航栏高度(标题栏高度) = 胶囊高度 + (顶部距离 - 状态栏高度) * 2
  280. this.navigationBarHeight = custom.height + (custom.top - this.statusBarHeight) * 2
  281. // console.log("导航栏高度:"+this.globalData.navigationBarHeight)
  282. // #endif
  283. },
  284. onShow: function() {
  285. if (this.isLogin) {
  286. this.getUserCenterInfo();
  287. this.getOrderData();
  288. this.getMerchantList();
  289. }
  290. this.copyrightImage();
  291. },
  292. methods: {
  293. toggle(type) {
  294. if (this.merchantEmployeeList.length == 1) {
  295. merchantActive(this.merchantEmployeeList[0].merId).then(res => {
  296. this.$store.commit('SetSelectMerId', this.merchantEmployeeList[0].merId);
  297. this.$store.commit('SetSelectMerchantRole', this.merchantEmployeeList[0].role);
  298. this.$store.commit('SET_MANAGER_TOKEN', {
  299. managerToken: res.data.token
  300. });
  301. Cache.set('electrPrintingSwitch', res.data.electrPrintingSwitch);
  302. uni.navigateTo({
  303. url: '/pages/admin/work/index'
  304. })
  305. return
  306. })
  307. return
  308. }
  309. if (this.selectMerId) {
  310. uni.navigateTo({
  311. url: '/pages/admin/work/index'
  312. })
  313. } else {
  314. this.type = type
  315. // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
  316. this.$refs.popup.open(type)
  317. }
  318. },
  319. copyrightImage() {
  320. copyrightImageApi().then(res => {
  321. if (res.data) {
  322. this.copyImage = res.data;
  323. } else {
  324. this.copyImage = `${this.urlDomain}crmebimage/presets/support.png`;
  325. }
  326. }).catch(err => {
  327. return this.$util.Tips({
  328. title: err
  329. })
  330. });
  331. },
  332. getOrderData() {
  333. let that = this;
  334. orderNum().then(res => {
  335. that.orderMenu.forEach((item, index) => {
  336. switch (item.title) {
  337. case '待付款':
  338. item.num = res.data.awaitPayCount
  339. break
  340. case '待发货':
  341. item.num = res.data.awaitShippedCount
  342. break
  343. case '待收货':
  344. item.num = res.data.receiptCount
  345. break
  346. case '待核销':
  347. item.num = res.data.verificationCount
  348. break
  349. case '待评价':
  350. item.num = res.data.awaitReplyCount
  351. break
  352. default:
  353. item.num = res.data.refundCount
  354. }
  355. })
  356. that.$set(that, 'orderMenu', that.orderMenu);
  357. })
  358. },
  359. /**
  360. *
  361. * 获取个人中心详情
  362. */
  363. getUserCenterInfo: function() {
  364. userCenterInfo().then(res => {
  365. let data = res.data;
  366. this.userInfo = data;
  367. console.log(this, UserInfo)
  368. // this.showSkeleton = false;
  369. }).catch(err => {
  370. // this.showSkeleton = false;
  371. });
  372. },
  373. //获取商户列表
  374. getMerchantList() {
  375. let that = this
  376. MerchantBelongListApi().then(res => {
  377. if (this.selectMerId) {
  378. let flag = res.data.find(item => item.merId === this.selectMerId);
  379. !flag && that.$store.commit('CLEAR_SELECTMERID');
  380. }
  381. this.$store.commit("SetMerchantEmployeeList", res.data);
  382. })
  383. },
  384. menusTap(url) {
  385. if (!this.isLogin) {
  386. this.openAuto();
  387. } else {
  388. if (url === '') return
  389. this.$util.navigateTo(url);
  390. }
  391. },
  392. // 打开授权
  393. openAuto() {
  394. Cache.set(BACK_URL, '')
  395. toLogin();
  396. },
  397. // 跳转骑手
  398. menusRider(url, falg) {
  399. if (!this.isLogin) {
  400. this.openAuto();
  401. } else {
  402. if (url === '') return
  403. falg ? uni.reLaunch({
  404. url: url
  405. }) : this.$util.navigateTo(url)
  406. }
  407. },
  408. // 编辑页面
  409. goEdit() {
  410. if (this.isLogin == false) {
  411. this.openAuto();
  412. } else {
  413. uni.navigateTo({
  414. animationType: animationType.type,
  415. animationDuration: animationType.duration,
  416. url: '/pages/users/user_info/index'
  417. })
  418. }
  419. },
  420. },
  421. }
  422. </script>
  423. <style lang="scss" scoped>
  424. .order-nav {
  425. font-weight: 500;
  426. font-size: 35rpx;
  427. color: #FFFFFF;
  428. background-color: #FF6702;
  429. text-align: center;
  430. }
  431. .item-settled {
  432. background: linear-gradient(135deg, #FED0A7 0%, #FFF3E2 52%, #FAEDD3 100%);
  433. border-radius: 8rpx;
  434. padding: 20rpx;
  435. box-shadow: 0 0 0 2rpx rgba(255, 220, 135, 1);
  436. position: relative;
  437. // top: -90rpx;
  438. margin: 0 20rpx;
  439. display: flex;
  440. align-items: center;
  441. }
  442. .support {
  443. width: 219rpx;
  444. height: 74rpx;
  445. margin: 20rpx auto;
  446. display: block;
  447. }
  448. .num-wrapper {
  449. z-index: 30;
  450. position: relative;
  451. display: flex;
  452. align-items: center;
  453. justify-content: space-between;
  454. margin-top: 30rpx;
  455. color: #fff;
  456. .num-item {
  457. width: 33.33%;
  458. text-align: center;
  459. .num {
  460. font-size: 42rpx;
  461. font-weight: bold;
  462. }
  463. .txt {
  464. margin-top: 10rpx;
  465. font-size: 26rpx;
  466. color: rgba(255, 255, 255, 0.6);
  467. }
  468. }
  469. }
  470. .item-settled::after {
  471. content: "";
  472. position: absolute;
  473. top: -2rpx;
  474. left: -2rpx;
  475. right: -2rpx;
  476. bottom: -2rpx;
  477. background: linear-gradient(200deg, rgba(255, 220, 135, 1), rgba(255, 172, 33, 1), rgba(255, 201, 24, 1));
  478. border-radius: 10rpx;
  479. z-index: -1;
  480. pointer-events: none;
  481. }
  482. .card {
  483. position: relative;
  484. display: flex;
  485. /* 启用flex布局 */
  486. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  487. padding: 40rpx 30rpx 120rpx 30rpx;
  488. box-sizing: border-box;
  489. background: linear-gradient(225deg, #ECF3FE 0%, #FEFEFE 100%);
  490. border-radius: 23rpx;
  491. top: -20rpx;
  492. }
  493. .card-left {
  494. position: relative;
  495. }
  496. .card-right {
  497. flex: 1;
  498. }
  499. .app_set {
  500. color: #fff;
  501. width: 140rpx;
  502. height: 110rpx;
  503. text-align: right;
  504. line-height: 110rpx;
  505. .icon-shezhi {
  506. font-size: 36rpx;
  507. }
  508. }
  509. .avatar {
  510. position: absolute;
  511. top: -80rpx;
  512. left: 0;
  513. width: 131rpx;
  514. height: 131rpx;
  515. background-color: #D8D8D8;
  516. border: 4rpx solid #FFFFFF;
  517. border-radius: 50%;
  518. object-fit: cover;
  519. }
  520. .username {
  521. margin-top: 70rpx;
  522. color: #141414;
  523. font-size: 35rpx;
  524. font-weight: bold;
  525. }
  526. .code {
  527. width: 31rpx;
  528. height: 31rpx;
  529. margin-left: 20rpx;
  530. }
  531. .card-content {
  532. display: flex;
  533. justify-content: space-between;
  534. }
  535. .content-item {
  536. display: flex;
  537. flex-direction: column;
  538. align-items: center;
  539. width: 33%;
  540. }
  541. .content-icon {
  542. width: 70rpx;
  543. height: 70rpx;
  544. margin-bottom: 15rpx;
  545. }
  546. .content-text1 {
  547. font-size: 23rpx;
  548. background: linear-gradient(90deg, #FFB908 0%, #DC7A11 100%);
  549. -webkit-background-clip: text;
  550. background-clip: text;
  551. color: transparent;
  552. }
  553. .content-text2 {
  554. font-size: 23rpx;
  555. background: linear-gradient(90deg, #93B0FF 0%, #1B4EFF 100%);
  556. -webkit-background-clip: text;
  557. background-clip: text;
  558. color: transparent;
  559. }
  560. .content-text3 {
  561. font-size: 23rpx;
  562. background: linear-gradient(90deg, #F4D600 0%, #FF9100 100%);
  563. -webkit-background-clip: text;
  564. background-clip: text;
  565. color: transparent;
  566. }
  567. .phone-info {
  568. font-size: 21rpx;
  569. padding-top: 10rpx;
  570. }
  571. .phone-info text {
  572. margin-right: 14rpx;
  573. }
  574. .phone-info image {
  575. width: 27rpx;
  576. height: 27rpx;
  577. vertical-align: middle;
  578. }
  579. .profile-link {
  580. margin-top: 20rpx;
  581. font-size: 23rpx;
  582. font-weight: 600;
  583. line-height: 21rpx;
  584. text-align: right;
  585. }
  586. .profile-link img {
  587. width: 24rpx;
  588. height: 24rpx;
  589. vertical-align: middle;
  590. margin-left: 12rpx;
  591. }
  592. .grid-container {
  593. display: flex;
  594. flex-wrap: wrap;
  595. gap: 0;
  596. /* 改用 margin 控制间距 */
  597. padding: 20rpx;
  598. /* 父容器内边距 */
  599. box-sizing: border-box;
  600. /* 包含 padding 在宽度内 */
  601. }
  602. .grid-item {
  603. width: 25%;
  604. /* 直接 25% 无需 calc */
  605. display: flex;
  606. flex-direction: column;
  607. align-items: center;
  608. margin-bottom: 30rpx;
  609. /* 行间距 */
  610. padding: 0 10rpx;
  611. /* 左右间隙(替代 gap) */
  612. box-sizing: border-box;
  613. /* 关键 */
  614. }
  615. .grid-img {
  616. width: 58rpx;
  617. height: 58rpx;
  618. margin-bottom: 8rpx;
  619. }
  620. .grid-text {
  621. font-size: 24rpx;
  622. color: #333;
  623. }
  624. .item-features {
  625. background: #FFFFFF;
  626. border-radius: 23rpx;
  627. margin: 0rpx 20rpx;
  628. }
  629. .item-features-title {
  630. padding: 20rpx;
  631. font-weight: 600;
  632. font-size: 27rpx;
  633. color: #2E261E;
  634. line-height: 38rpx;
  635. }
  636. .go-img {
  637. background: linear-gradient(135deg, #FED0A7 0%, #FFF3E2 52%, #FAEDD3 100%);
  638. border-radius: 8rpx;
  639. padding: 20rpx;
  640. box-shadow: 0 0 0 2rpx rgba(255, 220, 135, 1);
  641. display: flex;
  642. align-items: center;
  643. justify-content: center;
  644. margin-top: 20rpx;
  645. }
  646. .order-box {
  647. background-color: #fff;
  648. border-radius: 14rpx;
  649. padding: 30rpx 16rpx;
  650. position: relative;
  651. z-index: 11;
  652. margin: 20rpx;
  653. .order-hd {
  654. justify-content: space-between;
  655. font-size: 30rpx;
  656. color: #282828;
  657. margin-bottom: 40rpx;
  658. padding: 0 16rpx;
  659. .left {
  660. color: #282828;
  661. font-size: 30rpx;
  662. font-weight: 600;
  663. }
  664. .right {
  665. align-items: center;
  666. color: #666666;
  667. font-size: 26rpx;
  668. .icon-xiangyou {
  669. margin-left: 5rpx;
  670. font-size: 24rpx;
  671. }
  672. }
  673. }
  674. .order-bd {
  675. display: flex;
  676. justify-content: space-between;
  677. padding: 0;
  678. .order-item {
  679. display: flex;
  680. flex-direction: column;
  681. justify-content: center;
  682. align-items: center;
  683. .pic {
  684. position: relative;
  685. text-align: center;
  686. image {
  687. width: 48rpx;
  688. height: 48rpx;
  689. }
  690. .order-status-num {
  691. min-width: 13rpx;
  692. background-color: #fff;
  693. color: $bg-color-primary;
  694. border-radius: 15px;
  695. position: absolute;
  696. right: -14rpx;
  697. top: -15rpx;
  698. font-size: 20rpx;
  699. padding: 0 8rpx;
  700. border: 2rpx solid $bg-color-primary;
  701. }
  702. }
  703. .txt {
  704. margin-top: 15rpx;
  705. font-size: 26rpx;
  706. color: #454545;
  707. }
  708. .pic_status {
  709. color: $bg-color-primary;
  710. }
  711. }
  712. }
  713. }
  714. </style>