order.vue 44 KB

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