js_order.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  1. <template>
  2. <view class="order">
  3. <view class="orderStatus">
  4. <view v-for="(item,index) in status" :class="checkedIndex === index ? 'active' : ''" :key="index"
  5. @click="statusTap(item.code,index)">{{item.info}}
  6. </view>
  7. </view>
  8. <!-- <view class="list"> -->
  9. <mescroll-uni class="list" :fixed="false" ref="mescrollRef" @up="getList" @init="mescrollInit">
  10. <view class="item" v-for="(item,index) in list" :key="index">
  11. <view class="lTitle" @click="goDetails(item.cId)">
  12. <view style="font-weight: bold;">上门时间:{{item.dtCreateTime}}</view>
  13. <!-- <view class="status">{{item.nStatus === 0 ? "待接单" : item.nStatus === 1 ? "服务中": item.nStatus === 2 ? "待评价": item.nStatus === 3 ? "已完成": item.nStatus === -1 ? "待付款" : item.nStatus === -2 ? "已取消" :'已拒绝'}}</view>-->
  14. <view class="status">{{item.statusName}}</view>
  15. </view>
  16. <view class="cont" @click="goDetails(item.cId)">
  17. <view>客户:{{item.cNickName}}</view>
  18. <view>项目:{{item.cGoods[0].cTitle}}</view>
  19. </view>
  20. <!-- <view class="cont" @click="goDetails(item.cId)">
  21. <view>订单金额:</view>
  22. <view style="color: #333;font-weight: bold;">¥{{item.totalPrice}}</view>
  23. </view> -->
  24. <view class="cont" @click="goDetails(item.cId)">
  25. <view>下单时间:{{item.dtCreateTime}}</view>
  26. <!-- <view style="color: #333;font-weight: bold;">¥{{item.totalPrice}}</view> -->
  27. </view>
  28. <!-- <view class="btn" v-if="item.nStatus < 1"> -->
  29. <view class="btn">
  30. <view class="count_down">
  31. <span>¥</span>{{item.totalPrice}}
  32. <!-- 剩余<u-count-down :timestamp="item.remainingTime" @end="getList" v-if="item.dtCreateTime>0"></u-count-down> -->
  33. </view>
  34. <view class="button">
  35. <!-- <view class="btn" v-if="item.nStatus === 0"> -->
  36. <view class="" v-if="item.nStatus === 0">
  37. <text class="refuse" @click="refuse(item.cId)">拒绝接单</text>
  38. <text class="pay" @click="scheduling(item.cId)">接单</text>
  39. </view>
  40. <view v-if="item.nStatus === 1">
  41. <text class="pay" @click="depart(item.cId,item.orderNo)">出发</text>
  42. </view>
  43. <view v-if="item.nStatus === 6">
  44. <text class="pay" @click="arriveOderLocation(item.cId,item.orderNo)">到达</text>
  45. </view>
  46. <view v-if="item.nStatus === 2">
  47. <text class="pay" @click="enterService(item.cId,item.orderNo)">开始服务</text>
  48. </view>
  49. <view v-if="item.nStatus === 3">
  50. <text class="pay" @click="complete(item,item.cId,item.orderNo)">完成订单</text>
  51. </view>
  52. <!-- </view> -->
  53. <!-- <text class="cancel" @click="cancle(item.cId)" v-if="item.nStatus > -2 && item.nStatus < 1">取消订单</text>
  54. <text class="pay" @click="nowYuyue(item,item.cId,item.dTotalMoney,item.remainingTime)"
  55. v-if="item.nStatus == -1 && item.nStatus < 1 ">支付订单</text>
  56. <text class="pay" @click="goEvaluate(item)" v-if="item.nStatus == 4">去评价</text>
  57. <text class="pay" @click="deleteOrder(item.cId)" v-if="item.nStatus <= -2 || item.nStatus == 5">删除订单</text> -->
  58. </view>
  59. </view>
  60. <!-- <view class="btn" v-if="item.nStatus <= -2 || item.nStatus == 5">
  61. <text @click="deleteOrder(item.cId)">删除订单</text>
  62. </view> -->
  63. </view>
  64. <!-- <view class="item" v-for="(item,index) in list" :key="index">
  65. <view class="lTitle" @click="goDetails(item.cId)">
  66. <view style="font-weight: bold;">下单时间:{{item.dtCreateTime}}</view>
  67. <view class="status">{{item.statusName}}</view>
  68. </view>
  69. <view class="cont" @click="goDetails(item.cId)">
  70. <view>商家:{{item.js.cName}}</view>
  71. <view>项目:{{item.cGoods[0].cTitle}}</view>
  72. </view>
  73. <view class="cont" @click="goDetails(item.cId)">
  74. <view>订单金额:</view>
  75. <view style="color: #333;font-weight: bold;">¥{{item.totalPrice}}</view>
  76. </view>
  77. <view class="btn" v-if="item.nStatus === 0">
  78. <span @click="scheduling(item.cId)">接单</span>
  79. <span @click="refuse(item.cId)">拒绝接单</span>
  80. </view>
  81. <view class="btn" v-if="item.nStatus === 1">
  82. <span @click="depart(item.cId,item.orderNo)">出发</span>
  83. </view>
  84. <view class="btn" v-if="item.nStatus === 6">
  85. <span @click="arriveOderLocation(item.cId,item.orderNo)">到达</span>
  86. </view>
  87. <view class="btn" v-if="item.nStatus === 2">
  88. <span @click="enterService(item.cId,item.orderNo)">开始服务</span>
  89. </view>
  90. <view class="btn" v-if="item.nStatus === 3">
  91. <span @click="complete(item,item.cId,item.orderNo)">完成订单</span>
  92. </view>
  93. </view> -->
  94. <!-- </view> -->
  95. </mescroll-uni>
  96. <view class="refuse_popup" v-if="isRefuse">
  97. <view class="histroy">
  98. <view class="title">
  99. 请输入拒绝接单原因
  100. </view>
  101. <view class="content">
  102. <input type="text" maxlength="10" v-model="reasonRefusal" placeholder="请输入拒绝原因,最多10个字" />
  103. </view>
  104. <view class="btn_box">
  105. <view class="btn" @click="cancel">
  106. 取消
  107. </view>
  108. <view class="btn success" @click="refuseSubmit">
  109. 提交
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. <view class="arrive" v-if="isArrive">
  115. <view class="photo_box">
  116. <view class="title">
  117. 到达地点
  118. </view>
  119. <view class="photo">
  120. <view class="small_title">
  121. 请拍摄到达地点主要建筑物
  122. </view>
  123. <view class="upload_box">
  124. <u-upload class="upload_popup" :action="uploadUrl" capture="camera" :file-list="arrivalPhoto"
  125. @on-success="photograph" @on-remove="remove" :header="header" :max-count="1" accept="image/*" :show-upload-list="false"/>
  126. </view>
  127. </view>
  128. <view class="btn_box">
  129. <view class="cancel" @click="isArrive = false">
  130. 取 消
  131. </view>
  132. <view class="btn" @click="arrive">
  133. 提 交
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. <view class="arrive" v-if="isSchedule">
  139. <view class="photo_box">
  140. <view class="title">
  141. 结束原因
  142. </view>
  143. <view class="photo">
  144. <view class="small_title">
  145. 提前结束,请填写原因
  146. </view>
  147. <!-- <input type="text" placeholder="请输入提前结束原因" v-model="timeoutCause" /> -->
  148. <view class="textarea">
  149. <textarea placeholder="请输入提前结束原因" type="textarea" v-model="timeoutCause"
  150. style="width: 100%;height: 100%;font-size: 26rpx;" id="" cols="30" rows="10"></textarea>
  151. </view>
  152. </view>
  153. <view class="btn_box">
  154. <view class=" cancel" @click="isSchedule = false">
  155. 取 消
  156. </view>
  157. <view class="btn" @click="reasonSubmit">
  158. 提 交
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. </template>
  165. <script>
  166. import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
  167. import {
  168. statusList,
  169. orderDeatails,
  170. getInfo,
  171. engineDetail,
  172. confirmOrder,
  173. takeOrder,
  174. arriveOderLocation,
  175. enterService,
  176. refuse,
  177. depart,
  178. imgUpload,
  179. reach,
  180. confirm
  181. } from '../../api/index.js'
  182. export default {
  183. mixins: [MescrollMixin], // 使用mixin
  184. data() {
  185. return {
  186. isRefuse: false,
  187. reasonRefusal: '',
  188. refusecId: '',
  189. status: [],
  190. checkedIndex: 0,
  191. list: [],
  192. nStatus: 0,
  193. money: 0,
  194. dTotalMoney: 0,
  195. jsId: '',
  196. isArrive: false,
  197. arrivePhoto: '',
  198. fileList: [],
  199. // uploadUrl: 'https://test.baoxianzhanggui.com/nightFragrance/common/upload',
  200. uploadUrl:'https://city.baoxianzhanggui.com/nightFragrance/common/upload',
  201. arrivalPhoto: [],
  202. form: {},
  203. isSchedule: false,
  204. timeoutCause: '',
  205. cId: '',
  206. orderNo: ''
  207. }
  208. },
  209. methods: {
  210. refuse(cId) {
  211. this.isRefuse = true
  212. this.refusecId = cId
  213. },
  214. refuseSubmit() {
  215. var data = {
  216. cId: this.refusecId,
  217. reasonRefusal: this.reasonRefusal.trim()
  218. }
  219. if (data.reasonRefusal == '') {
  220. uni.showToast({
  221. title: '拒绝原因不能为空',
  222. icon: 'none'
  223. })
  224. return
  225. }
  226. refuse(data).then(res => {
  227. if (res.data.code == 200) {
  228. this.list = []
  229. uni.showToast({
  230. title: '已拒绝',
  231. icon: 'none'
  232. })
  233. // this.getList()
  234. this.mescroll.resetUpScroll()
  235. this.isRefuse = false,
  236. this.reasonRefusal = ''
  237. } else {
  238. uni.showToast({
  239. title: res.data.msg,
  240. icon: 'none'
  241. })
  242. }
  243. })
  244. },
  245. cancel() {
  246. this.isRefuse = false
  247. this.reasonRefusal = ''
  248. },
  249. // 开始服务
  250. enterService(cId, orderNo) {
  251. var data = {
  252. cId: cId
  253. }
  254. enterService(data).then(res => {
  255. if (res.data.code == 200) {
  256. // this.list = []
  257. // this.getList()
  258. this.mescroll.resetUpScroll()
  259. uni.showToast({
  260. title: '服务中',
  261. })
  262. this.$router.go(0)
  263. } else {
  264. uni.showToast({
  265. title: res.data.msg,
  266. icon: 'none'
  267. })
  268. }
  269. })
  270. },
  271. //出发
  272. depart(cId, orderNo) {
  273. console.log('+++++++')
  274. let that = this
  275. uni.getLocation({
  276. type: 'wgs84',
  277. isHighAccuracy: true,
  278. accuracy: 'best',
  279. success: (res) => {
  280. let data = {
  281. cId: cId,
  282. departLatitude: res.latitude,
  283. departLongitude: res.longitude
  284. }
  285. depart(data).then(res => {
  286. if (res.data.code == 200) {
  287. uni.showToast({
  288. title: '已出发',
  289. })
  290. that.$router.go(0)
  291. } else {
  292. uni.showToast({
  293. title: res.data.msg,
  294. })
  295. that.$router.go(0)
  296. }
  297. })
  298. },
  299. fail: (res) => {}
  300. });
  301. },
  302. // 到达
  303. arriveOderLocation(cId, orderNo) {
  304. this.isArrive = true
  305. this.form.cId = cId
  306. this.form.orderNo = orderNo
  307. let that = this
  308. uni.getLocation({
  309. type: 'wgs84',
  310. isHighAccuracy: true,
  311. accuracy: 'best',
  312. success: (res) => {
  313. that.form.arrivalLatitude = res.latitude
  314. that.form.arrivalLongitude = res.longitude
  315. },
  316. fail: (res) => {}
  317. });
  318. },
  319. //上传到达图片
  320. photograph(response) {
  321. this.form.arrivalPhoto = response.fileName
  322. },
  323. remove(index) {
  324. this.arrivalPhoto.splice(index, 1);
  325. },
  326. //提交到达拍照
  327. arrive() {
  328. if (!this.form.arrivalPhoto) {
  329. uni.showToast({
  330. title: '请上传到达照片',
  331. icon: 'none'
  332. })
  333. return
  334. } else {
  335. reach(this.form).then(res => {
  336. this.isArrive = false
  337. if (res.data.code == 200) {
  338. uni.showToast({
  339. title: '已到达',
  340. icon: 'none'
  341. })
  342. // this.getList()
  343. // this.mescroll.resetUpScroll()
  344. this.$router.go(0)
  345. } else {
  346. uni.showToast({
  347. title: res.data.msg,
  348. icon: 'none'
  349. })
  350. }
  351. })
  352. }
  353. },
  354. //接单
  355. scheduling(cId) {
  356. var data = {
  357. cId: cId
  358. }
  359. takeOrder(data).then(res => {
  360. if (res.data.code == 200) {
  361. // this.list = []
  362. uni.showToast({
  363. title: '已接单',
  364. })
  365. // this.getList()
  366. this.$router.go(0)
  367. } else {
  368. uni.showToast({
  369. title: res.data.msg,
  370. icon: 'none'
  371. })
  372. }
  373. })
  374. },
  375. //完成订单
  376. complete(item, cId, orderNo) {
  377. this.cId = cId
  378. this.orderNo = orderNo
  379. const now = new Date(+new Date() + 8 * 3600 * 1000);
  380. const isoDateTime = now.toISOString(); // ISO 8601 格式
  381. let nowtime = new Date(isoDateTime.slice(0, 19))
  382. let starttime = new Date(item.startTime) //开始时间
  383. let differenceInMs = nowtime - starttime //剩余时间
  384. let differenceInMinutes = differenceInMs / (1000 * 60);
  385. if (differenceInMinutes > item.cGoods[0].nMinute) {
  386. var id = {
  387. cId: cId,
  388. orderNo: orderNo
  389. }
  390. let that = this
  391. uni.showModal({
  392. title: '提示',
  393. content: '确认服务完成?',
  394. success: function(res) {
  395. if (res.confirm) {
  396. confirmOrder(id).then(res => {
  397. if (res.data.code == 200) {
  398. // this.list =[]
  399. uni.showToast({
  400. title: '已完成',
  401. })
  402. // location.reload(true);
  403. that.$router.go(0)
  404. // this.getList()
  405. } else {
  406. uni.showToast({
  407. title: res.data.msg,
  408. })
  409. // location.reload(true);
  410. // that.$router.go(0)
  411. }
  412. })
  413. }
  414. }
  415. });
  416. } else {
  417. this.isSchedule = true
  418. }
  419. },
  420. //填写提前结束原因
  421. reasonSubmit() {
  422. let data = {}
  423. data.cId = this.cId
  424. data.orderNo = this.orderNo
  425. data.timeoutCause = this.timeoutCause
  426. if (data.timeoutCause == '') {
  427. uni.showToast({
  428. icon: 'none',
  429. title: '请填写提前完成原因',
  430. })
  431. return
  432. } else {
  433. confirm(data).then(res => {
  434. if (res.data.code == 200) {
  435. uni.showToast({
  436. title: '已完成',
  437. })
  438. location.reload(true);
  439. } else {
  440. uni.showToast({
  441. title: res.data.msg,
  442. })
  443. }
  444. })
  445. }
  446. },
  447. getList(page) {
  448. var openid = {
  449. cJsId: this.jsId,
  450. nStatus: this.nStatus,
  451. current: page.num,
  452. size: page.size,
  453. }
  454. orderDeatails(openid).then(res => {
  455. var charToRemove = "T";
  456. res.data.data.records.forEach(element => {
  457. element.dtCreateTime = element.dtCreateTime.replace(charToRemove, ' ')
  458. });
  459. this.mescroll.endSuccess(res.data.data.records.length);
  460. this.list = this.list.concat(res.data.data.records)
  461. })
  462. },
  463. statusTap(code, index) {
  464. this.checkedIndex = index,
  465. this.list = []
  466. this.nStatus = code
  467. // this.getList()
  468. this.mescroll.resetUpScroll()
  469. },
  470. getStatus() {
  471. statusList().then(res => {
  472. this.status = res.data.data,
  473. this.nStatus = ''
  474. })
  475. },
  476. goDetails(cId) {
  477. uni.navigateTo({
  478. // url: '../../order/detail/detail?name=商户订单&cid=' + e.currentTarget.dataset.id,
  479. url: '../order/order_detail?name=商户订单&cid=' + cId
  480. })
  481. },
  482. getInfo() {
  483. getInfo().then(res => {
  484. this.money = res.data.data.dBalance
  485. })
  486. },
  487. // 商户详情
  488. getDetails() {
  489. var that = this
  490. var openid = {
  491. cOpenId: uni.getStorageSync('wx_copenid')
  492. }
  493. engineDetail(openid).then(res => {
  494. this.jsId = res.data.data.id
  495. this.getStatus();
  496. })
  497. },
  498. },
  499. mounted() {
  500. // 在页面加载时获取Token,可以从本地缓存中获取
  501. this.token = uni.getStorageSync('access-token'); // 假设token保存在本地缓存中
  502. this.mescroll.optDown.use = false
  503. },
  504. computed: {
  505. header() {
  506. return {
  507. Authorization: `tf: ${this.token}`, // 携带Token的请求头
  508. };
  509. },
  510. },
  511. onLoad() {
  512. this.checkedIndex = 0
  513. this.getInfo()
  514. this.getDetails()
  515. this.mescroll.resetUpScroll()
  516. }
  517. }
  518. </script>
  519. <style lang="scss" scoped>
  520. /* pages/order/order.wxss */
  521. .order {
  522. background-color: rgb(248, 248, 248);
  523. width: 100vw;
  524. height: 100vh;
  525. display: flex;
  526. flex-direction: column;
  527. position: fixed;
  528. .arrive {
  529. width: 100%;
  530. height: 100%;
  531. background-color: rgba(0, 0, 0, 0.5);
  532. position: fixed;
  533. top: 0;
  534. display: flex;
  535. justify-content: center;
  536. align-items: center;
  537. .photo_box {
  538. width: 630rpx;
  539. // height: 652rpx;
  540. background-color: #fff;
  541. // padding: 50rpx;
  542. box-sizing: border-box;
  543. display: flex;
  544. flex-direction: column;
  545. border-radius: 24rpx;
  546. overflow: hidden;
  547. .title {
  548. width: 100%;
  549. height: 92rpx;
  550. background: #E6F8F7;
  551. display: flex;
  552. justify-content: center;
  553. align-items: center;
  554. }
  555. .photo {
  556. width: 100%;
  557. flex: 1;
  558. overflow: hidden;
  559. padding: 40rpx 32rpx;
  560. box-sizing: border-box;
  561. .small_title {
  562. width: 100%;
  563. font-size: 28rpx;
  564. text-align: center;
  565. }
  566. .textarea {
  567. width: 566rpx;
  568. height: 292rpx;
  569. background: #F8F8F8;
  570. border-radius: 16rpx;
  571. padding: 20rpx 24rpx;
  572. box-sizing: border-box;
  573. margin-top: 32rpx;
  574. font-size: 26rpx;
  575. }
  576. .upload_box {
  577. width: 100%;
  578. display: flex;
  579. justify-content: center;
  580. align-items: center;
  581. margin-top: 32rpx;
  582. // margin-bottom: 40rpx;
  583. }
  584. }
  585. .btn_box {
  586. width: 100%;
  587. height: 116rpx;
  588. background: #FFFFFF;
  589. display: flex;
  590. align-items: center;
  591. justify-content: space-around;
  592. border-top: 2rpx solid #EEEEEE;
  593. .btn {
  594. width: 225rpx;
  595. height: 68rpx;
  596. // height: 100%;
  597. display: flex;
  598. justify-content: center;
  599. align-items: center;
  600. background: linear-gradient(90deg, #1AD7CE 0%, #21C9C1 100%);
  601. border-radius: 44rpx;
  602. color: #fff;
  603. }
  604. .cancel {
  605. width: 225rpx;
  606. height: 68rpx;
  607. border-radius: 106rpx;
  608. border: 2rpx solid #BBBBBB;
  609. display: flex;
  610. justify-content: center;
  611. align-items: center;
  612. }
  613. }
  614. }
  615. }
  616. }
  617. .refuse_popup {
  618. width: 100%;
  619. height: 100%;
  620. position: fixed;
  621. top: 0;
  622. left: 0;
  623. background-color: rgba(0, 0, 0, 0.5);
  624. display: flex;
  625. justify-content: center;
  626. .histroy {
  627. width: 70%;
  628. height: 160px;
  629. margin-top: 500rpx;
  630. background-color: #fff;
  631. border-radius: 10px;
  632. padding: 20px;
  633. box-sizing: border-box;
  634. .title {
  635. width: 100%;
  636. // padding: 10px ;
  637. text-align: center;
  638. box-sizing: border-box;
  639. margin-bottom: 50rpx;
  640. }
  641. .content {
  642. margin-bottom: 20px;
  643. input {
  644. display: block;
  645. border-bottom: 1px solid #ccc;
  646. }
  647. }
  648. .btn_box {
  649. width: 100%;
  650. display: flex;
  651. justify-content: space-around;
  652. .btn {
  653. width: 30%;
  654. height: 30px;
  655. background-color: #c8c9cc;
  656. text-align: center;
  657. line-height: 30px;
  658. border-radius: 5px;
  659. }
  660. .success {
  661. background: linear-gradient(to right, #35c99d, #27aea7);
  662. color: #fff;
  663. }
  664. }
  665. }
  666. }
  667. .orderStatus {
  668. width: 100%;
  669. height: 90rpx;
  670. display: flex;
  671. justify-content: space-around;
  672. align-items: center;
  673. font-size: 30rpx;
  674. // padding: 20rpx 0;
  675. box-sizing: border-box;
  676. z-index: 999;
  677. background: radial-gradient(circle, #fcfdff, #fcfdff);
  678. view {
  679. padding: 0px 10rpx;
  680. background-color: #fff;
  681. box-sizing: border-box;
  682. padding-bottom: 12rpx;
  683. // border-radius: 8rpx;
  684. }
  685. .active {
  686. font-size: 30rpx;
  687. color: #03C8BE;
  688. font-weight: 400;
  689. // background-color: #2cb7d4;
  690. border-bottom: 1px solid #03C8BE;
  691. }
  692. }
  693. .list {
  694. flex: 1;
  695. overflow-y: auto;
  696. background: linear-gradient(180deg, #C1FFF8 0%, #B8FFF3 34%, #F5FFFF 100%);
  697. padding: 32rpx;
  698. box-sizing: border-box;
  699. .item {
  700. // margin: 0 20rpx;
  701. width: 100%;
  702. // height: 292rpx;
  703. padding: 24rpx 32rpx;
  704. margin-bottom: 10rpx;
  705. font-size: 28rpx;
  706. margin-bottom: 28rpx;
  707. box-sizing: border-box;
  708. background: #FFFFFF;
  709. box-shadow: 0px 4px 12px 0px rgba(88, 209, 187, 0.1);
  710. border-radius: 24px 24px 24px 24px;
  711. .lTitle {
  712. display: flex;
  713. justify-content: space-between;
  714. border-bottom: 1px solid #eeeeee;
  715. margin-bottom: 10rpx;
  716. padding-bottom: 20rpx;
  717. font-size: 28rpx;
  718. .status {
  719. color: #03C8BE;
  720. }
  721. }
  722. .cont {
  723. color: rgb(162, 162, 162);
  724. font-size: 26rpx;
  725. // display: flex;
  726. // justify-content: space-between;
  727. line-height: 45rpx;
  728. }
  729. .btn {
  730. height: 48rpx;
  731. // text-align: right;
  732. // padding-top: 20rpx;
  733. margin-top: 20rpx;
  734. // margin-bottom: 24rpx;
  735. display: flex;
  736. align-items: center;
  737. justify-content: space-between;
  738. .count_down {
  739. // width: 41%;
  740. // text-align: left;
  741. font-size: 26rpx;
  742. color: #F53E54;
  743. span {
  744. font-size: 20rpx;
  745. }
  746. }
  747. .button {
  748. display: flex;
  749. align-items: center;
  750. .pay {
  751. display: inline-block;
  752. background-color: rgb(46, 188, 215);
  753. color: #fff;
  754. margin-left: 20rpx;
  755. padding: 5rpx 30rpx;
  756. height: 48rpx;
  757. line-height: 48rpx;
  758. background: linear-gradient(135deg, #1AD8CF 0%, #21C8C0 100%);
  759. border-radius: 98rpx 98rpx 98rpx 98rpx;
  760. }
  761. .refuse {
  762. // width: 152rpx;
  763. display: inline-block;
  764. padding: 5rpx 30rpx;
  765. height: 48rpx;
  766. height: 48rpx;
  767. border-radius: 98rpx;
  768. background: linear-gradient(135deg, #FD8997 0%, #ED5769 100%);
  769. color: #fff;
  770. }
  771. }
  772. }
  773. }
  774. }
  775. .nodate {
  776. display: flex;
  777. align-items: center;
  778. justify-content: center;
  779. padding: 200rpx 0;
  780. text-align: center;
  781. image {
  782. width: 300rpx;
  783. margin-bottom: 30rpx;
  784. }
  785. }
  786. </style>