orderDetail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. <template>
  2. <view class="order-detail">
  3. <view class="status-box">
  4. <view class="text-box">
  5. <view class="status" v-if="info.goodsList[0].goodsState == 'WAIT_PAYMENT' && !isNotTime">
  6. 等待支付,剩余<u-count-down :time="closeTime" format="mm:ss" @finish="finish"></u-count-down>
  7. </view>
  8. <view v-else class="status">
  9. {{ filterType(info.goodsList[0].goodsState) || "订单错误" }}
  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. 活动时间: {{ moment(info.goodsList[0].goodsInfo.activityStartTime).format("YYYY-MM-DD HH:mm") }} 至
  29. {{ moment(info.goodsList[0].goodsInfo.activityEndTime).format("YYYY-MM-DD HH:mm") }}
  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, i) in signupDetailList" :key="i">
  82. <view class="item" v-for="(obj, j) in item" :key="obj.name">
  83. <view class="label"> {{ obj.name }} </view>
  84. <view class="value" :key="o" v-if="!obj.isImg">
  85. {{ obj.value.join("、") }}
  86. </view>
  87. <view class="value" v-if="obj.isImg">
  88. <image v-for="(img, index) in obj.value" :key="index" @click="clickImg(obj.value, index)" :src="img"
  89. style="width: 120rpx; height: 120rpx;"></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. import moment from "@/libs/moment.js";
  204. export default {
  205. data() {
  206. return {
  207. isVisual: false, //是否是虚拟商品
  208. codeData: "123",
  209. show: false,
  210. isJumped: false,
  211. moment: moment,
  212. loading: false,
  213. btnLoading: false,
  214. oldBright: 0,
  215. info: {
  216. goodsList: [{ goodsState: "" }],
  217. payment: {
  218. paymentWay: "",
  219. pay: false
  220. },
  221. extend: "",
  222. },
  223. dataCollectVo: null,
  224. signupDetail: null,
  225. signupDetailList: null,
  226. isNotTime: false,
  227. };
  228. },
  229. watch: {
  230. // isNotTime(val) {
  231. // if(this.isNotTime){
  232. // this.payDetails(this.info.orderNo)
  233. // }
  234. // }
  235. },
  236. filters: {
  237. },
  238. computed: {
  239. closeTime() {
  240. // if((this.info.createTime + 1000*60*15) - new Date().getTime()){
  241. // this.isNotTime = false
  242. // }else{
  243. // this.isNotTime = true
  244. // }
  245. return (this.info.createTime + 1000 * 60 * 30) - new Date().getTime()
  246. },
  247. },
  248. methods: {
  249. clickImg(list, index) {
  250. uni.previewImage({
  251. urls: list,
  252. current: list[index]
  253. })
  254. },
  255. filterType: function (val) {
  256. console.log(val, val == "WAIT_PAYMENT");
  257. if (val == "APPLY_REFUND") {
  258. return "退款审核中";
  259. } else if (val == "CLOSE") {
  260. return "关闭订单";
  261. } else if (val == "REFUNDED") {
  262. return "已退款";
  263. } else if (val == "REFUSAL_REFUND") {
  264. return "拒绝退款";
  265. } else if (val == "USED") {
  266. return "订单已完成";
  267. } else if (val == "WAIT_PAYMENT") {
  268. return "待付款";
  269. } else if (val == "HAVE_PAID") {
  270. return "待使用";
  271. } else if (val == "WAIT_USE") {
  272. return "待使用";
  273. }
  274. },
  275. filterPay(val) {
  276. if (val == "wx.unifiedOrder") {
  277. return "微信支付";
  278. } else if (val == "trade.create") {
  279. return "支付宝支付";
  280. } else if (val == "uac.miniOrder") {
  281. return "云闪付支付";
  282. } else if (val == "wx.miniPreOrder") {
  283. return "银联支付"
  284. } else {
  285. return "-";
  286. }
  287. },
  288. isRefund() {
  289. if (!this.info.goodsList[0].verifyModel) {
  290. //没核销
  291. return true;
  292. } else if (
  293. this.info.goodsList[0].verifyModel &&
  294. new Date().getTime() <
  295. this.info.goodsList[0].verifyModel.checkTime + 1000 * 60 * 60 * 48
  296. ) {
  297. // 已核销 并且没超过48小时
  298. return true;
  299. } else {
  300. return false;
  301. }
  302. },
  303. finish() {
  304. this.isNotTime = true;
  305. console.log(222222, this.isNotTime);
  306. this.payDetails(this.info.orderNo);
  307. },
  308. refundDetail() {
  309. uni.navigateTo({
  310. url: `./refundDetail?id=${this.info.orderNo}`,
  311. });
  312. },
  313. checkCode() {
  314. this.codeData = "";
  315. this.$nextTick(() => {
  316. this.show = true;
  317. this.loading = true;
  318. // let that = this;
  319. // uni.getScreenBrightness({
  320. // success(res) {
  321. // // 获取用户手机亮度 保存起来
  322. // that.oldBright = res.value
  323. // setTimeout(()=>{
  324. // uni.setScreenBrightness({
  325. // value:1
  326. // })
  327. // },200)
  328. // }
  329. // })
  330. qrCode(this.info.goodsList[0].id).then((res) => {
  331. this.loading = false;
  332. if (res.state == "Success") {
  333. this.codeData = res.content;
  334. }
  335. });
  336. });
  337. },
  338. close() {
  339. this.show = false;
  340. // uni.setScreenBrightness({
  341. // value:this.oldBright
  342. // })
  343. },
  344. apply() {
  345. let that = this;
  346. uni.navigateTo({
  347. url: "./refund",
  348. success: function (res) {
  349. // 通过eventChannel向被打开页面传送数据
  350. res.eventChannel.emit("orderInfo", that.info);
  351. },
  352. });
  353. },
  354. // 获取订单详情
  355. payDetails(orderNo) {
  356. payDetails(orderNo).then((res) => {
  357. this.info = res.content;
  358. if (!this.info.payment) {
  359. this.info.payment = {
  360. paymentWay: "",
  361. pay: false
  362. }
  363. }
  364. if (this.info.payAmount > 0) {
  365. queryPayOrder(this.info.orderNo)
  366. }
  367. this.info.extend = JSON.parse(this.info.goodsList[0].extend);
  368. // 查询报名的人数信息
  369. // getOrderDetail()
  370. getActivityOrdersByOrderNo({
  371. orderNo: orderNo,
  372. }).then(({ content }) => {
  373. const { list, dataCollectVo } = content;
  374. try {
  375. this.signupDetail = list.map(e => e.signupDetail);
  376. // 报名信息
  377. this.signupDetailList = this.signupDetail.map(e => {
  378. const list = JSON.parse(e);
  379. console.log('list', list);
  380. return list.map(e => {
  381. // 判断是否为附件
  382. let type = e.hasOwnProperty('uploadType') && !!e.uploadType ? true : false;
  383. return {
  384. name: e.dataName,
  385. value: e.content,
  386. isImg: type
  387. }
  388. })
  389. })
  390. console.log('报名信息', this.signupDetailList);
  391. // 表单模板数据
  392. this.dataCollectVo = dataCollectVo.data;
  393. this.$forceUpdate()
  394. } catch (error) {
  395. uni.showToast({
  396. title: "获取报名信息失败。",
  397. icon: "error",
  398. });
  399. }
  400. })
  401. // 如果跳转过支付页面则定时获取订单更新的信息
  402. if (this.isJumped) {
  403. this.isJumped = false;
  404. const that = this;
  405. let checkTime = 0;
  406. uni.showLoading({
  407. title: "支付中",
  408. });
  409. let checkOrder = setInterval(() => {
  410. queryPayOrder(that.info.orderNo)
  411. .then((res1) => {
  412. // 支付成功
  413. if (res1.content.status == "TRADE_SUCCESS") {
  414. that.payDetails(that.info.orderNo);
  415. uni.showToast({
  416. title: "支付成功!",
  417. icon: "none",
  418. });
  419. clearInterval(checkOrder)
  420. uni.hideLoading();
  421. that.btnLoading = false;
  422. } else {
  423. checkTime++;
  424. }
  425. if (checkTime > 5) {
  426. clearInterval(checkOrder)
  427. that.btnLoading = false;
  428. uni.showToast({
  429. title: "订单查询失败",
  430. icon: "none",
  431. });
  432. uni.hideLoading();
  433. }
  434. }).catch(() => {
  435. if (checkOrder) {
  436. clearInterval(checkOrder)
  437. checkOrder = null
  438. }
  439. that.btnLoading = false;
  440. uni.showToast({
  441. title: "订单查询失败",
  442. icon: "none",
  443. });
  444. uni.hideLoading();
  445. });
  446. }, 1000);
  447. }
  448. });
  449. },
  450. toMap() {
  451. uni.openLocation({
  452. latitude: 26.4401,
  453. longitude: 106.664,
  454. name: "印象贵大文创店",
  455. address: "贵州大学西校区西一区体育场楼下",
  456. });
  457. },
  458. // 支付
  459. pay() {
  460. if (this.btnLoading) return;
  461. this.btnLoading = true;
  462. uni.showLoading({
  463. title: "支付中",
  464. });
  465. let that = this;
  466. let miniPayRequest = this.info.payment.miniPayRequest;
  467. miniPayRequest = JSON.parse(miniPayRequest);
  468. let query = encodeURIComponent(JSON.stringify({
  469. sign: miniPayRequest.sign,
  470. prepayid: miniPayRequest.prepayid,
  471. }))
  472. // 打开银联小程序
  473. uni.navigateToMiniProgram({
  474. appId: miniPayRequest.miniuser,
  475. path: `${miniPayRequest.minipath}?appPayRequest=${query}`,
  476. success: (res) => {
  477. // 打开成功
  478. this.isJumped = true;
  479. },
  480. fail: (err) => {
  481. // console.log(err);
  482. uni.hideLoading();
  483. uni.showToast({
  484. title: "取消支付",
  485. icon: "none",
  486. });
  487. that.btnLoading = false
  488. },
  489. });
  490. },
  491. // 取消退款申请
  492. cancelReply() {
  493. if (this.btnLoading) return;
  494. this.btnLoading = true;
  495. uni.showLoading({
  496. title: "取消中",
  497. });
  498. unRefund({ id: this.info.goodsList[0].id }).then((res) => {
  499. this.btnLoading = false;
  500. uni.hideLoading();
  501. if (res.state == "Success") {
  502. this.payDetails(this.info.orderNo);
  503. uni.showToast({
  504. title: "取消成功",
  505. icon: "success",
  506. });
  507. }
  508. });
  509. },
  510. },
  511. onReady() { },
  512. onLoad(options) {
  513. this.info.orderNo = options.id;
  514. },
  515. onShow() {
  516. this.payDetails(this.info.orderNo);
  517. },
  518. created() {
  519. // this.info = JSON.parse(uni.getStorageSync('order'))
  520. },
  521. };
  522. </script>
  523. <style lang="scss">
  524. .order-detail {
  525. background: #f9f9f9;
  526. min-height: 100vh;
  527. padding-bottom: 100rpx;
  528. overflow-y: scroll;
  529. // padding-bottom: 100rpx;
  530. .status-box {
  531. padding: 24rpx 24rpx 4rpx;
  532. display: flex;
  533. justify-content: space-between;
  534. .text-box {
  535. color: #181818;
  536. .status {
  537. font-weight: bold;
  538. font-size: 32rpx;
  539. display: flex;
  540. .u-count-down__text {
  541. color: #ff4d3a !important;
  542. }
  543. }
  544. .notice {
  545. font-size: 24rpx;
  546. margin-top: 20rpx;
  547. }
  548. }
  549. }
  550. .progress {
  551. .progress-title {
  552. font-weight: 600;
  553. font-size: 32rpx;
  554. color: #181818;
  555. }
  556. .progress-desc {
  557. font-weight: 300;
  558. font-size: 24rpx;
  559. color: #aaaaaa;
  560. margin-top: 15rpx;
  561. }
  562. }
  563. .shop-box {
  564. width: 690rpx;
  565. // margin: 0 30rpx;
  566. // padding: 24rpx 24rpx 30rpx;
  567. background: #fff;
  568. border-radius: 16rpx;
  569. margin-top: -30rpx;
  570. box-sizing: border-box;
  571. .shop-name {
  572. font-weight: 600;
  573. font-size: 32rpx;
  574. color: #181818;
  575. width: 100%;
  576. white-space: nowrap;
  577. overflow: hidden;
  578. text-overflow: ellipsis;
  579. }
  580. .address {
  581. font-weight: 300;
  582. font-size: 24rpx;
  583. color: #aaaaaa;
  584. margin-top: 20rpx;
  585. width: 100%;
  586. white-space: nowrap;
  587. overflow: hidden;
  588. text-overflow: ellipsis;
  589. }
  590. }
  591. .black {
  592. color: #222222 !important;
  593. }
  594. .red {
  595. color: red !important;
  596. }
  597. .fs28 {
  598. font-size: 28rpx !important;
  599. font-weight: bold;
  600. }
  601. .code-box {
  602. display: flex;
  603. align-items: center;
  604. justify-content: space-between;
  605. .left {
  606. .title {
  607. font-weight: 500;
  608. font-size: 28rpx;
  609. color: #222222;
  610. }
  611. .codeNum {
  612. font-weight: 300;
  613. font-size: 24rpx;
  614. color: #aaaaaa;
  615. margin-top: 15rpx;
  616. }
  617. }
  618. .code-btn {
  619. display: flex;
  620. align-items: center;
  621. font-weight: 300;
  622. font-size: 24rpx;
  623. color: #aaaaaa;
  624. .jiantou {
  625. width: 24rpx;
  626. height: 24rpx;
  627. }
  628. }
  629. }
  630. .input-box {
  631. margin: 20rpx 30rpx;
  632. padding: 28rpx 24rpx;
  633. background: #ffffff;
  634. border-radius: 16rpx 16rpx 16rpx 16rpx;
  635. display: flex;
  636. align-items: center;
  637. justify-content: space-between;
  638. .label {
  639. color: #222;
  640. font-size: 28rpx;
  641. word-break: keep-all;
  642. margin-right: 10rpx;
  643. }
  644. .value {
  645. word-break: break-all;
  646. font-size: 28rpx;
  647. color: #aaaaaa;
  648. }
  649. }
  650. .input-box-address {
  651. margin: 20rpx 30rpx;
  652. padding: 28rpx 24rpx;
  653. background: #ffffff;
  654. border-radius: 16rpx 16rpx 16rpx 16rpx;
  655. // display: flex;
  656. // align-items: center;
  657. // justify-content: space-between;
  658. .value {
  659. color: #222;
  660. font-size: 28rpx;
  661. }
  662. .label {
  663. font-size: 28rpx;
  664. margin: 10rpx 0;
  665. color: #aaaaaa;
  666. }
  667. }
  668. .content {
  669. margin: 20rpx 30rpx;
  670. padding: 28rpx 24rpx;
  671. border-radius: 16rpx;
  672. background: #fff;
  673. .title {
  674. font-weight: 600;
  675. font-size: 28rpx;
  676. color: #222222;
  677. }
  678. .item {
  679. display: flex;
  680. align-items: center;
  681. justify-content: space-between;
  682. margin-top: 28rpx;
  683. .label {
  684. color: #222;
  685. font-size: 28rpx;
  686. word-break: keep-all;
  687. margin-right: 10rpx;
  688. }
  689. .value {
  690. word-break: break-all;
  691. font-size: 28rpx;
  692. color: #aaaaaa;
  693. }
  694. }
  695. }
  696. .pay-btn {
  697. position: fixed;
  698. bottom: 30px;
  699. left: 4%;
  700. background: $uni-color-primary;
  701. width: 688rpx;
  702. height: 80rpx;
  703. line-height: 80rpx;
  704. border-radius: 46rpx;
  705. color: #fff;
  706. margin-top: 50rpx;
  707. }
  708. .refund-box {
  709. .refund-msg {
  710. font-weight: 300;
  711. font-size: 24rpx;
  712. color: #222222;
  713. margin-top: 15rpx;
  714. line-height: 40rpx;
  715. }
  716. }
  717. .apply-box {
  718. position: relative;
  719. .label {
  720. font-weight: 600;
  721. font-size: 28rpx;
  722. color: #222222;
  723. }
  724. .value {
  725. color: #999999;
  726. font-size: 24rpx;
  727. margin-top: 15rpx;
  728. }
  729. .jiantou {
  730. position: absolute;
  731. top: 50%;
  732. right: 24rpx;
  733. transform: translateY(-50%);
  734. width: 24rpx;
  735. height: 24rpx;
  736. }
  737. }
  738. .info {
  739. .order-info {
  740. display: flex;
  741. width: 100%;
  742. overflow: hidden;
  743. .icon {
  744. width: 164rpx;
  745. height: 164rpx;
  746. border-radius: 16rpx;
  747. flex-shrink: 0;
  748. }
  749. .shop-info {
  750. display: flex;
  751. flex-direction: column;
  752. justify-content: space-between;
  753. padding-left: 24rpx;
  754. flex: 1;
  755. box-sizing: border-box;
  756. .title {
  757. color: #181818;
  758. font-size: 28rpx;
  759. width: 450rpx;
  760. white-space: nowrap;
  761. overflow: hidden;
  762. text-overflow: ellipsis;
  763. margin-bottom: 20rpx;
  764. }
  765. .price-box {
  766. display: flex;
  767. align-items: center;
  768. justify-content: space-between;
  769. .price {
  770. color: #181818;
  771. font-size: 32rpx;
  772. font-weight: bold;
  773. }
  774. margin-bottom: 20rpx;
  775. }
  776. .start-time,
  777. .goods-desc {
  778. font-size: 24rpx;
  779. color: #aaaaaa;
  780. width: 560rpx;
  781. white-space: nowrap;
  782. overflow: hidden;
  783. text-overflow: ellipsis;
  784. margin-bottom: 10rpx;
  785. }
  786. }
  787. }
  788. }
  789. .wrap {
  790. display: flex;
  791. justify-content: center;
  792. align-items: center;
  793. height: 100vh;
  794. overflow: hidden;
  795. }
  796. }
  797. </style>