user.vue 21 KB

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