orderDetail.vue 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737
  1. <template>
  2. <view>
  3. <!-- <sjs src="../../../utils/formatFuc.sjs" module="utils" /> -->
  4. <view class="container">
  5. <!-- 未支付 -->
  6. <view class="not-pay-module" v-if="payOverTime > 0">
  7. <view class="pay-amount">
  8. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-order-wallet.png">
  9. </image>
  10. <view>
  11. 待支付,剩余
  12. <text>{{ utils.formatOverTime(payOverTime) }}</text>
  13. </view>
  14. </view>
  15. <view class="over-time">超过30分钟未支付,订单将自动取消</view>
  16. <view class="pay-now" @tap.stop.prevent="payOrder" :data-id="orderInfo.id" :data-sn="orderInfo.orderSn"
  17. v-if="orderInfo.handleOption.pay">立即支付</view>
  18. </view>
  19. <!-- 卡片 -->
  20. <!-- <view class="top-card" :tt-if="orderInfo.orderStatusVal != '未支付' && orderInfo.orderStatusVal != '已取消'">
  21. <view class="top-name">{{ orderInfo.goodsName }}</view>
  22. <view class="top-times">
  23. <view class="top-sku-name">{{ orderInfo.skuName }}</view>
  24. <view>
  25. 剩余
  26. <text>{{ remainTimes }}</text>
  27. </view>
  28. <view class="serviced-times">
  29. 已服务
  30. <text>{{ orderInfo.servedTimes }}</text>
  31. </view>
  32. </view>
  33. <view class="top-tips">预约后,将为您上门服务,详情请咨询客服。</view>
  34. <view class="appoint-tag" @tap="goAppoint" v-if="orderInfo.handleOption.book">预约服务</view>
  35. </view> -->
  36. <view class="top-new" v-if="orderInfo.orderStatusVal != '未支付'">
  37. <image mode="aspectFit" class="top-bg-img"
  38. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/detail-bg-01.png"></image>
  39. <image mode="aspectFit" class="top-bg-img2"
  40. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/detail-bg-02.png"></image>
  41. <view class="status-val">{{orderInfo.orderStatusVal}}</view>
  42. <view class="status-tips" v-if="orderInfo.orderStatusVal == '服务中'">服务预约成功,等待上门…</view>
  43. <view class="status-tips" v-else-if="orderInfo.orderStatusVal == '服务已完成'||orderInfo.orderStatusVal == '已取消'">期望下次为您提供更优质的服务!</view>
  44. <view class="status-tips" v-else>如有任何问题,请及时联系我们!</view>
  45. <!-- 未付款 如有任何问题,请及时联系我们!
  46. 用户取消 期望下次为您提供更优质的服务!
  47. 系统取消 期望下次为您提供更优质的服务!
  48. 已取消(管理员) 期望下次为您提供更优质的服务!
  49. 已付款 如有任何问题,请及时联系我们!
  50. 申请退款 如有任何问题,请及时联系我们!
  51. 已退款 如有任何问题,请及时联系我们 !
  52. 服务中 服务预约成功,等待上门…
  53. 服务已完成 期望下次为您提供更优质的服务!
  54. 服务已完成(系统) 期望下次为您提供更优质的服务! -->
  55. </view>
  56. <!-- 退款工单 -->
  57. <view class="refund-order-module" v-if="afterSale">
  58. <view class="refund-title">
  59. <view class="title-text">退款工单</view>
  60. <view class="title-order">编号:{{ afterSale.afterSn }}</view>
  61. <view class="title-status">{{ afterSale.statusVal }}</view>
  62. </view>
  63. <view class="refund-main">
  64. <view class="row">
  65. <text>申请时间:</text>
  66. {{ afterSale.createTime }}
  67. </view>
  68. <view class="row">
  69. <text>退款时间:</text>
  70. {{ afterSale.refundTime==null?'':afterSale.refundTime }}
  71. </view>
  72. <view class="row">
  73. <text>退款原因:</text>
  74. {{ afterSale.typeVal }}
  75. </view>
  76. <view class="row">
  77. <text>详细原因:</text>
  78. {{ afterSale.reason }}
  79. </view>
  80. </view>
  81. <view class="refuse-remark-wrapper" v-if="afterSale.statusVal == '已拒绝'">
  82. <view class="refuse-remark">
  83. <text>已拒绝:</text>
  84. {{ afterSale.refusalRemark }}
  85. </view>
  86. </view>
  87. <view v-if="afterSale.statu == '1'" class="refund-operate">
  88. <view @tap="cancelRefund">取消退款</view>
  89. </view>
  90. </view>
  91. <!-- 工单列表 -->
  92. <view class="service-list" v-if="dyDetails.length > 0">
  93. <view class="list-title">
  94. <view>预约信息</view>
  95. <view class="list-title-right">
  96. <view>预约券 {{dyDetails.length}}</view>
  97. <image mode="aspectFit" class="arrow-white" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-arrow-white.png">
  98. </view>
  99. </view>
  100. <view class="service-item" v-for="(item, index) in dyDetails" :key="index">
  101. <!-- <view class="service-title">
  102. <view class="sercive-name">服务{{ servciceName(index) }}</view>
  103. <view class="service-id">工单编号:{{ item.id }}</view>
  104. <view class="service-status">{{ item.statusVal }}</view>
  105. </view> -->
  106. <view class="service-title-new">
  107. <view class="title-text">
  108. <view>预约时间</view>
  109. <view class="service-status">{{ item.statusVal }}</view>
  110. </view>
  111. <view class="main-text">
  112. {{ item.bookTime }}
  113. </view>
  114. </view>
  115. <view class="service-main">
  116. <view class="customer-info">
  117. <!-- <image mode="aspectFit"
  118. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-order-map.png"></image> -->
  119. <view class="title-text">
  120. <view>上门信息</view>
  121. </view>
  122. <view class="customer-main">
  123. <view class="customer-address main-text">{{ item.serviceAddress }}</view>
  124. <view class="main-line main-text">
  125. <view>{{ item.customerName }}</view>
  126. <view class="phone">{{ item.customerPhone }}</view>
  127. </view>
  128. </view>
  129. </view>
  130. <!-- <view class="row">
  131. <text>上门时段:</text>
  132. {{ item.bookTime }}
  133. </view> -->
  134. <!-- <view class="row">
  135. <text>预约备注:</text>
  136. {{ item.customerRemark }}
  137. </view> -->
  138. </view>
  139. <view class="service-remark-new">
  140. <view class="title-text">
  141. 预约备注
  142. </view>
  143. <view class="remark-text">
  144. {{ item.customerRemark }}
  145. </view>
  146. </view>
  147. <view class="service-remark-wrapper">
  148. <view class="service-store" style="margin-bottom:10rpx;">
  149. <view class="store-left">
  150. <view>工单编号</view>
  151. </view>
  152. <view class="store-right" >
  153. <view>
  154. {{ item.id }}
  155. </view>
  156. <view @tap="copyOrder" class="copy-text" :data-id="item.id">复制</view>
  157. <!-- <image mode="aspectFit" class="copy-img"
  158. src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-order-copy.png" @tap="copyOrder"></image> -->
  159. </view>
  160. </view>
  161. <view class="service-store">
  162. <view class="store-left">
  163. <!-- <image mode="aspectFit"
  164. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-store.png"></image> -->
  165. <view>核销门店</view>
  166. </view>
  167. <view class="store-right">
  168. <view>{{ item.fraShopName }}</view>
  169. <image mode="aspectFit" @tap="makeStorePhone" :data-phone="item.shopPhone"
  170. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-phone-new.png"></image>
  171. </view>
  172. </view>
  173. <!-- -->
  174. <!-- <view class="service-remark" v-if="item.reminder">
  175. <text>提醒:</text>
  176. {{ item.reminder }}
  177. </view> -->
  178. </view>
  179. <view v-if="item.ticketVo" class="ticket">
  180. <view class="title">
  181. <view style="font-weight: 600">售后进度</view>
  182. <view class="comment" @tap="showTicketTips" :data-id="item.ticketVo.ticketId"
  183. v-if="item.ticketVo.isSatisfaction">评价售后</view>
  184. </view>
  185. <view class="timeline">
  186. <block v-for="(action, index1) in item.ticketVo.actions" :key="index1">
  187. <view class="timeline-event">
  188. <view
  189. :style="index == 0 ? 'background-color: #09afff' : 'background-color: rgb(193 194 195)'"
  190. class="timeline-marker"></view>
  191. <!-- <view wx:else style="background-color: rgb(193 194 195);border-radius: 50%; height: 15px;width: 15px;"></view> -->
  192. <view class="timeline-event-copy">
  193. <view class="timeline-event-thumbnail">
  194. <text
  195. :class="index == 0 ? '' : 'timeline-text'">状态:{{ action.status }}</text>
  196. <text class="timeline-text">{{ action.createTime }}</text>
  197. </view>
  198. <view class="timeline-event-content">
  199. <text class="timeline-text">{{ action.content }}</text>
  200. </view>
  201. </view>
  202. </view>
  203. </block>
  204. </view>
  205. </view>
  206. <view class="service-operate" v-if="item.status == 1 || item.status == 7 || item.acceptanceAble">
  207. <view v-if="item.status == 1 || item.status == 7" @tap="goEditAppoint" :data-id="item.id"
  208. :data-status="item.status" :data-time="item.bookTime">
  209. 修改预约
  210. </view>
  211. <!-- v-if="item.isCancel" @tap="goCancelBook"-->
  212. <view class="cancel-color" :data-id="item.id" v-if="item.isCancel" @tap="goCancelBook"
  213. :data-phone="item.shopPhone">取消预约</view>
  214. <view v-if="item.acceptanceAble" @tap="goReVisit" :data-id="item.id">服务验收</view>
  215. <!-- <view wx:if="{{item.acceptanceAble}}" bindtap="goComplain" data-id="{{item.id}}" data-phone="{{item.shopPhone}}">投诉建议</view> -->
  216. </view>
  217. </view>
  218. </view>
  219. <!-- 商品和订单信息 -->
  220. <view class="product-block">
  221. <view class="product-detail">
  222. <view class="profuct-info">
  223. <image mode="aspectFit" class="product-img" :src="orderInfo.picUrl"></image>
  224. <view class="info-right">
  225. <view class="info-main">
  226. <view class="product-name">{{ orderInfo.goodsName }}</view>
  227. </view>
  228. <view class="sku-name" v-if="orderInfo.increaseSumPrice">
  229. <view>加购: {{ orderInfo.unitDescribe }}*{{ orderInfo.unitIncreaseNumber }}</view>
  230. <view>¥{{ orderInfo.increaseSumPrice }}</view>
  231. </view>
  232. <view class="sku-name">规格:{{ orderInfo.skuName }}</view>
  233. <view class="other-info">
  234. 服务{{ orderInfo.serviceTimes }}次
  235. <view class="price">
  236. ¥
  237. <text style="font-size: 28rpx">{{ orderInfo.actualPrice }}</text>
  238. </view>
  239. </view>
  240. </view>
  241. </view>
  242. </view>
  243. <!-- 过期退,随时退 -->
  244. <view v-if="payOverTime > 0" class="refund-tips-bar">
  245. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-checkred.png">
  246. </image>
  247. <view>过期退</view>
  248. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-checkred.png">
  249. </image>
  250. <view>随时退</view>
  251. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-checkred.png">
  252. </image>
  253. <view>0费用</view>
  254. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-checkred.png">
  255. </image>
  256. <view>全国百城连锁</view>
  257. </view>
  258. </view>
  259. <view class="order-info">
  260. <view class="order-title">
  261. 订单信息
  262. </view>
  263. <view class="order-top">
  264. <view class="topic">订单编号:</view>
  265. <view class="ordersn-wrapper">
  266. <view>
  267. {{ orderInfo.orderSn }}
  268. </view>
  269. <view class="copy-text" @tap="copyOrder" :data-id="orderInfo.orderSn">复制</view>
  270. <!-- <image mode="aspectFit" class="copy-img"
  271. src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-order-copy.png" @tap="copyOrder" :data-id="orderInfo.orderSn"></image> -->
  272. </view>
  273. </view>
  274. <view class="order-top">
  275. <view class="topic">下单时间:</view>
  276. <view>
  277. {{ orderInfo.createTime }}
  278. </view>
  279. </view>
  280. <view class="order-top">
  281. <view class="topic">支付方式:</view>
  282. <view>
  283. {{ orderInfo.payChannel }}
  284. </view>
  285. </view>
  286. <view class="order-top">
  287. <view class="topic">订单金额:</view>
  288. <view>
  289. {{ orderInfo.orderPrice }}
  290. </view>
  291. </view>
  292. <view class="order-top">
  293. <view class="topic">优惠金额:</view>
  294. <view>
  295. {{ orderInfo.discountPrice }}
  296. </view>
  297. </view>
  298. <view class="order-top">
  299. <view class="topic">实际付款:</view>
  300. <view>
  301. {{ orderInfo.actualPrice }}
  302. </view>
  303. </view>
  304. <!-- <view class="order-bottom">
  305. <view class="order-price">
  306. <view class="topic">订单金额:</view>
  307. <view>¥{{ orderInfo.orderPrice }}</view>
  308. </view>
  309. <view class="coupon-price">
  310. <view class="topic">优惠金额:</view>
  311. <view>¥{{ orderInfo.discountPrice }}</view>
  312. </view>
  313. <view class="real-price">
  314. 实际付款:
  315. <text>¥{{ orderInfo.actualPrice }}</text>
  316. </view>
  317. </view> -->
  318. </view>
  319. <!-- 客户服务 -->
  320. <view class="customer-service">
  321. <view class="title">客户服务</view>
  322. <view class="contact-store" v-if="payOverTime > 0">
  323. <view class="topic">联系门店</view>
  324. <view class="remark">预约、服务信息咨询</view>
  325. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-phone-new.png"
  326. @tap="makeStorePhone" data-phone="4009218987"></image>
  327. </view>
  328. <view class="contact-company">
  329. <view class="topic">总部客服</view>
  330. <view class="remark">订单咨询、投诉建议</view>
  331. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-message-blue.png">
  332. </image>
  333. <button class="contact-btn" open-type="contact">客服</button>
  334. </view>
  335. </view>
  336. <!-- 底部按钮 -->
  337. <view class="fixed-bottom">
  338. <view class="order-operate-wrapper">
  339. <view @tap.stop.prevent="cancelOrder" v-if="orderInfo.handleOption.cancel" :data-id="orderInfo.id"
  340. class="del">取消订单</view>
  341. <view @tap.stop.prevent="revertOrder" :data-id="orderInfo.id" v-if="orderInfo.canReverse"
  342. class="del">取消预约</view>
  343. <view @tap.stop.prevent="aftersaleOrder" :data-id="orderInfo.id"
  344. v-if="orderInfo.handleOption.refund" class="del">售后/退款</view>
  345. <!-- <view data-id="{{orderInfo.id}}" data-sn="{{orderInfo.orderSn}}" data-aid="{{orderInfo.addressId}}"
  346. data-type="{{orderInfo.type}}" wx:if="{{orderInfo.handleOption.book}}" class="eval-btn">评价</view> -->
  347. <view :data-id="orderInfo.id" :data-sn="orderInfo.orderSn" :data-aid="orderInfo.addressId"
  348. :data-type="orderInfo.type" v-if="orderInfo.handleOption.book" class="appoint"
  349. @tap.stop.prevent="goAppoint">
  350. 预约服务
  351. </view>
  352. <view @tap.stop.prevent="payOrder" :data-id="orderInfo.id" :data-sn="orderInfo.orderSn"
  353. v-if="orderInfo.handleOption.pay">立即支付</view>
  354. <view class="btn-rebuy" @tap="buyAgain" :data-id="orderInfo.goodsId"
  355. v-if="orderInfo.handleOption.rebuy">再次购买</view>
  356. </view>
  357. </view>
  358. <!-- <view class="order-main-top">
  359. <view class="order-main-left">
  360. <view class="order-detail-status">
  361. {{orderInfo.orderStatusText}}
  362. </view>
  363. <view class="order-detail-des">
  364. 服务中有任何问题 请联系客服哦
  365. </view>
  366. </view>
  367. <view class="order-main-right">
  368. <view class="service-times">
  369. <text class="current-times">{{orderInfo.servicedTimes}}</text>/{{orderInfo.serviceTimes}}
  370. </view>
  371. <view class="view-service" wx:if="{{!(orderInfo.orderStatus==101||orderInfo.orderStatus==102||orderInfo.orderStatus==103)}}" bindtap="viewService">
  372. 查看服务
  373. </view>
  374. </view>
  375. </view>
  376. <view class="order-info">
  377. <view class="item">下单时间:{{orderInfo.addTime}}</view>
  378. <view class="item">订单编号:{{orderInfo.orderSn}}</view>
  379. <view class="item">订单留言:{{orderInfo.message}}</view>
  380. <view class="item-c">
  381. <view class="l">实付:
  382. <text class="cost">¥{{orderInfo.actualPrice}}</text>
  383. </view>
  384. <view class="r" wx:if="{{orderType!=1}}">
  385. <view class="btn active" bindtap="cancelOrder" wx:if="{{handleOption.cancel}}">取消订单</view>
  386. <view class="btn active" bindtap="payOrder" wx:if="{{handleOption.pay}}">去付款</view>
  387. <view class="btn active" bindtap="aftersaleOrder" wx:if="{{handleOption.aftersale}}">申请售后</view>
  388. </view>
  389. </view>
  390. </view>
  391. <view class="order-goods">
  392. <view class="h">
  393. <view class="label">商品信息</view>
  394. <view class="status">{{orderInfo.orderStatusText}}</view>
  395. </view>
  396. <view class="goods">
  397. <view class="item" wx:for="{{orderGoods}}" wx:key="id">
  398. <view class="img">
  399. <image src="{{item.picUrl}}"></image>
  400. </view>
  401. <view class="info">
  402. <view class="t">
  403. <text class="name">{{item.goodsName}}</text>
  404. <text class="number">x{{item.number}}</text>
  405. </view>
  406. <view class="attr">{{item.specifications}}</view>
  407. <view class="price">单价:¥{{item.price}}</view>
  408. <view class="btn active" wx:if="{{handleOption.rebuy}}">
  409. <navigator url="../../goods/goods?id={{item.goodsId}}">再次购买</navigator>
  410. </view>
  411. </view>
  412. </view>
  413. </view>
  414. <view class="order-bottom">
  415. <view class="address">
  416. <view class="t">
  417. <text class="name">{{orderInfo.consignee}}</text>
  418. <text class="mobile">{{orderInfo.mobile}}</text>
  419. </view>
  420. <view class="b">{{orderInfo.address}}</view>
  421. </view>
  422. <view class="total">
  423. <view class="t">
  424. <text class="label">商品合计:</text>
  425. <text class="txt">¥{{orderInfo.goodsPrice}}</text>
  426. </view>
  427. <view class="t">
  428. <text class="label">优惠:</text>
  429. <text class="txt">¥-{{orderInfo.couponPrice}}</text>
  430. </view>
  431. </view>
  432. <view class="pay-fee">
  433. <text class="label">实付:</text>
  434. <text class="txt">¥{{orderInfo.actualPrice}}</text>
  435. </view>
  436. </view>
  437. </view> -->
  438. </view>
  439. <!-- 投诉建议弹框 -->
  440. <view class="goods-info-overlay" v-if="complainTips">
  441. <view class="goods-info-popup">
  442. <view class="popup-title">投诉建议</view>
  443. <view class="tips-title">电话:{{ shopPhone }}</view>
  444. <view style="padding: 0 20rpx 100rpx 32rpx; margin-top: -20rpx">对服务不满意或其他建议,请拨打投诉电话。</view>
  445. <view class="popup-bottom">
  446. <view class="btn-cancel" @tap="cancelComplain">取消</view>
  447. <view class="btn-conf" @tap="confComplain">拨打电话</view>
  448. </view>
  449. </view>
  450. </view>
  451. <!-- 售后投诉满意回收 -->
  452. <view class="goods-info-overlay" v-if="ticketTips">
  453. <view class="goods-info-popup">
  454. <view class="popup-title">售后评价</view>
  455. <view class="ticket-tips-content">你的售后问题是否已被解决?您对售后服务是否满意?请打分。</view>
  456. <view style="display: flex; justify-content: center">
  457. <image class="ticket-img" data-id="1" @tap="selectTicketValue"
  458. :src="'/static/images/new/' + (satisfaction == 0 ? 'star' : satisfaction == 2 || satisfaction == 1 ? 'star_red' : 'star_yellow') + '.png'">
  459. </image>
  460. <image class="ticket-img" data-id="2" @tap="selectTicketValue"
  461. :src="'/static/images/new/' + (satisfaction <= 1 ? 'star' : satisfaction == 2 ? 'star_red' : 'star_yellow') + '.png'">
  462. </image>
  463. <image class="ticket-img" data-id="3" @tap="selectTicketValue"
  464. :src="'/static/images/new/' + (satisfaction >= 3 ? 'star_yellow' : 'star') + '.png'"></image>
  465. <image class="ticket-img" data-id="4" @tap="selectTicketValue"
  466. :src="'/static/images/new/' + (satisfaction >= 4 ? 'star_yellow' : 'star') + '.png'"></image>
  467. <image class="ticket-img" data-id="5" @tap="selectTicketValue"
  468. :src="'/static/images/new/' + (satisfaction == 5 ? 'star_yellow' : 'star') + '.png'"></image>
  469. </view>
  470. <view class="ticket-tips">{{ satisfactionTips.tips }}</view>
  471. <view class="popup-bottom">
  472. <view class="btn-cancel" @tap="cancelTicketTips">取消</view>
  473. <view class="btn-conf" @tap="confTicketTips">立即提交</view>
  474. </view>
  475. </view>
  476. </view>
  477. <!-- 选择取消预约原因 -->
  478. <view class="appoint-overlay-wrapper remark-overlay" v-if="cancelShow" @tap="onCancelPopupClose">
  479. <view class="remark-select" @tap.stop="onCancelClick">
  480. <view class="title">
  481. 选择取消原因
  482. </view>
  483. <view class="remark-list">
  484. <view class="remark-item" v-for="(item,index) in cancelList" :key="index" :data-id="item.id"
  485. @tap.stop="cancelItemSelect">
  486. <view class="remark-value">{{item.value}}</view>
  487. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-select-popup.png"
  488. class="radio-img" v-if="cancelReason==item.id"></image>
  489. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-unselect-popup.png"
  490. class="radio-img" v-else></image>
  491. </view>
  492. </view>
  493. <view class="remark-conf-btn" @tap.stop="cancelItemConfirm">取消预约</view>
  494. </view>
  495. </view>
  496. </view>
  497. </template>
  498. <script module="utils" lang="wxs" src="@/utils/formatFuc.wxs"></script>
  499. <script>
  500. var util = require('../../../utils/util.js');
  501. var api = require('../../../config/api.js');
  502. export default {
  503. data() {
  504. return {
  505. excludeAxb: '',
  506. //订单不包含安心包,才可以退款
  507. orderId: 0,
  508. payOverTime: 0,
  509. timer: '',
  510. remainTimes: '',
  511. orderInfo: {
  512. id: '',
  513. orderSn: '',
  514. handleOption: {
  515. pay: '',
  516. book: '',
  517. cancel: '',
  518. refund: '',
  519. rebuy: ''
  520. },
  521. orderStatusVal: '',
  522. goodsName: '',
  523. skuName: '',
  524. servedTimes: '',
  525. picUrl: '',
  526. actualPrice: '',
  527. increaseSumPrice: '',
  528. unitDescribe: '',
  529. unitIncreaseNumber: '',
  530. serviceTimes: '',
  531. createTime: '',
  532. payChannel: '',
  533. orderPrice: '',
  534. discountPrice: '',
  535. canReverse: '',
  536. addressId: '',
  537. type: '',
  538. goodsId: ''
  539. },
  540. dyDetails: [],
  541. afterSale: null,
  542. orderGoods: [],
  543. expressInfo: {},
  544. flag: false,
  545. handleOption: {},
  546. orderType: 0,
  547. //如果是1表示从引荐人的订单列表过来的,需要隐藏操作按钮
  548. shopPhone: '',
  549. complainTips: false,
  550. ticketTips: false,
  551. //投诉工单 处理结果回收
  552. ticketId: '',
  553. //投诉id
  554. satisfaction: 0,
  555. //投诉处理满意度
  556. satisfactionTips: {
  557. tips: ''
  558. },
  559. satisfactionLow: {
  560. tips: '非常抱歉,我们会立即安排专属客服跟进了解具体问题!',
  561. notice: '您的评价是对我们最大的鼓励和鞭策,感谢您的评价。'
  562. },
  563. satisfactionMid: {
  564. tips: '我们会持续了解问题,为您提供更好的服务',
  565. notice: '感谢您的评价,我们会持续收集顾客的建议,为您提供更好的服务。。'
  566. },
  567. satisfactionHigh: {
  568. tips: '感谢您的认可,我们将为您持续提供优质服务',
  569. notice: '感谢您的认可,我们将持续为您提供更加优质的服务!'
  570. },
  571. star: '/static/images/new/star.png',
  572. starYellow: '/static/images/new/star_yellow.png',
  573. starRed: '/static/images/new/star_red.png',
  574. action: {
  575. status: '',
  576. createTime: '',
  577. content: ''
  578. },
  579. cancelShow: false,
  580. cancelDetailId: '',
  581. cancelReason: '', //选中的取消原因项
  582. cancelList: [{
  583. id: 19,
  584. value: "【个人原因】临时有事暂时不预约"
  585. },
  586. {
  587. id: 20,
  588. value: "【个人原因】先囤着以后再约"
  589. },
  590. {
  591. id: 22,
  592. value: "【个人原因】计划有变不需要了"
  593. },
  594. {
  595. id: 21,
  596. value: "【商家原因】保洁师无法上门服务"
  597. },
  598. {
  599. id: 23,
  600. value: " 其他"
  601. }
  602. ],
  603. };
  604. },
  605. onLoad: function(options) {
  606. // 页面初始化 options为页面跳转所带来的参数
  607. this.setData({
  608. orderId: options.id,
  609. orderType: options.orderType
  610. });
  611. // this.getOrderDetail();
  612. },
  613. onShow: function() {
  614. // 页面显示
  615. this.getOrderDetail();
  616. },
  617. onPullDownRefresh() {
  618. uni.showNavigationBarLoading(); //在标题栏中显示加载
  619. this.getOrderDetail();
  620. uni.hideNavigationBarLoading(); //完成停止加载
  621. uni.stopPullDownRefresh(); //停止下拉刷新
  622. },
  623. onReady: function() {
  624. // 页面渲染完成
  625. },
  626. onHide: function() {
  627. console.log('onHide');
  628. // clearInterval(this.data.timer);
  629. },
  630. onUnload: function() {
  631. console.log('onunload');
  632. clearInterval(this.timer);
  633. },
  634. methods: {
  635. servciceName(index) {
  636. var modelText = '';
  637. switch (index) {
  638. case 0:
  639. modelText = '一';
  640. break;
  641. case 1:
  642. modelText = '二';
  643. break;
  644. case 2:
  645. modelText = '三';
  646. break;
  647. case 3:
  648. modelText = '四';
  649. break;
  650. case 4:
  651. modelText = '五';
  652. break;
  653. case 5:
  654. modelText = '六';
  655. break;
  656. case 6:
  657. modelText = '七';
  658. break;
  659. case 7:
  660. modelText = '八';
  661. break;
  662. default:
  663. modelText = '';
  664. }
  665. return modelText;
  666. },
  667. cancelTicketTips() {
  668. this.setData({
  669. ticketTips: false
  670. });
  671. },
  672. showTicketTips(e) {
  673. let ticketId = parseInt(e.currentTarget.dataset.id);
  674. this.setData({
  675. ticketTips: true,
  676. ticketId: ticketId
  677. });
  678. },
  679. selectTicketValue(e) {
  680. //点击星号
  681. let id = parseInt(e.currentTarget.dataset.id);
  682. this.setData({
  683. satisfaction: id
  684. });
  685. let tips = this.satisfactionLow;
  686. if (id >= 3 && id < 5) tips = this.satisfactionMid;
  687. else if (id == 5) {
  688. tips = this.satisfactionHigh;
  689. }
  690. this.setData({
  691. satisfactionTips: tips
  692. });
  693. },
  694. confTicketTips() {
  695. if (this.satisfaction == 0) {
  696. util.showErrorToast('请选择满意度');
  697. return;
  698. }
  699. let that = this;
  700. uni.showLoading({
  701. title: '提交中'
  702. });
  703. util.request(
  704. api.TicketSatisfaction, {
  705. id: that.ticketId,
  706. satisfaction: that.satisfaction
  707. },
  708. 'POST'
  709. ).then(function(res) {
  710. if (res.errno === 0) {
  711. uni.hideLoading();
  712. //隐藏弹框并设置工单为已评论过
  713. let dyDetails = that.dyDetails;
  714. dyDetails.forEach((detail) => {
  715. if (detail.ticketVo && detail.ticketVo.ticketId == that.ticketId) {
  716. detail.ticketVo.isSatisfaction = false;
  717. console.info('进入');
  718. console.info(detail);
  719. }
  720. });
  721. that.setData({
  722. ticketTips: false,
  723. dyDetails: dyDetails
  724. });
  725. uni.showToast({
  726. title: that.satisfactionTips.notice,
  727. icon: 'none',
  728. duration: 2000
  729. });
  730. }
  731. });
  732. },
  733. expandDetail: function() {
  734. let that = this;
  735. this.setData({
  736. flag: !that.flag
  737. });
  738. },
  739. getOrderDetail: function() {
  740. uni.showLoading({
  741. title: '加载中'
  742. });
  743. let that = this;
  744. util.request(api.OrderDetail, {
  745. orderId: that.orderId
  746. }).then(function(res) {
  747. if (res.errno === 0) {
  748. uni.hideLoading();
  749. // console.log(res.data);
  750. that.setData({
  751. orderInfo: res.data,
  752. dyDetails: res.data.dyDetails,
  753. afterSale: res.data.afterSale,
  754. payOverTime: res.data.payOverTime,
  755. remainTimes: res.data.serviceTimes - res.data.servedTimes
  756. // orderGoods: res.data.orderGoods,
  757. // handleOption: res.data.orderInfo.handleOption,
  758. // expressInfo: res.data.expressInfo
  759. });
  760. if (that.payOverTime > 0) {
  761. let timer = setInterval(() => {
  762. let newTime = that.payOverTime - 1;
  763. if (newTime >= 0) {
  764. that.setData({
  765. payOverTime: newTime
  766. });
  767. } else {
  768. clearInterval(that.timer);
  769. }
  770. }, 1000);
  771. that.setData({
  772. timer: timer
  773. });
  774. }
  775. }
  776. // let excludeAxb = res.data.orderGoods.every(item => {
  777. // return item.goodsSn != '1036016';
  778. // });
  779. // that.setData({
  780. // excludeAxb: excludeAxb
  781. // });
  782. });
  783. },
  784. // “去付款”按钮点击效果
  785. payOrder: function() {
  786. let that = this;
  787. util.request(
  788. api.OrderPayCheck, {
  789. orderId: that.orderInfo.id
  790. },
  791. 'POST'
  792. ).then(function(res) {
  793. if (res.errno === 0) {
  794. const outOrderNo = res.data;
  795. console.log(res);
  796. uni.continueToPay({
  797. // orderId: this.data.orderId, // 内部订单号
  798. outOrderNo: outOrderNo,
  799. // 外部订单号 2个订单号必填一个
  800. success: (res) => {
  801. console.log(res);
  802. const {
  803. orderId,
  804. outOrderNo
  805. } = res;
  806. console.log('success res', res);
  807. console.log('orderId', orderId, 'outOrderNo', outOrderNo);
  808. uni.redirectTo({
  809. url: '/pages/ucenter/order/order'
  810. });
  811. },
  812. fail: (res) => {
  813. console.log(res);
  814. const {
  815. orderId,
  816. outOrderNo,
  817. errNo,
  818. errMsg,
  819. errLogId
  820. } = res;
  821. if (errLogId) {
  822. console.log('查询订单信息失败', errNo, errMsg, errLogId);
  823. }
  824. if (orderId || outOrderNo) {
  825. console.log('支付失败', errNo, errMsg, orderId, outOrderNo);
  826. }
  827. util.showErrorToast('支付失败');
  828. }
  829. });
  830. }
  831. });
  832. },
  833. // “取消订单”点击效果
  834. cancelOrder: function() {
  835. let that = this;
  836. let orderInfo = that.orderInfo;
  837. uni.showModal({
  838. title: '',
  839. content: '确定要取消此订单?',
  840. success: function(res) {
  841. if (res.confirm) {
  842. util.request(
  843. api.OrderCancel, {
  844. orderId: orderInfo.id
  845. },
  846. 'POST'
  847. ).then(function(res) {
  848. if (res.errno === 0) {
  849. uni.showToast({
  850. title: '取消订单成功'
  851. });
  852. util.redirect('/pages/ucenter/order/order');
  853. } else {
  854. util.showErrorToast(res.errmsg);
  855. }
  856. });
  857. }
  858. }
  859. });
  860. },
  861. // “取消订单并退款”点击效果
  862. refundOrder: function() {
  863. let that = this;
  864. let orderInfo = that.orderInfo;
  865. uni.showModal({
  866. title: '',
  867. content: '确定要取消此订单?',
  868. success: function(res) {
  869. if (res.confirm) {
  870. util.request(
  871. api.OrderRefund, {
  872. orderId: orderInfo.id
  873. },
  874. 'POST'
  875. ).then(function(res) {
  876. if (res.errno === 0) {
  877. uni.showToast({
  878. title: '取消订单成功'
  879. });
  880. util.redirect('/pages/ucenter/order/order');
  881. } else {
  882. util.showErrorToast(res.errmsg);
  883. }
  884. });
  885. }
  886. }
  887. });
  888. },
  889. // “删除”点击效果
  890. deleteOrder: function() {
  891. let that = this;
  892. let orderInfo = that.orderInfo;
  893. uni.showModal({
  894. title: '',
  895. content: '确定要删除此订单?',
  896. success: function(res) {
  897. if (res.confirm) {
  898. util.request(
  899. api.OrderDelete, {
  900. orderId: orderInfo.id
  901. },
  902. 'POST'
  903. ).then(function(res) {
  904. if (res.errno === 0) {
  905. uni.showToast({
  906. title: '删除订单成功'
  907. });
  908. util.redirect('/pages/ucenter/order/order');
  909. } else {
  910. util.showErrorToast(res.errmsg);
  911. }
  912. });
  913. }
  914. }
  915. });
  916. },
  917. // “待上门”点击效果
  918. confirmOrder: function() {
  919. let that = this;
  920. let orderInfo = that.orderInfo;
  921. uni.showModal({
  922. title: '',
  923. content: '确认上门服务?',
  924. success: function(res) {
  925. if (res.confirm) {
  926. util.request(
  927. api.OrderConfirm, {
  928. orderId: orderInfo.id
  929. },
  930. 'POST'
  931. ).then(function(res) {
  932. if (res.errno === 0) {
  933. uni.showToast({
  934. title: '确认上门成功!'
  935. });
  936. util.redirect('/pages/ucenter/order/order');
  937. } else {
  938. util.showErrorToast(res.errmsg);
  939. }
  940. });
  941. }
  942. }
  943. });
  944. },
  945. // “申请售后”点击效果
  946. aftersaleOrder: function() {
  947. uni.navigateTo({
  948. url: '/pages/ucenter/applyRefund/applyRefund?id=' + this.orderId
  949. });
  950. // 0没申请 1申请没审核 2 客服审核通过 3 退款成功 4审核拒绝 5 用户取消 6退款中
  951. // util.redirect('/pages/ucenter/aftersale/aftersale?id=' + this.data.orderId);
  952. // if (this.data.orderInfo.afterSaleStatus === 0||this.data.orderInfo.afterSaleStatus === 4) {
  953. // wx.navigateTo({
  954. // url:'/pages/ucenter/applyRefund/applyRefund?id=' + this.data.orderId ,
  955. // });
  956. // } else {
  957. // util.redirect('/pages/ucenter/aftersaleDetail/aftersaleDetail?id=' + this.data.orderId);
  958. // }
  959. },
  960. viewService() {
  961. uni.navigateTo({
  962. url: '../serviceDetail/serviceDetail?orderId=' + this.orderId
  963. });
  964. },
  965. buyAgain(e) {
  966. let id = e.currentTarget.dataset.id;
  967. uni.navigateTo({
  968. url: '/pages/goods/goods?id=' + id
  969. });
  970. },
  971. copyOrder(e) {
  972. let id = e.currentTarget.dataset.id+'';
  973. uni.setClipboardData({
  974. data: id,
  975. success: function(res) {
  976. uni.getClipboardData({
  977. success: function(res) {
  978. uni.showToast({
  979. title: '复制成功',
  980. icon: 'success',
  981. duration: 2000
  982. });
  983. }
  984. });
  985. }
  986. });
  987. },
  988. //撤销
  989. revertOrder(e) {
  990. let id = e.currentTarget.dataset.id;
  991. let that = this;
  992. uni.showModal({
  993. title: '',
  994. content: '确认取消预约?',
  995. success: function(res) {
  996. if (res.confirm) {
  997. util.request(
  998. api.RevertVerify, {
  999. orderId: id
  1000. },
  1001. 'GET'
  1002. ).then(function(res) {
  1003. if (res.errno === 0) {
  1004. uni.showToast({
  1005. title: '操作成功!'
  1006. });
  1007. that.getOrderDetail();
  1008. } else {
  1009. util.showErrorToast(res.errmsg);
  1010. }
  1011. });
  1012. }
  1013. }
  1014. });
  1015. },
  1016. cancelRefund() {
  1017. let that = this;
  1018. let afterSale = that.afterSale;
  1019. uni.showModal({
  1020. title: '',
  1021. content: '确认取消退款?',
  1022. success: function(res) {
  1023. if (res.confirm) {
  1024. util.request(
  1025. api.AftersaleCancel, {
  1026. orderId: afterSale.orderId,
  1027. id: afterSale.id
  1028. },
  1029. 'POST'
  1030. ).then(function(res) {
  1031. if (res.errno === 0) {
  1032. uni.showToast({
  1033. title: '操作成功!'
  1034. });
  1035. that.getOrderDetail();
  1036. } else {
  1037. util.showErrorToast(res.errmsg);
  1038. }
  1039. });
  1040. }
  1041. }
  1042. });
  1043. },
  1044. goReVisit(e) {
  1045. let id = e.currentTarget.dataset.id;
  1046. uni.navigateTo({
  1047. url: '/pages/extra/newRevisit/newRevisit?id=' + id,
  1048. success: (res) => {},
  1049. fail: (res) => {}
  1050. });
  1051. },
  1052. goComplain(e) {
  1053. let phone = e.currentTarget.dataset.phone;
  1054. this.setData({
  1055. shopPhone: phone,
  1056. complainTips: true
  1057. });
  1058. },
  1059. cancelComplain() {
  1060. this.setData({
  1061. complainTips: false
  1062. });
  1063. },
  1064. confComplain() {
  1065. uni.makePhoneCall({
  1066. phoneNumber: this.shopPhone
  1067. });
  1068. },
  1069. goEditAppoint(e) {
  1070. let id = e.currentTarget.dataset.id;
  1071. let status = e.currentTarget.dataset.status;
  1072. if (status == 1) {
  1073. let time = e.currentTarget.dataset.time;
  1074. let str = time.substr(0, 16).replace(/-/g, '/');
  1075. let isNear = new Date(str).getTime() - new Date().getTime() - 7200 * 1000;
  1076. console.log(isNear);
  1077. // if (isNear < 0) {
  1078. // wx.showToast({
  1079. // title: '服务时间小于2小时,不能修改预约',
  1080. // icon: 'none',
  1081. // duration: 2000
  1082. // });
  1083. // return false;
  1084. // }
  1085. }
  1086. uni.navigateTo({
  1087. url: '/pages/ucenter/appointOrder/appointOrder?serviceId=' + id + '&orderId=' + this.orderInfo
  1088. .id + '&goodsId=' + this.orderInfo.goodsId + '&type=2',
  1089. success: (res) => {},
  1090. fail: (res) => {}
  1091. });
  1092. },
  1093. goAppoint() {
  1094. uni.navigateTo({
  1095. url: '/pages/ucenter/appointOrder/appointOrder?orderId=' + this.orderInfo.id+ '&goodsId=' + this.orderInfo.goodsId
  1096. });
  1097. },
  1098. makeStorePhone(e) {
  1099. uni.makePhoneCall({
  1100. phoneNumber: e.currentTarget.dataset.phone
  1101. });
  1102. },
  1103. goCancelBook(e) { //取消工单预约
  1104. this.setData({
  1105. cancelDetailId: e.currentTarget.dataset.id,
  1106. cancelShow: true
  1107. })
  1108. },
  1109. cancelItemSelect(e) {
  1110. this.setData({
  1111. cancelReason: e.currentTarget.dataset.id
  1112. })
  1113. },
  1114. onCancelPopupClose() {
  1115. this.setData({
  1116. cancelShow: false
  1117. })
  1118. },
  1119. onCancelClick() {
  1120. //无实际意义 防止冒泡
  1121. },
  1122. cancelItemConfirm() {
  1123. let that = this;
  1124. if (that.cancelReason == '') {
  1125. util.showErrorToast("请选择取消原因");
  1126. return;
  1127. }
  1128. uni.showLoading({
  1129. title: '提交中'
  1130. });
  1131. util.request(api.OrderBookCancel, {
  1132. detailId: that.cancelDetailId,
  1133. cancelReason: that.cancelReason
  1134. }, "POST").then(res => {
  1135. uni.hideLoading();
  1136. if (res.errno === 0) {
  1137. uni.showToast({
  1138. title: "提交成功"
  1139. });
  1140. that.getOrderDetail();
  1141. that.setData({
  1142. cancelShow: false,
  1143. })
  1144. }
  1145. })
  1146. },
  1147. }
  1148. };
  1149. </script>
  1150. <style>
  1151. .order-info {
  1152. padding-top: 25rpx;
  1153. background: #fff;
  1154. height: auto;
  1155. overflow: hidden;
  1156. }
  1157. .item {
  1158. padding-left: 30rpx;
  1159. /* height: 42.5rpx; */
  1160. line-height: 52rpx;
  1161. font-size: 30rpx;
  1162. color: #333;
  1163. }
  1164. .item-c {
  1165. margin-left: 31.25rpx;
  1166. border-top: 1px solid #f4f4f4;
  1167. height: 103rpx;
  1168. line-height: 103rpx;
  1169. }
  1170. .item-c .l {
  1171. float: left;
  1172. }
  1173. .item-c .r {
  1174. height: 103rpx;
  1175. float: right;
  1176. display: flex;
  1177. align-items: center;
  1178. padding-right: 16rpx;
  1179. }
  1180. .item-c .r .btn {
  1181. float: right;
  1182. }
  1183. .item-c .cost {
  1184. color: #b4282d;
  1185. }
  1186. .item-c .btn {
  1187. line-height: 66rpx;
  1188. border-radius: 5rpx;
  1189. text-align: center;
  1190. margin: 0 15rpx;
  1191. padding: 0 20rpx;
  1192. height: 66rpx;
  1193. }
  1194. .item-c .btn.active {
  1195. background: #b4282d;
  1196. color: #fff;
  1197. }
  1198. .order-goods {
  1199. margin-top: 20rpx;
  1200. background: #fff;
  1201. }
  1202. .order-goods .h {
  1203. height: 93.75rpx;
  1204. line-height: 93.75rpx;
  1205. margin-left: 31.25rpx;
  1206. border-bottom: 1px solid #f4f4f4;
  1207. padding-right: 31.25rpx;
  1208. }
  1209. .order-goods .h .label {
  1210. float: left;
  1211. font-size: 30rpx;
  1212. color: #333;
  1213. }
  1214. .order-goods .h .status {
  1215. float: right;
  1216. font-size: 30rpx;
  1217. color: #b4282d;
  1218. }
  1219. .order-goods .item {
  1220. display: flex;
  1221. align-items: center;
  1222. height: 190rpx;
  1223. padding-right: 30rpx;
  1224. border-bottom: 1px solid #f4f4f4;
  1225. margin: 20rpx 0;
  1226. }
  1227. .order-goods .item:last-child {
  1228. border-bottom: none;
  1229. }
  1230. .order-goods .item .img {
  1231. height: 190rpx;
  1232. width: 190rpx;
  1233. background: #f4f4f4;
  1234. }
  1235. .order-goods .item .img image {
  1236. height: 190rpx;
  1237. width: 190rpx;
  1238. border-radius: 10rpx;
  1239. }
  1240. .order-goods .item .info {
  1241. flex: 1;
  1242. height: 190rpx;
  1243. margin-left: 20rpx;
  1244. }
  1245. .order-goods .item .t {
  1246. margin-top: 8rpx;
  1247. line-height: 34rpx;
  1248. margin-bottom: 10rpx;
  1249. display: flex;
  1250. justify-content: space-between;
  1251. }
  1252. .order-goods .item .t .name {
  1253. color: #333;
  1254. font-size: 30rpx;
  1255. }
  1256. .order-goods .item .t .number {
  1257. height: 34rpx;
  1258. text-align: right;
  1259. line-height: 34rpx;
  1260. color: #666;
  1261. font-size: 28rpx;
  1262. }
  1263. .order-goods .item .attr {
  1264. height: 29rpx;
  1265. line-height: 29rpx;
  1266. margin-top: 10rpx;
  1267. color: #666;
  1268. margin-top: 10rpx;
  1269. font-size: 25rpx;
  1270. }
  1271. .order-goods .item .price {
  1272. display: block;
  1273. float: left;
  1274. height: 30rpx;
  1275. line-height: 30rpx;
  1276. color: #333;
  1277. font-size: 28rpx;
  1278. margin-top: 16rpx;
  1279. }
  1280. .order-goods .item .btn {
  1281. height: 50rpx;
  1282. line-height: 50rpx;
  1283. border-radius: 5rpx;
  1284. text-align: center;
  1285. display: block;
  1286. float: right;
  1287. margin: 0 15rpx;
  1288. padding: 0 20rpx;
  1289. }
  1290. .order-goods .item .btn.active {
  1291. background: #b4282d;
  1292. color: #fff;
  1293. }
  1294. .order-bottom1 {
  1295. margin-top: 20rpx;
  1296. padding-left: 31.25rpx;
  1297. height: auto;
  1298. overflow: hidden;
  1299. background: #fff;
  1300. }
  1301. .order-bottom .address {
  1302. /* height: 128rpx; */
  1303. padding-top: 25rpx;
  1304. border-top: 1px solid #f4f4f4;
  1305. border-bottom: 1px solid #f4f4f4;
  1306. }
  1307. .order-bottom .address .t {
  1308. height: 35rpx;
  1309. line-height: 35rpx;
  1310. margin-bottom: 20rpx;
  1311. }
  1312. .order-bottom .address .name {
  1313. display: inline-block;
  1314. height: 35rpx;
  1315. /* width: 140rpx; */
  1316. line-height: 35rpx;
  1317. font-size: 30rpx;
  1318. margin-right: 40rpx;
  1319. }
  1320. .order-bottom .address .mobile {
  1321. display: inline-block;
  1322. height: 35rpx;
  1323. line-height: 35rpx;
  1324. font-size: 30rpx;
  1325. }
  1326. .order-bottom .address .b {
  1327. /* height: 35rpx; */
  1328. line-height: 40rpx;
  1329. font-size: 28rpx;
  1330. padding-right: 30rpx;
  1331. text-align: justify;
  1332. }
  1333. .order-bottom .total {
  1334. height: 130rpx;
  1335. padding-top: 20rpx;
  1336. border-bottom: 1px solid #f4f4f4;
  1337. }
  1338. .order-bottom .total .t {
  1339. height: 44rpx;
  1340. line-height: 44rpx;
  1341. margin-bottom: 10rpx;
  1342. display: flex;
  1343. }
  1344. .order-bottom .total .label {
  1345. width: 150rpx;
  1346. display: inline-block;
  1347. height: 35rpx;
  1348. line-height: 35rpx;
  1349. font-size: 30rpx;
  1350. }
  1351. .order-bottom .total .txt {
  1352. flex: 1;
  1353. display: inline-block;
  1354. height: 35rpx;
  1355. line-height: 35rpx;
  1356. font-size: 30rpx;
  1357. }
  1358. .order-bottom .pay-fee {
  1359. height: 81rpx;
  1360. line-height: 81rpx;
  1361. }
  1362. .order-bottom .pay-fee .label {
  1363. display: inline-block;
  1364. width: 140rpx;
  1365. color: #b4282d;
  1366. }
  1367. .order-bottom .pay-fee .txt {
  1368. display: inline-block;
  1369. width: 140rpx;
  1370. color: #b4282d;
  1371. }
  1372. .order-express {
  1373. margin-top: 20rpx;
  1374. width: 100%;
  1375. height: 100rpx;
  1376. background: #fff;
  1377. }
  1378. .order-express .title {
  1379. float: left;
  1380. margin-bottom: 20rpx;
  1381. padding: 10rpx;
  1382. }
  1383. .order-express .ti {
  1384. float: right;
  1385. width: 52rpx;
  1386. height: 52rpx;
  1387. margin-right: 16rpx;
  1388. margin-top: 28rpx;
  1389. }
  1390. .order-express .t {
  1391. font-size: 29rpx;
  1392. margin-left: 10.25rpx;
  1393. color: #a78845;
  1394. }
  1395. .order-express .b {
  1396. font-size: 29rpx;
  1397. margin-left: 10.25rpx;
  1398. color: #a78845;
  1399. }
  1400. .order-express .traces {
  1401. padding: 17.5rpx;
  1402. background: #fff;
  1403. border-bottom: 1rpx solid #f1e6cdcc;
  1404. }
  1405. .order-express .trace {
  1406. padding-bottom: 17.5rpx;
  1407. padding-top: 17.5rpx;
  1408. background: #fff;
  1409. }
  1410. .order-express .acceptTime {
  1411. margin-top: 20rpx;
  1412. margin-right: 40rpx;
  1413. text-align: right;
  1414. font-size: 26rpx;
  1415. }
  1416. .order-express .acceptStation {
  1417. font-size: 26rpx;
  1418. }
  1419. /* 订单详情顶部 */
  1420. .order-main-top {
  1421. height: 200rpx;
  1422. background: url('https://mall.zhaijieshi.cc/file/jzmall/weixin/order-detail-bg.png') no-repeat center;
  1423. background-size: 100% 100%;
  1424. display: flex;
  1425. align-items: center;
  1426. justify-content: space-between;
  1427. margin: 0 0 20rpx;
  1428. padding: 0 24rpx;
  1429. }
  1430. .order-main-top view,
  1431. .order-main-top text {
  1432. color: #fff;
  1433. font-size: 28rpx;
  1434. }
  1435. .order-main-top .order-detail-status {
  1436. font-size: 40rpx;
  1437. font-weight: bold;
  1438. margin-bottom: 20rpx;
  1439. }
  1440. .order-main-right {
  1441. text-align: right;
  1442. }
  1443. .order-main-right .view-service {
  1444. width: 148rpx;
  1445. height: 44rpx;
  1446. line-height: 44rpx;
  1447. border-radius: 44rpx;
  1448. border: 1rpx solid #fff;
  1449. text-align: center;
  1450. margin: 10rpx 0 0;
  1451. }
  1452. .order-main-right .current-times {
  1453. font-size: 40rpx;
  1454. font-weight: bold;
  1455. }
  1456. page {
  1457. height: 100%;
  1458. width: 100%;
  1459. background: #f4f4f4;
  1460. }
  1461. .container {
  1462. padding: 0 0 180rpx;
  1463. background: linear-gradient(210deg, rgba(123, 207, 255, 0.06) 0%, rgba(218, 218, 218, 0.28) 100%);
  1464. }
  1465. /* 未支付订单 */
  1466. .not-pay-module {
  1467. padding: 28rpx 0 48rpx;
  1468. display: flex;
  1469. flex-direction: column;
  1470. align-items: center;
  1471. }
  1472. .not-pay-module .pay-amount {
  1473. height: 50rpx;
  1474. display: flex;
  1475. align-items: center;
  1476. }
  1477. .not-pay-module .pay-amount image {
  1478. width: 40rpx;
  1479. height: 40rpx;
  1480. margin-right: 12rpx;
  1481. }
  1482. .not-pay-module .pay-amount {
  1483. font-size: 30rpx;
  1484. font-weight: bold;
  1485. color: #333;
  1486. }
  1487. .not-pay-module .pay-amount text {
  1488. color: #ff0000;
  1489. }
  1490. .not-pay-module .over-time {
  1491. height: 36rpx;
  1492. font-size: 26rpx;
  1493. color: #333;
  1494. margin: 26rpx 0 44rpx;
  1495. }
  1496. .not-pay-module .pay-now {
  1497. width: 160rpx;
  1498. height: 56rpx;
  1499. line-height: 56rpx;
  1500. background: linear-gradient(90deg, #ff9c49 0%, #ff8219 100%);
  1501. border-radius: 28rpx;
  1502. color: #f9f4f5;
  1503. font-size: 24rpx;
  1504. text-align: center;
  1505. }
  1506. /* 卡片 */
  1507. .top-card {
  1508. width: 702rpx;
  1509. height: 224rpx;
  1510. background: url('https://mall.zhaijieshi.cc/file/jzmall-dy/order-card-bg.png') no-repeat center;
  1511. background-size: 100% 100%;
  1512. padding: 20rpx 30rpx 24rpx;
  1513. color: #fff;
  1514. position: relative;
  1515. }
  1516. .top-name-wrapper {
  1517. display: flex;
  1518. align-items: center;
  1519. justify-content: space-between;
  1520. height: 44rpx;
  1521. overflow: hidden;
  1522. }
  1523. .top-name {
  1524. height: 44rpx;
  1525. font-size: 32rpx;
  1526. font-weight: bold;
  1527. color: #ffffff;
  1528. line-height: 44rpx;
  1529. text-overflow: ellipsis;
  1530. white-space: nowrap;
  1531. overflow: hidden;
  1532. }
  1533. .top-sku-name {
  1534. font-size: 24rpx;
  1535. font-weight: bold;
  1536. color: #fff;
  1537. white-space: nowrap;
  1538. overflow: hidden;
  1539. text-overflow: ellipsis;
  1540. flex: 1;
  1541. }
  1542. .top-times {
  1543. margin: 12rpx 0 54rpx;
  1544. display: flex;
  1545. height: 42rpx;
  1546. align-items: center;
  1547. }
  1548. .top-times view {
  1549. font-size: 24rpx;
  1550. font-weight: bold;
  1551. }
  1552. .top-times view.serviced-times {
  1553. margin-left: 20rpx;
  1554. }
  1555. .top-times view text {
  1556. font-size: 30rpx;
  1557. }
  1558. .top-tips {
  1559. height: 28rpx;
  1560. line-height: 28rpx;
  1561. font-size: 20rpx;
  1562. }
  1563. .appoint-tag {
  1564. position: absolute;
  1565. top: 136rpx;
  1566. right: 0;
  1567. width: 196rpx;
  1568. height: 64rpx;
  1569. line-height: 64rpx;
  1570. background: linear-gradient(316deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  1571. border-radius: 32rpx 0rpx 0rpx 32rpx;
  1572. color: #ff8219;
  1573. font-size: 24rpx;
  1574. text-align: center;
  1575. font-weight: bold;
  1576. }
  1577. /* 退款工单 */
  1578. .refund-order-module {
  1579. margin: 24rpx 0;
  1580. width: 750rpx;
  1581. background: #fff;
  1582. /* border-radius: 24rpx; */
  1583. padding: 0 24rpx;
  1584. }
  1585. .refund-title {
  1586. height: 80rpx;
  1587. display: flex;
  1588. align-items: center;
  1589. border-bottom: 2rpx solid #e0e0e0;
  1590. }
  1591. .refund-title .title-text {
  1592. color: #191919;
  1593. font-size: 30rpx;
  1594. font-weight: bold;
  1595. margin-bottom:0;
  1596. }
  1597. .refund-title .title-order {
  1598. flex: 1;
  1599. color: #666666;
  1600. font-size: 24rpx;
  1601. margin: 0 10rpx;
  1602. }
  1603. .refund-title .title-status {
  1604. color: #fcc17c;
  1605. font-size: 26rpx;
  1606. }
  1607. .refund-main {
  1608. padding: 12rpx 0;
  1609. }
  1610. .refund-main .row {
  1611. height: 56rpx;
  1612. line-height: 56rpx;
  1613. display: flex;
  1614. color: rgba(0, 0, 0, 0.9);
  1615. font-size: 26rpx;
  1616. font-weight: bold;
  1617. }
  1618. .refund-main .row text {
  1619. color: #666666;
  1620. font-weight: normal;
  1621. }
  1622. .refuse-remark-wrapper {
  1623. padding: 24rpx 0;
  1624. border-top: 2rpx solid #e0e0e0;
  1625. }
  1626. .refund-order-module .refuse-remark {
  1627. width: 652rpx;
  1628. height: 56rpx;
  1629. line-height: 56rpx;
  1630. background: #ebebeb;
  1631. border-radius: 16rpx;
  1632. color: #000000;
  1633. padding: 0 16rpx;
  1634. white-space: nowrap;
  1635. text-overflow: ellipsis;
  1636. overflow: hidden;
  1637. }
  1638. .refund-order-module .refuse-remark text {
  1639. color: #fe2b54;
  1640. font-weight: bold;
  1641. }
  1642. .refund-operate {
  1643. padding: 24rpx 0;
  1644. border-top: 2rpx solid #e0e0e0;
  1645. display: flex;
  1646. justify-content: flex-end;
  1647. }
  1648. .refund-operate view {
  1649. width: 160rpx;
  1650. height: 56rpx;
  1651. line-height: 56rpx;
  1652. border-radius: 28rpx;
  1653. border: 2rpx solid #d8d8d8;
  1654. text-align: center;
  1655. color: #666666;
  1656. font-size: 24rpx;
  1657. }
  1658. /* 工单列表 */
  1659. .service-item {
  1660. /* margin-top: 24rpx; */
  1661. background: #ffffff;
  1662. border-radius: 28rpx 28rpx 0px 0px;
  1663. width: 750rpx;
  1664. /* padding: 0 24rpx; */
  1665. }
  1666. .service-item .service-title {
  1667. height: 80rpx;
  1668. display: flex;
  1669. align-items: center;
  1670. border-bottom: 2rpx solid #e0e0e0;
  1671. }
  1672. .service-item .service-title-new{
  1673. height:200rpx;
  1674. padding:50rpx 48rpx 0 38rpx;
  1675. border-bottom: 1rpx solid #EBEBEB;
  1676. }
  1677. .title-text{
  1678. display: flex;
  1679. height:40rpx;
  1680. margin-bottom:32rpx;
  1681. align-items: center;
  1682. justify-content: space-between;
  1683. font-size: 28rpx;
  1684. color:#999;
  1685. }
  1686. .title-text .service-status{
  1687. font-weight: 600;
  1688. color: #09AFFF;
  1689. }
  1690. .main-text{
  1691. /* height: 40rpx; */
  1692. font-size: 28rpx;
  1693. font-weight: 600;
  1694. color: #333333;
  1695. line-height: 40rpx;
  1696. letter-spacing: 1rpx;
  1697. }
  1698. .service-title .sercive-name {
  1699. color: #191919;
  1700. font-size: 30rpx;
  1701. font-weight: bold;
  1702. }
  1703. .service-title .service-id {
  1704. color: #666666;
  1705. font-size: 24rpx;
  1706. margin: 0 12rpx;
  1707. flex: 1;
  1708. }
  1709. .service-title .service-status {
  1710. color: #008dff;
  1711. font-size: 26rpx;
  1712. }
  1713. .service-main {
  1714. padding: 38rpx;
  1715. }
  1716. .customer-info {
  1717. /* display: flex;
  1718. align-items: center; */
  1719. }
  1720. .customer-info image {
  1721. width: 48rpx;
  1722. height: 48rpx;
  1723. margin-right: 24rpx;
  1724. }
  1725. .customer-info .customer-main {
  1726. display: flex;
  1727. padding: 18rpx 0 4rpx;
  1728. flex-direction: column;
  1729. flex: 1;
  1730. }
  1731. .main-line {
  1732. display: flex;
  1733. /* height: 44rpx; */
  1734. margin-top: 16rpx;
  1735. align-items: center;
  1736. }
  1737. .main-line view {
  1738. /* color: #333333;
  1739. font-size: 32rpx; */
  1740. }
  1741. .main-line view.phone {
  1742. /* color: #999999;
  1743. font-size: 24rpx; */
  1744. margin-left: 12rpx;
  1745. }
  1746. .customer-info .customer-address {
  1747. /* color: #666666;
  1748. line-height: 40rpx; */
  1749. }
  1750. .service-main .row {
  1751. /* height: 56rpx;
  1752. line-height: 56rpx; */
  1753. display: flex;
  1754. color: rgba(0, 0, 0, 0.9);
  1755. font-size: 26rpx;
  1756. font-weight: bold;
  1757. align-items: center;
  1758. margin: 10rpx 0;
  1759. }
  1760. .service-main .row text {
  1761. color: #666666;
  1762. font-weight: normal;
  1763. /* white-space: nowrap; */
  1764. }
  1765. .service-remark-wrapper {
  1766. padding: 36rpx;
  1767. border-top: 1rpx solid #EBEBEB;
  1768. }
  1769. .service-store {
  1770. line-height: 40rpx;
  1771. display: flex;
  1772. align-items: center;
  1773. justify-content: space-between;
  1774. }
  1775. .service-store>view {
  1776. display: flex;
  1777. /* height: 40rpx; */
  1778. align-items: center;
  1779. }
  1780. .store-left image {
  1781. width: 36rpx;
  1782. height: 36rpx;
  1783. margin-right: 16rpx;
  1784. }
  1785. .store-left view {
  1786. color: #999999;
  1787. font-size: 28rpx;
  1788. white-space: nowrap;
  1789. margin-right:20rpx;
  1790. }
  1791. .store-right view {
  1792. color: #333333;
  1793. font-size: 28rpx;
  1794. }
  1795. .store-right view.copy-text,.order-top view.copy-text{
  1796. width:76rpx;
  1797. height:30rpx;
  1798. line-height: 30rpx;
  1799. border-radius: 30rpx;
  1800. text-align: center;
  1801. background: #09AFFF;
  1802. color: #fff;
  1803. font-size: 20rpx;
  1804. margin-left:10rpx;
  1805. }
  1806. .ordersn-wrapper{
  1807. display: flex;
  1808. align-items: center;
  1809. }
  1810. .store-right image {
  1811. width: 30rpx;
  1812. height: 30rpx;
  1813. margin-left: 12rpx;
  1814. }
  1815. .service-remark-wrapper .service-remark {
  1816. width: 652rpx;
  1817. /* height: 56rpx; */
  1818. line-height: 44rpx;
  1819. background: #ebebeb;
  1820. border-radius: 16rpx;
  1821. color: #000000;
  1822. padding: 8rpx 16rpx;
  1823. /* white-space: nowrap;
  1824. text-overflow: ellipsis;*/
  1825. display: -webkit-box;
  1826. -webkit-box-orient: vertical;
  1827. -webkit-line-clamp: 2;
  1828. text-overflow: ellipsis;
  1829. overflow: hidden;
  1830. margin-top: 20rpx;
  1831. }
  1832. .service-remark text {
  1833. color: #fe2b54;
  1834. font-weight: bold;
  1835. }
  1836. .service-operate {
  1837. padding: 24rpx 40rpx ;
  1838. border-top: 1rpx solid #EBEBEB;
  1839. display: flex;
  1840. justify-content: flex-end;
  1841. }
  1842. .service-operate view {
  1843. width: 160rpx;
  1844. height: 56rpx;
  1845. line-height: 56rpx;
  1846. border-radius: 28rpx;
  1847. text-align: center;
  1848. color: #f9f4f5;
  1849. font-size: 24rpx;
  1850. background: linear-gradient(90deg, #00baff 0%, #008dff 100%);
  1851. margin-left: 28rpx;
  1852. }
  1853. /* 产品订单信息 */
  1854. .product-block {
  1855. background: #ffffff;
  1856. /* border-radius: 24rpx; */
  1857. padding: 36rpx 36rpx 40rpx 36rpx;
  1858. margin: 16rpx 0;
  1859. }
  1860. .product-block .title {
  1861. height: 88rpx;
  1862. line-height: 78rpx;
  1863. }
  1864. .profuct-info {
  1865. height: 190rpx;
  1866. display: flex;
  1867. align-items: flex-start;
  1868. }
  1869. .product-img {
  1870. width: 128rpx;
  1871. height: 128rpx;
  1872. border-radius: 8rpx;
  1873. margin-right: 16rpx;
  1874. }
  1875. .info-right {
  1876. /* padding-top: 10rpx; */
  1877. flex: 1;
  1878. }
  1879. .info-main {
  1880. display: flex;
  1881. height: 40rpx;
  1882. align-items: center;
  1883. justify-content: space-between;
  1884. /* margin-bottom: 58rpx; */
  1885. }
  1886. .info-right .sku-name {
  1887. color: #999999;
  1888. font-size: 28rpx;
  1889. margin: 10rpx 0;
  1890. height: 40rpx;
  1891. line-height: 40rpx;
  1892. display: flex;
  1893. justify-content: space-between;
  1894. }
  1895. .product-name {
  1896. font-size: 28rpx;
  1897. color: #333333;
  1898. line-height: 40rpx;
  1899. font-size: 28rpx;
  1900. /* padding-left: 20rpx;
  1901. text-indent: -16rpx; */
  1902. overflow: hidden;
  1903. text-overflow: ellipsis;
  1904. white-space: nowrap;
  1905. width: 500rpx;
  1906. }
  1907. .info-right .other-info {
  1908. color: #333333;
  1909. font-size: 24rpx;
  1910. height:40rpx;
  1911. display: flex;
  1912. align-items: center;
  1913. justify-content: space-between;
  1914. }
  1915. .other-info .price {
  1916. font-size: 24rpx;
  1917. }
  1918. .order-info {
  1919. background: #ffffff;
  1920. /* border-radius: 24rpx; */
  1921. padding: 32rpx 36rpx 24rpx 36rpx;
  1922. }
  1923. .order-info .order-top {
  1924. display: flex;
  1925. align-items: center;
  1926. height: 40rpx;
  1927. margin-bottom: 10rpx;
  1928. justify-content: space-between;
  1929. }
  1930. .order-info .order-title{
  1931. height: 44rpx;
  1932. font-size: 32rpx;
  1933. font-weight: 600;
  1934. color: #333333;
  1935. line-height: 44rpx;
  1936. letter-spacing: 2rpx;
  1937. margin-bottom:16rpx;
  1938. }
  1939. .order-top view {
  1940. font-size: 28rpx;
  1941. color: #333;
  1942. }
  1943. .order-top view.topic {
  1944. color: #999;
  1945. margin-right: 16rpx;
  1946. }
  1947. .order-top .copy-img {
  1948. width: 24rpx;
  1949. height: 24rpx;
  1950. margin-left: 20rpx;
  1951. }
  1952. .order-bottom {
  1953. border-top: 2rpx solid #e0e0e0;
  1954. margin-top: 14rpx;
  1955. padding-top: 16rpx;
  1956. }
  1957. .order-price,
  1958. .coupon-price {
  1959. display: flex;
  1960. align-items: center;
  1961. height: 36rpx;
  1962. margin-bottom: 6rpx;
  1963. justify-content: space-between;
  1964. }
  1965. .order-price view,
  1966. .coupon-price view {
  1967. font-size: 26rpx;
  1968. color: rgba(0, 0, 0, 0.9);
  1969. font-weight: bold;
  1970. }
  1971. .order-price view.topic,
  1972. .coupon-price view.topic {
  1973. color: #666;
  1974. margin-right: 16rpx;
  1975. font-weight: normal;
  1976. }
  1977. .order-bottom .real-price {
  1978. display: flex;
  1979. align-items: center;
  1980. height: 36rpx;
  1981. justify-content: flex-end;
  1982. font-size: 26rpx;
  1983. font-weight: bold;
  1984. }
  1985. .order-bottom .real-price text {
  1986. color: #ff004e;
  1987. font-size: 26rpx;
  1988. }
  1989. /* 客户服务 */
  1990. .customer-service {
  1991. background: #ffffff;
  1992. /* border-radius: 24rpx; */
  1993. padding: 32rpx 36rpx 30rpx 36rpx;
  1994. margin-top: 16rpx;
  1995. }
  1996. .customer-service .title {
  1997. height: 44rpx;
  1998. line-height: 44rpx;
  1999. color: #333333;
  2000. font-size: 32rpx;
  2001. font-weight: bold;
  2002. letter-spacing: 2px;
  2003. }
  2004. .contact-store {
  2005. border-bottom: 1rpx solid #ededed;
  2006. }
  2007. .contact-store,
  2008. .contact-company {
  2009. height: 70rpx;
  2010. display: flex;
  2011. align-items: center;
  2012. }
  2013. .contact-company {
  2014. position: relative;
  2015. }
  2016. .customer-service image {
  2017. width: 36rpx;
  2018. height: 36rpx;
  2019. }
  2020. .customer-service .topic {
  2021. color: rgba(0, 0, 0, 0.9);
  2022. font-size: 26rpx;
  2023. }
  2024. .customer-service .remark {
  2025. flex: 1;
  2026. color: #666666;
  2027. font-size: 20rpx;
  2028. margin-left: 14rpx;
  2029. padding-top: 4rpx;
  2030. }
  2031. .contact-btn {
  2032. height: 40rpx;
  2033. width: 40rpx;
  2034. position: absolute;
  2035. top: 26;
  2036. bottom: 26;
  2037. right: 0;
  2038. z-index: 99;
  2039. opacity: 0;
  2040. }
  2041. /* 底部按钮 */
  2042. .fixed-bottom {
  2043. position: fixed;
  2044. bottom: 0;
  2045. left: 0;
  2046. right: 0;
  2047. padding: 14rpx 24rpx 24rpx;
  2048. background: #fff;
  2049. }
  2050. .order-operate-wrapper {
  2051. /* height: 80rpx; */
  2052. display: flex;
  2053. align-items: center;
  2054. justify-content: flex-end;
  2055. flex: 1;
  2056. flex-wrap: wrap;
  2057. /* border-top: 2rpx solid #E0E0E0; */
  2058. padding-bottom: constant(safe-area-inset-bottom);
  2059. padding-bottom: env(safe-area-inset-bottom);
  2060. }
  2061. .order-operate-wrapper>view {
  2062. text-align: center;
  2063. font-size: 24rpx;
  2064. color: #fff;
  2065. margin-left: 20rpx;
  2066. width: 160rpx;
  2067. height: 56rpx;
  2068. line-height: 56rpx;
  2069. background: linear-gradient(90deg, #ff9c49 0%, #ff8219 100%);
  2070. border-radius: 56rpx;
  2071. margin-top: 10rpx;
  2072. }
  2073. .order-operate-wrapper>view.del {
  2074. border: 2rpx solid #d8d8d8;
  2075. color: #666666;
  2076. background: #fff;
  2077. }
  2078. .order-operate-wrapper>view.appoint {
  2079. background: linear-gradient(90deg, #00baff 0%, #008dff 100%);
  2080. }
  2081. .order-operate-wrapper view.eval-btn {
  2082. border: 2rpx solid #ff8219;
  2083. color: #ff8219;
  2084. background: #fff;
  2085. }
  2086. .refund-tips-bar {
  2087. height: 34rpx;
  2088. margin-top: 30rpx;
  2089. display: flex;
  2090. align-items: center;
  2091. }
  2092. .refund-tips-bar image {
  2093. width: 40rpx;
  2094. height: 40rpx;
  2095. margin-right: 4rpx;
  2096. }
  2097. .refund-tips-bar view {
  2098. font-size: 24rpx;
  2099. margin-right: 16rpx;
  2100. color: #666;
  2101. }
  2102. /* 投诉建议弹框 */
  2103. .goods-info-overlay {
  2104. position: fixed;
  2105. top: 0;
  2106. left: 0;
  2107. width: 100%;
  2108. height: 100%;
  2109. background-color: rgba(0, 0, 0, 0.6);
  2110. z-index: 99;
  2111. display: flex;
  2112. align-items: center;
  2113. justify-content: center;
  2114. }
  2115. .goods-info-popup {
  2116. width: 622rpx;
  2117. border-radius: 24rpx;
  2118. background: #fff;
  2119. overflow: hidden;
  2120. }
  2121. .popup-title {
  2122. height: 94rpx;
  2123. line-height: 94rpx;
  2124. text-align: center;
  2125. color: #ffffff;
  2126. font-size: 34rpx;
  2127. background: url('https://mall.zhaijieshi.cc/file/jzmall-dy/verify-dy-title.png') no-repeat center center;
  2128. background-size: 100% 100%;
  2129. background-color: #008dff;
  2130. }
  2131. .tips-title {
  2132. /* height: 180rpx; */
  2133. line-height: 40rpx;
  2134. padding: 34rpx 32rpx;
  2135. font-weight: 600;
  2136. color: #191919;
  2137. font-size: 28rpx;
  2138. }
  2139. .goods-info-popup .goods {
  2140. display: flex;
  2141. padding: 24rpx 20rpx 22rpx 22rpx;
  2142. }
  2143. .goods .img image {
  2144. height: 168rpx;
  2145. width: 168rpx;
  2146. overflow: hidden;
  2147. border-radius: 8rpx;
  2148. }
  2149. .goods .info {
  2150. height: 168rpx;
  2151. flex: 1;
  2152. padding-left: 18rpx;
  2153. }
  2154. .info-main {
  2155. display: flex;
  2156. height: 40rpx;
  2157. align-items: center;
  2158. justify-content: space-between;
  2159. }
  2160. .info .sku-name {
  2161. color: #666666;
  2162. font-size: 24rpx;
  2163. margin: 12rpx 0;
  2164. height: 34rpx;
  2165. line-height: 34rpx;
  2166. }
  2167. .product-name {
  2168. line-height: 40rpx;
  2169. font-size: 28rpx;
  2170. /* padding-left: 20rpx;
  2171. text-indent: -16rpx; */
  2172. overflow: hidden;
  2173. text-overflow: ellipsis;
  2174. white-space: nowrap;
  2175. width: 310rpx;
  2176. font-weight: bold;
  2177. color: rgba(0, 0, 0, 0.9);
  2178. }
  2179. .info-main .price {
  2180. color: rgba(0, 0, 0, 0.9);
  2181. font-size: 24rpx;
  2182. font-weight: bold;
  2183. }
  2184. .info .other-info {
  2185. font-size: 24rpx;
  2186. color: rgba(0, 0, 0, 0.9);
  2187. line-height: 34rpx;
  2188. }
  2189. .popup-bottom {
  2190. height: 106rpx;
  2191. padding: 14rpx 104rpx 34rpx;
  2192. display: flex;
  2193. justify-content: space-between;
  2194. }
  2195. .btn-cancel {
  2196. height: 58rpx;
  2197. line-height: 58rpx;
  2198. border-radius: 58rpx;
  2199. width: 162rpx;
  2200. text-align: center;
  2201. color: #0091ff;
  2202. font-size: 24rpx;
  2203. border: 2rpx solid #0091ff;
  2204. }
  2205. .btn-conf {
  2206. height: 58rpx;
  2207. line-height: 58rpx;
  2208. border-radius: 58rpx;
  2209. width: 162rpx;
  2210. text-align: center;
  2211. color: #fff;
  2212. font-size: 24rpx;
  2213. background: linear-gradient(270deg, #00baff 0%, #008dff 100%);
  2214. }
  2215. .ticket {
  2216. padding: 10rpx 20rpx;
  2217. margin-bottom: 10px;
  2218. background-color: rgb(247 240 240);
  2219. border-radius: 15rpx;
  2220. }
  2221. .ticket .title {
  2222. display: flex;
  2223. flex-direction: row;
  2224. justify-content: space-between;
  2225. }
  2226. .ticket .comment {
  2227. color: #09afff;
  2228. text-decoration: underline;
  2229. }
  2230. .timeline {
  2231. margin: 44rpx auto 0rpx auto;
  2232. position: relative;
  2233. width: 100%;
  2234. }
  2235. .timeline::before {
  2236. background-color: #6dd1c9;
  2237. content: '';
  2238. margin-left: -1rpx;
  2239. position: absolute;
  2240. top: 0rpx;
  2241. left: 8px;
  2242. width: 2rpx;
  2243. bottom: -250rpx;
  2244. height: calc(100% - 47rpx);
  2245. }
  2246. .timeline-event {
  2247. position: relative;
  2248. }
  2249. .timeline-event-copy {
  2250. padding: 32rpx 24rpx;
  2251. position: relative;
  2252. top: -47rpx;
  2253. left: 42rpx;
  2254. width: 536rpx;
  2255. background-color: #ffffff;
  2256. /* margin-bottom: 20rpx; */
  2257. border-radius: 20rpx;
  2258. }
  2259. .timeline-event-icon {
  2260. background-color: #ffffff00;
  2261. outline: 0rpx solid #ff0000;
  2262. display: block;
  2263. margin: 0rpx 0rpx 0rpx 0rpx;
  2264. position: absolute;
  2265. top: 0rpx;
  2266. left: 0rpx;
  2267. width: 28rpx;
  2268. height: 28rpx;
  2269. }
  2270. .timeline-event-thumbnail {
  2271. color: #333;
  2272. font-weight: bold;
  2273. font-size: 30rpx;
  2274. display: inline-flex;
  2275. width: 100%;
  2276. margin-bottom: 0rpx;
  2277. align-items: center;
  2278. justify-content: space-between;
  2279. }
  2280. .timeline-event-content {
  2281. display: flex;
  2282. flex-direction: column;
  2283. margin-top: 20rpx;
  2284. margin-bottom: 20rpx;
  2285. }
  2286. .timeline-text {
  2287. font-weight: 100;
  2288. color: #a09494;
  2289. font-size: 15px;
  2290. }
  2291. .timeline-marker {
  2292. border-radius: 50%;
  2293. height: 15px;
  2294. width: 15px;
  2295. }
  2296. .ticket-tips {
  2297. color: rgb(179 165 165);
  2298. font-size: 13px;
  2299. text-align: center;
  2300. padding: 10px 0;
  2301. margin-bottom: 10px;
  2302. height: 27px;
  2303. }
  2304. .ticket-tips-content {
  2305. padding: 0 20rpx 40rpx 32rpx;
  2306. margin-top: 21px;
  2307. font-size: 16px;
  2308. }
  2309. .ticket-img {
  2310. height: 45px;
  2311. width: 45px;
  2312. }
  2313. .top-new {
  2314. position: relative;
  2315. height: 208rpx;
  2316. width: 750rpx;
  2317. padding: 48rpx 20rpx 0 38rpx;
  2318. }
  2319. .top-bg-img {
  2320. position: absolute;
  2321. left: 10rpx;
  2322. top: 14rpx;
  2323. width: 90rpx;
  2324. height: 90rpx;
  2325. z-index: -10;
  2326. }
  2327. .top-bg-img2 {
  2328. position: absolute;
  2329. right: 38rpx;
  2330. top: 54rpx;
  2331. width: 110rpx;
  2332. height: 110rpx;
  2333. z-index: -10;
  2334. }
  2335. .top-new .status-val {
  2336. height: 56rpx;
  2337. line-height: 56rpx;
  2338. font-size: 40rpx;
  2339. font-weight: 600;
  2340. color: #191919;
  2341. letter-spacing: 2rpx;
  2342. margin-bottom: 14rpx;
  2343. }
  2344. .top-new .status-tips {
  2345. height: 44rpx;
  2346. font-size: 32rpx;
  2347. color: #999999;
  2348. line-height: 44rpx;
  2349. letter-spacing: 2rpx;
  2350. }
  2351. .service-list {
  2352. background: #FF4447;
  2353. border-radius: 26rpx 26rpx 0px 0px;
  2354. width: 750rpx;
  2355. }
  2356. .list-title {
  2357. display: flex;
  2358. align-items: center;
  2359. height: 102rpx;
  2360. font-size: 36rpx;
  2361. color: #fff;
  2362. padding: 0 46rpx 0 38rpx;
  2363. justify-content: space-between;
  2364. }
  2365. .service-remark-new{
  2366. padding:38rpx;
  2367. border-top: 1rpx solid #EBEBEB;
  2368. }
  2369. .service-remark-new .remark-text{
  2370. min-height: 40rpx;
  2371. font-size: 28rpx;
  2372. font-weight: 600;
  2373. color: #333333;
  2374. line-height: 40rpx;
  2375. letter-spacing: 1rpx;
  2376. }
  2377. .service-operate view.cancel-color{
  2378. border: 1rpx solid #979797;
  2379. color: #ACADB1;
  2380. background: #fff;
  2381. line-height: 54rpx;
  2382. }
  2383. .list-title-right{
  2384. display: flex;
  2385. align-items: center;
  2386. }
  2387. .arrow-white{
  2388. width:34rpx;
  2389. height:34rpx;
  2390. margin-left:26rpx;
  2391. }
  2392. /* 选择备注 */
  2393. .appoint-overlay-wrapper.remark-overlay {
  2394. display: flex;
  2395. align-items: flex-end;
  2396. justify-content: center;
  2397. }
  2398. .remark-select {
  2399. width: 750rpx;
  2400. padding: 0 24rpx 56rpx;
  2401. background: #FFFFFF;
  2402. border-radius: 24rpx 24rpx 0 0;
  2403. }
  2404. .remark-select .title {
  2405. font-weight: 600;
  2406. color: #191919;
  2407. font-size: 30rpx;
  2408. height: 90rpx;
  2409. line-height: 90rpx;
  2410. text-align: center;
  2411. border-bottom: 2rpx solid #E0E0E0;
  2412. }
  2413. .remark-item .remark-value {
  2414. color: #191919;
  2415. font-size: 26rpx;
  2416. font-weight: bold;
  2417. flex: 1;
  2418. text-align: left;
  2419. }
  2420. .remark-list .remark-item {
  2421. height: 84rpx;
  2422. display: flex;
  2423. border-bottom: 2rpx solid #E0E0E0;
  2424. align-items: center;
  2425. }
  2426. .remark-item .radio-img {
  2427. width: 26rpx;
  2428. height: 26rpx;
  2429. }
  2430. .remark-conf-btn {
  2431. width: 652rpx;
  2432. height: 90rpx;
  2433. line-height: 90rpx;
  2434. border-radius: 90rpx;
  2435. border: 4rpx solid #FF8219;
  2436. text-align: center;
  2437. font-size: 36rpx;
  2438. color: #FF8219;
  2439. margin: 0 auto;
  2440. margin-top: 54rpx;
  2441. }
  2442. .appoint-overlay-wrapper {
  2443. position: fixed;
  2444. top: 0;
  2445. left: 0;
  2446. width: 100%;
  2447. height: 100%;
  2448. background-color: rgba(0, 0, 0, .7);
  2449. z-index: 999;
  2450. }
  2451. </style>