order.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829
  1. <template>
  2. <view>
  3. <view class="poster" v-if="myqr_show">
  4. <view>
  5. <image :src="myqr_url" :style="'width:' + myqr_width + 'rpx;'" mode="widthFix"></image>
  6. <view class="tool">
  7. <view>
  8. <button open-type="share" class="share-btn">
  9. <image class="img" style="width: 85rpx; margin-right: 25rpx" mode="widthFix"
  10. src="/static/static/images/share/p_dy.png"></image>
  11. </button>
  12. </view>
  13. <view>
  14. <image class="img" mode="widthFix" @tap="goSaveQrcode" src="/static/images/share/p_save.png">
  15. </image>
  16. </view>
  17. </view>
  18. <view style="text-align: center">
  19. <image class="closeImg" @tap="hidePoster" src="/static/images/share/close.png"></image>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="appoint-tabs-wrapper">
  24. <view :class="'appoint-tab-item ' + (showType == 0 ? 'active' : '')" data-tab="0" @tap="onTabChange">全 部
  25. </view>
  26. <view :class="'appoint-tab-item ' + (showType == 1 ? 'active' : '')" data-tab="1" @tap="onTabChange">待支付
  27. </view>
  28. <view :class="'appoint-tab-item ' + (showType == 2 ? 'active' : '')" data-tab="2" @tap="onTabChange">待服务
  29. </view>
  30. <view :class="'appoint-tab-item ' + (showType == 3 ? 'active' : '')" data-tab="3" @tap="onTabChange">售后
  31. </view>
  32. </view>
  33. <view class="container" :style="'filter:blur(' + myqr_blur + 'rpx)'">
  34. <view class="no-order" v-if="orderList.length <= 0">
  35. <view class="c">
  36. <text>还没有任何订单呢</text>
  37. </view>
  38. </view>
  39. <view class="orders">
  40. <view class="order" v-for="(item, index) in orderList" :key="index">
  41. <view class="h">
  42. <view class="l"
  43. v-if="item.orderStatusVal == '待预约' || item.orderStatusVal == '服务中' || item.orderStatusVal == '服务已完成'">
  44. 已支付</view>
  45. <view class="l" v-else>{{ item.orderStatusVal }}</view>
  46. <view class="r"
  47. v-if="item.orderStatusVal == '待预约' || item.orderStatusVal == '服务中' || item.orderStatusVal == '服务已完成'">
  48. {{ item.orderStatusVal }}
  49. </view>
  50. <view class="r" v-else></view>
  51. </view>
  52. <!-- open-type="redirect" -->
  53. <navigator :url="'../orderDetail/orderDetail?id=' + item.id">
  54. <view class="goods">
  55. <view class="img">
  56. <image :src="item.picUrl"></image>
  57. </view>
  58. <view class="info">
  59. <!-- <view class="info-orderSn" >订单编号: {{item.orderSn}}</view> -->
  60. <view class="info-main">
  61. <text class="product-name">{{ item.goodsName }}</text>
  62. <text class="price">¥{{ item.orderPrice }}</text>
  63. </view>
  64. <view class="sku-name" v-if="item.increaseSumPrice">
  65. <view>加购: {{ item.unitDescribe }}*{{ item.unitIncreaseNumber }}</view>
  66. <view>¥{{ item.increaseSumPrice }}</view>
  67. </view>
  68. <view class="sku-name">规格:{{ item.skuName }}</view>
  69. <text class="other-info">服务{{ item.serviceTimes }}次</text>
  70. <view v-if="item.payOverTime > 0" class="over-time">
  71. {{ utils.formatOverTime(item.payOverTime) }} 后订单关闭</view>
  72. </view>
  73. </view>
  74. </navigator>
  75. <view class="b">
  76. <view class="l">
  77. <text>实付款:¥{{ item.actualPrice }}</text>
  78. </view>
  79. </view>
  80. <!-- 提醒 -->
  81. <view class="status-tips" v-if="item.orderStatusVal == '已退款'">
  82. <image mode="aspectFit"
  83. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-refund-tips.png"></image>
  84. <view class="tips-title">已退款</view>
  85. <view>已按照原支付路径退回</view>
  86. </view>
  87. <view class="status-tips" v-if="item.orderStatusVal == '服务已完成'" :data-id="item.id" @tap="goCheck">
  88. <image mode="aspectFit"
  89. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-customer-msg.png"></image>
  90. <view class="tips-title">服务验收:</view>
  91. <view>服务已完成,请评价</view>
  92. </view>
  93. <view class="customer-msg" v-if="item.customerServiceReminder">
  94. <view class="msg-title">提醒:</view>
  95. <view class="msg-text">{{ item.customerServiceReminder }}</view>
  96. </view>
  97. <view class="customer-msg" v-if="item.ticketStatus == 1">
  98. <view class="msg-title">提醒:</view>
  99. <view class="msg-text">您的售后工单正在处理中,请耐心等待</view>
  100. </view>
  101. <view class="customer-msg" v-if="item.ticketStatus == 2" :data-id="item.id" @tap="orderDetail">
  102. <view class="msg-title">提醒:</view>
  103. <view class="msg-text">您的售后工单已完成,可以去评价了哦</view>
  104. </view>
  105. <!-- 操作事件 -->
  106. <view class="order-operate-wrapper">
  107. <!-- <view catchtap="deleteOrder" wx:if="{{item.handleOption.delete}}" data-id="{{item.id}}" class="del">删除订单
  108. </view> -->
  109. <view @tap.stop.prevent="cancelOrder" v-if="item.handleOption.cancel" :data-id="item.id"
  110. class="del">取消订单</view>
  111. <view @tap.stop.prevent="refundOrder" :data-id="item.id" v-if="item.handleOption.refund"
  112. class="del">售后/退款</view>
  113. <!-- <view data-id="{{item.id}}" data-sn="{{item.orderSn}}" data-aid="{{item.addressId}}"
  114. data-type="{{item.type}}" wx:if="{{item.handleOption.book}}" class="eval-btn">评价</view> -->
  115. <!-- 抖音评价 20231007屏蔽 by leo 启用工单上的服务验收
  116. <rate-button class="eval-btn" order-id="{{item.orderSn}}" bind:init="handleInit" bind:success="handleSuccess" bind:error="handleError" />-->
  117. <!-- <view catchtap="confirmOrder" wx:if="{{item.handleOption.confirm}}" data-id="{{item.id}}">待上门</view> -->
  118. <!-- <view catchtap="refundOrder" wx:if="{{item.handleOption.refund&&item.goodsList[0].goodsSn!='1036016'}}" data-id="{{item.id}}">申请退款</view> -->
  119. <!-- <view data-id="{{item.goodsList[0].goodsId}}" catchtap="shareFriendOrCircle" >分享商品</view> -->
  120. <view @tap.stop.prevent="goAppoint" :data-id="item.id" :data-sn="item.orderSn"
  121. :data-aid="item.addressId" v-if="item.handleOption.book" :data-detail="item.detailId"
  122. class="appoint">
  123. 预约服务
  124. </view>
  125. <view @tap.stop.prevent="cancelAppoint" :data-serid="item.bookedDetailId" :data-id="item.id"
  126. :data-times="item.serviceTimes" v-if="item.handleOption.canCancelBook" class="del">
  127. 取消预约
  128. </view>
  129. <view @tap="modifyAppoint" :data-id="item.id" :data-serid="item.bookedDetailId"
  130. :data-times="item.serviceTimes" :data-sn="item.orderSn" :data-aid="item.addressId"
  131. :data-type="item.type" v-if="item.handleOption.canModify" class="warning-color">
  132. 修改预约
  133. </view>
  134. <view @tap.stop.prevent="payOrder" :data-id="item.id" :data-sn="item.orderSn"
  135. v-if="item.handleOption.pay">立即支付</view>
  136. <view class="btn-rebuy" @tap="buyAgain" :data-id="item.goodsId"
  137. v-if="item.orderStatusVal != '未支付'">再次购买</view>
  138. </view>
  139. <view class="remain-content" v-if="item.showAppointmentAlert">
  140. 还剩{{item.notAppointmentTimes}}次可约,请记得预约哦
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. <!-- 修改预约/预约 -->
  146. <view class="refund-order-overlay" v-if="appointDiaShow">
  147. <view class="refund-order-dialog refund-order-dia-success">
  148. <image src="https://mall.zhaijieshi.cc/file/wx-huawang/g.png" mode="" class="title-icong"></image>
  149. <view class="refund-dia-title">请选择您要修改的服务</view>
  150. <view class="modify-list">
  151. <view class="modify-item" @tap="switchSer" :data-serid="item.id"
  152. v-for="(item, index) in serModifyList" :key="index">
  153. <image src="https://mall.zhaijieshi.cc/file/wx-huawang/dian2.png" mode="aspectFit"
  154. v-if="item.id == serviceId"></image>
  155. <image src="https://mall.zhaijieshi.cc/file/wx-dy/radio-unselect.png" mode="aspectFit" v-else>
  156. </image>
  157. <view :class="item.id == serviceId ? 'current-modify' : ''">{{ item.bookTime }}</view>
  158. </view>
  159. </view>
  160. <view class="dia-btn-wrapper">
  161. <view class="dia-cancel-btn" @tap="appointModifyConf">确定</view>
  162. </view>
  163. </view>
  164. <image @tap="closeModify" src="https://jzmall.lifejingzhi.com/file/mall-uni/icon-close.png"
  165. class="modify-close"></image>
  166. </view>
  167. <!-- 选择取消原因 -->
  168. <!-- 第一步 -->
  169. <view class="appoint-overlay-wrapper remark-overlay" v-if="cancelFirstShow" @tap="onCancelPopupCloseFir">
  170. <view class="remark-select" @tap.stop.prevent="onCancelClick">
  171. <view class="title" style="text-align: left">请选择要取消的服务</view>
  172. <view class="remark-list ser-list">
  173. <view :class="'remark-item ser-item ' + (item.id == serviceId ? 'current-ser' : '')"
  174. :data-id="item.id" @tap="switchSer" :data-serid="item.id" style="justify-content: flex-start"
  175. v-for="(item, index) in serModifyList" :key="index">
  176. <image mode="aspectFit" src="https://mall.zhaijieshi.cc/file/wx-huawang/dian2.png"
  177. class="radio-img" v-if="item.id == serviceId"></image>
  178. <image mode="aspectFit" src="https://mall.zhaijieshi.cc/file/wx-huawang/dian1.png"
  179. class="radio-img" v-else></image>
  180. <view :class="'remark-value ' + (item.id == serviceId ? 'current-cancel' : '')">
  181. {{ item.bookTime }}</view>
  182. <view class="ser-right">已预约</view>
  183. </view>
  184. </view>
  185. <view class="remark-conf-btn" @tap.stop.prevent="cancelFirstConfirm">下一步</view>
  186. </view>
  187. </view>
  188. <view class="appoint-overlay-wrapper remark-overlay" v-if="cancelShow" @tap="onCancelPopupClose">
  189. <view class="remark-select" @tap.stop.prevent="onCancelClick">
  190. <view class="title">选择取消原因</view>
  191. <view class="remark-list">
  192. <view class="remark-item" :data-id="item.id" @tap.stop.prevent="cancelItemSelect"
  193. v-for="(item, index) in cancelList" :key="index">
  194. <view class="remark-value">{{ item.value }}</view>
  195. <image mode="aspectFit"
  196. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-select-popup.png" class="radio-img"
  197. v-if="cancelReason == item.id"></image>
  198. <image mode="aspectFit"
  199. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-unselect-popup.png"
  200. class="radio-img" v-else></image>
  201. </view>
  202. </view>
  203. <view class="remark-conf-btn" @tap.stop.prevent="cancelItemConfirm">取消预约</view>
  204. </view>
  205. </view>
  206. </view>
  207. </template>
  208. <script module="utils" lang="wxs" src="@/utils/formatFuc.wxs"></script>
  209. <script>
  210. var util = require('../../../utils/util.js');
  211. var api = require('../../../config/api.js');
  212. var app = getApp();
  213. export default {
  214. data() {
  215. return {
  216. timer: '',
  217. orderList: [],
  218. showType: 0,
  219. page: 1,
  220. limit: 10,
  221. totalPages: 1,
  222. myqr_show: false,
  223. //我的分享二维码
  224. myqr_url: null,
  225. myqr_blur: 0,
  226. //背景模糊值
  227. myqr_width: 0,
  228. hasLogin: false,
  229. goodsId: '',
  230. tipsList: [],
  231. refundTipShow: false,
  232. refundId: '',
  233. serModifyList: [],
  234. serviceId: '',
  235. appointOrderId: '',
  236. appointDiaType: '',
  237. //1修改预约 2取消预约
  238. appointDiaShow: false,
  239. cancelShow: false,
  240. cancelList: [{
  241. id: 19,
  242. value: '【个人原因】临时有事暂时不预约'
  243. },
  244. {
  245. id: 20,
  246. value: '【个人原因】先囤着以后再约'
  247. },
  248. {
  249. id: 22,
  250. value: '【个人原因】计划有变不需要了'
  251. },
  252. {
  253. id: 21,
  254. value: '【商家原因】保洁师无法上门服务'
  255. },
  256. {
  257. id: 23,
  258. value: ' 其他'
  259. }
  260. ],
  261. cancelReason: '',
  262. cancelFirstShow: false
  263. };
  264. },
  265. onLoad: function(options) {
  266. // 页面初始化 options为页面跳转所带来的参数
  267. if (options.tab) {
  268. this.setData({
  269. showType: options.tab
  270. });
  271. }
  272. },
  273. onHide: function() {
  274. console.log('onHide');
  275. clearInterval(this.timer);
  276. },
  277. onUnload: function() {
  278. console.log('onunload');
  279. clearInterval(this.timer);
  280. },
  281. onReachBottom() {
  282. if (this.totalPages > this.page) {
  283. this.setData({
  284. page: this.page + 1
  285. });
  286. this.getOrderList();
  287. } else if (this.orderList.length > 0) {
  288. uni.showToast({
  289. title: '没有更多订单了',
  290. icon: 'none',
  291. duration: 2000
  292. });
  293. return false;
  294. }
  295. },
  296. onReady: function() {
  297. // 页面渲染完成
  298. },
  299. onShow: function() {
  300. // 页面显示
  301. this.setData({
  302. orderList: [],
  303. page: 1
  304. });
  305. // wx.pageScrollTo({
  306. // scrollTop: 0,
  307. // duration: 1000,
  308. // });
  309. this.getOrderList();
  310. },
  311. methods: {
  312. getOrderList() {
  313. uni.showLoading({
  314. title: '加载中'
  315. });
  316. let that = this;
  317. util.request(api.OrderList, {
  318. showType: that.showType,
  319. page: that.page,
  320. limit: that.limit
  321. }).then((res) => {
  322. uni.hideLoading();
  323. if (res.errno === 0) {
  324. console.log(res.data);
  325. that.setData({
  326. orderList: that.orderList.concat(res.data.data.orders),
  327. totalPages: res.data.pages
  328. });
  329. clearInterval(this.timer);
  330. // 如果有未支付订单,倒计时定时器
  331. let isHasOver = this.orderList.some((item) => {
  332. return item.payOverTime > 0;
  333. });
  334. console.log(isHasOver);
  335. if (isHasOver) {
  336. let timer = setInterval(() => {
  337. let list = this.orderList;
  338. let newList = [];
  339. list.forEach((item) => {
  340. let obj = item;
  341. if (item.payOverTime > 0) {
  342. obj.payOverTime = item.payOverTime - 1;
  343. }
  344. newList.push(obj);
  345. });
  346. this.setData({
  347. orderList: newList
  348. });
  349. }, 1000);
  350. this.setData({
  351. timer: timer
  352. });
  353. }
  354. }
  355. });
  356. },
  357. orderDetail(e) {
  358. let id = e.currentTarget.dataset.id;
  359. uni.navigateTo({
  360. url: '/pages/ucenter/orderDetail/orderDetail?id=' + id
  361. });
  362. },
  363. switchTab: function(event) {
  364. let showType = event.currentTarget.dataset.index;
  365. this.setData({
  366. orderList: [],
  367. showType: showType,
  368. page: 1,
  369. // limit: 10,
  370. totalPages: 1
  371. });
  372. this.getOrderList();
  373. },
  374. onTabChange(e) {
  375. // let showType = e.detail.name;
  376. let showType = e.currentTarget.dataset.tab;
  377. this.setData({
  378. orderList: [],
  379. showType: showType,
  380. page: 1,
  381. // limit: 10,
  382. totalPages: 1
  383. });
  384. this.getOrderList();
  385. },
  386. appointServiceOld(e) {
  387. let id = e.currentTarget.dataset.id;
  388. let addressId = e.currentTarget.dataset.aid;
  389. let type = e.currentTarget.dataset.type;
  390. if (type && type == 5) {
  391. uni.navigateTo({
  392. url: '/pages/ucenter/coupon/couponGoods?id=1'
  393. });
  394. return;
  395. }
  396. if (addressId == null || addressId == 0) {
  397. uni.navigateTo({
  398. url: '/pages/ucenter/appointOrder/appointOrder?orderId=' + id
  399. });
  400. } else {
  401. //买约分离 没有地址的预约
  402. uni.navigateTo({
  403. url: '/pages/ucenter/serviceDetail/serviceDetail?orderId=' + id
  404. });
  405. }
  406. },
  407. appointService(e) {
  408. let id = e.currentTarget.dataset.id;
  409. let addressId = e.currentTarget.dataset.aid;
  410. let type = e.currentTarget.dataset.type;
  411. let detailId = e.currentTarget.dataset.detail;
  412. uni.navigateTo({
  413. url: '/pages/ucenter/appointOrder/appointOrder?orderId=' + id + '&serviceId=' + detailId
  414. });
  415. },
  416. qrtouchstart: function() {
  417. this.setData({
  418. myqr_blur: 0,
  419. myqr_show: false
  420. });
  421. },
  422. shareFriendOrCircle: function(e) {
  423. // let that = this;
  424. // if (!app.globalData.hasLogin) {
  425. // wx.navigateTo({
  426. // url: "/pages/auth/login/login"
  427. // });
  428. // return;
  429. // }
  430. // //获取分享id 用来追踪链接
  431. // //引荐人和非引荐人的 链接不同
  432. // let imgUrl = that.data.goods.shareWxUrl ? that.data.goods.shareWxUrl : that.data.goods.gallery[0];
  433. // var path = '/pages/goods/goods?id=' + that.data.id + '&rId=' + that.data.userInfo.id;
  434. // if (that.data.userInfo.isDis) { //是引荐人
  435. // path = '/pages/goods/goods?id=' + that.data.id + '&shareId=' + that.data.wxShareId;
  436. // }
  437. // this.hidePoster();
  438. // return {
  439. // title: that.data.goods.name,
  440. // desc: that.data.myqr_ads,
  441. // path: path,
  442. // imageUrl: imgUrl
  443. // }
  444. },
  445. // 保存分享图
  446. saveShare: function() {
  447. let that = this;
  448. uni.showLoading({
  449. title: '图片保存中'
  450. });
  451. console.log(that);
  452. uni.downloadFile({
  453. url: that.myqr_url,
  454. success: function(res) {
  455. console.log(res);
  456. uni.saveImageToPhotosAlbum({
  457. filePath: res.tempFilePath,
  458. success: function(res) {
  459. uni.hideLoading();
  460. uni.showModal({
  461. title: '存图成功',
  462. content: '图片成功保存到相册了,可以分享到朋友圈了',
  463. showCancel: false,
  464. confirmText: '好的',
  465. confirmColor: '#a78845',
  466. success: function(res) {
  467. if (res.confirm) {
  468. console.log('用户点击确定');
  469. that.setData({
  470. myqr_show: false,
  471. myqr_blur: 0
  472. });
  473. }
  474. }
  475. });
  476. },
  477. fail: function(res) {
  478. uni.hideLoading();
  479. uni.showModal({
  480. title: '警告',
  481. content: '不授权无法保存',
  482. showCancel: false
  483. });
  484. that.setData({
  485. myqr_show: false,
  486. myqr_blur: 0
  487. });
  488. }
  489. });
  490. },
  491. fail: function(res) {
  492. uni.hideLoading();
  493. console.log(res);
  494. }
  495. });
  496. },
  497. // “去付款”按钮点击效果
  498. payOrder: function(e) {
  499. let that = this;
  500. let id = e.currentTarget.dataset.id;
  501. let ordern = e.currentTarget.dataset.sn;
  502. util.request(
  503. api.OrderPayCheck, {
  504. orderId: id
  505. },
  506. 'POST'
  507. ).then(function(res) {
  508. if (res.errno === 0) {
  509. const outOrderNo = res.data;
  510. console.log(res);
  511. uni.continueToPay({
  512. // orderId: this.data.orderId, // 内部订单号
  513. outOrderNo: outOrderNo,
  514. // 外部订单号 2个订单号必填一个
  515. success: (res) => {
  516. console.log(res);
  517. const {
  518. orderId,
  519. outOrderNo
  520. } = res;
  521. console.log('success res', res);
  522. console.log('orderId', orderId, 'outOrderNo', outOrderNo);
  523. uni.redirectTo({
  524. url: '/pages/ucenter/order/order'
  525. });
  526. },
  527. fail: (res) => {
  528. console.log(res);
  529. const {
  530. orderId,
  531. outOrderNo,
  532. errNo,
  533. errMsg,
  534. errLogId
  535. } = res;
  536. if (errLogId) {
  537. console.log('查询订单信息失败', errNo, errMsg, errLogId);
  538. }
  539. if (orderId || outOrderNo) {
  540. console.log('支付失败', errNo, errMsg, orderId, outOrderNo);
  541. console.log('订单号' + outOrderNo);
  542. // wx.navigateTo({
  543. // url: '/pages/ucenter/orderDetail/orderDetail?id='+outOrderNo
  544. // });
  545. }
  546. util.showErrorToast('支付失败');
  547. }
  548. });
  549. }
  550. });
  551. },
  552. payOrder(e) {
  553. let that = this;
  554. let id = e.currentTarget.dataset.id;
  555. util.request(
  556. api.OrderPrepay, {
  557. orderId: id
  558. },
  559. 'POST'
  560. ).then(function(res) {
  561. if (res.errno === 0) {
  562. const payParam = res.data;
  563. console.log('支付过程开始');
  564. uni.requestPayment({
  565. timeStamp: payParam.timeStamp,
  566. nonceStr: payParam.nonceStr,
  567. package: payParam.packageValue,
  568. signType: payParam.signType,
  569. paySign: payParam.paySign,
  570. success: function(res) {
  571. console.log('支付过程成功');
  572. uni.redirectTo({
  573. url: '/pages/ucenter/order/order'
  574. });
  575. },
  576. fail: function(res) {
  577. console.log('支付过程失败');
  578. util.showErrorToast('支付失败');
  579. },
  580. complete: function(res) {
  581. console.log('支付过程结束');
  582. }
  583. });
  584. } else {
  585. uni.showToast({
  586. title: res.errmsg,
  587. icon: 'none'
  588. });
  589. }
  590. });
  591. },
  592. // “删除”点击效果
  593. deleteOrder: function(e) {
  594. let that = this;
  595. let id = e.currentTarget.dataset.id;
  596. uni.showModal({
  597. title: '',
  598. content: '确定要删除此订单?',
  599. success: function(res) {
  600. if (res.confirm) {
  601. util.request(
  602. api.OrderDelete, {
  603. orderId: id
  604. },
  605. 'POST'
  606. ).then(function(res) {
  607. if (res.errno === 0) {
  608. uni.showToast({
  609. title: '删除订单成功'
  610. });
  611. util.redirect('/pages/ucenter/order/order');
  612. } else {
  613. util.showErrorToast(res.errmsg);
  614. }
  615. });
  616. }
  617. }
  618. });
  619. },
  620. // “取消订单”点击效果
  621. cancelOrder(e){
  622. // let that = this;
  623. let id = e.currentTarget.dataset.id;
  624. uni.showModal({
  625. title: '',
  626. content: '确定要取消此订单?',
  627. confirmColor: '#D77958',
  628. success: ()=>{
  629. util.request(
  630. api.OrderCancel, {
  631. orderId: id
  632. },
  633. 'POST'
  634. ).then((res)=>{
  635. if (res.errno === 0) {
  636. uni.showToast({
  637. title: '取消订单成功'
  638. });
  639. util.redirect('/pages/ucenter/order/order');
  640. } else {
  641. util.showErrorToast(res.errmsg);
  642. }
  643. });
  644. }
  645. });
  646. },
  647. // “待上门”点击效果
  648. confirmOrder: function(e) {
  649. let that = this;
  650. let id = e.currentTarget.dataset.id;
  651. uni.showModal({
  652. title: '',
  653. content: '确认上门服务?',
  654. success: function(res) {
  655. if (res.confirm) {
  656. util.request(
  657. api.OrderConfirm, {
  658. orderId: id
  659. },
  660. 'POST'
  661. ).then(function(res) {
  662. if (res.errno === 0) {
  663. uni.showToast({
  664. title: '确认上门成功!'
  665. });
  666. util.redirect('/pages/ucenter/order/order');
  667. } else {
  668. util.showErrorToast(res.errmsg);
  669. }
  670. });
  671. }
  672. }
  673. });
  674. },
  675. // “取消订单并退款”点击效果
  676. refundOrderOld: function(e) {
  677. let that = this;
  678. let id = e.currentTarget.dataset.id;
  679. uni.showModal({
  680. title: '',
  681. content: '确定要取消此订单?',
  682. success: function(res) {
  683. if (res.confirm) {
  684. util.request(
  685. api.OrderRefund, {
  686. orderId: id
  687. },
  688. 'POST'
  689. ).then(function(res) {
  690. if (res.errno === 0) {
  691. uni.showToast({
  692. title: '取消订单成功'
  693. });
  694. util.redirect('/pages/ucenter/order/order');
  695. } else {
  696. util.showErrorToast(res.errmsg);
  697. }
  698. });
  699. }
  700. }
  701. });
  702. },
  703. refundOrderOld: function(e) {
  704. let id = e.currentTarget.dataset.id;
  705. },
  706. refundOrder: function(e) {
  707. let id = e.currentTarget.dataset.id;
  708. uni.navigateTo({
  709. url: '/pages/ucenter/applyRefund/applyRefund?id=' + id
  710. });
  711. },
  712. buyAgain(e) {
  713. let id = e.currentTarget.dataset.id;
  714. uni.navigateTo({
  715. url: '/pages/goods/goods?id=' + id
  716. });
  717. },
  718. goCheck(e) {
  719. let id = e.currentTarget.dataset.id;
  720. uni.navigateTo({
  721. url: '/pages/ucenter/orderDetail/orderDetail?id=' + id
  722. });
  723. },
  724. handleInit(event) {
  725. const {
  726. status
  727. } = event.detail;
  728. console.log(status);
  729. },
  730. handleSuccess(event) {
  731. const {
  732. result
  733. } = event.detail;
  734. // 团购订单不支持查看评价,此时可决定按钮是否展示
  735. console.log(result);
  736. },
  737. handleError(event) {
  738. const {
  739. errMsg,
  740. errNo
  741. } = event.detail;
  742. // errNo(错误码,对应某种具体报错原因)
  743. // errMsg(报错信息)
  744. console.log(errMsg, errNo);
  745. },
  746. goAppoint(e) {
  747. let id = e.currentTarget.dataset.id;
  748. let detailId = e.currentTarget.dataset.detail;
  749. uni.navigateTo({
  750. url: '/pages/ucenter/appointOrder/appointOrder?orderId=' + id + '&serviceId=' + detailId
  751. });
  752. },
  753. switchSer(e) {
  754. let serid = e.currentTarget.dataset.serid;
  755. this.setData({
  756. serviceId: serid
  757. });
  758. },
  759. appointModifyConf() {
  760. if (this.serviceId == '' || this.serviceId == null) {
  761. uni.showToast({
  762. title: '请选择要修改的服务',
  763. icon: 'none'
  764. });
  765. return false;
  766. } else {
  767. this.setData({
  768. appointDiaShow: false
  769. });
  770. uni.navigateTo({
  771. url: '/pages/ucenter/appointOrder/appointOrder?orderId=' + this.appointOrderId +
  772. '&serviceId=' + this.serviceId
  773. });
  774. }
  775. },
  776. closeModify() {
  777. this.setData({
  778. appointDiaShow: false
  779. });
  780. },
  781. modifyAppoint(e) {
  782. let id = e.currentTarget.dataset.id;
  783. let serid = e.currentTarget.dataset.serid;
  784. let times = e.currentTarget.dataset.times;
  785. this.setData({
  786. appointOrderId: id
  787. });
  788. if (times > 1) {
  789. this.setData({
  790. appointDiaShow: true,
  791. serviceId: ''
  792. });
  793. util.request(
  794. api.getBooked, {
  795. orderId: id
  796. },
  797. 'GET'
  798. ).then((res) => {
  799. if (res.errno === 0) {
  800. this.setData({
  801. serModifyList: res.data
  802. });
  803. }
  804. });
  805. } else {
  806. uni.navigateTo({
  807. url: '/pages/ucenter/appointOrder/appointOrder?orderId=' + id + '&serviceId=' + serid
  808. });
  809. }
  810. },
  811. onCancelClick() {},
  812. cancelAppoint(e) {
  813. let id = e.currentTarget.dataset.id;
  814. let serid = e.currentTarget.dataset.serid;
  815. let times = e.currentTarget.dataset.times;
  816. this.setData({
  817. appointOrderId: id
  818. });
  819. if (times > 1) {
  820. this.setData({
  821. cancelFirstShow: true,
  822. serviceId: ''
  823. });
  824. util.request(
  825. api.getBooked, {
  826. orderId: id
  827. },
  828. 'GET'
  829. ).then((res) => {
  830. if (res.errno === 0) {
  831. this.setData({
  832. serModifyList: res.data
  833. });
  834. }
  835. });
  836. } else {
  837. this.setData({
  838. cancelShow: true,
  839. serviceId: serid
  840. });
  841. }
  842. },
  843. cancelItemSelect(e) {
  844. this.setData({
  845. cancelReason: e.currentTarget.dataset.id
  846. });
  847. },
  848. onCancelPopupClose() {
  849. this.setData({
  850. cancelShow: false
  851. });
  852. },
  853. onCancelPopupCloseFir() {
  854. this.setData({
  855. cancelFirstShow: false
  856. });
  857. },
  858. cancelFirstConfirm() {
  859. if (this.serviceId == '' || this.serviceId == null) {
  860. uni.showToast({
  861. title: '请选择要取消的服务',
  862. icon: 'none'
  863. });
  864. return false;
  865. }
  866. this.setData({
  867. cancelFirstShow: false,
  868. cancelShow: true
  869. });
  870. },
  871. cancelItemConfirm() {
  872. let that = this;
  873. if (that.cancelReason == '') {
  874. util.showErrorToast('请选择取消原因');
  875. return;
  876. }
  877. uni.showLoading({
  878. title: '提交中'
  879. });
  880. util.request(
  881. api.OrderBookCancel, {
  882. detailId: this.serviceId,
  883. cancelReason: this.cancelReason
  884. },
  885. 'POST'
  886. ).then((res) => {
  887. uni.hideLoading();
  888. if (res.errno === 0) {
  889. uni.showModal({
  890. title: '提示',
  891. content: '您已成功取消预约',
  892. showCancel: false,
  893. confirmColor: '#D77958',
  894. confirmText: '确定',
  895. success: function (res) {
  896. }
  897. });
  898. uni.showToast({
  899. title: '提交成功'
  900. });
  901. this.setData({
  902. cancelShow: false,
  903. orderList: [],
  904. page: 1
  905. });
  906. this.getOrderList();
  907. } else {
  908. uni.showToast({
  909. title: res.errmsg,
  910. icon: 'none'
  911. });
  912. }
  913. });
  914. },
  915. goSaveQrcode() {
  916. console.log('占位:函数 goSaveQrcode 未声明');
  917. },
  918. hidePoster() {
  919. console.log('占位:函数 hidePoster 未声明');
  920. }
  921. }
  922. };
  923. </script>
  924. <style>
  925. page {
  926. /* height: 100%; */
  927. width: 100%;
  928. background: #f4f4f4;
  929. }
  930. .orders-switch {
  931. width: 100%;
  932. background: #fff;
  933. height: 84rpx;
  934. }
  935. .orders-switch .item {
  936. display: inline-block;
  937. height: 82rpx;
  938. width: 18%;
  939. padding: 0 15rpx;
  940. text-align: center;
  941. }
  942. .orders-switch .item .txt {
  943. display: inline-block;
  944. height: 82rpx;
  945. padding: 0 20rpx;
  946. line-height: 82rpx;
  947. color: #9a9ba1;
  948. font-size: 30rpx;
  949. width: 170rpx;
  950. }
  951. .orders-switch .item.active .txt {
  952. color: #ab956d;
  953. border-bottom: 4rpx solid #ab956d;
  954. }
  955. .no-order {
  956. width: 100%;
  957. height: auto;
  958. margin: 0 auto;
  959. }
  960. .no-order .c {
  961. width: 100%;
  962. height: auto;
  963. padding-top: 400rpx;
  964. }
  965. .no-order .c text {
  966. margin: 0 auto;
  967. display: block;
  968. width: 258rpx;
  969. height: 29rpx;
  970. line-height: 29rpx;
  971. text-align: center;
  972. font-size: 29rpx;
  973. color: #999;
  974. }
  975. .orders {
  976. height: auto;
  977. width: 750rpx;
  978. /* overflow: hidden; */
  979. padding: 0 24rpx;
  980. margin-top: 110rpx;
  981. }
  982. .order {
  983. background: #fff;
  984. padding: 0 24rpx 24rpx 24rpx;
  985. border-radius: 24rpx;
  986. margin-bottom: 24rpx;
  987. }
  988. .order .h {
  989. height: 72rpx;
  990. border-bottom: 2rpx solid #e0e0e0;
  991. color: #191919;
  992. font-size: 28rpx;
  993. font-weight: bold;
  994. display: flex;
  995. align-items: center;
  996. justify-content: space-between;
  997. }
  998. .order .goods {
  999. display: flex;
  1000. /* align-items: center; */
  1001. padding: 24rpx 0 0;
  1002. position: relative;
  1003. }
  1004. .order .goods .img {
  1005. height: 190rpx;
  1006. width: 190rpx;
  1007. background: #f4f4f4;
  1008. }
  1009. .order .goods .img image {
  1010. height: 190rpx;
  1011. width: 190rpx;
  1012. overflow: hidden;
  1013. border-radius: 10rpx;
  1014. }
  1015. .order .goods .info {
  1016. height: 145.83rpx;
  1017. flex: 1;
  1018. padding-left: 20rpx;
  1019. }
  1020. .info-orderSn {
  1021. font-size: 28rpx;
  1022. font-weight: bold;
  1023. }
  1024. .info-main {
  1025. display: flex;
  1026. height: 40rpx;
  1027. align-items: center;
  1028. justify-content: space-between;
  1029. /* margin-bottom: 58rpx; */
  1030. }
  1031. .info .sku-name {
  1032. color: #666666;
  1033. font-size: 24rpx;
  1034. margin: 10rpx 0;
  1035. height: 34rpx;
  1036. line-height: 34rpx;
  1037. display: flex;
  1038. justify-content: space-between;
  1039. }
  1040. .product-name {
  1041. line-height: 40rpx;
  1042. font-size: 28rpx;
  1043. /* padding-left: 20rpx;
  1044. text-indent: -16rpx; */
  1045. overflow: hidden;
  1046. text-overflow: ellipsis;
  1047. white-space: nowrap;
  1048. width: 328rpx;
  1049. font-weight: bold;
  1050. color: rgba(0, 0, 0, 0.9);
  1051. }
  1052. .info-main .price {
  1053. color: rgba(0, 0, 0, 0.9);
  1054. font-size: 24rpx;
  1055. font-weight: bold;
  1056. }
  1057. .info .other-info {
  1058. font-size: 24rpx;
  1059. color: rgba(0, 0, 0, 0.9);
  1060. line-height: 34rpx;
  1061. }
  1062. .order .goods .status {
  1063. width: 105rpx;
  1064. color: #b4282d;
  1065. font-size: 25rpx;
  1066. }
  1067. .order .b {
  1068. height: 44rpx;
  1069. line-height: 44rpx;
  1070. /* border-top: 1px solid #f4f4f4; */
  1071. font-size: 26rpx;
  1072. color: #666;
  1073. text-align: right;
  1074. }
  1075. .order .b text {
  1076. font-size: 24rpx;
  1077. color: rgba(0, 0, 0, 0.9);
  1078. font-weight: bold;
  1079. }
  1080. .order .b .r {
  1081. float: right;
  1082. }
  1083. .order .b .btn {
  1084. margin-top: 19rpx;
  1085. height: 64.5rpx;
  1086. line-height: 64.5rpx;
  1087. text-align: center;
  1088. padding: 0 20rpx;
  1089. border-radius: 5rpx;
  1090. font-size: 28rpx;
  1091. color: #fff;
  1092. background: #b4282d;
  1093. }
  1094. .order-operate-wrapper {
  1095. /* height: 80rpx; */
  1096. display: flex;
  1097. align-items: center;
  1098. justify-content: flex-end;
  1099. flex: 1;
  1100. flex-wrap: wrap;
  1101. border-top: 2rpx solid #e0e0e0;
  1102. padding: 10rpx 0 12rpx;
  1103. margin: 20rpx 0 0;
  1104. }
  1105. /* .order-operate-wrapper::after {
  1106. content: '';
  1107. flex: auto;
  1108. } */
  1109. .order-operate-wrapper>view {
  1110. text-align: center;
  1111. font-size: 24rpx;
  1112. color: #fff;
  1113. margin-left: 20rpx;
  1114. width: 145rpx;
  1115. height: 44rpx;
  1116. line-height: 44rpx;
  1117. background: #C0A182;
  1118. border-radius: 56rpx;
  1119. margin-top: 10rpx;
  1120. }
  1121. .order-operate-wrapper>view.del {
  1122. border: 2rpx solid #d8d8d8;
  1123. color: #666666;
  1124. background: #fff;
  1125. }
  1126. .order-operate-wrapper>view.appoint {
  1127. background: linear-gradient(90deg, #D77958 0%, #B24615 100%);
  1128. ;
  1129. }
  1130. .myqr {
  1131. position: fixed;
  1132. z-index: 999;
  1133. width: 100%;
  1134. text-align: center;
  1135. height: auto;
  1136. padding-top: 50rpx;
  1137. top: 0;
  1138. left: 0;
  1139. right: 0;
  1140. bottom: 0;
  1141. }
  1142. .myqr .cancel {
  1143. width: 60rpx;
  1144. height: 60rpx;
  1145. margin-top: 30rpx;
  1146. margin-left: 480rpx;
  1147. }
  1148. .myqr .img {
  1149. width: 480rpx;
  1150. }
  1151. .myqr .btn {
  1152. width: 120rpx;
  1153. height: 120rpx;
  1154. line-height: 120rpx;
  1155. margin-top: 20rpx;
  1156. padding: 30rpx;
  1157. background: #ffffff;
  1158. border-radius: 60rpx;
  1159. }
  1160. /* 会员卡蒙层的样式 */
  1161. .poster {
  1162. position: fixed;
  1163. top: 0;
  1164. bottom: 0;
  1165. right: 0;
  1166. left: 0;
  1167. background-color: #333333d1;
  1168. /* padding: 0rpx 80rpx;
  1169. padding-top: 20%;*/
  1170. z-index: 99;
  1171. height: 100%;
  1172. text-align: center;
  1173. justify-content: center;
  1174. align-items: center;
  1175. display: flex;
  1176. }
  1177. .title {
  1178. color: #fff;
  1179. margin: 20rpx 0;
  1180. font-size: 30rpx;
  1181. }
  1182. .ads {
  1183. margin: 10rpx 0rpx;
  1184. color: #fff;
  1185. }
  1186. .tool {
  1187. display: flex;
  1188. text-align: center;
  1189. justify-content: baseline;
  1190. width: 100%;
  1191. margin-top: 20rpx;
  1192. }
  1193. .tool view {
  1194. flex: 1;
  1195. }
  1196. .img {
  1197. width: 99rpx;
  1198. }
  1199. .closeImg {
  1200. width: 57rpx;
  1201. height: 57rpx;
  1202. }
  1203. .share-btn {
  1204. background-color: transparent;
  1205. }
  1206. .share-btn::after {
  1207. border: none;
  1208. }
  1209. .m-card {
  1210. width: 100%;
  1211. height: 230rpx;
  1212. margin: 20rpx 0;
  1213. }
  1214. .m-card image {
  1215. width: 100%;
  1216. height: 230rpx;
  1217. }
  1218. .appoint-tabs-wrapper {
  1219. height: 88rpx;
  1220. display: flex;
  1221. align-items: center;
  1222. line-height: 88rpx;
  1223. justify-content: space-around;
  1224. position: fixed;
  1225. left: 0;
  1226. right: 0;
  1227. top: 0rpx;
  1228. background: #fff;
  1229. z-index: 99;
  1230. }
  1231. .appoint-tab-item {
  1232. font-weight: bold;
  1233. font-size: 30rpx;
  1234. color: #191919;
  1235. /* width:80rpx; */
  1236. }
  1237. .appoint-tab-item.active {
  1238. color: #FF0101;
  1239. /* border-bottom:4rpx solid #09afff; */
  1240. }
  1241. .detail-btn {
  1242. width: 148rpx;
  1243. text-align: center;
  1244. line-height: 60rpx;
  1245. text-align: center;
  1246. font-size: 26rpx;
  1247. color: #00b9ff;
  1248. margin-top: -20rpx;
  1249. /* margin-left:340rpx; */
  1250. width: 170rpx;
  1251. height: 60rpx;
  1252. background: #ffffff;
  1253. border: 2rpx solid #00b9ff;
  1254. border-radius: 60px;
  1255. float: right;
  1256. }
  1257. .status-tips {
  1258. height: 56rpx;
  1259. background: #ebebeb;
  1260. border-radius: 10rpx;
  1261. display: flex;
  1262. align-items: center;
  1263. padding: 0 0 0 16rpx;
  1264. margin-top: 24rpx;
  1265. }
  1266. .status-tips image {
  1267. width: 36rpx;
  1268. height: 32rpx;
  1269. }
  1270. .status-tips view {
  1271. font-size: 24rpx;
  1272. color: #2e3333;
  1273. }
  1274. .status-tips .tips-title {
  1275. color: #191919;
  1276. font-weight: bold;
  1277. margin: 0 16rpx;
  1278. }
  1279. .customer-msg {
  1280. background: #ebebeb;
  1281. border-radius: 10rpx;
  1282. display: flex;
  1283. padding: 12rpx 16rpx;
  1284. margin-top: 24rpx;
  1285. }
  1286. .customer-msg .msg-title {
  1287. color: #fe2b54;
  1288. font-weight: bold;
  1289. font-size: 24rpx;
  1290. white-space: nowrap;
  1291. }
  1292. .customer-msg .msg-text {
  1293. line-height: 34rpx;
  1294. display: -webkit-box;
  1295. -webkit-box-orient: vertical;
  1296. -webkit-line-clamp: 2;
  1297. text-overflow: ellipsis;
  1298. overflow: hidden;
  1299. font-size: 24rpx;
  1300. color: #000000;
  1301. }
  1302. .over-time {
  1303. position: absolute;
  1304. top: 170rpx;
  1305. right: 0;
  1306. line-height: 40rpx;
  1307. color: #ad0000;
  1308. font-size: 28rpx;
  1309. }
  1310. .eval-btn {
  1311. text-align: center;
  1312. font-size: 24rpx;
  1313. color: #fff;
  1314. margin-left: 20rpx;
  1315. width: 160rpx;
  1316. height: 56rpx;
  1317. line-height: 56rpx;
  1318. background: linear-gradient(90deg, #ff9c49 0%, #ff8219 100%);
  1319. border-radius: 56rpx;
  1320. margin-top: 10rpx;
  1321. border: 2rpx solid #ff8219;
  1322. color: #ff8219;
  1323. background: #fff;
  1324. }
  1325. .order-operate-wrapper view.eval-btn {
  1326. border: 2rpx solid #ff8219;
  1327. color: #ff8219;
  1328. background: #fff;
  1329. }
  1330. .tips-item {
  1331. background: #fff;
  1332. border-radius: 12rpx;
  1333. padding: 30rpx 0rpx 0;
  1334. margin-bottom: 20rpx;
  1335. }
  1336. .tips-item-title {
  1337. display: flex;
  1338. height: 40rpx;
  1339. align-items: center;
  1340. justify-content: space-between;
  1341. margin-bottom: 20rpx;
  1342. padding: 0 32rpx;
  1343. }
  1344. .item-title-left {
  1345. display: flex;
  1346. align-items: center;
  1347. }
  1348. .item-title-left image {
  1349. width: 28rpx;
  1350. height: 28rpx;
  1351. margin-right: 8rpx;
  1352. }
  1353. .item-title-left text {
  1354. font-size: 28rpx;
  1355. font-weight: bold;
  1356. color: #333;
  1357. }
  1358. .item-title-right {
  1359. height: 34rpx;
  1360. background: #ffffff;
  1361. border-radius: 4rpx;
  1362. border: 1rpx solid #5fb306;
  1363. padding: 0 8rpx;
  1364. line-height: 34rpx;
  1365. font-size: 22rpx;
  1366. color: #5fb306;
  1367. }
  1368. .tips-item-line {
  1369. display: flex;
  1370. height: 44rpx;
  1371. margin-bottom: 20rpx;
  1372. align-items: center;
  1373. justify-content: space-between;
  1374. padding: 0 32rpx;
  1375. }
  1376. .tips-item-line .line-left {
  1377. font-size: 28rpx;
  1378. color: #999999;
  1379. }
  1380. .tips-item-line .line-right {
  1381. font-size: 28rpx;
  1382. color: #333333;
  1383. font-weight: bold;
  1384. width: 500rpx;
  1385. overflow: hidden;
  1386. white-space: nowrap;
  1387. text-overflow: ellipsis;
  1388. text-align: right;
  1389. }
  1390. .line-right text {
  1391. color: #5fb306;
  1392. }
  1393. .tips-item-content {
  1394. background: #ff4447;
  1395. border-radius: 0rpx 0rpx 14rpx 14rpx;
  1396. padding: 24rpx 24rpx 24rpx 32rpx;
  1397. line-height: 40rpx;
  1398. font-size: 28rpx;
  1399. color: rgba(255, 255, 255, 0.9);
  1400. }
  1401. .order-devide {
  1402. height: 40rpx;
  1403. margin-bottom: 20rpx;
  1404. display: flex;
  1405. align-items: center;
  1406. justify-content: space-between;
  1407. padding: 0 4rpx;
  1408. }
  1409. .order-devide .line {
  1410. width: 290rpx;
  1411. height: 1rpx;
  1412. background: #979797;
  1413. }
  1414. .order-devide .devide-text {
  1415. font-size: 28rpx;
  1416. color: #999999;
  1417. }
  1418. /* 退款弹框 */
  1419. .refund-order-overlay {
  1420. width: 750rpx;
  1421. height: 100vh;
  1422. background: rgba(0, 0, 0, 0.5);
  1423. display: flex;
  1424. align-items: center;
  1425. justify-content: center;
  1426. position: fixed;
  1427. top: 0;
  1428. bottom: 0;
  1429. z-index: 999;
  1430. flex-direction: column;
  1431. }
  1432. .refund-order-dialog {
  1433. width: 606rpx;
  1434. height: 644rpx;
  1435. border-radius: 14rpx;
  1436. background: #ffffff;
  1437. border-radius: 20rpx;
  1438. position: relative;
  1439. padding: 300rpx 30rpx 40rpx;
  1440. background: url('https://mall.zhaijieshi.cc/file/wx-huawang/bj3.png') no-repeat;
  1441. background-color: #ffffff;
  1442. background-size: 606rpx 210rpx;
  1443. }
  1444. .refund-order-dialog.refund-order-dia-success {
  1445. padding: 200rpx 30rpx 40rpx;
  1446. background-image: url('https://mall.zhaijieshi.cc/file/wx-huawang/bj3.png');
  1447. height: auto;
  1448. background-size: 100% 28%;
  1449. }
  1450. .title-icong {
  1451. width: 129rpx;
  1452. height: 91rpx;
  1453. position: absolute;
  1454. top: 60rpx;
  1455. left: 240rpx;
  1456. }
  1457. .refund-order-dia-success .dia-btn-wrapper {
  1458. justify-content: center;
  1459. }
  1460. .refund-order-dia-success .dia-cancel-btn {
  1461. width: 484rpx;
  1462. font-weight: bold;
  1463. border: 2rpx solid #d77958;
  1464. color: #d77958;
  1465. }
  1466. .refund-dia-title {
  1467. height: 56rpx;
  1468. font-weight: bold;
  1469. font-size: 40rpx;
  1470. color: rgba(0, 0, 0, 0.85);
  1471. line-height: 56rpx;
  1472. text-align: center;
  1473. margin: 60rpx 0 34rpx;
  1474. }
  1475. .refund-dia-tips {
  1476. width: 540rpx;
  1477. color: #333333;
  1478. line-height: 46rpx;
  1479. font-size: 32rpx;
  1480. color: rgba(0, 0, 0, 0.85);
  1481. text-align: center;
  1482. white-space: wrap;
  1483. margin-bottom: 120rpx;
  1484. font-weight: bold;
  1485. }
  1486. .dia-btn-wrapper {
  1487. height: 94rpx;
  1488. display: flex;
  1489. justify-content: space-between;
  1490. }
  1491. .dia-cancel-btn {
  1492. width: 248rpx;
  1493. height: 94rpx;
  1494. line-height: 94rpx;
  1495. border-radius: 94rpx;
  1496. border: 2rpx solid #d77958;
  1497. font-size: 32rpx;
  1498. color: #d77958;
  1499. text-align: center;
  1500. }
  1501. .dia-conf-btn {
  1502. width: 258rpx;
  1503. height: 94rpx;
  1504. line-height: 94rpx;
  1505. border-radius: 94rpx;
  1506. font-size: 32rpx;
  1507. color: #fff;
  1508. font-weight: bold;
  1509. background: #d77958;
  1510. text-align: center;
  1511. }
  1512. .modify-list {
  1513. margin: 0 0 44rpx;
  1514. max-height: 400rpx;
  1515. overflow-y: scroll;
  1516. }
  1517. .modify-item {
  1518. height: 46rpx;
  1519. margin-bottom: 18rpx;
  1520. display: flex;
  1521. align-items: center;
  1522. justify-content: center;
  1523. line-height: 46rpx;
  1524. }
  1525. .modify-item image {
  1526. width: 30rpx;
  1527. height: 30rpx;
  1528. margin-right: 16rpx;
  1529. }
  1530. .modify-item view {
  1531. font-size: 32rpx;
  1532. color: #999;
  1533. }
  1534. .modify-item view.current-modify {
  1535. color: #d77958;
  1536. /* font-weight: bold; */
  1537. }
  1538. .modify-close {
  1539. width: 80rpx;
  1540. height: 80rpx;
  1541. margin-top: 58rpx;
  1542. }
  1543. .warning-color {
  1544. background-color: #fff !important;
  1545. border: 1rpx solid #d77958;
  1546. color: #d77958 !important;
  1547. }
  1548. /* 选择备注 */
  1549. .appoint-overlay-wrapper.remark-overlay {
  1550. display: flex;
  1551. align-items: flex-end;
  1552. justify-content: center;
  1553. position: fixed;
  1554. top: 0;
  1555. left: 0;
  1556. right: 0;
  1557. bottom: 0;
  1558. background-color: rgba(0, 0, 0, 0.7);
  1559. z-index: 999;
  1560. }
  1561. .remark-select {
  1562. width: 750rpx;
  1563. padding: 0 24rpx 56rpx;
  1564. background: #ffffff;
  1565. border-radius: 24rpx 24rpx 0 0;
  1566. }
  1567. .remark-select .title {
  1568. font-weight: 600;
  1569. color: #191919;
  1570. font-size: 30rpx;
  1571. height: 90rpx;
  1572. line-height: 90rpx;
  1573. text-align: center;
  1574. border-bottom: 2rpx solid #e0e0e0;
  1575. }
  1576. .remark-item .remark-value {
  1577. color: #191919;
  1578. font-size: 26rpx;
  1579. font-weight: bold;
  1580. flex: 1;
  1581. text-align: left;
  1582. }
  1583. .remark-list .remark-item {
  1584. height: 84rpx;
  1585. display: flex;
  1586. border-bottom: 2rpx solid #e0e0e0;
  1587. align-items: center;
  1588. }
  1589. .remark-item .radio-img {
  1590. width: 26rpx;
  1591. height: 26rpx;
  1592. }
  1593. .remark-conf-btn {
  1594. width: 652rpx;
  1595. height: 90rpx;
  1596. line-height: 90rpx;
  1597. border-radius: 90rpx;
  1598. border: 4rpx solid #d77958;
  1599. text-align: center;
  1600. font-size: 36rpx;
  1601. color: #d77958;
  1602. margin: 0 auto;
  1603. margin-top: 54rpx;
  1604. }
  1605. .remark-list .remark-item.ser-item {
  1606. border: #d77958 1rpx solid;
  1607. border-radius: 12px;
  1608. height: 130rpx;
  1609. padding: 0 30rpx;
  1610. margin-bottom: 24rpx;
  1611. }
  1612. .remark-list .remark-item.ser-item.current-ser {
  1613. background: #FEEBD7;
  1614. border: none;
  1615. }
  1616. .remark-item.ser-item .remark-value {
  1617. color: #d77958;
  1618. font-size: 29rpx;
  1619. font-weight: normal;
  1620. flex: 1;
  1621. }
  1622. .remark-item.ser-item view {
  1623. color: #d77958;
  1624. font-size: 32rpx;
  1625. font-weight: normal;
  1626. }
  1627. .remark-item.ser-item.current-ser .remark-value {
  1628. color: #d77958;
  1629. }
  1630. .remark-item.ser-item.current-ser view {
  1631. color: #d77958;
  1632. }
  1633. .remark-item.ser-item .radio-img {
  1634. width: 30rpx;
  1635. height: 30rpx;
  1636. margin-right: 26rpx;
  1637. }
  1638. .ser-right {
  1639. text-align: right;
  1640. }
  1641. .remark-list.ser-list {
  1642. min-height: 500rpx;
  1643. max-height: 800rpx;
  1644. overflow-y: scroll;
  1645. }
  1646. .remain-content{
  1647. height: 50rpx;
  1648. background-color: #FEEBD7;
  1649. color: #000;
  1650. line-height: 50rpx;
  1651. border-radius: 12rpx;
  1652. font-size: 24rpx;
  1653. font-weight: bold;
  1654. padding-left: 20rpx;
  1655. }
  1656. </style>