user.vue 21 KB

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