user.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896
  1. <template>
  2. <view class="container">
  3. <view class="title-box">
  4. <view class="title-img"><image :src="userInfo.avatar" mode=""></image></view>
  5. <view class="title-tit">
  6. <view class="title-top">{{ userInfo.nickname || '游客' }}</view>
  7. <view class="title-bottom">
  8. <text class="padding-r-10">{{ userInfo.phone }}</text>
  9. <text v-if="userInfo.is_company == 1">分公司</text>
  10. <text v-else>{{ userInfo.is_partner == 1 ? '分销商' : '' }}</text>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="main-box">
  15. <view class="title flex" @click="navTo('/pages/order/order?state=0')">
  16. <view class="title-left">
  17. <!-- <image class="title-icon" src="../../static/user/user5.png" mode=""></image> -->
  18. <view class="title-font">我的订单</view>
  19. </view>
  20. <image class="title-right" src="../../static/user/back.png" mode=""></image>
  21. </view>
  22. <view class="main flex">
  23. <view class="oitem" @click="navTo('/pages/order/order?state=0')">
  24. <image class="oitem-image" src="../../static/user/dfk.png" mode=""></image>
  25. <view class="oitem-font">待付款</view>
  26. </view>
  27. <view class="oitem" @click="navTo('/pages/order/order?state=1')">
  28. <image class="oitem-image" src="../../static/user/dfh.png" mode=""></image>
  29. <view class="oitem-font">待发货</view>
  30. </view>
  31. <view class="oitem" @click="navTo('/pages/order/order?state=2')">
  32. <image class="oitem-image" src="../../static/user/dsh.png" mode=""></image>
  33. <view class="oitem-font">待收货</view>
  34. </view>
  35. <view class="oitem" @click="navTo('/pages/order/order?state=2')">
  36. <image class="oitem-image" src="../../static/user/dfk.png" mode=""></image>
  37. <view class="oitem-font">已完成</view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="manage-box">
  42. <view class="manage" @click="navTo('/pages/order/orderSC')">
  43. <view class="flex-center"><image src="../../static/user/user13.png" mode="widthFix"></image></view>
  44. <view class="manage-title">市场未付</view>
  45. </view>
  46. <view class="manage" @click="navTo('/pages/money/wallet')">
  47. <view class="flex-center"><image src="../../static/user/user06.png" mode="widthFix"></image></view>
  48. <view class="manage-title">钱包</view>
  49. </view>
  50. <view class="manage" @click="navTo('/pages/user/myvip')">
  51. <view class="flex-center"><image src="../../static/user/user12.png" mode="widthFix"></image></view>
  52. <view class="manage-title">加盟</view>
  53. </view>
  54. <view class="manage" @click="navTo('/pages/user/personal')">
  55. <view class="flex-center"><image src="../../static/user/user08.png" mode="widthFix"></image></view>
  56. <view class="manage-title">实名认证</view>
  57. </view>
  58. <view class="manage" @click="navTo('/pages/user/shareQrCode')">
  59. <view class="flex-center"><image src="../../static/user/user05.png" mode="widthFix"></image></view>
  60. <view class="manage-title">邀请好友</view>
  61. </view>
  62. <view class="manage" @click="kfOpen()">
  63. <view class="flex-center"><image src="../../static/user/kf.png" mode="widthFix"></image></view>
  64. <view class="manage-title">联系客服</view>
  65. </view>
  66. <view class="manage" @click="navTo('/pages/user/feedback')">
  67. <view class="flex-center"><image src="../../static/user/user09.png" mode="widthFix"></image></view>
  68. <view class="manage-title">提交意见</view>
  69. </view>
  70. <view class="manage" @click="navTo('/pages/set/set')">
  71. <view class="flex-center"><image src="../../static/user/user07.png" mode="widthFix"></image></view>
  72. <view class="manage-title">设置</view>
  73. </view>
  74. <view class="manage" @click="navTo('/pages/user/team')">
  75. <view class="flex-center"><image src="../../static/user/user14.png" mode="widthFix"></image></view>
  76. <view class="manage-title">我的推广</view>
  77. </view>
  78. <!-- <view class="manage" @click="navTo('/pages/user/about')">
  79. <view class="flex-center">
  80. <image src="../../static/user/user09.png" mode="widthFix"></image>
  81. </view>
  82. <view class="manage-title">
  83. 关于我们
  84. </view>
  85. </view> -->
  86. </view>
  87. <view class="navbar">
  88. <view class="nav-item" v-for="(item, index) in navList" :class="{ current: tabCurrentIndex === index }" @click="navGet(index)">{{ item.text }}</view>
  89. </view>
  90. <view v-for="(navitem, key) in navList" v-if="key == tabCurrentIndex">
  91. <scroll-view scroll-y="true" class="uni-scroll-view-content ">
  92. <u-empty v-if="navitem.orderList && navitem.orderList.length == 0 && navitem.loaded"></u-empty>
  93. <view class="flex dy-list">
  94. <view class="box-content" v-for="item in navitem.orderList">
  95. <view class="img"><image :src="item.class_info.uri" mode=""></image></view>
  96. <view class="content-title">
  97. <view class="title">
  98. <view class="text clamp">{{ item.class_info.name }}</view>
  99. <view class="zm" v-if="item.hang != null">转卖中</view>
  100. </view>
  101. <view class="content-price">
  102. <view class="price">
  103. ¥{{ item.price }}
  104. <!-- ¥{{item.class_info.name}} -->
  105. </view>
  106. <view class="" v-show="tabCurrentIndex != 1">
  107. <view class="button" @click="navPop(item)" v-if="item.hang == null">卖出</view>
  108. <view class="button" @click="qxMai(item.hang.id)" v-else>取消卖出</view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. <uni-load-more :status="navitem.loadingType" v-if="!(navitem.orderList.length == 0 && navitem.loaded)"></uni-load-more>
  115. </scroll-view>
  116. </view>
  117. <!-- 客服 -->
  118. <uni-popup ref="popupkf" type="center">
  119. <view class="popup-box">
  120. <view class="img"><image src="../../static/img/img009.png" mode=""></image></view>
  121. <view class="mian">
  122. <view class="delivery">
  123. <view class="title">已经为您定制专属客服</view>
  124. <image src="../../static/img/img010.png" mode=""></image>
  125. </view>
  126. <view class="nocancel">客服VX:{{ kfWX }}</view>
  127. <view class="comfirm-box">
  128. <view class="cancel" @click="kfClose()">取消</view>
  129. <view class="comfirm" @click="uniCopy(kfWX)">复制微信</view>
  130. </view>
  131. </view>
  132. </view>
  133. </uni-popup>
  134. <uni-popup ref="maipop" type="center">
  135. <view class="mai-box">
  136. <view class="mai-title">卖出价格</view>
  137. <input type="number" v-model="money" placeholder="请输入" />
  138. <view class="mai-button">
  139. <view class="button-left" @click="maiClose()">取消</view>
  140. <view class="button-right" @click="buy()">确定</view>
  141. </view>
  142. </view>
  143. </uni-popup>
  144. <uni-popup ref="qumaipop" type="center">
  145. <view class="mai-box">
  146. <view class="mai-title">提示</view>
  147. <view class="mai-title">您正在转卖这件藏品确认取消卖出?</view>
  148. <view class="mai-button">
  149. <view class="button-left" @click="maiClose()">取消</view>
  150. <view class="button-right" @click="quxbuy(item)">确定</view>
  151. </view>
  152. </view>
  153. </uni-popup>
  154. </view>
  155. </template>
  156. <script>
  157. import { sell, qxgd } from '@/api/order.js';
  158. import uniCopy from '@/js_sdk/xb-copy/uni-copy.js';
  159. import uEmpty from '@/uview-ui/components/u-empty/u-empty.vue';
  160. import { mapState, mapMutations } from 'vuex';
  161. import uniList from '@/components/uni-list/uni-list.vue';
  162. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  163. import { orderData, getUserInfo, getMyNft, myGdList } from '@/api/user.js';
  164. import { saveUrl, interceptor } from '@/utils/loginUtils.js';
  165. export default {
  166. components: {
  167. uniList,
  168. uniListItem,
  169. uEmpty
  170. },
  171. data() {
  172. return {
  173. id: 0,
  174. item: '', //当前选中要操作卖出商品的数据
  175. money: '', //卖出价格
  176. kfWX: 'liuniu', //客服微信
  177. // 头部图高度
  178. tabCurrentIndex: 0,
  179. navList: [
  180. {
  181. state: 0,
  182. text: '我拥有的',
  183. loadingType: 'more',
  184. orderList: [],
  185. page: 1,
  186. limit: 10,
  187. loaded: false
  188. },
  189. {
  190. state: 1,
  191. text: '我卖出的',
  192. loadingType: 'more',
  193. orderList: [],
  194. page: 1,
  195. limit: 10,
  196. loaded: false
  197. }
  198. ]
  199. };
  200. },
  201. onShow() {
  202. if (this.hasLogin) {
  203. this.loadBaseData();
  204. // 返回页面刷新我的挂单数据
  205. this.navList = [
  206. {
  207. state: 0,
  208. text: '我拥有的',
  209. loadingType: 'more',
  210. orderList: [],
  211. page: 1,
  212. limit: 10,
  213. loaded: false
  214. },
  215. {
  216. state: 1,
  217. text: '我卖出的',
  218. loadingType: 'more',
  219. orderList: [],
  220. page: 1,
  221. limit: 10,
  222. loaded: false
  223. }
  224. ];
  225. // 获取我的挂单
  226. this.getMyNft();
  227. } else {
  228. this.loadBaseData();
  229. }
  230. },
  231. onReady() {},
  232. computed: {
  233. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  234. },
  235. methods: {
  236. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  237. loadBaseData() {
  238. getUserInfo({})
  239. .then(({ data }) => {
  240. this.setUserInfo(data);
  241. // 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
  242. orderData({})
  243. .then(({ data }) => {
  244. this.setOrderInfo(data);
  245. })
  246. .catch(e => {
  247. this.setOrderInfo({
  248. complete_count: 0, //完成
  249. received_count: 0, //待收货
  250. unshipped_count: 0, //待发货
  251. order_count: 0, //订单总数
  252. unpaid_count: 0 //待付款
  253. });
  254. });
  255. })
  256. .catch(e => {
  257. console.log(e);
  258. });
  259. },
  260. navPop(item) {
  261. this.item = item;
  262. this.$refs.maipop.open();
  263. },
  264. buy() {
  265. let obj = this;
  266. console.log(obj.item, 'item');
  267. if (obj.price == '') {
  268. obj.$api.msg('请输入价格');
  269. return;
  270. }
  271. sell(
  272. {
  273. price: obj.money
  274. },
  275. obj.item.id
  276. ).then(res => {
  277. console.log(res, 'res');
  278. uni.showModal({
  279. title: '成功',
  280. content: '挂售成功!',
  281. showCancel: false
  282. });
  283. obj.$refs.maipop.close();
  284. });
  285. },
  286. //取消卖出弹窗
  287. qxMai(item) {
  288. this.$refs.qumaipop.open();
  289. console.log(item, 'id');
  290. this.id = item;
  291. },
  292. // 取消挂单
  293. quxbuy() {
  294. qxgd({}, this.id).then(res => {
  295. console.log(res, '取消挂单');
  296. this.$refs.qumaipop.close();
  297. uni.showModal({
  298. title: '成功',
  299. content: '已成功取消挂单',
  300. showCancel: false
  301. });
  302. });
  303. },
  304. navGet(index) {
  305. this.tabCurrentIndex = index;
  306. this.getMyNft('tab');
  307. },
  308. //swiper切换
  309. changeTab(e) {
  310. this.tabCurrentIndex = e.target.current;
  311. this.getMyNft('tab');
  312. },
  313. async loadData(sourse) {},
  314. navTo(url) {
  315. if (url == '') {
  316. this.$api.msg('敬请期待');
  317. }
  318. //判断是否登录了,没有等去,请去登录
  319. if (!this.hasLogin) {
  320. //保存地址
  321. saveUrl();
  322. // 登录拦截
  323. interceptor();
  324. // uni.showModal({
  325. // title:'去登录'
  326. // })
  327. // uni.navigateTo({
  328. // url,
  329. // fail() {
  330. // uni.switchTab({
  331. // url
  332. // });
  333. // }
  334. // });
  335. } else {
  336. uni.navigateTo({
  337. url,
  338. fail() {
  339. uni.switchTab({
  340. url
  341. });
  342. }
  343. });
  344. }
  345. },
  346. // 客服打开
  347. kfOpen() {
  348. this.$refs.popupkf.open();
  349. },
  350. // 客服关闭
  351. kfClose() {
  352. this.$refs.popupkf.close();
  353. },
  354. // 赋值客服
  355. uniCopy(text) {
  356. this.$refs.popupkf.close();
  357. const a = uniCopy(text);
  358. if (a) {
  359. uni.showModal({
  360. title: '提示',
  361. content: '复制成功',
  362. showCancel: false
  363. });
  364. }
  365. },
  366. maiClose() {
  367. this.$refs.maipop.close();
  368. this.$refs.qumaipop.close();
  369. },
  370. getMyNft(type) {
  371. let obj = this;
  372. let index = obj.tabCurrentIndex;
  373. let navitem = obj.navList[index];
  374. if (type == 'tab' && navitem.loaded) {
  375. return;
  376. }
  377. if (navitem.loadingType == 'loading' || navitem.loadingType == 'noMore') {
  378. return;
  379. }
  380. navitem.loadingType = 'loading';
  381. if (index == 0) {
  382. getMyNft({
  383. page: navitem.page,
  384. limit: navitem.limit
  385. }).then(res => {
  386. // console.log(res, 'res');
  387. navitem.orderList = navitem.orderList.concat(res.data.list);
  388. navitem.page++;
  389. if (res.data.list.length == navitem.limit) {
  390. navitem.loadingType = 'more';
  391. } else {
  392. navitem.loadingType = 'noMore';
  393. }
  394. obj.$set(navitem, 'loaded', true);
  395. });
  396. }
  397. if (index == 1) {
  398. console.log('get22');
  399. myGdList({
  400. page: navitem.page,
  401. limit: navitem.limit,
  402. status: 2
  403. }).then(res => {
  404. navitem.orderList = navitem.orderList.concat(res.data.list);
  405. console.log(navitem.orderList, 'navitem.orderList');
  406. navitem.page++;
  407. if (res.data.list.length == navitem.limit) {
  408. navitem.loadingType = 'more';
  409. } else {
  410. navitem.loadingType = 'noMore';
  411. }
  412. obj.$set(navitem, 'loaded', true);
  413. });
  414. }
  415. }
  416. }
  417. };
  418. </script>
  419. <style lang="scss">
  420. page,
  421. .container {
  422. width: 750rpx;
  423. height: 100%;
  424. background: #111111;
  425. }
  426. .mai-box {
  427. display: flex;
  428. flex-direction: column;
  429. align-items: center;
  430. justify-content: space-around;
  431. width: 582rpx;
  432. height: 377rpx;
  433. background: #ffffff;
  434. border-radius: 20rpx;
  435. .mai-title {
  436. margin: 0 60rpx;
  437. font-size: 42rpx;
  438. font-weight: 500;
  439. color: #0c1732;
  440. line-height: 56rpx;
  441. }
  442. input {
  443. width: 494rpx;
  444. height: 90rpx;
  445. font-size: 40rpx;
  446. background: rgba(199, 212, 255, 0.35);
  447. border-radius: 10rpx;
  448. text-align: center;
  449. }
  450. .mai-button {
  451. display: flex;
  452. width: 90%;
  453. justify-content: space-between;
  454. .button-left {
  455. text-align: center;
  456. width: 248rpx;
  457. height: 78rpx;
  458. border: 2rpx solid #a581ff;
  459. border-radius: 10rpx;
  460. font-size: 34rpx;
  461. font-weight: 500;
  462. color: #a581ff;
  463. line-height: 78rpx;
  464. }
  465. .button-right {
  466. text-align: center;
  467. width: 248rpx;
  468. height: 78rpx;
  469. background: linear-gradient(270deg, #6e8df7, #9977f6);
  470. border-radius: 10rpx;
  471. font-size: 34rpx;
  472. font-weight: 500;
  473. color: #ffffff;
  474. line-height: 78rpx;
  475. }
  476. }
  477. }
  478. .title-box {
  479. margin: 80rpx 0 40rpx 0;
  480. display: flex;
  481. align-items: center;
  482. .title-img {
  483. width: 100rpx;
  484. height: 100rpx;
  485. border-radius: 50%;
  486. overflow: hidden;
  487. image {
  488. width: 100%;
  489. height: 100%;
  490. }
  491. }
  492. .title-tit {
  493. margin-left: 30rpx;
  494. flex-grow: 1;
  495. .title-top {
  496. font-size: 36rpx;
  497. font-weight: 500;
  498. color: #ffffff;
  499. line-height: 50rpx;
  500. }
  501. .title-bottom {
  502. font-size: 22rpx;
  503. font-weight: 500;
  504. color: #ffffff;
  505. line-height: 40rpx;
  506. }
  507. }
  508. }
  509. .address-box {
  510. display: flex;
  511. justify-content: space-between;
  512. align-items: center;
  513. margin: 0 30rpx;
  514. height: 60rpx;
  515. background: #181818;
  516. border: 2rpx solid #7d5fa4;
  517. border-radius: 8rpx;
  518. font-size: 20rpx;
  519. font-weight: 500;
  520. line-height: 61rpx;
  521. color: #5c5ee5;
  522. .address-text {
  523. margin: 0 25rpx;
  524. width: 520rpx;
  525. white-space: nowrap;
  526. text-overflow: ellipsis;
  527. overflow: hidden;
  528. }
  529. .fuzhi {
  530. width: 86rpx;
  531. height: 40rpx;
  532. border-radius: 10rpx;
  533. border: 2px solid #7d5fa4;
  534. text-align: center;
  535. line-height: 32rpx;
  536. margin-right: 40rpx;
  537. }
  538. }
  539. .manage-box {
  540. margin: 30rpx auto;
  541. width: 690rpx;
  542. display: flex;
  543. justify-content: left;
  544. background: #181818;
  545. border-radius: 30rpx;
  546. flex-wrap: wrap;
  547. .manage {
  548. display: flex;
  549. flex-direction: column;
  550. align-items: center;
  551. margin: 30rpx 0 20rpx;
  552. width: 25%;
  553. .flex-center {
  554. min-height: 60rpx;
  555. }
  556. image {
  557. width: 42rpx;
  558. margin-bottom: 15rpx;
  559. }
  560. .manage-title {
  561. font-size: 24rpx;
  562. font-weight: 500;
  563. color: #ffffff;
  564. line-height: 42rpx;
  565. }
  566. }
  567. }
  568. .vheigh {
  569. height: var(--status-bar-height);
  570. }
  571. .navbar {
  572. margin-top: 30rpx;
  573. display: flex;
  574. justify-content: space-around;
  575. font-size: 24rpx;
  576. font-family: PingFang SC;
  577. font-weight: 500;
  578. color: #999999;
  579. line-height: 42rpx;
  580. .current {
  581. color: #5c5ee5;
  582. }
  583. }
  584. .uni-scroll-view-content {
  585. height: 100%;
  586. flex-wrap: wrap;
  587. }
  588. .box {
  589. display: flex;
  590. // justify-content: space-around;
  591. flex-wrap: wrap;
  592. width: 750rpx;
  593. }
  594. .box-content {
  595. width: 330rpx;
  596. height: 415rpx;
  597. // margin:0 15rpx 50rpx ;
  598. .img {
  599. width: 330rpx;
  600. height: 280rpx;
  601. image {
  602. width: 100%;
  603. height: 100%;
  604. }
  605. }
  606. .content-title {
  607. z-index: 99;
  608. display: flex;
  609. margin-top: -10rpx;
  610. padding: 20rpx;
  611. flex-direction: column;
  612. border-bottom-left-radius: 10rpx;
  613. border-bottom-right-radius: 10rpx;
  614. border: 2rpx solid #533a6a;
  615. // box-shadow: 0px 0px 20rpx 0px rgba(79,59,103,0.0600);
  616. .title {
  617. display: flex;
  618. align-items: center;
  619. // font-size: 39rpx;
  620. // font-weight: bold;
  621. // color: #FFFFFF;
  622. // margin-bottom: 20rpx;
  623. }
  624. .zm {
  625. flex-shrink: 0;
  626. // margin: 10rpx;
  627. // width: 63rpx;
  628. display: inline-block;
  629. // padding: 2rpx;
  630. // height: 30rpx;
  631. // border: 1rpx solid #5C5EE5;
  632. margin-left: 10rpx;
  633. border-radius: 5rpx;
  634. font-size: 16rpx;
  635. font-weight: 500;
  636. color: #5c5ee5;
  637. // line-height: 30rpx;
  638. text-align: center;
  639. }
  640. .text {
  641. color: #ffffff;
  642. font-size: 24rpx;
  643. margin: 10rpx 0;
  644. }
  645. }
  646. .content-price {
  647. display: flex;
  648. justify-content: space-between;
  649. .price {
  650. font-size: 30rpx;
  651. font-family: PingFang SC;
  652. font-weight: 500;
  653. color: #ffffff;
  654. }
  655. .button {
  656. width: 104rpx;
  657. height: 35rpx;
  658. background: linear-gradient(270deg, #6e8df7, #9977f6);
  659. border-radius: 18rpx;
  660. font-size: 20rpx;
  661. font-weight: 500;
  662. color: #ffffff;
  663. line-height: 35rpx;
  664. text-align: center;
  665. }
  666. }
  667. }
  668. .popup-box {
  669. width: 522rpx;
  670. height: 605rpx;
  671. background-color: #ffffff;
  672. border-radius: 20rpx;
  673. position: relative;
  674. .img {
  675. position: relative;
  676. top: -56rpx;
  677. left: 0;
  678. width: 522rpx;
  679. height: 132rpx;
  680. display: flex;
  681. justify-content: center;
  682. image {
  683. border-radius: 20rpx 20rpx 0 0;
  684. width: 450rpx;
  685. height: 132rpx;
  686. }
  687. }
  688. .mian {
  689. margin-top: -44rpx;
  690. display: flex;
  691. flex-direction: column;
  692. align-items: center;
  693. // padding: 32rpx 32rpx;
  694. background-color: #ffffff;
  695. border-radius: 0 0 20rpx 20rpx;
  696. text-align: center;
  697. .delivery {
  698. font-size: 40rpx;
  699. color: #333333;
  700. display: flex;
  701. align-items: center;
  702. flex-direction: column;
  703. .title {
  704. }
  705. image {
  706. margin-top: 48rpx;
  707. width: 172rpx;
  708. height: 160rpx;
  709. }
  710. }
  711. .nocancel {
  712. font-size: 32rpx;
  713. color: #333333;
  714. margin-top: 14rpx;
  715. }
  716. .comfirm-box {
  717. margin-top: 52rpx;
  718. display: flex;
  719. // margin-bottom: 32rpx;
  720. // justify-content: space-around;
  721. .cancel {
  722. display: flex;
  723. align-items: center;
  724. justify-content: center;
  725. width: 197rpx;
  726. height: 74rpx;
  727. border: 1px solid #dcc786;
  728. border-radius: 38rpx;
  729. font-size: 32rpx;
  730. color: #605128;
  731. }
  732. .comfirm {
  733. margin-left: 32rpx;
  734. display: flex;
  735. align-items: center;
  736. justify-content: center;
  737. width: 197rpx;
  738. height: 74rpx;
  739. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  740. border-radius: 38px;
  741. font-size: 32rpx;
  742. color: #605128;
  743. }
  744. }
  745. }
  746. }
  747. .main-box {
  748. margin: 30rpx auto;
  749. width: 690rpx;
  750. background: #181818;
  751. // box-shadow: 0px 4rpx 14rpx 0px rgba(229, 229, 229, 0.46);
  752. border-radius: 20rpx;
  753. .title {
  754. display: flex;
  755. justify-content: space-between;
  756. align-items: center;
  757. padding: 24rpx;
  758. border-bottom: 1px solid #2f2f2f;
  759. .title-left {
  760. display: flex;
  761. align-items: center;
  762. .title-icon {
  763. width: 32rpx;
  764. height: 32rpx;
  765. }
  766. .title-font {
  767. margin-left: 20rpx;
  768. font-size: 28rpx;
  769. font-family: PingFang SC;
  770. font-weight: bold;
  771. color: #fff;
  772. }
  773. }
  774. .title-right {
  775. width: 14rpx;
  776. height: 24rpx;
  777. }
  778. }
  779. .main {
  780. padding: 50rpx 0 30rpx;
  781. .jg {
  782. width: 1px;
  783. height: 100rpx;
  784. background: #eeeeee;
  785. }
  786. .item {
  787. padding-bottom: 20rpx;
  788. width: 25%;
  789. display: flex;
  790. flex-direction: column;
  791. align-items: center;
  792. .item-num {
  793. font-size: 36rpx;
  794. font-family: PingFang SC;
  795. font-weight: bold;
  796. color: #333333;
  797. }
  798. .item-font {
  799. margin-top: 18rpx;
  800. font-size: 22rpx;
  801. font-family: PingFang SC;
  802. font-weight: 500;
  803. color: #666666;
  804. }
  805. }
  806. .oitem {
  807. width: 25%;
  808. display: flex;
  809. flex-direction: column;
  810. align-items: center;
  811. .oitem-image {
  812. height: 50rpx;
  813. width: 48rpx;
  814. }
  815. .oitem-font {
  816. margin-top: 20rpx;
  817. font-size: 24rpx;
  818. font-family: PingFang SC;
  819. font-weight: 500;
  820. color: #fff;
  821. }
  822. }
  823. }
  824. }
  825. .dy-list {
  826. flex-wrap: wrap;
  827. padding: 30rpx;
  828. }
  829. </style>