orderDetails - 副本.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  1. <template>
  2. <view class="container" :class="{disableScroll:disableScroll}">
  3. <u-navbar title="详情" leftIconColor="#ffffff" titleStyle="color:#fff" :autoBack="true" placeholder></u-navbar>
  4. <view class="topBox" v-if="form.orderStatus==0">
  5. <view class="topBox_val">¥
  6. <text>{{form.sellingPrice.split('.')[0]}}</text>.{{form.sellingPrice.split('.')[1]}}
  7. </view>
  8. <view class="topBox_lab">待支付</view>
  9. <view class="topBox_time">
  10. 请在 <text>{{form.minutes}}:{{form.seconds}}</text>内支付
  11. </view>
  12. </view>
  13. <view class="topBox" v-if="form.orderStatus==10">
  14. <view class="topBox_val"> <text class="iconfont icon-daishiyong"></text> </view>
  15. <view class="topBox_lab" style="margin-top: 15rpx;">待使用</view>
  16. </view>
  17. <view class="topBox" v-if="form.orderStatus==20&&!form.refundStatus">
  18. <view class="topBox_val">
  19. <image style="width: 68rpx;height:79rpx" src="https://guess-shop.oss-cn-beijing.aliyuncs.com/static/online/img18.png" mode="" />
  20. </view>
  21. <view class="topBox_lab" style="margin-top: 15rpx;">免单活动进行中!</view>
  22. </view>
  23. <view class="topBox" v-if="form.orderStatus==30&&form.refundStatus==2">
  24. <view class="topBox_val"> <text class="iconfont icon-kapian-yituikuan"></text> </view>
  25. <view class="topBox_lab" style="margin-top: 15rpx;">已退款</view>
  26. </view>
  27. <view class="topBox" v-if="form.orderStatus==20&&form.refundStatus==1">
  28. <view class="topBox_val"> <text class="iconfont icon-yiwancheng"></text> </view>
  29. <view class="topBox_lab" style="margin-top: 15rpx;">已完成 <text>(部分退款)</text> </view>
  30. </view>
  31. <view class="topBox" v-if="form.orderStatus==30&&form.refundStatus!=2">
  32. <view class="topBox_val"> <text class="iconfont icon-dingdan_yiquxiao"></text> </view>
  33. <view class="topBox_lab" style="margin-top: 15rpx;">已取消 <text>(您的订单已取消)</text> </view>
  34. </view>
  35. <view class="topBox" v-if="form.refundStatus==0&&form.refundOrderId">
  36. <view class="topBox_val"> <text class="iconfont icon-tuikuanzhong"></text> </view>
  37. <view class="topBox_lab" style="margin-top: 15rpx;">退款中</view>
  38. </view>
  39. <view class="topBox" v-if="form.refundStatus==1&&form.refundOrderId">
  40. <view class="topBox_val"> <text class="iconfont icon-kapian-yituikuan"></text> </view>
  41. <view class="topBox_lab" style="margin-top: 15rpx;">退款成功</view>
  42. </view>
  43. <view class="topBox" v-if="form.refundStatus==2&&form.refundOrderId">
  44. <view class="topBox_val"> <text class="iconfont icon-a-12pt_tuikuanshibai"></text> </view>
  45. <view class="topBox_lab" style="margin-top: 15rpx;">退款失败</view>
  46. </view>
  47. <view class="topBox" v-if="form.refundStatus==3&&form.refundOrderId">
  48. <view class="topBox_val"> <text class="iconfont icon-tuikuanshibai1"></text> </view>
  49. <view class="topBox_lab" style="margin-top: 15rpx;">退款拒绝</view>
  50. </view>
  51. <view class="topBox" style="padding: 0rpx;">
  52. <view class="item">
  53. <view class="item_t">
  54. <image :src="form.businessImage" mode="" />
  55. <view>{{form.businessName}}</view>
  56. </view>
  57. <view class="item_c">
  58. <view class="item_c_l">
  59. <image :src="form.businessProductImage||form.businessImage" mode="" />
  60. </view>
  61. <view class="item_c_r">
  62. <view class="item_c_r_title">{{form.businessProductName}}</view>
  63. <view class="item_c_r_text">{{form.productDataJosn.costIncluded}}</view>
  64. <view class="item_c_r_price">
  65. <view class="item_c_r_price_r font22" @click="openPurchaseNotes(form.productDataJosn)">
  66. 购买须知<text class="iconfont icon-jiantou2"></text></view>
  67. <view class="item_c_r_price_r">X{{form.buyQuantity}}</view>
  68. <view class="item_c_r_price_l" v-if="form.sellingPrice">¥
  69. <text>{{form.sellingPrice.split('.')[0]}}</text>.{{form.sellingPrice.split('.')[1]}}
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="item_c1">
  75. <view class="item_c1_lab">合计:</view>
  76. <view class="item_c1_val">¥
  77. <text>{{String(form.orderAmount).split('.')[0]}}</text>.{{String(form.orderAmount).split('.')[1]}}
  78. </view>
  79. </view>
  80. <view class="item_c2">
  81. <view class="item_c2_item">
  82. <view class="item_c2_item_lab">日期:</view>
  83. <view class="item_c2_item_val">
  84. {{form.orderTime?form.orderTime.substr(0,10).replace(/-/g,'.'):'--'}}
  85. </view>
  86. </view>
  87. <view class="item_c2_item">
  88. <view class="item_c2_item_lab">购买数量:</view>
  89. <view class="item_c2_item_val">x{{form.buyQuantity}}</view>
  90. </view>
  91. <view class="item_c2_item">
  92. <view class="item_c2_item_lab">游客信息:</view>
  93. <view class="item_c2_item_val" v-if="form.refundOrderId">
  94. {{form.productOrder.productVisitor.visitorName}},{{form.productOrder.productVisitor.visitorPhone}}
  95. </view>
  96. <view class="item_c2_item_val" v-else>
  97. {{form.productVisitor.visitorName}},{{form.productVisitor.visitorPhone}}
  98. </view>
  99. </view>
  100. <view class="item_c2_item" v-if="form.reservationDate">
  101. <view class="item_c2_item_lab">预约日期:</view>
  102. <view class="item_c2_item_val">
  103. {{form.reservationDate}}
  104. </view>
  105. </view>
  106. <view class="item_c2_item" v-if="form.reservationTime">
  107. <view class="item_c2_item_lab">预约场次:</view>
  108. <view class="item_c2_item_val">
  109. {{form.reservationTime}}
  110. </view>
  111. </view>
  112. </view>
  113. <!-- v-if="form.orderStatus==10||form.orderStatus==20||form.refundStatus==2||form.refundStatus==1" -->
  114. <!-- form.orderStatus!=30&&!form.refundOrderId&&form.orderStatus!=0 -->
  115. <view class="item_c2" v-if="couponList&&couponList.length>0">
  116. <view class="item_c2_item" v-for="(v,i) in couponList" :key="i" @click="openVoucherDetails(i)">
  117. <view class="item_c2_item_lab">卡券号:</view>
  118. <view class="item_c2_item_val" :class="{'line-through':(v.couponStatus==10||v.couponStatus==20)}">{{v.couponCode}} <text class="iconfont icon-jiantou"></text> </view>
  119. </view>
  120. <!-- <view class="item_c2_item" @click="openVoucherDetails()">
  121. <view class="item_c2_item_lab">卡券号:</view>
  122. <view class="item_c2_item_val">2021312332424433 <text class="iconfont icon-jiantou"></text></view>
  123. </view> -->
  124. </view>
  125. <!-- <view class="item_c2" v-if="form.refundStatus==2||form.refundStatus==1">
  126. <view class="item_c2_item">
  127. <view class="item_c2_item_lab">退款信息:</view>
  128. <view class="item_c2_item_val ">查看详情 <text class="iconfont icon-jiantou"></text> </view>
  129. </view>
  130. </view> -->
  131. <view class="item_c2">
  132. <view class="item_c2_title">订单信息</view>
  133. <view class="item_c2_item">
  134. <view class="item_c2_item_lab">订单编号:</view>
  135. <view class="item_c2_item_val">{{form.orderNumber}}</view>
  136. </view>
  137. <view class="item_c2_item">
  138. <view class="item_c2_item_lab">订单创建时间:</view>
  139. <view class="item_c2_item_val">{{form.orderTime?form.orderTime.replace(/-/g,'.'):'--'}}</view>
  140. </view>
  141. <view class="item_c2_item" v-if="form.orderType==0&&(form.orderStatus==10||form.orderStatus==20||form.refundStatus==2||form.refundStatus==1)">
  142. <view class="item_c2_item_lab">支付方式:</view>
  143. <view class="item_c2_item_val">微信支付</view>
  144. </view>
  145. <view class="item_c2_item" v-if="form.orderType==0&&(form.orderStatus==10||form.orderStatus==20||form.refundStatus==2||form.refundStatus==1)">
  146. <view class="item_c2_item_lab">支付时间:</view>
  147. <view class="item_c2_item_val" v-if="form.payTime">
  148. {{form.payTime?form.payTime.replace(/-/g,'.'):'--'}}
  149. </view>
  150. <view class="item_c2_item_val" v-else-if="form.productOrder">
  151. {{form.productOrder.payTime?form.productOrder.payTime.replace(/-/g,'.'):'--'}}
  152. </view>
  153. <view class="item_c2_item_val" v-else>
  154. {{form.productDataJosn.payTime?form.productDataJosn.payTime.replace(/-/g,'.'):'--'}}
  155. </view>
  156. </view>
  157. <view class="item_c2_item" v-if="form.orderStatus==20&&form.refundStatus!=1">
  158. <view class="item_c2_item_lab">使用时间:</view>
  159. <view class="item_c2_item_val">{{form.lastUseTime?form.lastUseTime.replace(/-/g,'.'):'--'}}
  160. </view>
  161. </view>
  162. <view class="item_c2_item" v-if="form.orderStatus==30&&form.refundStatus!=2">
  163. <view class="item_c2_item_lab">取消时间:</view>
  164. <view class="item_c2_item_val">
  165. {{form.orderCancelTime?form.orderCancelTime.replace(/-/g,'.'):'--'}}
  166. </view>
  167. </view>
  168. </view>
  169. <view class="item_c2" v-if="form.refundOrderId">
  170. <view class="item_c2_title">退款信息</view>
  171. <view class="item_c2_item">
  172. <view class="item_c2_item_lab">退款金额:</view>
  173. <view class="item_c2_item_val">{{form.refundAmount}}</view>
  174. </view>
  175. <view class="item_c2_item">
  176. <view class="item_c2_item_lab">退款数量:</view>
  177. <view class="item_c2_item_val">{{form.refundQuantity}}</view>
  178. </view>
  179. <view class="item_c2_item" v-if="form.refundOrder">
  180. <view class="item_c2_item_lab">退款流水号:</view>
  181. <view class="item_c2_item_val">{{form.refundOrder}}</view>
  182. </view>
  183. <view class="item_c2_item">
  184. <view class="item_c2_item_lab">提交退款申请:</view>
  185. <view class="item_c2_item_val">{{form.refundApplyTime}}</view>
  186. </view>
  187. <view class="item_c2_item">
  188. <view class="item_c2_item_lab">退款原因:</view>
  189. <view class="item_c2_item_val">{{form.refundReason}}</view>
  190. </view>
  191. <view class="item_c2_item">
  192. <view class="item_c2_item_lab">退款说明:</view>
  193. <view class="item_c2_item_val">{{form.refundNotes}}</view>
  194. </view>
  195. <view class="item_c2_item">
  196. <view class="item_c2_item_lab">退款方式:</view>
  197. <view class="item_c2_item_val">原路返回</view>
  198. </view>
  199. <view class="item_c2_item" v-if="form.refundStatus==3&&form.refundOrderId">
  200. <view class="item_c2_item_lab">退款审核说明:</view>
  201. <view class="item_c2_item_val">{{form.auditNotes||''}}</view>
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. <view class="btnBox" v-if="form.orderStatus==0">
  207. <view class="btnBox_l">
  208. <view class="btnBox_l_lab">应付:</view>
  209. <view class="btnBox_l_val">¥
  210. <text>{{String(form.orderAmount).split('.')[0]}}</text>.{{String(form.orderAmount).split('.')[1]}}
  211. </view>
  212. </view>
  213. <view class="btnBox_r" @click="payment()">
  214. 支付
  215. </view>
  216. </view>
  217. <view class="btnBox1" v-if="form.orderStatus==10">
  218. <view class="btnBox_l" v-if="form.orderType==0" @click="goPath('/pages/order/applicationDrawback?orderNumber=' +form.orderNumber)">
  219. 申请退款
  220. </view>
  221. <view class="btnBox_r" @click="openVoucherDetails()">
  222. 去使用
  223. </view>
  224. </view>
  225. <view class="btnBox1" v-if="form.gamesStatus==1&&form.orderType==0">
  226. <view class="btnBox_r" @click="goPath(`/pages/game/index?orderNumber=${form.orderNumber}`)">
  227. 参与免单
  228. </view>
  229. </view>
  230. <!-- 购买须知弹窗 -->
  231. <purchaseNotes :type="2" ref="purchaseNotesRef" />
  232. <!-- 卡券详情 -->
  233. <voucherDetails ref="voucherDetailsRef" :list="couponList" @close="voucherDetailsClsoe" />
  234. <!-- 核销完成 -->
  235. <writeOffCompleted :form="form" ref="writeOffCompletedRef" />
  236. </view>
  237. </template>
  238. <script>
  239. import {
  240. orderInfo,
  241. orderCouponList,
  242. orderPay,
  243. orderIdInfo,
  244. refundOrderInfo
  245. } from "@/api/home.js"
  246. import purchaseNotes from '@/components/purchaseNotes/index.vue'
  247. import voucherDetails from '@/components/voucherDetails/index.vue'
  248. import writeOffCompleted from '@/components/writeOffCompleted/index.vue'
  249. // let intervalId = null
  250. export default {
  251. components: {
  252. purchaseNotes,
  253. voucherDetails,
  254. writeOffCompleted
  255. },
  256. data () {
  257. return {
  258. type: 6, //1待支付 2待使用 3免单 4已退款 5已完成(部分退款) 6已取消
  259. form: {
  260. productDataJosn: {},
  261. },
  262. couponList: [],
  263. disableScroll: false,
  264. timer: null,
  265. type: undefined,
  266. intervalId:undefined
  267. }
  268. },
  269. onLoad (options) {
  270. if (options.orderNumber) {
  271. this.getOrderInfo(options.orderNumber)
  272. }
  273. if (options.orderId) {
  274. this.getOrderIdInfo(options.orderId)
  275. }
  276. if (options.refundOrderId) {
  277. this.getRefundOrderInfo(options.refundOrderId)
  278. }
  279. if (options.type) {
  280. this.type = options.type
  281. }
  282. },
  283. onUnload () {
  284. // 当页面关闭或卸载时清除定时器
  285. if (this.intervalId) {
  286. clearInterval(this.intervalId);
  287. }
  288. },
  289. methods: {
  290. // 计算订单取消订单的倒计时
  291. countDown (row) {
  292. // 获取当前时间
  293. let currentTime = new Date();
  294. // 订单取消时间 时间格式替换为ios支持的格式
  295. let cancelTime = new Date(row.payExpireTime.replace(/-/g, '/'));
  296. row.countdownTime = Math.floor((cancelTime - currentTime) / 1000);
  297. row.minutes = Math.floor(row.countdownTime / 60) < 10 ? '0' + Math.floor(row.countdownTime / 60) : Math
  298. .floor(row.countdownTime / 60);
  299. row.seconds = row.countdownTime % 60 < 10 ? '0' + row.countdownTime % 60 : row.countdownTime % 60;
  300. if (row.countdownTime > 0) {
  301. this.intervalId = setInterval(() => {
  302. row.minutes = Math.floor(row.countdownTime / 60) < 10 ? '0' + Math.floor(row
  303. .countdownTime / 60) : Math.floor(row.countdownTime / 60);
  304. row.seconds = row.countdownTime % 60 < 10 ? '0' + row.countdownTime % 60 : row
  305. .countdownTime % 60;
  306. if (row.countdownTime > 0) {
  307. row.countdownTime--;
  308. } else {
  309. // row.orderStatus = 30;
  310. clearInterval(this.intervalId);
  311. this.intervalId = null
  312. this.getOrderInfo(row.orderNumber)
  313. }
  314. }, 1000)
  315. }
  316. },
  317. voucherDetailsClsoe () {
  318. this.disableScroll = false;
  319. clearInterval(this.timer);
  320. this.timer = null;
  321. },
  322. openPurchaseNotes (val) {
  323. val.businessImage = this.form.businessImage;
  324. this.$refs.purchaseNotesRef.open(val)
  325. },
  326. openVoucherDetails (index = null) {
  327. if (index === null) {
  328. for (let i = 0; i < this.couponList.length; i++) {
  329. if (this.couponList[i].couponStatus == 0) {
  330. index = i;
  331. break
  332. }
  333. }
  334. }
  335. // item.businessImage = this.form.businessImage;
  336. // item.costIncluded = this.form.productDataJosn.costIncluded
  337. this.$refs.voucherDetailsRef.open(this.couponList, index, this.form);
  338. // let bool = false;
  339. // this.couponList.map(v => {
  340. // if (v.couponStatus == 0) {
  341. // bool = true
  342. // }
  343. // })
  344. let bool = this.couponList.some(v => {
  345. return v.couponStatus == 0
  346. })
  347. if (bool) {
  348. this.timer = setInterval(() => {
  349. this.getOrderInfo(this.form.orderNumber)
  350. }, 3000)
  351. }
  352. this.disableScroll = true;
  353. },
  354. openWriteOffCompleted () {
  355. this.$refs.writeOffCompletedRef.openFun()
  356. },
  357. getOrderInfo (orderNo) {
  358. orderInfo(orderNo).then(res => {
  359. res.data.productDataJosn = JSON.parse(res.data.productData);
  360. if (res.data.orderStatus == 0) {
  361. this.countDown(res.data)
  362. }
  363. this.form = res.data;
  364. if (this.form.refundOrderId) {
  365. this.getRefundOrderInfo(this.form.refundOrderId)
  366. } else {
  367. this.getCouponList(this.form.orderId)
  368. }
  369. if (this.timer) {
  370. let bool = true;
  371. this.couponList.map(v => {
  372. if (v.couponStatus != 10) {
  373. bool = false
  374. }
  375. })
  376. if (bool) {
  377. this.$refs.voucherDetailsRef.close()
  378. this.openWriteOffCompleted()
  379. }
  380. }
  381. if (this.type == 'use') {
  382. this.type = '';
  383. setTimeout(() => {
  384. this.openVoucherDetails()
  385. }, 300)
  386. }
  387. })
  388. },
  389. getOrderIdInfo (orderId) {
  390. orderIdInfo(orderId).then(res => {
  391. res.data.productDataJosn = JSON.parse(res.data.productData);
  392. if (res.data.orderStatus == 0) {
  393. this.countDown(res.data)
  394. }
  395. this.form = res.data;
  396. // this.getCouponList(this.form.orderId);
  397. if (this.form.refundOrderId) {
  398. this.getRefundOrderInfo(this.form.refundOrderId)
  399. } else {
  400. this.getCouponList(this.form.orderId)
  401. }
  402. if (this.type == 'use') {
  403. this.type = '';
  404. setTimeout(() => {
  405. this.openVoucherDetails()
  406. }, 300)
  407. }
  408. })
  409. },
  410. // 获取退款订单信息
  411. getRefundOrderInfo (refundOrderId) {
  412. refundOrderInfo(refundOrderId).then(res => {
  413. res.data.productDataJosn = JSON.parse(res.data.productOrder.productData);
  414. this.form = res.data;
  415. this.getCouponList(this.form.orderId)
  416. })
  417. },
  418. // 支付
  419. payment () {
  420. uni.showLoading({
  421. title: '加载中'
  422. });
  423. orderPay({
  424. orderNumber: this.form.orderNumber
  425. }).then(res => {
  426. uni.requestPayment({
  427. "provider": "wxpay",
  428. timeStamp: res.data.timeStamp,
  429. nonceStr: res.data.nonceStr,
  430. package: res.data.package,
  431. signType: res.data.signType,
  432. paySign: res.data.paySign,
  433. success: (ret) => {
  434. // this.$refs.checkoutSuccessRef.open(res.data.out_trade_no)
  435. this.getOrderInfo(this.form.orderNumber)
  436. },
  437. complete: () => {
  438. uni.hideLoading()
  439. },
  440. fail (e) {
  441. // uni.redirectTo({
  442. // url: '/pages/order/orderDetails?orderNumber=' + res.data.out_trade_no
  443. // });
  444. }
  445. })
  446. })
  447. },
  448. getCouponList (orderId) {
  449. orderCouponList({
  450. orderId: orderId
  451. }).then(res => {
  452. this.$nextTick(() => {
  453. this.couponList = res.data;
  454. })
  455. })
  456. },
  457. goApplicationDrawback () {
  458. uni.navigateTo({
  459. url: path
  460. })
  461. },
  462. goPath (path) {
  463. // let data = {
  464. // businessName: this.form.businessName,
  465. // businessImage: this.form.businessImage,
  466. // businessProductName: this.form.businessProductName,
  467. // businessProductImage: this.form.businessProductImage,
  468. // costIncluded: this.form.productDataJosn.costIncluded,
  469. // sellingPrice: this.form.sellingPrice,
  470. // payAmount: this.form.payAmount
  471. // }
  472. uni.navigateTo({
  473. url: path,
  474. })
  475. }
  476. },
  477. }
  478. </script>
  479. <style lang='scss' scoped>
  480. .popupShow {
  481. overflow: hidden;
  482. position: fixed;
  483. }
  484. ::v-deep .u-navbar__content,
  485. ::v-deep .u-status-bar {
  486. background-color: #c90700 !important;
  487. }
  488. .disableScroll {
  489. overflow: hidden;
  490. position: fixed;
  491. width: 100%;
  492. box-sizing: border-box;
  493. }
  494. .container {
  495. padding: 30rpx 30rpx 160rpx;
  496. background: #f8f8f8;
  497. .topBox {
  498. padding: 45rpx 0;
  499. background: #ffffff;
  500. border-radius: 30rpx;
  501. margin-bottom: 30rpx;
  502. .topBox_val {
  503. font-size: 40rpx;
  504. color: #fa353b;
  505. font-family: FZCuYuan-M03;
  506. text-align: center;
  507. text {
  508. font-size: 80rpx;
  509. color: #fa353b;
  510. font-family: FZCuYuan-M03;
  511. }
  512. }
  513. .topBox_lab {
  514. font-size: 28rpx;
  515. color: #1a1a1a;
  516. text-align: center;
  517. margin-top: 7rpx;
  518. text {
  519. font-size: 28rpx;
  520. color: #808080;
  521. }
  522. }
  523. .topBox_time {
  524. font-size: 24rpx;
  525. color: #1a1a1a;
  526. margin-top: 7rpx;
  527. display: flex;
  528. align-items: center;
  529. justify-content: center;
  530. text {
  531. font-size: 28rpx;
  532. color: #fb0b03;
  533. font-family: FZCuYuan-M03;
  534. display: inline-block;
  535. margin: 0 10rpx;
  536. }
  537. }
  538. }
  539. .item {
  540. background: #ffffff;
  541. margin-bottom: 32rpx;
  542. border-radius: 30px;
  543. position: relative;
  544. .item_t {
  545. padding: 36rpx 24rpx 29rpx;
  546. border-bottom: 1rpx solid #cccccc;
  547. display: flex;
  548. align-items: center;
  549. image {
  550. width: 68rpx;
  551. height: 68rpx;
  552. border-radius: 20rpx;
  553. margin-right: 15rpx;
  554. flex-shrink: 0;
  555. }
  556. view {
  557. font-size: 28rpx;
  558. color: #1a1a1a;
  559. font-family: FZCuYuan-M03;
  560. }
  561. }
  562. .item_c {
  563. display: flex;
  564. padding: 30rpx 0;
  565. margin: 0 24rpx;
  566. border-bottom: 1rpx solid #cccccc;
  567. .item_c_l {
  568. margin-right: 12rpx;
  569. image {
  570. width: 172rpx;
  571. height: 172rpx;
  572. border-radius: 12rpx;
  573. }
  574. }
  575. .item_c_r {
  576. flex-grow: 1;
  577. overflow: hidden;
  578. .item_c_r_title {
  579. font-size: 26rpx;
  580. color: #242424;
  581. font-family: FZCuYuan-M03;
  582. white-space: nowrap;
  583. text-overflow: ellipsis;
  584. overflow: hidden;
  585. }
  586. .item_c_r_text {
  587. font-size: 24rpx;
  588. color: #1a1a1a;
  589. margin: 15rpx 0 22rpx;
  590. overflow: hidden;
  591. height: 56rpx;
  592. text-overflow: ellipsis;
  593. display: -webkit-box;
  594. -webkit-line-clamp: 2;
  595. -webkit-box-orient: vertical;
  596. }
  597. .item_c_r_price {
  598. display: flex;
  599. justify-content: space-between;
  600. align-items: center;
  601. .item_c_r_price_l {
  602. font-size: 22rpx;
  603. color: #ff0000;
  604. font-family: FZCuYuan-M03;
  605. text {
  606. font-size: 34rpx;
  607. font-family: FZCuYuan-M03;
  608. }
  609. }
  610. .item_c_r_price_r {
  611. font-size: 26rpx;
  612. color: #666666;
  613. text {
  614. // vertical-align: text-bottom;
  615. display: inline-block;
  616. vertical-align: bottom;
  617. position: relative;
  618. top: 2rpx;
  619. }
  620. }
  621. .font22 {
  622. font-size: 22rpx;
  623. }
  624. }
  625. }
  626. }
  627. .item_c1 {
  628. padding: 20rpx 0;
  629. margin: 0 24rpx;
  630. text-align: right;
  631. border-bottom: 1rpx solid #cccccc;
  632. > view {
  633. display: inline-block;
  634. }
  635. .item_c1_lab {
  636. font-size: 26rpx;
  637. color: #1a1a1a;
  638. }
  639. .item_c1_val {
  640. font-size: 22rpx;
  641. color: #ff0000;
  642. font-family: FZCuYuan-M03;
  643. text {
  644. font-size: 42rpx;
  645. color: #ff0000;
  646. font-family: FZCuYuan-M03;
  647. }
  648. }
  649. }
  650. .item_c2 {
  651. padding: 20rpx 0;
  652. margin: 0 24rpx;
  653. border-bottom: 1rpx solid #cccccc;
  654. &:last-child {
  655. border-bottom: none;
  656. }
  657. .item_c2_item {
  658. padding: 12rpx 0;
  659. display: flex;
  660. justify-content: space-between;
  661. align-items: center;
  662. .item_c2_item_lab {
  663. font-size: 26rpx;
  664. color: #1a1a1a;
  665. }
  666. .item_c2_item_val {
  667. font-size: 26rpx;
  668. color: #666666;
  669. .iconfont {
  670. font-size: 28rpx;
  671. display: inline-block;
  672. margin-left: 6rpx;
  673. }
  674. }
  675. .line-through {
  676. text-decoration: line-through;
  677. }
  678. }
  679. .item_c2_title {
  680. font-size: 26rpx;
  681. color: #242424;
  682. font-family: FZCuYuan-M03;
  683. padding: 12rpx 0;
  684. }
  685. }
  686. }
  687. }
  688. .btnBox {
  689. display: flex;
  690. align-items: center;
  691. justify-content: space-between;
  692. width: 100%;
  693. padding: 35rpx 30rpx;
  694. position: fixed;
  695. bottom: 0;
  696. left: 0;
  697. background: #fff;
  698. box-sizing: border-box;
  699. border-top: 1rpx solid #e7e7e7;
  700. .btnBox_l {
  701. display: flex;
  702. align-items: baseline;
  703. .btnBox_l_lab {
  704. font-size: 28rpx;
  705. color: #1a1a1a;
  706. }
  707. .btnBox_l_val {
  708. display: flex;
  709. align-items: baseline;
  710. font-size: 22rpx;
  711. color: #ff0000;
  712. font-family: FZCuYuan-M03;
  713. text {
  714. font-size: 42rpx;
  715. font-family: FZCuYuan-M03;
  716. }
  717. }
  718. }
  719. .btnBox_r {
  720. width: 259rpx;
  721. height: 80rpx;
  722. background: #fb0b03;
  723. border-radius: 40rpx;
  724. font-size: 32rpx;
  725. color: #ffffff;
  726. text-align: center;
  727. line-height: 80rpx;
  728. }
  729. }
  730. .btnBox1 {
  731. text-align: right;
  732. width: 100%;
  733. padding: 35rpx 30rpx;
  734. position: fixed;
  735. bottom: 0;
  736. left: 0;
  737. background: #fff;
  738. box-sizing: border-box;
  739. border-top: 1rpx solid #e7e7e7;
  740. > view {
  741. width: 200rpx;
  742. height: 70rpx;
  743. display: inline-block;
  744. font-size: 26rpx;
  745. color: #ffffff;
  746. text-align: center;
  747. line-height: 72rpx;
  748. }
  749. .btnBox_r {
  750. background: #fb0b03;
  751. border-radius: 40rpx;
  752. }
  753. .btnBox_l {
  754. background: #999999;
  755. border-radius: 40rpx;
  756. margin-right: 25rpx;
  757. }
  758. }
  759. </style>