orderDetail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  1. <template>
  2. <view class="order-detail">
  3. <view class="status-box">
  4. <view class="text-box">
  5. <view class="status" v-if="info.orderType == 'WAIT_PAYMENT' && !isNotTime">
  6. 等待支付,剩余<u-count-down :time="closeTime" format="mm:ss" @finish="finish"></u-count-down>
  7. </view>
  8. <view class="status">
  9. {{ filterType(info.orderType) || "订单错误" }}
  10. </view>
  11. </view>
  12. </view>
  13. <view class="content progress" v-if="
  14. info.goodsList[0].goodsState == 'APPLY_REFUND' ||
  15. info.goodsList[0].goodsState == 'REFUNDED'
  16. " @click="refundDetail">
  17. <view class="progress-title"> 退款进度 </view>
  18. <view class="progress-desc"> 查看退款详情 </view>
  19. </view>
  20. <view class="content info">
  21. <view class="order-info">
  22. <!-- <image class="icon" :src="info.goodsList[0].goodsInfo.goodsPath" mode=""></image> -->
  23. <view class="shop-info">
  24. <view class="title">
  25. {{ info.goodsList[0].goodsInfo.activityName }}
  26. </view>
  27. <view class="goods-desc">
  28. 活动时间: {{ info.goodsList[0].goodsInfo.activityStartTime }} 至 {{ info.goodsList[0].goodsInfo.activityEndTime
  29. }}
  30. </view>
  31. <view class="price-box">
  32. <view class="goods-desc">
  33. 报名人数:
  34. </view>
  35. <view class="goods-desc">
  36. {{ signupDetailList.length }}人
  37. </view>
  38. </view>
  39. <!-- 有extend并且不是虚拟商品 -->
  40. <!-- <view class="start-time" v-if="info.extend&&!isVisual">
  41. 出发时间:{{info.extend}}
  42. </view> -->
  43. </view>
  44. </view>
  45. </view>
  46. <view class="content code-box" v-if="
  47. info.goodsList[0].goodsState == 'WAIT_USE' &&
  48. info.goodsList[0].goodsName != '二维码支付'
  49. ">
  50. <view class="left">
  51. <view class="title"> 券码信息 </view>
  52. <view class="codeNum"> </view>
  53. </view>
  54. <view class="code-btn" @click="checkCode">
  55. 查看券码
  56. <image class="jiantou" src="../../static/jiantou-icon.png" mode=""></image>
  57. </view>
  58. </view>
  59. <view class="content" v-if="info.goodsList[0].goodsState == 'USED'">
  60. <view class="title"> 消费记录 </view>
  61. <view class="item">
  62. <view class="label"> 消费时间 </view>
  63. <view class="value">
  64. {{
  65. $u.timeFormat(
  66. info.goodsList[0].verifyModel.checkTime,
  67. "yyyy-mm-dd hh:MM:ss"
  68. )
  69. }}
  70. </view>
  71. </view>
  72. <view class="item">
  73. <view class="label"> 消费门店 </view>
  74. <view class="value">
  75. {{ info.goodsList[0].verifyModel.shopName }}
  76. </view>
  77. </view>
  78. </view>
  79. <view class="content">
  80. <view class="title"> 报名信息 </view>
  81. <view v-for="(item, index) in signupDetailList" :key="index">
  82. <view class="item" v-for=" obj in item" :key="obj.name">
  83. <view class="label"> {{ obj.name }} </view>
  84. <view class="value" v-for="o in obj.value" :key="o" v-if="!obj.isImg">
  85. {{ o }}
  86. </view>
  87. <view class="value" v-else>
  88. <image v-for="(img, index) in obj.value" :key="index" @click="clickImg(obj.value, index)" :src="img"
  89. mode="widthFix" style="width: 150rpx; height: 150rpx;"></image>
  90. </view>
  91. </view>
  92. <!-- uniapp 下划线 -->
  93. <u-divider v-if="signupDetailList.length - 1 != index"></u-divider>
  94. </view>
  95. </view>
  96. <view class="content">
  97. <view class="title"> 订单信息 </view>
  98. <view class="item">
  99. <view class="label"> 订单编号 </view>
  100. <view class="value">
  101. {{ info.orderNo }}
  102. </view>
  103. </view>
  104. <view class="item" v-if="info.payAmount != 0">
  105. <view class="label"> 付款方式 </view>
  106. <view class="value">
  107. {{ info.payment.pay ? filterPay(info.payment.paymentWay) : "未支付" }}
  108. </view>
  109. </view>
  110. <view class="item">
  111. <view class="label"> 下单时间 </view>
  112. <view class="value">
  113. {{
  114. $u.timeFormat(info.createTime, "yyyy-mm-dd hh:MM:ss") || "未支付"
  115. }}
  116. </view>
  117. </view>
  118. <view class="item" v-if="
  119. info.goodsList[0].goodsState != 'WAIT_PAYMENT' &&
  120. info.goodsList[0].goodsState != 'CLOSE' && info.payAmount != 0
  121. ">
  122. <view class="label"> 支付时间 </view>
  123. <view class="value">
  124. {{ $u.timeFormat(info.payment.paymentTime, "yyyy-mm-dd hh:MM:ss") }}
  125. </view>
  126. </view>
  127. <!-- <view class="item">
  128. <view class="label"> 订单备注 </view>
  129. <view class="value">
  130. {{
  131. info.extend.remark || "无"
  132. }}
  133. </view>
  134. </view> -->
  135. </view>
  136. <view class="content">
  137. <view class="title"> 交易信息 </view>
  138. <view class="item">
  139. <view class="label"> 金额 </view>
  140. <view class="value black">
  141. ¥{{ info.payAmount }}
  142. </view>
  143. </view>
  144. <!-- <view class="item">
  145. <view class="label"> 优惠券 </view>
  146. <view class="value red"> -¥{{ info.discountAmount }} </view>
  147. </view> -->
  148. <view class="item">
  149. <view class="label"> 合计 </view>
  150. <view class="value">
  151. <text class="red fs28">¥{{ info.payAmount }}</text>
  152. </view>
  153. </view>
  154. </view>
  155. <view class="input-box" v-if="isVisual">
  156. <view class="label"> 充值账号 </view>
  157. <view class="value">
  158. {{ JSON.parse(info.extend).account }}
  159. </view>
  160. </view>
  161. <template v-if="info.goodsList[0].goodsState == 'APPLY_REFUND'">
  162. <view class="content refund-box">
  163. <view class="title"> 退款原因 </view>
  164. <view class="refund-msg">
  165. {{ info.goodsList[0].refundLog.remark }}
  166. </view>
  167. </view>
  168. <button type="default" :loading="btnLoading" v-if="!info.payment.transferAll" class="pay-btn"
  169. @click="cancelReply">
  170. 取消退款
  171. </button>
  172. </template>
  173. <button type="default" :loading="btnLoading" class="pay-btn" v-if="info.goodsList[0].goodsState == 'WAIT_PAYMENT'"
  174. @click="pay">
  175. 立即支付
  176. </button>
  177. <view class="content apply-box" v-else-if="
  178. (info.goodsList[0].goodsState == 'WAIT_USE' ||
  179. info.goodsList[0].goodsState == 'USED') &&
  180. isRefund() && info.payAmount != 0
  181. " @click="apply">
  182. <view class="label"> 退款申请 </view>
  183. <view class="value"> 如引发商品争议,可申请平台介入处理 </view>
  184. <image class="jiantou" src="../../static/jiantou-icon.png" mode=""></image>
  185. </view>
  186. <!-- 二维码 -->
  187. <u-overlay :show="show" v-if="show" :opacity="0.6">
  188. <view class="wrap" @click.stop="close">
  189. <uqrcode ref="uqrcode" type="2d" auto canvas-id="qrcode" :value="codeData" :loading="loading"
  190. :options="{ margin: 20 }">
  191. <template v-slot:loading>
  192. <text style="color: black">拼命加载中...</text>
  193. </template>
  194. </uqrcode>
  195. </view>
  196. </u-overlay>
  197. </view>
  198. </template>
  199. <script>
  200. import { qrCode } from "@/api/order.js";
  201. import { payDetails, queryPayOrder, unRefund } from "@/api/payment.js";
  202. import { getActivityOrdersByOrderNo } from '@/api/activity.js'
  203. export default {
  204. data() {
  205. return {
  206. isVisual: false, //是否是虚拟商品
  207. codeData: "123",
  208. show: false,
  209. isJumped: false,
  210. loading: false,
  211. btnLoading: false,
  212. oldBright: 0,
  213. info: {
  214. goodsList: [{ goodsState: "" }],
  215. payment: {
  216. paymentWay: "",
  217. pay: false
  218. },
  219. extend: "",
  220. },
  221. dataCollectVo: null,
  222. signupDetail: null,
  223. signupDetailList: null,
  224. isNotTime: false,
  225. };
  226. },
  227. watch: {
  228. // isNotTime(val) {
  229. // if(this.isNotTime){
  230. // this.payDetails(this.info.orderNo)
  231. // }
  232. // }
  233. },
  234. filters: {
  235. },
  236. computed: {
  237. closeTime() {
  238. // if((this.info.createTime + 1000*60*15) - new Date().getTime()){
  239. // this.isNotTime = false
  240. // }else{
  241. // this.isNotTime = true
  242. // }
  243. return (this.info.createTime + 1000 * 60 * 30) - new Date().getTime()
  244. },
  245. },
  246. methods: {
  247. clickImg(list, index) {
  248. uni.previewImage({
  249. urls: list,
  250. current: list[index]
  251. })
  252. },
  253. filterType: function (val) {
  254. console.log(val, val == "WAIT_PAYMENT");
  255. if (val == "APPLY_REFUND") {
  256. return "退款审核中";
  257. } else if (val == "CLOSE") {
  258. return "关闭订单";
  259. } else if (val == "REFUNDED") {
  260. return "已退款";
  261. } else if (val == "REFUSAL_REFUND") {
  262. return "拒绝退款";
  263. } else if (val == "USED") {
  264. return "订单已完成";
  265. } else if (val == "WAIT_PAYMENT") {
  266. return "待付款";
  267. } else if (val == "HAVE_PAID") {
  268. return "待使用";
  269. } else if (val == "WAIT_USE") {
  270. return "待使用";
  271. }
  272. },
  273. filterPay(val) {
  274. if (val == "wx.unifiedOrder") {
  275. return "微信支付";
  276. } else if (val == "trade.create") {
  277. return "支付宝支付";
  278. } else if (val == "uac.miniOrder") {
  279. return "云闪付支付";
  280. } else if (val == "wx.miniPreOrder") {
  281. return "银联支付"
  282. } else {
  283. return "-";
  284. }
  285. },
  286. isRefund() {
  287. if (!this.info.goodsList[0].verifyModel) {
  288. //没核销
  289. return true;
  290. } else if (
  291. this.info.goodsList[0].verifyModel &&
  292. new Date().getTime() <
  293. this.info.goodsList[0].verifyModel.checkTime + 1000 * 60 * 60 * 48
  294. ) {
  295. // 已核销 并且没超过48小时
  296. return true;
  297. } else {
  298. return false;
  299. }
  300. },
  301. finish() {
  302. this.isNotTime = true;
  303. console.log(222222, this.isNotTime);
  304. this.payDetails(this.info.orderNo);
  305. },
  306. refundDetail() {
  307. uni.navigateTo({
  308. url: `/my/order/refundDetail?id=${this.info.orderNo}`,
  309. });
  310. },
  311. checkCode() {
  312. this.codeData = "";
  313. this.$nextTick(() => {
  314. this.show = true;
  315. this.loading = true;
  316. // let that = this;
  317. // uni.getScreenBrightness({
  318. // success(res) {
  319. // // 获取用户手机亮度 保存起来
  320. // that.oldBright = res.value
  321. // setTimeout(()=>{
  322. // uni.setScreenBrightness({
  323. // value:1
  324. // })
  325. // },200)
  326. // }
  327. // })
  328. qrCode(this.info.goodsList[0].id).then((res) => {
  329. this.loading = false;
  330. if (res.state == "Success") {
  331. this.codeData = res.content;
  332. }
  333. });
  334. });
  335. },
  336. close() {
  337. this.show = false;
  338. // uni.setScreenBrightness({
  339. // value:this.oldBright
  340. // })
  341. },
  342. apply() {
  343. let that = this;
  344. uni.navigateTo({
  345. url: "./refund",
  346. success: function (res) {
  347. // 通过eventChannel向被打开页面传送数据
  348. res.eventChannel.emit("orderInfo", that.info);
  349. },
  350. });
  351. },
  352. // 获取订单详情
  353. payDetails(orderNo) {
  354. payDetails(orderNo).then((res) => {
  355. this.info = res.content;
  356. if (!this.info.payment) {
  357. this.info.payment = {
  358. paymentWay: "",
  359. pay: false
  360. }
  361. }
  362. if (this.info.payAmount > 0) {
  363. queryPayOrder(this.info.orderNo)
  364. }
  365. this.info.extend = JSON.parse(this.info.goodsList[0].extend);
  366. // 查询报名的人数信息
  367. // getOrderDetail()
  368. getActivityOrdersByOrderNo({
  369. orderNo: orderNo,
  370. }).then(({ content }) => {
  371. const { list, dataCollectVo } = content;
  372. try {
  373. this.signupDetail = list.map(e => e.signupDetail);
  374. // 报名信息
  375. this.signupDetailList = this.signupDetail.map(e => {
  376. const list = JSON.parse(e);
  377. console.log('list', list);
  378. return list.map(e => {
  379. // 判断是否为附件
  380. let type = e.hasOwnProperty('uploadType') && !!e.uploadType ? true : false;
  381. return {
  382. name: e.dataName,
  383. value: e.content,
  384. isImg: type
  385. }
  386. })
  387. })
  388. console.log('报名信息', this.signupDetail);
  389. // 表单模板数据
  390. this.dataCollectVo = dataCollectVo.data;
  391. this.$forceUpdate()
  392. } catch (error) {
  393. uni.showToast({
  394. title: "获取报名信息失败。",
  395. icon: "error",
  396. });
  397. }
  398. })
  399. // 如果跳转过支付页面则定时获取订单更新的信息
  400. if (this.isJumped) {
  401. this.isJumped = false;
  402. const that = this;
  403. let checkTime = 0;
  404. uni.showLoading({
  405. title: "支付中",
  406. });
  407. let checkOrder = setInterval(() => {
  408. queryPayOrder(that.info.orderNo)
  409. .then((res1) => {
  410. // 支付成功
  411. if (res1.content.status == "TRADE_SUCCESS") {
  412. that.payDetails(that.info.orderNo);
  413. uni.showToast({
  414. title: "支付成功!",
  415. icon: "none",
  416. });
  417. clearInterval(checkOrder)
  418. uni.hideLoading();
  419. that.btnLoading = false;
  420. } else {
  421. checkTime++;
  422. }
  423. if (checkTime > 5) {
  424. clearInterval(checkOrder)
  425. that.btnLoading = false;
  426. uni.showToast({
  427. title: "订单查询失败",
  428. icon: "none",
  429. });
  430. uni.hideLoading();
  431. }
  432. }).catch(() => {
  433. if (checkOrder) {
  434. clearInterval(checkOrder)
  435. checkOrder = null
  436. }
  437. that.btnLoading = false;
  438. uni.showToast({
  439. title: "订单查询失败",
  440. icon: "none",
  441. });
  442. uni.hideLoading();
  443. });
  444. }, 1000);
  445. }
  446. });
  447. },
  448. toMap() {
  449. uni.openLocation({
  450. latitude: 26.4401,
  451. longitude: 106.664,
  452. name: "印象贵大文创店",
  453. address: "贵州大学西校区西一区体育场楼下",
  454. });
  455. },
  456. // 支付
  457. pay() {
  458. if (this.btnLoading) return;
  459. this.btnLoading = true;
  460. uni.showLoading({
  461. title: "支付中",
  462. });
  463. let that = this;
  464. let miniPayRequest = this.info.payment.miniPayRequest;
  465. miniPayRequest = JSON.parse(miniPayRequest);
  466. let query = encodeURIComponent(JSON.stringify({
  467. sign: miniPayRequest.sign,
  468. prepayid: miniPayRequest.prepayid,
  469. }))
  470. // 打开银联小程序
  471. uni.navigateToMiniProgram({
  472. appId: miniPayRequest.miniuser,
  473. path: `${miniPayRequest.minipath}?appPayRequest=${query}`,
  474. success: (res) => {
  475. // 打开成功
  476. this.isJumped = true;
  477. },
  478. fail: (err) => {
  479. // console.log(err);
  480. uni.hideLoading();
  481. uni.showToast({
  482. title: "取消支付",
  483. icon: "none",
  484. });
  485. that.btnLoading = false
  486. },
  487. });
  488. },
  489. // 取消退款申请
  490. cancelReply() {
  491. if (this.btnLoading) return;
  492. this.btnLoading = true;
  493. uni.showLoading({
  494. title: "取消中",
  495. });
  496. unRefund({ id: this.info.goodsList[0].id }).then((res) => {
  497. this.btnLoading = false;
  498. uni.hideLoading();
  499. if (res.state == "Success") {
  500. this.payDetails(this.info.orderNo);
  501. uni.showToast({
  502. title: "取消成功",
  503. icon: "success",
  504. });
  505. }
  506. });
  507. },
  508. },
  509. onReady() { },
  510. onLoad(options) {
  511. this.info.orderNo = options.id;
  512. },
  513. onShow() {
  514. this.payDetails(this.info.orderNo);
  515. },
  516. created() {
  517. // this.info = JSON.parse(uni.getStorageSync('order'))
  518. },
  519. };
  520. </script>
  521. <style lang="scss">
  522. .order-detail {
  523. background: #f9f9f9;
  524. min-height: 100vh;
  525. // padding-bottom: 100rpx;
  526. .status-box {
  527. padding: 24rpx 24rpx 4rpx;
  528. display: flex;
  529. justify-content: space-between;
  530. .text-box {
  531. color: #181818;
  532. .status {
  533. font-weight: bold;
  534. font-size: 32rpx;
  535. display: flex;
  536. .u-count-down__text {
  537. color: #ff4d3a !important;
  538. }
  539. }
  540. .notice {
  541. font-size: 24rpx;
  542. margin-top: 20rpx;
  543. }
  544. }
  545. }
  546. .progress {
  547. .progress-title {
  548. font-weight: 600;
  549. font-size: 32rpx;
  550. color: #181818;
  551. }
  552. .progress-desc {
  553. font-weight: 300;
  554. font-size: 24rpx;
  555. color: #aaaaaa;
  556. margin-top: 15rpx;
  557. }
  558. }
  559. .shop-box {
  560. width: 690rpx;
  561. // margin: 0 30rpx;
  562. // padding: 24rpx 24rpx 30rpx;
  563. background: #fff;
  564. border-radius: 16rpx;
  565. margin-top: -30rpx;
  566. box-sizing: border-box;
  567. .shop-name {
  568. font-weight: 600;
  569. font-size: 32rpx;
  570. color: #181818;
  571. width: 100%;
  572. white-space: nowrap;
  573. overflow: hidden;
  574. text-overflow: ellipsis;
  575. }
  576. .address {
  577. font-weight: 300;
  578. font-size: 24rpx;
  579. color: #aaaaaa;
  580. margin-top: 20rpx;
  581. width: 100%;
  582. white-space: nowrap;
  583. overflow: hidden;
  584. text-overflow: ellipsis;
  585. }
  586. }
  587. .black {
  588. color: #222222 !important;
  589. }
  590. .red {
  591. color: red !important;
  592. }
  593. .fs28 {
  594. font-size: 28rpx !important;
  595. font-weight: bold;
  596. }
  597. .code-box {
  598. display: flex;
  599. align-items: center;
  600. justify-content: space-between;
  601. .left {
  602. .title {
  603. font-weight: 500;
  604. font-size: 28rpx;
  605. color: #222222;
  606. }
  607. .codeNum {
  608. font-weight: 300;
  609. font-size: 24rpx;
  610. color: #aaaaaa;
  611. margin-top: 15rpx;
  612. }
  613. }
  614. .code-btn {
  615. display: flex;
  616. align-items: center;
  617. font-weight: 300;
  618. font-size: 24rpx;
  619. color: #aaaaaa;
  620. .jiantou {
  621. width: 24rpx;
  622. height: 24rpx;
  623. }
  624. }
  625. }
  626. .input-box {
  627. margin: 20rpx 30rpx;
  628. padding: 28rpx 24rpx;
  629. background: #ffffff;
  630. border-radius: 16rpx 16rpx 16rpx 16rpx;
  631. display: flex;
  632. align-items: center;
  633. justify-content: space-between;
  634. .label {
  635. color: #222;
  636. font-size: 28rpx;
  637. }
  638. .value {
  639. font-size: 28rpx;
  640. color: #aaaaaa;
  641. }
  642. }
  643. .input-box-address {
  644. margin: 20rpx 30rpx;
  645. padding: 28rpx 24rpx;
  646. background: #ffffff;
  647. border-radius: 16rpx 16rpx 16rpx 16rpx;
  648. // display: flex;
  649. // align-items: center;
  650. // justify-content: space-between;
  651. .value {
  652. color: #222;
  653. font-size: 28rpx;
  654. }
  655. .label {
  656. font-size: 28rpx;
  657. margin: 10rpx 0;
  658. color: #aaaaaa;
  659. }
  660. }
  661. .content {
  662. margin: 20rpx 30rpx;
  663. padding: 28rpx 24rpx;
  664. border-radius: 16rpx;
  665. background: #fff;
  666. .title {
  667. font-weight: 600;
  668. font-size: 28rpx;
  669. color: #222222;
  670. }
  671. .item {
  672. display: flex;
  673. align-items: center;
  674. justify-content: space-between;
  675. margin-top: 28rpx;
  676. .label {
  677. color: #222222;
  678. font-size: 28rpx;
  679. }
  680. .value {
  681. color: #999999;
  682. font-size: 28rpx;
  683. }
  684. }
  685. }
  686. .pay-btn {
  687. position: fixed;
  688. bottom: 30px;
  689. left: 4%;
  690. background: $uni-color-primary;
  691. width: 688rpx;
  692. height: 80rpx;
  693. line-height: 80rpx;
  694. border-radius: 46rpx;
  695. color: #fff;
  696. margin-top: 50rpx;
  697. }
  698. .refund-box {
  699. .refund-msg {
  700. font-weight: 300;
  701. font-size: 24rpx;
  702. color: #222222;
  703. margin-top: 15rpx;
  704. line-height: 40rpx;
  705. }
  706. }
  707. .apply-box {
  708. position: relative;
  709. .label {
  710. font-weight: 600;
  711. font-size: 28rpx;
  712. color: #222222;
  713. }
  714. .value {
  715. color: #999999;
  716. font-size: 24rpx;
  717. margin-top: 15rpx;
  718. }
  719. .jiantou {
  720. position: absolute;
  721. top: 50%;
  722. right: 24rpx;
  723. transform: translateY(-50%);
  724. width: 24rpx;
  725. height: 24rpx;
  726. }
  727. }
  728. .info {
  729. .order-info {
  730. display: flex;
  731. .icon {
  732. width: 164rpx;
  733. height: 164rpx;
  734. border-radius: 16rpx;
  735. flex-shrink: 0;
  736. }
  737. .shop-info {
  738. display: flex;
  739. flex-direction: column;
  740. justify-content: space-between;
  741. padding-left: 24rpx;
  742. flex: 1;
  743. box-sizing: border-box;
  744. .title {
  745. color: #181818;
  746. font-size: 28rpx;
  747. width: 450rpx;
  748. white-space: nowrap;
  749. overflow: hidden;
  750. text-overflow: ellipsis;
  751. }
  752. .price-box {
  753. display: flex;
  754. align-items: center;
  755. justify-content: space-between;
  756. .price {
  757. color: #181818;
  758. font-size: 32rpx;
  759. font-weight: bold;
  760. }
  761. }
  762. .start-time,
  763. .goods-desc {
  764. font-size: 24rpx;
  765. color: #aaaaaa;
  766. width: 560rpx;
  767. white-space: nowrap;
  768. overflow: hidden;
  769. text-overflow: ellipsis;
  770. }
  771. }
  772. }
  773. }
  774. .wrap {
  775. display: flex;
  776. justify-content: center;
  777. align-items: center;
  778. height: 100vh;
  779. overflow: hidden;
  780. }
  781. }
  782. </style>