您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

order-details-new.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. <!-- 新办订单-订单详情 -->
  2. <template>
  3. <navBar title="订单详情" navbgClass="nav-bgXin" fontColor='#fff' :scrollTop="scrollTop"></navBar>
  4. <view class="bg-img">
  5. <image :src="`${$imgUrl}order/bg-order.png`" mode="scaleToFill" class="icon"></image>
  6. </view>
  7. <view class="content">
  8. <view class="status">
  9. <text v-if="state.orderInfo.orderStep == 12 && state.reshipment=='1'">补货中</text>
  10. <text
  11. v-if="state.orderInfo.orderStatus == OrderStatus.已取消 && state.orderInfo.remoteStatus=='7'">审核不通过</text>
  12. <text v-else-if="state.orderInfo.orderStep == 35">下单</text>
  13. <text
  14. v-else>{{state.orderInfo.orderStatus == OrderStatus.已取消 ? '已取消' : $util.getOrderStatusName(state.orderInfo.orderStep)}}</text>
  15. </view>
  16. <view>
  17. <text>创建时间:</text>
  18. <text>{{getOrderTime(state.orderInfo.insertTime)}}</text>
  19. </view>
  20. <view class="order">
  21. <view class="num">
  22. <text>订单号:</text>
  23. <text>{{state.orderInfo.orderNo}}</text>
  24. </view>
  25. <view class="name" v-if="$util.getOrderStatusName(state.orderInfo.orderStep)=='已完成'">
  26. <text>付款时间:</text>
  27. <text>{{getOrderTime(state.orderInfo.orderInfoExt?state.orderInfo.orderInfoExt.payTime:"")}}</text>
  28. </view>
  29. <view class="name" v-else>
  30. <text>产品名称:</text>
  31. <text>{{state.orderInfo.productName ?state.orderInfo.productName: ''}}</text>
  32. </view>
  33. </view>
  34. <view class="message" v-if="state.orderInfo.orderInfoExt">
  35. <view class="message-top1">
  36. <view class="msg">
  37. <view class="vehiclePlate">
  38. <text>快递单号:</text>
  39. <text>{{state.orderInfo.orderInfoExt?state.orderInfo.orderInfoExt: ''}}</text>
  40. <image style="width: 36rpx;height: 36rpx;position: relative;top: -4rpx;"
  41. :src="`${$imgUrl}order/copy-template.png`" @click="copy(state.orderInfo.orderInfoExt)">
  42. </image>
  43. </view>
  44. <view>
  45. <text>物流公司:</text>
  46. <text>{{state.orderInfo.orderInfoExt?getCodeName('快递物流公司',state.orderInfo.orderInfoExt.courierCompany): ''}}</text>
  47. </view>
  48. <view>
  49. <text>发货时间:</text>
  50. <text>{{getOrderTime(state.orderInfo.orderInfoExt?state.orderInfo.orderInfoExt.deliveryTime:"")}}</text>
  51. </view>
  52. <view>
  53. <text>收货时间:</text>
  54. <text>{{getOrderTime(state.orderInfo.orderInfoExt?state.orderInfo.orderInfoExt.receivingTime:"")}}</text>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="message" v-if="state.orderInfo.cardId">
  60. <view class="message-top1">
  61. <image :src="`${$imgUrl}order/obu.png`" mode=""></image>
  62. <view class="msg">
  63. <view class="vehiclePlate">
  64. <text>卡号:</text>
  65. <text>{{state.orderInfo.cardId ?state.orderInfo.cardId: ''}}</text>
  66. </view>
  67. <view>
  68. <text>卡状态:</text>
  69. <text class="cardStatus">{{getETCStatusName(state.orderInfo.cardStatus)}}</text>
  70. </view>
  71. <view>
  72. <text>签号:</text>
  73. <text>{{state.orderInfo.obuId ?state.orderInfo.obuId: ''}}</text>
  74. </view>
  75. <view>
  76. <text>签状态:</text>
  77. <text class="cardStatus">{{getOBUStatusName(state.orderInfo.obuStatus)}}</text>
  78. </view>
  79. <view>
  80. <text>激活时间:</text>
  81. <text>{{getOrderTime(state.orderInfo.cardEnableTime)}}</text>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="message">
  87. <view class="message-top">
  88. <image :src="`${$imgUrl}order/car.png`" mode=""></image>
  89. <view class="msg">
  90. <view class="vehiclePlate">
  91. <text>订单车牌:</text>
  92. <text>{{state.orderInfo.vehiclePlate}}</text>
  93. </view>
  94. <view>
  95. <text>所属类型:</text>
  96. <text>{{state.orderInfo.userType === 'UNIT_USER' ? '单位' : '个人'}}</text>
  97. </view>
  98. <view>
  99. <text>车辆类型:</text>
  100. <text>{{getCarTypeName(state.orderInfo.vanType)}}</text>
  101. </view>
  102. <view>
  103. <text>订单金额:</text>
  104. <text
  105. class="amount">¥{{state.orderInfo.amount / 100 ?state.orderInfo.amount / 100: '0.00'}}</text>
  106. </view>
  107. </view>
  108. </view>
  109. <view v-if="state.orderInfo.orderStatus == 'NORMAL'">
  110. <view v-if="state.orderInfo.orderSource !== 'APP'">
  111. <view class="btns">
  112. <view v-if="(state.orderInfo.orderSource == 'WECHAT') && (state.orderInfo.orderStep=='ORDER_INIT'||state.orderInfo.orderStep=='CUSTOMER_UPLOAD')" class="btn btn-primary"
  113. @click.stop="gotoEditUserOrUnitInfo(state.orderInfo)">继续申请</view>
  114. <view v-if="state.orderInfo.orderStep=='VEHICLE_UPLOAD'" class="btn btn-primary"
  115. @click.stop="gotoOrderDetailsPay(state.orderInfo)">支付</view>
  116. <view v-if="state.orderInfo.orderStep=='WAITING_ACTIVE'" class="btn btn-primary" @click.stop="gotoActiveOrder(state.orderInfo)">去激活</view>
  117. <view v-if="state.orderInfo.orderSource == 'WECHAT' && state.orderInfo.orderStep=='WAITING_ACTIVE' && state.orderInfo.shippingStatus == 'RECEIVED'" class="btn btn-primary" @click.stop="gotoReturnOrder(state.orderInfo)">申请退货</view>
  118. <view v-if="state.orderInfo.orderSource == 'WECHAT' && state.orderInfo.orderStep=='WAITING_ACTIVE' && state.orderInfo.shippingStatus == 'RECEIVED'" class="btn btn-primary" @click.stop="gotoExchangeOrder(state.orderInfo)">申请换货</view>
  119. <view v-if="state.orderInfo.orderSource == 'WECHAT' && state.orderInfo.orderStep=='WAITING_RECEIVE' && state.orderInfo.shippingStatus=='WAIT_RECEIVING'"
  120. class="btn btn-primary" @click.stop="gotoConfirmReceipt(state.orderInfo)">确认收货</view>
  121. <view v-if="state.orderInfo.orderSource == 'WECHAT' && (state.orderInfo.orderStep=='WAITING_AUDIT' || state.orderInfo.orderStep=='WAITING_SEND') && state.orderInfo.shippingStatus=='WAIT_SHIPPING'" class="btn btn-primary" @click.stop="gotoEditAddressNew(state.orderInfo)">修改地址</view>
  122. <!--//评价暂不上线
  123. <view v-if="state.orderInfo.orderSource == 'WECHAT' && state.orderInfo.canEvaluate== true" class="btn btn-primary" @click.stop="gotoEvaluateProduct(state.orderInfo)">去评价产品</view>-->
  124. <view v-if="state.orderInfo.orderStep=='ORDER_PAID'" class="btn btn-primary" @click.stop="gotoOrderSign(state.orderInfo)">签约
  125. </view>
  126. <view
  127. v-if="(state.orderInfo.orderSource == 'WECHAT') && (state.orderInfo.orderStep=='ORDER_INIT'||state.orderInfo.orderStep=='CUSTOMER_UPLOAD'||state.orderInfo.orderStep=='VEHICLE_UPLOAD'||state.orderInfo.orderStep=='ORDER_PAID'||state.orderInfo.orderStep=='ORDER_SIGNED'||state.orderInfo.orderStep=='WAITING_AUDIT'||state.orderInfo.orderStep=='AUDIT_FAIL'||state.orderInfo.orderStep=='WAITING_SEND')"
  128. class="btn btn-primary" @click.stop="gotoCancelOrder(state.orderInfo)">取消订单</view>
  129. </view>
  130. </view>
  131. </view>
  132. <view v-if="false" class="btn-view">
  133. <view class="btn-view"
  134. v-if="state.orderInfo.orderStatus == OrderStatus.正常 && state.orderInfo['orderSource'] !='SERVICE_HALL'">
  135. <!-- 信息填写未完成 -->
  136. <view class="btn-status"
  137. v-if="state.orderInfo.orderStep == OrderStatus['完成个人/单位信息上传'] || state.orderInfo.orderStep == OrderStatus.完成填写基本信息 || state.orderInfo.orderStep == OrderStatus.待支付3">
  138. <view class="btn space" @click="gotoCancelOrder(state.orderInfo)">取消订单</view>
  139. <view class="btn-green" @click="gotoEditUserOrUnitInfo(state.orderInfo)">继续申请</view>
  140. </view>
  141. <!-- 审核中/审核不通过 -->
  142. <view
  143. v-if="state.orderInfo.orderStep == OrderStatus.审核不通过 || state.orderInfo.orderStep == OrderStatus.待审核"
  144. class="btn-status">
  145. <view class="btn space" @click="gotoCancelOrder(state.orderInfo)">取消订单</view>
  146. <view class="btn space" @click="gotoEditUserOrUnitInfo(state.orderInfo)"
  147. v-if="state.orderInfo.orderStep == OrderStatus.审核不通过">修改资料</view>
  148. <!-- <view class="btn space" v-if="state.orderInfo.orderStep == OrderStatus.审核不通过"
  149. @click="gotoEditUserOrUnitInfo(state.orderInfo)">修改资料</view> -->
  150. <view class="btn-green" @click="gotoEditAddress(state.orderInfo)">修改地址</view>
  151. </view>
  152. <!-- 待支付 -->
  153. <view
  154. v-if="state.orderInfo.orderStep == OrderStatus['完成车辆信息上传/待支付'] || state.orderInfo.orderStep == OrderStatus.待支付2 "
  155. class="btn-status">
  156. <view class="btn space" @click="gotoCancelOrder(state.orderInfo)">取消订单</view>
  157. <view class="btn-green width-num-1" @click="gotoOrderDetailsPay(state.orderInfo)">支付</view>
  158. </view>
  159. <!-- 待签约-->
  160. <view v-if="state.orderInfo.orderStep == OrderStatus['已支付/待签约']" class="btn-status">
  161. <view class="btn space" @click="gotoCancelOrder(state.orderInfo)">取消订单</view>
  162. <view class="btn-green" @click="gotoOrderSign(state.orderInfo)">去签约</view>
  163. </view>
  164. <!-- 待发货 -->
  165. <view v-if="state.orderInfo.orderStep == OrderStatus.待发货" class="btn-status">
  166. <view class="btn space" @click="gotoCancelOrder(state.orderInfo)">取消订单</view>
  167. <view class="btn-green" @click="gotoEditAddress(state.orderInfo)">修改地址</view>
  168. </view>
  169. <!-- 待收货 -->
  170. <view v-if="state.orderInfo.orderStep == OrderStatus.待收货" class="btn-status">
  171. <!-- <view class="btn space" @click="gotoOrderDetails(state.orderInfo)">查看物流</view> -->
  172. <view class="btn space" @click.stop="gotoReplenishmentOrder(state.orderInfo)"
  173. v-if="state.orderInfo.deviceType == deviceType">申请补货</view>
  174. <view class="btn space" @click="gotoReturnOrder(state.orderInfo)" v-else>申请退货</view>
  175. <view class="btn-green space" @click="gotoConfirmReceipt(state.orderInfo)">确认收货</view>
  176. <view class="btn-green" @click.stop="closeOrder(state.orderInfo)"
  177. v-if="state.orderInfo.finishOrder">结束订单</view>
  178. </view>
  179. <!-- 待激活 -->
  180. <!-- 确认收货之后可以退换补 异地 -->
  181. <view v-if="state.orderInfo.orderStep == OrderStatus.待激活" class="btn-status">
  182. <!-- <view class="btn space" @click="gotoReturnOrder(state.orderInfo)"
  183. v-if="state.orderInfo.applyReturn || state.orderInfo.deviceType == deviceType">申请退货</view> -->
  184. <view class="btn space" @click="gotoReturnOrder(state.orderInfo)" v-if="state.orderInfo.shippingStatus == 'RECEIVED'">申请退货</view>
  185. <view class="btn space" @click="gotoExchangeOrder(state.orderInfo)" v-if="state.orderInfo.shippingStatus == 'RECEIVED'">申请换货</view>
  186. <view class="btn space" @click.stop="gotoReplenishmentOrder(state.orderInfo)"
  187. v-if="state.orderInfo.deviceType == deviceType">申请补货</view>
  188. <view class="btn-green space" @click="gotoActiveOrder(state.orderInfo)">去激活</view>
  189. <view class="btn-green" @click.stop="closeOrder(state.orderInfo)"
  190. v-if="state.orderInfo.finishOrder">结束订单</view>
  191. </view>
  192. <!-- 订单已结束 -->
  193. <view v-if="state.orderInfo.orderStep == OrderStatus.已结束 && state.orderInfo.isUseAgain"
  194. class="btn-status">
  195. <view class="btn-green" @click.stop="gotoAgainUseOrder(state.orderInfo)">再次使用订单</view>
  196. </view>
  197. <!-- 异地-邮寄地址填写 -->
  198. <view
  199. v-if="state.orderInfo.orderStep == OrderStatus.邮寄地址填写 && state.orderInfo.deviceType==deviceType"
  200. class="btn-status">
  201. <view class="btn-green" @click.stop="gotoAddressOrder(state.orderInfo)">邮寄地址填写</view>
  202. </view>
  203. <!-- 异地开始 -->
  204. <view v-if="state.orderInfo.orderStep == 31" class="btn-status">
  205. <view class="btn btn-green" @click="gotoReturnOrder(state.orderInfo)">退货</view>
  206. </view>
  207. <view v-if="state.orderInfo.orderStep == 33" class="btn-status">
  208. <view class="btn btn-green" @click="gotoExchangeOrder(state.orderInfo)"
  209. v-if="state.orderInfo.orderType!='REPLENISHMENT'">换货</view>
  210. </view>
  211. <view v-if="state.orderInfo.orderStep == 35" class="btn-status">
  212. <view class="btn btn-green" @click="placeAnOrder(state.orderInfo)">下单</view>
  213. </view>
  214. <!-- 异地结束-->
  215. <!-- 订单完成 -->
  216. <view v-if="state.isWeiXin==1">
  217. <view
  218. v-if="state.orderInfo.orderStep == OrderStatus.已完成 && (state.orderInfo.orderType =='ISSUE' || state.orderInfo.orderType =='VALUE_TO_ACCOUNT')"
  219. class="btn-status">
  220. <view class="btn space"
  221. v-if="( state.orderInfo.isProduct==1 && state.orderInfo.isService==1) ">
  222. 已评价</view>
  223. <view class="btn-green" v-else @click.stop="gotoEvaluateProduct(state.orderInfo)">去评价产品
  224. </view>
  225. </view>
  226. </view>
  227. <view v-if="state.isWeiXin==2">
  228. <view class="btn-status" v-if="state.orderInfo.orderStep == OrderStatus.已完成">
  229. <view class="btn space" v-if="state.orderInfo.isStaff==1 && state.orderInfo.isProduct==1">
  230. 已评价
  231. </view>
  232. <view class='evaluation' v-else>
  233. <view class="btn-green" @click.stop="gotoEvaluateSalesman(state.orderInfo)">去评价
  234. </view>
  235. </view>
  236. </view>
  237. </view>
  238. </view>
  239. <view v-else>
  240. <!-- 待激活 -->
  241. <view class="btn-status" style="display: flex;justify-content: flex-end;"
  242. v-if="state.orderInfo.orderStep == OrderStatus.待激活 && state.orderInfo.cardId && state.orderInfo.obuId">
  243. <view class="btn btn-green" @click.stop="gotoActiveOrder(state.orderInfo)"
  244. style="border: 1px solid #00B38B;">去激活</view>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. </view>
  250. <!-- 弹窗 -->
  251. <u-popup v-model="state.showActiveOrder" mode="center">
  252. <popup-active-order content="确认是否重新激活订单" @cancel="state.showActiveOrder = false"
  253. @confirm="toActiveOrder"></popup-active-order>
  254. </u-popup>
  255. </template>
  256. <script setup lang="ts">
  257. import popupActiveOrder from "@/pages/order/components/popup-active-order.vue";
  258. import { reactive, ref } from "vue";
  259. import { onLoad, onUnload, onShow, onPageScroll } from "@dcloudio/uni-app";
  260. import { requestNew } from "@/utils/network/request";
  261. import { updateShippingAddress, orderDetailQuery } from "@/utils/network/api";
  262. import useOrderSkip from "@/composables/order/useOrderSkip";
  263. import { getETCStatusName, getOBUStatusName, msg, getOrderTypeName, getCarTypeName, getOrderTime, isBlank, timesDiff } from "@/utils/utils";
  264. import { OrderStatus } from "@/datas/enum";
  265. import { deviceType } from "@/utils/network/difference";
  266. import navBar from "@/components/nav-bar/nav-bar2.vue";
  267. import {
  268. getCodeName
  269. } from "@/datas/queryKey.js";
  270. import {
  271. setItem,
  272. getItem,
  273. } from "@/utils/storage";
  274. const state = reactive({
  275. orderInfo: {
  276. orderInfoExt: {}
  277. } as any, //订单信息
  278. showActiveOrder: false, //激活弹窗
  279. isWeiXin: 1, //1 微信 2 app
  280. appraise: "",
  281. id: "",
  282. reshipment: "",//异地补货
  283. });
  284. const scrollTop = ref(0); //滚动距离
  285. //监听页面滚动
  286. onPageScroll((e) => {
  287. scrollTop.value = e.scrollTop;
  288. });
  289. //按钮跳转业务逻辑
  290. const { gotoEditAddress, gotoCancelOrder, gotoEditUserOrUnitInfo,
  291. gotoConfirmReceipt, gotoCheckLogistics, gotoEvaluateProduct,gotoEditAddressNew,
  292. gotoActiveOrder, gotoReturnOrder, gotoExchangeOrder, gotoOrderSign, gotoOrderDetailsPay, gotoEvaluateSalesman, closeOrder, gotoAgainUseOrder, gotoAddressOrder, placeAnOrder, gotoReplenishmentOrder, gotoOrderDetails } = useOrderSkip();
  293. //获取订单详情
  294. const getOrderDetails = (id, appraise) => {
  295. const options = {
  296. type: 2,
  297. data: { "orderNo": id },
  298. method: 'POST',
  299. showLoading: true,
  300. }
  301. requestNew(orderDetailQuery, options).then((res) => {
  302. state.orderInfo = res.data;
  303. console.log("state.orderInfo", state.orderInfo)
  304. // 订单发货后未激活 30天 以后 结束订单功能 insertTime >30 算出来距离今天是负数 updateTime<30(结束订单)
  305. for (var i in state.orderInfo) {
  306. if (state.orderInfo['insertTime']) {
  307. if (timesDiff(state.orderInfo['insertTime'].replace("T", " ")).days > 30) {
  308. state.orderInfo['finishOrder'] = true //可以结束
  309. } else {
  310. state.orderInfo['finishOrder'] = false //不可以结束
  311. }
  312. }
  313. if (state.orderInfo['updateTime']) {
  314. if (timesDiff(state.orderInfo['updateTime'].replace("T", " ")).days <= 30) {
  315. state.orderInfo['isUseAgain'] = true //可以结束
  316. } else {
  317. state.orderInfo['isUseAgain'] = false //不可以结束
  318. }
  319. }
  320. // 收货日期超过7个自然日不允许申请退货
  321. if (state.orderInfo.orderInfoExt['receivingTime']) {
  322. if (timesDiff(state.orderInfo.orderInfoExt['receivingTime'].replace("T", " ")).days > 7) {
  323. state.orderInfo['applyReturn'] = false //不展示申请退货
  324. } else {
  325. state.orderInfo['applyReturn'] = true //展示申请退货
  326. }
  327. }
  328. }
  329. console.log("获取订单详情", state.orderInfo, state.orderInfo['applyReturn'])
  330. })
  331. }
  332. //修改订单收货地址
  333. const requestEditOrderAddr = (addr) => {
  334. console.log("addr", addr)
  335. const options = {
  336. type: 2, data: {
  337. "id": state.orderInfo.id,
  338. 'consignee': addr.consignee,
  339. 'consigneeTel': addr.consigneeTel,
  340. 'region': addr.region,
  341. 'address': addr.address,
  342. 'postalCode': addr.postalCode,
  343. 'orderId': state.orderInfo.orderNo,
  344. },
  345. method: 'POST',
  346. showLoading: true,
  347. }
  348. requestNew(updateShippingAddress, options).then((res) => {
  349. state.orderInfo.orderInfoExt.id = addr.id,
  350. state.orderInfo.orderInfoExt.consignee = addr.consignee;
  351. state.orderInfo.orderInfoExt.consigneeTel = addr.consigneeTel;
  352. state.orderInfo.orderInfoExt.region = addr.region;
  353. state.orderInfo.orderInfoExt.address = addr.address;
  354. state.orderInfo.orderInfoExt.postalCode = addr.postalCode;
  355. setTimeout(() => {
  356. msg('收货地址修改成功');
  357. }, 1000)
  358. })
  359. }
  360. //激活订单
  361. const toActiveOrder = () => {
  362. gotoActiveOrder(state.orderInfo);
  363. state.showActiveOrder = false;
  364. }
  365. //是否有售后信息
  366. const isHaveAfterSaleInfo = () => {
  367. if (isBlank(state.orderInfo.orderInfoExt ? state.orderInfo.orderInfoExt.returnMode : null) && isBlank(state.orderInfo.orderInfoExt ? state.orderInfo.orderInfoExt.exchangeMode : null)) {
  368. return false;
  369. }
  370. return true;
  371. }
  372. onLoad((options) => {
  373. state.isWeiXin = options.isWeiXin
  374. state.reshipment = options.reshipment
  375. console.log("options.reshipment", options.reshipment)
  376. // state.orderInfo = JSON.parse(options.passData);
  377. state.orderInfo = getItem("orderListData");
  378. //刷新订单信息
  379. uni.$on('refreshOrder', (data) => {
  380. getOrderDetails(options.id, state.orderInfo.appraise);
  381. });
  382. //修改收货地址
  383. uni.$on('selectAddressSuccess', (addr) => {
  384. requestEditOrderAddr(addr);
  385. });
  386. console.log("optionssdsfd", options)
  387. state.id = options.id
  388. state.appraise = options.appraise
  389. })
  390. onShow(() => {
  391. // getOrderDetails(state.id, state.appraise);
  392. })
  393. onUnload(() => {
  394. uni.$off('refreshOrder');
  395. uni.$off('selectAddressSuccess');
  396. console.log("已评价")
  397. })
  398. const copy = (value) => {
  399. uni.setClipboardData({
  400. data: value,
  401. success(res) {
  402. }
  403. })
  404. }
  405. </script>
  406. <style>
  407. page {
  408. background: #E9EDF0;
  409. padding-bottom: 30rpx;
  410. font-size: 28rpx;
  411. }
  412. </style>
  413. <style lang="scss" scoped>
  414. .bg-img {
  415. width: 100%;
  416. position: absolute;
  417. z-index: 0;
  418. .icon {
  419. width: 100%;
  420. height: 534rpx;
  421. }
  422. }
  423. .content {
  424. position: relative;
  425. color: white;
  426. padding: 0 30rpx;
  427. padding-top: 200rpx;
  428. }
  429. .status>text {
  430. font-weight: bold;
  431. font-size: 40rpx;
  432. line-height: 82rpx;
  433. }
  434. .order {
  435. height: 136rpx;
  436. background: linear-gradient(to bottom, rgb(188, 195, 205), #ffffff);
  437. ;
  438. border-radius: 12rpx 12rpx 12rpx 12rpx;
  439. border: 1rpx solid #FFFFFF;
  440. color: black;
  441. font-weight: 400;
  442. font-size: 30rpx;
  443. margin-top: 80rpx;
  444. padding: 20rpx;
  445. box-sizing: border-box;
  446. }
  447. .order>.num {
  448. color: #111111;
  449. }
  450. .order>.name {
  451. color: #666666;
  452. margin-top: 10rpx;
  453. }
  454. .message {
  455. background: white;
  456. border-radius: 12rpx 12rpx 12rpx 12rpx;
  457. border: 1rpx solid #FFFFFF;
  458. color: #666666;
  459. margin-top: 30rpx;
  460. padding: 20rpx 20rpx 0 20rpx;
  461. }
  462. .message image {
  463. width: 200rpx;
  464. height: 200rpx;
  465. margin-right: 20rpx;
  466. }
  467. .message-top1 {
  468. display: flex;
  469. padding-bottom: 20rpx;
  470. align-items: center;
  471. }
  472. .message-top1>.msg>view {
  473. line-height: 50rpx;
  474. }
  475. .message-top {
  476. display: flex;
  477. border-bottom: 2rpx solid #E6E9EB;
  478. padding-bottom: 20rpx;
  479. }
  480. .vehiclePlate {
  481. font-weight: 400;
  482. font-size: 30rpx;
  483. color: #111111;
  484. }
  485. .amount {
  486. color: #E8C66A;
  487. }
  488. .msg {
  489. display: flex;
  490. flex-direction: column;
  491. justify-content: space-between;
  492. }
  493. .btn-view {
  494. .btn-status {
  495. display: flex;
  496. justify-content: flex-end;
  497. padding: 20rpx 0;
  498. border-top: 1rpx solid #DCDCDC;
  499. }
  500. .space {
  501. margin-right: 19rpx
  502. }
  503. .btn {
  504. border: 1px solid #133850;
  505. color: #133850;
  506. border-radius: 30rpx;
  507. font-size: 24rpx;
  508. height: 52rpx;
  509. width: 130rpx;
  510. display: flex;
  511. justify-content: center;
  512. align-items: center;
  513. }
  514. .btn-green {
  515. color: white;
  516. background-color: #133850;
  517. border-radius: 30rpx;
  518. height: 52rpx;
  519. padding: 2rpx 22rpx;
  520. display: flex;
  521. justify-content: center;
  522. align-items: center;
  523. font-size: 24rpx;
  524. }
  525. .width-num-1 {
  526. width: 115rpx;
  527. }
  528. .width-num-2 {
  529. width: 221rpx;
  530. }
  531. .width-num-3 {
  532. width: 201rpx;
  533. }
  534. }
  535. .cardStatus {
  536. color: #3CCA7C;
  537. }
  538. .btns {
  539. position: relative;
  540. display: flex;
  541. align-items: center;
  542. justify-content: flex-end;
  543. border-top: 1px solid #dcdcdc;
  544. margin: 0 30rpx;
  545. padding: 20rpx 0;
  546. }
  547. .btn {
  548. height: 60rpx;
  549. line-height: 58rpx;
  550. border-radius: 30rpx;
  551. padding: 0 24rpx;
  552. font-size: 23rpx;
  553. box-sizing: border-box;
  554. margin-right: 12rpx;
  555. }
  556. .btns .btn:last-child {
  557. margin: 0;
  558. }
  559. .btns .state {
  560. position: absolute;
  561. left: 0;
  562. font-size: 26rpx;
  563. font-family: Noto Sans S Chinese;
  564. font-weight: 400;
  565. color: #999999;
  566. line-height: 58rpx;
  567. text {
  568. font-size: 26rpx;
  569. font-family: Noto Sans S Chinese;
  570. font-weight: 400;
  571. color: #00B38B;
  572. line-height: 58rpx;
  573. }
  574. }
  575. .btn-primary {
  576. color: white;
  577. background-color: #133850;
  578. }
  579. </style>