user.vue 21 KB

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