index.vue 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400
  1. <template>
  2. <view :style="viewColor">
  3. <view class='order-details'>
  4. <!-- 给header上与data上加on为退款订单-->
  5. <!--预售-->
  6. <view v-if="orderInfo.activity_type == 2 && (orderInfo.status == 10 || orderInfo.status == 11)">
  7. <view class='header presell_header' :style="{ 'background-image': `url(${imgUrl}/static/diy/presell_bg${keyColor}.jpg)`}" :class="'header'+keyColor">
  8. <view class="presell_payment">
  9. <text class="iconfont icon-shijian1"></text>
  10. {{ orderInfo.status == 11 ? '交易已关闭' : '待付尾款' }}
  11. </view>
  12. <view class='data' style="margin-left: 0;">
  13. <view class='state'>请在{{orderInfo.orderProduct[0].cart_info.productPresell.final_end_time}}前完成支付,超时订单将自动取消</view>
  14. </view>
  15. </view>
  16. </view>
  17. <view v-else>
  18. <view class='header acea-row row-middle' :class='isGoodsReturn ? "on":""'>
  19. <view class='pictrue' v-if="isGoodsReturn==false">
  20. <image v-if="orderInfo.status != 9" :src="imgUrl+'/static/order_'+(orderInfo.status+2)+'.gif'"></image>
  21. <image v-else :src="imgUrl+'/static/order_2.gif'"></image>
  22. </view>
  23. <view class='data' :class='isGoodsReturn ? "on":""'>
  24. <view class='state'>
  25. <block v-if="orderInfo.status == 0 && orderInfo.order_type != 1">待发货</block>
  26. <block v-if="orderInfo.status == 9">等待其他人参加拼团</block>
  27. <block v-if="orderInfo.status == 0 && orderInfo.order_type == 1">待核销</block>
  28. <block v-if="orderInfo.status == 1">{{orderInfo.is_virtual == 1 ? '服务商品已虚拟发货' : '待收货'}}</block>
  29. <block v-if="orderInfo.status == 2">待评价</block>
  30. <block v-if="orderInfo.status == 3">已完成</block>
  31. <block v-if="orderInfo.status == -1">已为您退款,感谢您的支持</block>
  32. </view>
  33. <view>{{orderInfo.pay_time}}</view>
  34. </view>
  35. </view>
  36. <block v-if="isGoodsReturn==false">
  37. <view class='nav'>
  38. <view class='navCon acea-row row-between-wrapper'>
  39. <view>待付款</view>
  40. <view :class="(orderInfo.status == 0 || orderInfo.status == 9) ? 'on':''" v-if="orderInfo.order_type != 1">待发货</view>
  41. <view :class="(orderInfo.status == 0 || orderInfo.status == 9) ? 'on':''" v-if="orderInfo.order_type == 1">待核销</view>
  42. <view :class="orderInfo.status == 1 ? 'on':''" v-if="orderInfo.order_type != 1">待收货</view>
  43. <view :class="orderInfo.status == 2 ? 'on':''">待评价</view>
  44. <view :class="orderInfo.status == 3 ? 'on':''">已完成</view>
  45. </view>
  46. <view class='progress acea-row row-between-wrapper'>
  47. <view class='iconfont icon-yuandianxiao t-color'></view>
  48. <view class='line b-color'></view>
  49. <view class='iconfont' :class='((orderInfo.status == 0 || orderInfo.status == 9) ? "icon-webicon318":"icon-yuandianxiao") + " " + (orderInfo.status >= 0 ? "t-color":"")'></view>
  50. <view class='line' :class='orderInfo.status > 0 && orderInfo.status != 9 ? "b-color":""'></view>
  51. <view class='iconfont' :class='(orderInfo.status == 1 ? "icon-webicon318":"icon-yuandianxiao") + " " +(orderInfo.status >= 1 && orderInfo.status != 9 ? "t-color":"")' v-if="orderInfo.order_type == 0"></view>
  52. <view class='line' :class='orderInfo.status > 1 && orderInfo.status != 9 ? "b-color":""' v-if="orderInfo.order_type == 0"></view>
  53. <view class='iconfont' :class='(orderInfo.status == 2 && orderInfo.status != 9 ? "icon-webicon318":"icon-yuandianxiao") + " " + (orderInfo.status >= 2 && orderInfo.status != 9 ? "t-color":"")'></view>
  54. <view class='line' :class='orderInfo.status > 2 && orderInfo.status != 9 ? "b-color":""'></view>
  55. <view class='iconfont' :class='(orderInfo.status == 3 ? "icon-webicon318":"icon-yuandianxiao") + " " + (orderInfo.status >= 3 && orderInfo.status != 9 ? "t-color":"")'></view>
  56. </view>
  57. </view>
  58. <view class='line'>
  59. <image :src="`${imgUrl}/static/images/line.jpg`"></image>
  60. </view>
  61. </block>
  62. </view>
  63. <view>
  64. <!-- 配送地址 -->
  65. <view class='address' v-if="orderInfo.order_type == 0 && orderInfo.is_virtual != 1">
  66. <view class='name'>{{orderInfo.real_name}}<view class='phone'>{{orderInfo.user_phone}}</view></view>
  67. <view>{{orderInfo.user_address}}</view>
  68. </view>
  69. <!-- 地图 -->
  70. <view class="map acea-row row-between-wrapper" v-if="orderInfo.order_type == 1">
  71. <view>自提地址信息</view>
  72. <view class="place t-color acea-row row-center-wrapper" @tap="showMaoLocation">
  73. <text class="iconfont icon-weizhi"></text>查看位置
  74. </view>
  75. </view>
  76. <view class='address' v-if="orderInfo.order_type == 1" style="margin-top: 0;">
  77. <view class='name'>
  78. {{orderInfo.take.mer_take_name}}
  79. <text class='phone' @click="makePhone">{{orderInfo.take.mer_take_phone}}</text>
  80. <text class="iconfont icon-tonghua t-color" @click="makePhone"></text>
  81. </view>
  82. <view class="line2">{{orderInfo.take.mer_take_address}}</view>
  83. </view>
  84. <view v-if="orderInfo.take" class="take-info">
  85. <view class="take-msg">
  86. <view class="left">
  87. <view class="title">
  88. 营业时间
  89. </view>
  90. <view class="text">
  91. <text v-if="orderInfo.take.mer_take_day && orderInfo.take.mer_take_day.length == 7">周一至周日:</text>
  92. <block v-else>
  93. <text v-for="item in orderInfo.take.mer_take_day">{{'周'+ toChinese(item)}},</text>
  94. </block>
  95. <text class="time" v-if="orderInfo.take.mer_take_time">{{orderInfo.take.mer_take_time[0]}}-{{orderInfo.take.mer_take_time[1]}}</text>
  96. </view>
  97. </view>
  98. <view class="code" @click="showCode">
  99. <text class="iconfont icon-hexiaoma"></text>
  100. <view class="text">
  101. 自提码
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="merchant" v-if="orderInfo.merchant && orderInfo.order_type != 1" @click="goStore(orderInfo.mer_id)">
  107. {{orderInfo.merchant.mer_name}}
  108. <text class="iconfont icon-xiangyou"></text>
  109. </view>
  110. <block v-if="cartInfo.length>0">
  111. <orderGoods :orderData='orderInfo' :evaluate='orderInfo.status' :activityType='orderInfo.activity_type' :orderId="order_id" :cartInfo="cartInfo" :jump="true"></orderGoods>
  112. <block v-if="orderInfo.order_type == 1 && orderInfo.takeOrderList && orderInfo.takeOrderList.length > 0" v-for="(item,index) in orderInfo.takeOrderList" :key="index">
  113. <orderGoods :orderData='item' :evaluate='item.status' :activityType='item.activity_type' :orderId="item.order_id" :cartInfo="item.orderProduct" :jump="true"></orderGoods>
  114. </block>
  115. </block>
  116. <block v-if="orderInfo.merchant">
  117. <view v-if="orderInfo.merchant.services_type == 0" class="goodCall" @click="goGoodCall">
  118. <text class="iconfont icon-kefu"></text><text style="font-size: 28rpx;">联系客服</text>
  119. </view>
  120. <view v-else class="goodCall" @click="call">
  121. <text class="iconfont icon-kefu"></text><text style="font-size: 28rpx;">联系客服</text>
  122. </view>
  123. </block>
  124. <!--卡密商品发货-->
  125. <view v-if="orderInfo.delivery_type == 6 && orderInfo.delivery_id" class='wrapper'>
  126. <view class='item acea-row row-between'>
  127. <view>卡密发货:</view>
  128. <view class="item acea-row">
  129. <view class="conter">
  130. <!-- #ifndef H5 -->
  131. <text class='copy' @tap='copyKm'>复制</text>
  132. <!-- #endif -->
  133. <!-- #ifdef H5 -->
  134. <text class='copy copy-data' :data-clipboard-text="orderInfo.delivery_id">复制</text>
  135. <!-- #endif -->
  136. </view>
  137. </view>
  138. </view>
  139. <view class="item acea-row">
  140. <view style="color:#868686;">卡密已自动发放 <view>{{orderInfo.delivery_id}}</view></view>
  141. </view>
  142. </view>
  143. <!-- 送货 -->
  144. <view class="wrapper" v-if="orderInfo.delivery_type == 2">
  145. <view class='item acea-row row-between'>
  146. <view>配送方式:</view>
  147. <view class='conter'>送货</view>
  148. </view>
  149. <view class='item acea-row row-between'>
  150. <view>配送员:</view>
  151. <view class='conter'>{{orderInfo.delivery_name}}</view>
  152. </view>
  153. <view class='item acea-row row-between'>
  154. <view>联系电话:</view>
  155. <view class='conter'>{{orderInfo.delivery_id}}</view>
  156. </view>
  157. </view>
  158. <!-- 同城配送 -->
  159. <view v-if="orderInfo.delivery_type == 5" class="wrapper">
  160. <view class='item virtual_item'>
  161. <view class="acea-row virtual_row">
  162. <view>
  163. <image :src="`${imgUrl}/static/images/delivery_man.png`"></image>
  164. </view>
  165. <view v-if="orderInfo.delivery_id" class="virtual_delivery">
  166. <view>{{orderInfo.delivery_name}}</view>
  167. <view>{{orderInfo.delivery_id}}</view>
  168. </view>
  169. <view v-else class="virtual_delivery_not">配送员未接单</view>
  170. </view>
  171. <navigator class="virtual_detail" hover-class="none"
  172. :url="'/pages/order_details/delivery?orderId=' + orderInfo.order_id">查看详情</navigator>
  173. </view>
  174. </view>
  175. <view v-if="orderInfo.remark" class="wrapper">
  176. <view class="item acea-row row-between">
  177. <view class="">发货备注:</view>
  178. <view class="conter remark">{{ orderInfo.remark }}</view>
  179. </view>
  180. </view>
  181. <view class='wrapper'>
  182. <view class='item acea-row row-between'>
  183. <view>订单编号:</view>
  184. <view class='conter acea-row row-middle row-right'>{{orderInfo.order_sn}}
  185. <!-- #ifndef H5 -->
  186. <text class='copy' @tap='copy'>复制</text>
  187. <!-- #endif -->
  188. <!-- #ifdef H5 -->
  189. <text class='copy copy-data' :data-clipboard-text="orderInfo.order_sn">复制</text>
  190. <!-- #endif -->
  191. </view>
  192. </view>
  193. <view class='item acea-row row-between'>
  194. <view>下单时间:</view>
  195. <view class='conter'>{{orderInfo.create_time}}</view>
  196. </view>
  197. <view class='item acea-row row-between'>
  198. <view>支付状态:</view>
  199. <view class='conter'>已支付</view>
  200. </view>
  201. <view class='item acea-row row-between' v-if="orderInfo.pay_time">
  202. <view>支付时间:</view>
  203. <view class='conter'>{{orderInfo.pay_time}}</view>
  204. </view>
  205. <view class='item acea-row row-between'>
  206. <view>商品总额:</view>
  207. <view class='conter'>¥{{orderInfo.total_price}}</view>
  208. </view>
  209. <view class='item acea-row row-between' v-if="orderInfo.dk_cash_price > 0">
  210. <view>消费券抵扣:</view>
  211. <view class='conter'>¥{{orderInfo.dk_cash_price}}</view>
  212. </view>
  213. <view class='item acea-row row-between'>
  214. <view>支付方式:</view>
  215. <view class='conter' v-if="orderInfo.pay_type==0">余额支付</view>
  216. <view class='conter' v-if="orderInfo.pay_type==4 || orderInfo.pay_type==5">支付宝支付</view>
  217. <view class='conter' v-if="orderInfo.pay_type==1 || orderInfo.pay_type==2 || orderInfo.pay_type==3">微信支付</view>
  218. <view class='conter' v-if="orderInfo.pay_type == 7">线下支付</view>
  219. </view>
  220. <view class='item acea-row row-between' v-if="orderInfo.mark">
  221. <view>买家留言:</view>
  222. <view class='conter'>{{orderInfo.mark}}</view>
  223. </view>
  224. </view>
  225. </view>
  226. <view v-if="orderInfo.order_extend" class='wrapper'>
  227. <view v-for="(item,index) in orderInfo.order_extend" v-if="item" :key="index" class='item acea-row row-between'>
  228. <view>{{index}}:</view>
  229. <view v-if="!Array.isArray(item)" class='conter'>{{item}}</view>
  230. <view v-else class='conter virtual_image'>
  231. <image v-for="(pic,i) in item" :key="i" class="picture" :src="pic" @click="getPhotoClickIdx(item,i)"></image>
  232. </view>
  233. </view>
  234. </view>
  235. <view class='wrapper'>
  236. <view class='item acea-row row-between' v-if="orderInfo.pay_postage > 0 && orderInfo.order_type != 1">
  237. <view>运费:</view>
  238. <view class='conter'>+¥{{orderInfo.pay_postage}}</view>
  239. </view>
  240. <view class='item acea-row row-between' v-if='orderInfo.coupon_price > 0'>
  241. <view>优惠券抵扣:</view>
  242. <view class='conter'>-¥{{orderInfo.coupon_price}}</view>
  243. </view>
  244. <view class='item acea-row row-between' v-if='orderInfo.integral'>
  245. <view>积分抵扣:</view>
  246. <view class='conter'>-¥{{orderInfo.integral_price}}</view>
  247. </view>
  248. <view class='item acea-row row-between' v-if="orderInfo.activity_type == 2">
  249. <view>实付款:</view>
  250. <view class='conter'>¥{{orderInfo.presell_price}}</view>
  251. </view>
  252. <view class='item acea-row row-between' v-else>
  253. <view>实付款:</view>
  254. <view class='conter'>¥{{orderInfo.pay_price}}</view>
  255. </view>
  256. </view>
  257. <view class="content-clip" v-if="isGoodsReturn==false && (orderInfo.status != 0 || (orderInfo.status == 0 && refundNum.length != cartInfo.length && orderInfo.refund_status && orderInfo.refund_switch))"></view>
  258. <view class='footer acea-row row-right row-middle' v-if="isGoodsReturn==false && orderInfo.status != 0">
  259. <view v-if="!orderInfo.receipt && !isGoodsReturn && orderInfo.open_receipt == 1" class='bnt cancel' @click="applyInvoice">申请开票</view>
  260. <view v-if="orderInfo.activity_type == 2 && (orderInfo.status == 10 || orderInfo.status == 11)" class=" acea-row row-right row-middle" style="margin-left: 17rpx;">
  261. <view v-if="orderInfo.presellOrder.activeStatus == 0" class='bnt b-color btn_auto'>{{ orderInfo.presellOrder.final_start_time | filterDay }} 付尾款</view>
  262. <view v-if="orderInfo.presellOrder.activeStatus == 1" class='bnt b-color' @tap='pay_open'>立即付款</view>
  263. <view v-if="orderInfo.presellOrder.activeStatus == 2" class='bnt cancel' @click="cancelOrder">取消订单</view>
  264. </view>
  265. <block v-if="orderInfo.status == 9">
  266. <view class="bnt cancel" @click="getCombinationRemove">取消拼团</view>
  267. </block>
  268. <view class='bnt b-color' v-if="orderInfo.activity_type==4" @tap='goJoinPink'>查看拼团</view>
  269. <block v-if="orderInfo.status == 1">
  270. <view class="bnt cancel" @click="allRefund" v-if="refundNum.length != cartInfo.length && orderInfo.refund_status && orderInfo.refund_switch == 1">批量退款</view>
  271. <navigator v-if="orderInfo.delivery_type == 1 || orderInfo.delivery_type == 4" class='bnt cancel' hover-class='none' :url="'/pages/users/goods_logistics/index?orderId='+ orderInfo.order_id">查看物流</navigator>
  272. <view class='bnt b-color' @tap='confirmOrder'>确认收货</view>
  273. </block>
  274. <block v-if="orderInfo.status == 2">
  275. <view class="bnt cancel" @click="allRefund" v-if="refundNum.length != cartInfo.length && orderInfo.refund_status && orderInfo.refund_switch == 1">批量退款</view>
  276. <navigator v-if="orderInfo.delivery_type == 1 || orderInfo.delivery_type == 4" class='bnt cancel' hover-class='none' :url="'/pages/users/goods_logistics/index?orderId='+ orderInfo.order_id">查看物流</navigator>
  277. <view class='bnt b-color' @click="goOrderConfirm" v-if="orderInfo.activity_type!=1 && orderInfo.activity_type!=2 && orderInfo.activity_type!=3 &&orderInfo.activity_type!=4 && orderInfo.activity_type!=10">再次购买</view>
  278. </block>
  279. <block v-if="orderInfo.status == 3">
  280. <view class='bnt cancel' @click="delOrder">删除订单</view>
  281. <view class="bnt cancel" @click="allRefund" v-if="refundNum.length != cartInfo.length && orderInfo.refund_status && orderInfo.refund_switch == 1">批量退款</view>
  282. <view class='bnt b-color' @click="goOrderConfirm" v-if="orderInfo.activity_type!=1 && orderInfo.activity_type!=2 && orderInfo.activity_type!=3 && orderInfo.activity_type!=4 && orderInfo.activity_type!=10">再次购买</view>
  283. </block>
  284. </view>
  285. <view class='footer acea-row row-right row-middle' v-if="isGoodsReturn==false && orderInfo.status == 0 && refundNum.length != cartInfo.length && orderInfo.refund_status && orderInfo.refund_switch">
  286. <view class="bnt cancel" @click="allRefund">批量退款</view>
  287. </view>
  288. </view>
  289. <payment :payMode='payMode' :pay_close="pay_close" @onChangeFun='onChangeFun' :order_id="pay_order_id" :totalPrice='totalPrice' :order_type='1'></payment>
  290. <addInvoicing ref="addInvoicing" @changeInvoiceClose="changeInvoiceClose" :invoice='invoice'></addInvoicing>
  291. <!--核销码弹窗-->
  292. <uni-popup ref="cancellPoupon" type="bottom">
  293. <view class="code-content">
  294. <text class="iconfont icon-guanbi5" @click="close"></text>
  295. <view class="title">核销码</view>
  296. <view class="trip">
  297. 请将二维码展示给店员 或 提供数字核销码
  298. </view>
  299. <view class="grayBg">
  300. <view class="pictrue">
  301. <image :src="codeUrl"></image>
  302. </view>
  303. </view>
  304. <view class="num">{{orderInfo.verify_code}}</view>
  305. </view>
  306. </uni-popup>
  307. </view>
  308. </template>
  309. <script>
  310. // +----------------------------------------------------------------------
  311. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  312. // +----------------------------------------------------------------------
  313. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  314. // +----------------------------------------------------------------------
  315. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  316. // +----------------------------------------------------------------------
  317. // | Author: CRMEB Team <admin@crmeb.com>
  318. // +----------------------------------------------------------------------
  319. let app = getApp();
  320. import { HTTP_REQUEST_URL } from '@/config/app';
  321. import {
  322. getOrderDetail,
  323. orderAgain,
  324. orderTake,
  325. orderDel,
  326. unOrderCancel,
  327. verifyCode,
  328. applyInvoiceApi
  329. } from '@/api/order.js';
  330. import { postCombinationRemove } from '@/api/activity';
  331. import { openOrderRefundSubscribe } from '@/utils/SubscribeMessage.js';
  332. import { getUserInfo } from '@/api/user.js';
  333. import payment from '@/components/payment';
  334. import orderGoods from "@/components/orderGoods";
  335. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  336. import { mapGetters } from "vuex";
  337. import { configMap } from "@/utils";
  338. import { toLogin } from '@/libs/login.js';
  339. import addInvoicing from '@/components/addInvoicing';
  340. import zbCode from '@/components/zb-code/zb-code.vue';
  341. export default {
  342. components: {
  343. payment,
  344. orderGoods,
  345. addInvoicing,
  346. zbCode
  347. },
  348. data() {
  349. return {
  350. order_id: '',
  351. evaluate: 0,
  352. activityType: 0,
  353. cartInfo: [], //购物车产品
  354. orderInfo: {
  355. system_store: {},
  356. _status: {},
  357. take: {}
  358. }, //订单详情
  359. system_store: {},
  360. isGoodsReturn: false, //是否为退款订单
  361. status: {}, //订单底部按钮状态
  362. isClose: false,
  363. payMode: [{
  364. name: "微信支付",
  365. icon: "icon-weixinzhifu",
  366. value: 'wechat',
  367. title: '微信快捷支付',
  368. payStatus: 1
  369. },
  370. {
  371. name: "支付宝支付",
  372. icon: "icon-zhifubao",
  373. value: 'alipay',
  374. title: '支付宝支付',
  375. payStatus: this.$store.getters.globalData.alipay_open
  376. },
  377. {
  378. name: "余额支付",
  379. icon: "icon-yuezhifu",
  380. value: 'balance',
  381. title: '可用余额:',
  382. number: 0,
  383. payStatus: this.$store.getters.globalData.yue_pay_status
  384. }
  385. ],
  386. pay_close: false,
  387. pay_order_id: '',
  388. totalPrice: '0',
  389. refundNum: [], //退款个数临时数据
  390. imgUrl:HTTP_REQUEST_URL,
  391. codeUrl:'',
  392. isTimePay: false,
  393. codeShow: false,
  394. cid: '1',
  395. val: "", // 要生成的二维码值
  396. size: 200, // 二维码大小
  397. unit: 'upx', // 单位
  398. background: '#FFF', // 背景色
  399. foreground: '#000', // 前景色
  400. pdground: '#32dbc6', // 角标色
  401. icon: '', // 二维码图标
  402. iconsize: 40, // 二维码图标大小
  403. lv: 3, // 二维码容错级别 , 一般不用设置,默认就行
  404. onval: true, // val值变化时自动重新生成二维码
  405. loadMake: true, // 组件加载完成后自动生成二维码
  406. src: '', // 二维码生成后的图片地址或base64
  407. codeSrc: "",
  408. wd: 225,
  409. hg: 500,
  410. invoice: {
  411. invoice: false,
  412. add: false,
  413. }
  414. };
  415. },
  416. computed:{
  417. ...configMap({hide_mer_status:0,yue_pay_status:0,alipay_open:0},
  418. mapGetters(['isLogin','uid','viewColor','keyColor'])),
  419. },
  420. filters:{
  421. filterDay(val){
  422. if(val){
  423. var reg =/(\d{4})\-(\d{2})\-(\d{2})/;
  424. var date = val.replace(reg,"$2月$3日");
  425. return date
  426. }
  427. }
  428. },
  429. onLoad: function(options) {
  430. if (options.order_id) {
  431. this.$set(this, 'order_id', options.order_id);
  432. }
  433. },
  434. onShow() {
  435. if (this.isLogin) {
  436. this.getOrderInfo();
  437. this.getUserInfo();
  438. this.isPayBalance();
  439. } else {
  440. toLogin()
  441. }
  442. },
  443. onHide: function() {
  444. this.isClose = true;
  445. },
  446. onReady: function() {
  447. // #ifdef H5
  448. this.$nextTick(function() {
  449. const clipboard = new ClipboardJS(".copy-data");
  450. clipboard.on("success", () => {
  451. this.$util.Tips({
  452. title: '复制成功'
  453. });
  454. });
  455. });
  456. // #endif
  457. },
  458. mounted: function() {},
  459. methods: {
  460. // 图片预览
  461. getPhotoClickIdx(list, idx) {
  462. uni.previewImage({
  463. current: list[idx], // 传 Number H5端出现不兼容
  464. urls: list
  465. });
  466. },
  467. // 判断是否到支付尾款时间
  468. isPayBalance(){
  469. let that = this;
  470. if(that.orderInfo.status === 10){
  471. if(new Date() < new Date(that.orderInfo.presellOrder.final_start_time)){
  472. that.isTimePay = false; //未开始
  473. }else if((new Date() >= new Date(that.orderInfo.presellOrder.final_start_time)) && (new Date() <= new Date(that.orderInfo.presellOrder.final_start_time)) ){
  474. that.isTimePay = true; //立即支付
  475. }
  476. }
  477. },
  478. // 数字转汉字
  479. toChinese(num){
  480. let changeNum = ['零', '一', '二', '三', '四', '五', '六', '日', '八', '九'];
  481. let unit = ["", "十", "百", "千", "万"];
  482. num = parseInt(num);
  483. let getWan = (temp) => {
  484.   let strArr = temp.toString().split("").reverse();
  485.   let newNum = "";
  486.   for (var i = 0; i < strArr.length; i++) {
  487.   newNum = (i == 0 && strArr[i] == 0 ? "" : (i > 0 && strArr[i] == 0 && strArr[i - 1] == 0 ? "" : changeNum[strArr[i]] + (strArr[i] == 0 ? unit[0] : unit[i]))) + newNum;
  488.   }
  489.   return newNum;
  490. }
  491. let overWan = Math.floor(num / 10000);
  492. let noWan = num % 10000;
  493. if (noWan.toString().length < 4) {      noWan = "0" + noWan;    }
  494. return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
  495. },
  496. // 返回店铺首页
  497. goStore(mer_id){
  498. if(this.hide_mer_status != 1){
  499. uni.navigateTo({
  500. url: '/pages/store/home/index?id=' + mer_id
  501. })
  502. }
  503. },
  504. // 批量退款
  505. allRefund() {
  506. // #ifdef MP
  507. openOrderRefundSubscribe().then(() => {
  508. uni.hideLoading();
  509. if (this.orderInfo.status == 0 || this.orderInfo.is_virtual != 0) {
  510. uni.navigateTo({
  511. url: '/pages/users/refund/index?order_id=' + this.order_id + '&refund_type=1&type=2&order_type='+this.orderInfo.order_type
  512. })
  513. } else {
  514. uni.navigateTo({
  515. url: '/pages/users/refund/select?order_id=' + this.order_id + '&type=2&order_type='+this.orderInfo.order_type
  516. })
  517. }
  518. }).catch(() => {
  519. uni.hideLoading();
  520. })
  521. // #endif
  522. // #ifdef H5 || APP-PLUS
  523. if (this.orderInfo.status == 0 || this.orderInfo.is_virtual != 0) {
  524. uni.navigateTo({
  525. url: '/pages/users/refund/index?order_id=' + this.order_id + '&refund_type=1&type=2&order_type='+this.orderInfo.order_type
  526. })
  527. } else {
  528. uni.navigateTo({
  529. url: '/pages/users/refund/select?order_id=' + this.order_id + '&type=2&order_type='+this.orderInfo.order_type
  530. })
  531. }
  532. // #endif
  533. },
  534. //拼团取消
  535. getCombinationRemove: function() {
  536. var that = this;
  537. postCombinationRemove({
  538. group_buying_id: that.orderInfo.orderProduct[0].activity_id
  539. })
  540. .then(res => {
  541. that.$util.Tips({
  542. title: res.message
  543. }, {
  544. tab: 3
  545. });
  546. })
  547. .catch(res => {
  548. that.$util.Tips({
  549. title: res.message
  550. });
  551. });
  552. },
  553. // 取消售后
  554. cancelSales(){
  555. let that = this;
  556. uni.showModal({
  557. content: '确定要取消售后?',
  558. success: function(res) {
  559. if(res.confirm) {
  560. deletePlantApi(that.id).then(res => {
  561. if (res.status === 200) {
  562. that.$util.Tips({
  563. title: res.message
  564. });
  565. }
  566. })
  567. } else if(res.cancel) {
  568. console.log('用户点击取消');
  569. }
  570. }
  571. });
  572. },
  573. // 联系客服
  574. goGoodCall() {
  575. let self = this
  576. uni.navigateTo({
  577. url: `/pages/chat/customer_list/chat?mer_id=${self.orderInfo.mer_id}&uid=${this.uid}&order_id=${this.order_id}`
  578. })
  579. },
  580. openSubcribe: function(e) {
  581. let page = e;
  582. uni.showLoading({
  583. title: '正在加载',
  584. })
  585. openOrderRefundSubscribe().then(res => {
  586. uni.hideLoading();
  587. uni.navigateTo({
  588. url: page,
  589. });
  590. }).catch(() => {
  591. uni.hideLoading();
  592. });
  593. },
  594. /**
  595. * 事件回调
  596. *
  597. */
  598. onChangeFun: function(e) {
  599. let opt = e;
  600. let action = opt.action || null;
  601. let value = opt.value != undefined ? opt.value : null;
  602. (action && this[action]) && this[action](value);
  603. },
  604. /**
  605. * 拨打电话
  606. */
  607. makePhone: function() {
  608. uni.makePhoneCall({
  609. phoneNumber: this.orderInfo.take.mer_take_phone
  610. })
  611. },
  612. /**
  613. * 拨打电话
  614. */
  615. call: function() {
  616. let that = this
  617. if(that.orderInfo.merchant.service_phone){
  618. uni.showModal({
  619. title: '提示',
  620. content: '暂无在线客服,确定拨打客服电话:'+that.orderInfo.merchant.service_phone+'吗?',
  621. success: function(res) {
  622. if (res.confirm) {
  623. uni.makePhoneCall({
  624. phoneNumber: that.orderInfo.merchant.service_phone
  625. })
  626. }
  627. }
  628. })
  629. }else{
  630. return that.$util.Tips({
  631. title: '暂无可用客服'
  632. })
  633. }
  634. },
  635. /**
  636. * 打开地图
  637. *
  638. */
  639. showMaoLocation: function() {
  640. if (!this.orderInfo.take.mer_take_location[0] || !this.orderInfo.take.mer_take_location[1]) return this.$util.Tips({
  641. title: '请设置允许商城访问您的位置!'
  642. });
  643. let that = this, lat = parseFloat(that.orderInfo.take.mer_take_location[0]),
  644. long = parseFloat(that.orderInfo.take.mer_take_location[1])
  645. //#ifdef H5
  646. if (that.$wechat.isWeixin() === true) {
  647. that.$wechat.seeLocation({
  648. latitude: Number(lat),
  649. longitude: Number(long),
  650. address: that.orderInfo.take ? that.orderInfo.take.mer_take_name : ''
  651. }).then(res=>{
  652. console.log('success');
  653. })
  654. }else{
  655. //#endif
  656. uni.openLocation({
  657. latitude: lat,
  658. longitude: long,
  659. address: that.orderInfo.take ? that.orderInfo.take.mer_take_name : '',
  660. scale: 8,
  661. success: function() {},
  662. });
  663. // #ifdef H5
  664. }
  665. //#endif
  666. },
  667. /**
  668. * 关闭支付组件
  669. *
  670. */
  671. payClose: function() {
  672. this.pay_close = false;
  673. },
  674. /**
  675. * 打开支付组件
  676. *
  677. */
  678. pay_open: function() {
  679. this.pay_close = true;
  680. this.pay_order_id = this.orderInfo.order_id.toString();
  681. this.totalPrice = this.orderInfo.pay_price;
  682. },
  683. /**
  684. * 支付成功回调
  685. *
  686. */
  687. pay_complete: function() {
  688. this.pay_close = false;
  689. this.pay_order_id = '';
  690. this.getOrderInfo();
  691. },
  692. /**
  693. * 支付失败回调
  694. *
  695. */
  696. pay_fail: function() {
  697. this.pay_close = false;
  698. this.pay_order_id = '';
  699. },
  700. /**
  701. * 获取用户信息
  702. *
  703. */
  704. getUserInfo: function() {
  705. let that = this;
  706. getUserInfo().then(res => {
  707. that.payMode[2].number = res.data.now_money;
  708. })
  709. },
  710. getOrderCode(){
  711. verifyCode(this.order_id).then(res=>{
  712. this.codeUrl = res.data.qrcode
  713. this.val = res.data.qrcode
  714. })
  715. },
  716. /**
  717. * 获取订单详细信息
  718. *
  719. */
  720. getOrderInfo: function() {
  721. let that = this;
  722. uni.showLoading({
  723. title: "正在加载中"
  724. });
  725. getOrderDetail(that.order_id).then(res => {
  726. uni.hideLoading();
  727. that.$set(that, 'orderInfo', res.data);
  728. that.orderInfo.take = res.data.take;
  729. that.$set(that, 'cartInfo', res.data.orderProduct);
  730. if (that.orderInfo.status == '-1') {
  731. that.isGoodsReturn = true;
  732. }
  733. res.data.orderProduct.map(el => {
  734. if (el.refund_num == 0) {
  735. that.refundNum.push(el)
  736. }
  737. })
  738. if(res.data.order_type == 1){
  739. that.getOrderCode()
  740. }
  741. }).catch(err => {
  742. uni.hideLoading();
  743. that.$util.Tips({
  744. title: err
  745. }, '/pages/users/order_list/index');
  746. });
  747. },
  748. qrR(res) {
  749. this.codeSrc = res
  750. },
  751. showCode() {
  752. this.$refs.cancellPoupon.open();
  753. },
  754. close(){
  755. this.$refs.cancellPoupon.close();
  756. },
  757. /**
  758. *
  759. * 剪切订单号
  760. */
  761. // #ifndef H5
  762. copy: function() {
  763. let that = this;
  764. uni.setClipboardData({
  765. data: that.orderInfo.order_sn,
  766. success: function(res){
  767. }
  768. });
  769. },
  770. // #endif
  771. /**
  772. *
  773. * 剪切卡密内容
  774. */
  775. // #ifndef H5
  776. copyKm: function() {
  777. let that = this;
  778. uni.setClipboardData({
  779. data: that.orderInfo.delivery_id,
  780. success: function(res){
  781. }
  782. });
  783. },
  784. // #endif
  785. /**
  786. * 打电话
  787. */
  788. goTel: function() {
  789. uni.makePhoneCall({
  790. phoneNumber: this.orderInfo.delivery_id
  791. })
  792. },
  793. /**
  794. * 去拼团详情
  795. *
  796. */
  797. goJoinPink: function() {
  798. uni.navigateTo({
  799. url: '/pages/activity/combination_status/index?id=' + this.orderInfo.orderProduct[0].activity_id,
  800. });
  801. },
  802. /**
  803. * 再此购买
  804. *
  805. */
  806. goOrderConfirm: function() {
  807. let that = this;
  808. let data = []
  809. this.cartInfo.map((item, index) => {
  810. let obj = {}
  811. obj.product_id = item.product_id
  812. obj.product_attr_unique = item.product_sku
  813. obj.cart_num = item.product_num
  814. data.push(obj)
  815. })
  816. orderAgain({
  817. data: data
  818. }).then(res => {
  819. let cart_id = res.data.cart_id.join(',')
  820. return uni.navigateTo({
  821. url: '/pages/users/order_confirm/index?cartId=' + cart_id
  822. });
  823. }).catch(err => {
  824. that.$util.Tips({
  825. title: err
  826. })
  827. });
  828. },
  829. confirmOrder: function() {
  830. let that = this;
  831. uni.showModal({
  832. title: '确认收货',
  833. content: '为保障权益,请收到货确认无误后,再确认收货',
  834. success: function(res) {
  835. if (res.confirm) {
  836. orderTake(that.order_id).then(res => {
  837. return that.$util.Tips({
  838. title: '操作成功',
  839. icon: 'success'
  840. }, function() {
  841. that.getOrderInfo();
  842. });
  843. }).catch(err => {
  844. return that.$util.Tips({
  845. title: err
  846. });
  847. })
  848. }
  849. }
  850. })
  851. },
  852. /**
  853. *
  854. * 删除订单
  855. */
  856. delOrder: function() {
  857. let that = this;
  858. orderDel(this.order_id).then(res => {
  859. return that.$util.Tips({
  860. title: '删除成功',
  861. icon: 'success'
  862. }, {
  863. tab: 3,
  864. url: 1
  865. });
  866. }).catch(err => {
  867. return that.$util.Tips({
  868. title: err
  869. });
  870. });
  871. },
  872. cancelOrder() {
  873. let self = this
  874. uni.showModal({
  875. title: '提示',
  876. content: '确认取消该订单?',
  877. success: function(res) {
  878. if (res.confirm) {
  879. orderDel(self.orderInfo.order_id)
  880. .then((data) => {
  881. console.log(data)
  882. self.$util.Tips({
  883. title: data.msg
  884. }, {
  885. tab: 3
  886. })
  887. })
  888. .catch((err) => {
  889. return self.$util.Tips({
  890. title: err
  891. });
  892. });
  893. } else if (res.cancel) {
  894. console.log('用户点击取消');
  895. }
  896. }
  897. });
  898. },
  899. /*申请开票*/
  900. applyInvoice() {
  901. let that = this;
  902. that.invoice.invoice = true;
  903. that.$refs.addInvoicing.getInvoiceDefault();
  904. that.$refs.addInvoicing.getInvoiceList();
  905. },
  906. // 关闭发票弹窗
  907. changeInvoiceClose: function(data) {
  908. if(data)this.getInvoiceData(data);
  909. this.$set(this.invoice, 'invoice', false);
  910. },
  911. // 开票回调
  912. getInvoiceData(data) {
  913. let that = this
  914. applyInvoiceApi(that.order_id,data).then(res => {
  915. return that.$util.Tips({
  916. title: res.message,
  917. });
  918. }).catch(err => {
  919. return that.$util.Tips({
  920. title: err
  921. });
  922. })
  923. }
  924. }
  925. }
  926. </script>
  927. <style scoped lang="scss">
  928. .remark {
  929. flex: 1;
  930. }
  931. .merchant {
  932. width: 100%;
  933. height: 86rpx;
  934. padding: 0 30rpx;
  935. margin-top: 15rpx;
  936. border-bottom: 2rpx solid #f0f0f0;
  937. font-size: 30rpx;
  938. color: #282828;
  939. line-height: 86rpx;
  940. box-sizing: border-box;
  941. background-color: #fff;
  942. .iconfont {
  943. margin-top: 6rpx;
  944. font-size: 22rpx;
  945. }
  946. }
  947. .presell_bg_header{
  948. background: linear-gradient(to right, var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
  949. }
  950. .b-color {
  951. background-color: var(--view-theme);
  952. }
  953. .t-color {
  954. color: var(--view-theme)!important;
  955. }
  956. .goodCall {
  957. text-align: center;
  958. width: 100%;
  959. height: 86rpx;
  960. padding: 0 30rpx;
  961. border-bottom: 1px solid #eee;
  962. font-size: 30rpx;
  963. line-height: 86rpx;
  964. background: #fff;
  965. color: #282828;
  966. .icon-kefu {
  967. font-size: 28rpx;
  968. margin-right: 15rpx;
  969. }
  970. /* #ifdef MP */
  971. button {
  972. display: flex;
  973. align-items: center;
  974. justify-content: center;
  975. height: 86rpx;
  976. font-size: 30rpx;
  977. color: #e93323;
  978. }
  979. /* #endif */
  980. }
  981. .order-details .header {
  982. padding: 0 30rpx;
  983. height: 150rpx;
  984. background-image: linear-gradient(90deg, var(--view-bntColor21) 0%,var(--view-bntColor22) 100%);
  985. &.presell_header{
  986. background-repeat: no-repeat;
  987. background-size: cover;
  988. padding: 35rpx 50rpx;
  989. .data{
  990. margin: 8rpx 0 0 13rpx;
  991. .state{
  992. font-weight: normal;
  993. font-size: 24rpx;
  994. }
  995. }
  996. }
  997. }
  998. .take-info{
  999. padding: 0 30rpx 30rpx;
  1000. background-color: #ffffff;
  1001. margin-bottom: 14rpx;
  1002. }
  1003. .take-msg {
  1004. display: flex;
  1005. justify-content: space-between;
  1006. background-color: #FAFAFA;
  1007. padding: 24rpx;
  1008. border-radius: 4rpx;
  1009. .left {
  1010. font-size: 24rpx;
  1011. display: flex;
  1012. flex-direction: column;
  1013. justify-content: space-between;
  1014. .title {
  1015. font-size: 28rpx;
  1016. font-weight: bold;
  1017. color: #282828;
  1018. }
  1019. .text {
  1020. color: #666666;
  1021. }
  1022. }
  1023. .code {
  1024. display: flex;
  1025. flex-direction: column;
  1026. align-items: center;
  1027. justify-content: center;
  1028. .iconfont {
  1029. font-size: 50rpx;
  1030. color: #666666;
  1031. }
  1032. .text {
  1033. font-size: 20rpx;
  1034. color: #666666;
  1035. margin-top: 12rpx;
  1036. }
  1037. }
  1038. }
  1039. .order-details .header.on {
  1040. background-color: #666 !important;
  1041. }
  1042. .order-details .header .pictrue {
  1043. width: 110rpx;
  1044. height: 110rpx;
  1045. }
  1046. .order-details .header .pictrue image {
  1047. width: 100%;
  1048. height: 100%;
  1049. }
  1050. .order-details .header .data {
  1051. color: rgba(255, 255, 255, 0.8);
  1052. font-size: 24rpx;
  1053. margin-left: 27rpx;
  1054. }
  1055. .order-details .header .data.on {
  1056. margin-left: 0;
  1057. }
  1058. .order-details .header .data .state {
  1059. font-size: 30rpx;
  1060. font-weight: bold;
  1061. color: #fff;
  1062. margin-bottom: 7rpx;
  1063. }
  1064. .presell_header .presell_payment{
  1065. color: #fff;
  1066. font-size: 30rpx;
  1067. font-weight: bold;
  1068. .iconfont{
  1069. font-weight: normal;
  1070. margin-right: 8rpx;
  1071. }
  1072. }
  1073. .order-details .header .data .time {
  1074. margin-left: 20rpx;
  1075. }
  1076. .order-details .nav {
  1077. background-color: #fff;
  1078. font-size: 26rpx;
  1079. color: #282828;
  1080. padding: 25rpx 0;
  1081. }
  1082. .order-details .nav .navCon {
  1083. padding: 0 40rpx;
  1084. }
  1085. .order-details .nav .on {
  1086. color: var(--view-theme);
  1087. }
  1088. .order-details .nav .progress {
  1089. padding: 0 65rpx;
  1090. margin-top: 10rpx;
  1091. }
  1092. .order-details .nav .progress .line {
  1093. width: 100rpx;
  1094. height: 2rpx;
  1095. background-color: #939390;
  1096. }
  1097. .order-details .nav .progress .iconfont {
  1098. font-size: 25rpx;
  1099. color: #939390;
  1100. margin-top: -2rpx;
  1101. }
  1102. .order-details .address {
  1103. font-size: 26rpx;
  1104. color: #868686;
  1105. background-color: #fff;
  1106. margin-top: 13rpx;
  1107. padding: 35rpx 30rpx;
  1108. }
  1109. .order-details .address .name {
  1110. font-size: 30rpx;
  1111. color: #282828;
  1112. margin-bottom: 15rpx;
  1113. }
  1114. .order-details .line {
  1115. width: 100%;
  1116. height: 3rpx;
  1117. }
  1118. .order-details .line image {
  1119. width: 100%;
  1120. height: 100%;
  1121. display: block;
  1122. }
  1123. .order-details .wrapper {
  1124. background-color: #fff;
  1125. margin-top: 12rpx;
  1126. padding: 30rpx;
  1127. }
  1128. .order-details .wrapper .item {
  1129. font-size: 28rpx;
  1130. color: #282828;
  1131. }
  1132. .order-details .wrapper .virtual_item {
  1133. display: flex;
  1134. justify-content: space-between;
  1135. align-items: center;
  1136. }
  1137. .order-details .virtual_item .virtual_row {
  1138. width: 300rpx;
  1139. align-items: center;
  1140. justify-content: space-between;
  1141. image,uni-image{
  1142. width: 80rpx;
  1143. height: 80rpx;
  1144. border-radius: 100%;
  1145. }
  1146. }
  1147. .order-details .virtual_item .virtual_detail {
  1148. color: var(--view-theme);
  1149. }
  1150. .order-details .virtual_item .virtual_delivery {
  1151. line-height: 40rpx;
  1152. }
  1153. .order-details .virtual_item .virtual_delivery_not {
  1154. font-weight: bold;
  1155. }
  1156. .order-details .wrapper .item~.item {
  1157. margin-top: 20rpx;
  1158. }
  1159. .order-details .wrapper .item .conter {
  1160. color: #868686;
  1161. width: 500rpx;
  1162. display: flex;
  1163. flex-wrap: nowrap;
  1164. justify-content: flex-end;
  1165. text-align: right;
  1166. }
  1167. .order-details .wrapper .item .virtual_image {
  1168. margin-left: 50rpx;
  1169. }
  1170. .order-details .wrapper .item .virtual_image .picture{
  1171. width: 106rpx;
  1172. height: 106rpx;
  1173. border-radius: 8rpx;
  1174. margin-right: 10rpx;
  1175. &:last-child{
  1176. margin-right: 0;
  1177. }
  1178. }
  1179. .order-details .wrapper .item .conter .copy {
  1180. font-size: 20rpx;
  1181. color: #333;
  1182. border-radius: 17rpx;
  1183. border: 1px solid #666;
  1184. padding: 3rpx 15rpx;
  1185. margin-left: 24rpx;
  1186. }
  1187. .order-details .wrapper .actualPay {
  1188. border-top: 1px solid #eee;
  1189. margin-top: 30rpx;
  1190. padding-top: 30rpx;
  1191. }
  1192. .order-details .wrapper .actualPay .money {
  1193. font-weight: bold;
  1194. font-size: 30rpx;
  1195. }
  1196. .order-details .footer {
  1197. width: 100%;
  1198. position: fixed;
  1199. bottom: 0;
  1200. left: 0;
  1201. background-color: #fff;
  1202. padding: 0 30rpx;
  1203. height: 100rpx;
  1204. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1205. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1206. box-sizing: border-box;
  1207. }
  1208. .content-clip{
  1209. height: 120rpx;
  1210. height: calc(120rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1211. height: calc(120rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1212. }
  1213. .order-details .footer .bnt {
  1214. width: 156rpx;
  1215. text-align: center;
  1216. height: 60rpx;
  1217. border-radius: 50rpx;
  1218. color: #fff;
  1219. font-size: 27rpx;
  1220. display: flex;
  1221. align-items: center;
  1222. justify-content: center;
  1223. &.btn_auto{
  1224. width: auto;
  1225. padding: 0 40rpx;
  1226. }
  1227. ~.bnt {
  1228. margin-left: 17rpx;
  1229. }
  1230. }
  1231. .order-details .footer .bnt.cancel {
  1232. color: #aaa;
  1233. border: 1px solid #ddd;
  1234. }
  1235. .order-details .footer .bnt~.bnt {
  1236. margin-left: 18rpx;
  1237. }
  1238. .order-details .writeOff {
  1239. background-color: #fff;
  1240. margin-top: 13rpx;
  1241. padding-bottom: 30rpx;
  1242. }
  1243. .order-details .writeOff .title {
  1244. font-size: 30rpx;
  1245. color: #282828;
  1246. height: 87rpx;
  1247. border-bottom: 1px solid #f0f0f0;
  1248. padding: 0 30rpx;
  1249. line-height: 87rpx;
  1250. }
  1251. .grayBg .pictrue {
  1252. width: 290rpx;
  1253. height: 290rpx;
  1254. margin: 0 auto;
  1255. }
  1256. .grayBg .pictrue image {
  1257. width: 100%;
  1258. height: 100%;
  1259. display: block;
  1260. }
  1261. .gear {
  1262. width: 590rpx;
  1263. height: 30rpx;
  1264. margin: 0 auto;
  1265. }
  1266. .gear image {
  1267. width: 100%;
  1268. height: 100%;
  1269. display: block;
  1270. }
  1271. .num {
  1272. color: #282828;
  1273. font-size: 34rpx;
  1274. font-weight: bold;
  1275. margin: 0 auto;
  1276. text-align: center;
  1277. margin-top: 30rpx;
  1278. }
  1279. .order-details .writeOff .rules {
  1280. margin: 46rpx 30rpx 0 30rpx;
  1281. border-top: 1px solid #f0f0f0;
  1282. padding-top: 10rpx;
  1283. }
  1284. .order-details .writeOff .rules .item {
  1285. margin-top: 20rpx;
  1286. }
  1287. .order-details .writeOff .rules .item .rulesTitle {
  1288. font-size: 28rpx;
  1289. color: #282828;
  1290. }
  1291. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  1292. font-size: 30rpx;
  1293. color: #333;
  1294. margin-right: 8rpx;
  1295. margin-top: 5rpx;
  1296. }
  1297. .order-details .writeOff .rules .item .info {
  1298. font-size: 28rpx;
  1299. color: #999;
  1300. margin-top: 7rpx;
  1301. }
  1302. .order-details .writeOff .rules .item .info .time {
  1303. margin-left: 20rpx;
  1304. }
  1305. .order-details .map {
  1306. height: 86rpx;
  1307. font-size: 30rpx;
  1308. color: #282828;
  1309. line-height: 86rpx;
  1310. border-bottom: 1px solid #f0f0f0;
  1311. margin-top: 13rpx;
  1312. background-color: #fff;
  1313. padding: 0 30rpx;
  1314. }
  1315. .order-details .map .place {
  1316. font-size: 26rpx;
  1317. width: 176rpx;
  1318. border-radius: 25rpx;
  1319. line-height: 50rpx;
  1320. text-align: center;
  1321. border: 1px solid var(--view-theme);
  1322. }
  1323. .order-details .map .place .iconfont {
  1324. font-size: 27rpx;
  1325. height: 27rpx;
  1326. line-height: 27rpx;
  1327. margin: 2rpx 3rpx 0 0;
  1328. }
  1329. .order-details .address .name .iconfont {
  1330. font-size: 34rpx;
  1331. margin-left: 10rpx;
  1332. }
  1333. .refund {
  1334. padding: 0 30rpx 30rpx;
  1335. margin-top: 24rpx;
  1336. background-color: #fff;
  1337. .title {
  1338. display: flex;
  1339. align-items: center;
  1340. font-size: 30rpx;
  1341. color: #333;
  1342. height: 86rpx;
  1343. border-bottom: 1px solid #f5f5f5;
  1344. image {
  1345. width: 32rpx;
  1346. height: 32rpx;
  1347. margin-right: 10rpx;
  1348. }
  1349. }
  1350. .con {
  1351. padding-top: 25rpx;
  1352. font-size: 28rpx;
  1353. color: #868686;
  1354. }
  1355. }
  1356. .qs-btn {
  1357. width: auto;
  1358. height: 60rpx;
  1359. text-align: center;
  1360. line-height: 60rpx;
  1361. border-radius: 50rpx;
  1362. color: #fff;
  1363. font-size: 27rpx;
  1364. padding: 0 3%;
  1365. color: #aaa;
  1366. border: 1px solid #ddd;
  1367. margin-right: 20rpx;
  1368. }
  1369. .code-content {
  1370. display: flex;
  1371. flex-direction: column;
  1372. align-items: center;
  1373. justify-content: center;
  1374. padding: 32rpx 0 60rpx 0;
  1375. background: #ffffff;
  1376. border-radius: 16rpx 16rpx 0 0;
  1377. position: relative;
  1378. .iconfont{
  1379. font-size: 24rpx;
  1380. color: #939393;
  1381. position: absolute;
  1382. top: 20rpx;
  1383. right: 30rpx;
  1384. }
  1385. .title{
  1386. color: #282828;
  1387. font-size: 32rpx;
  1388. font-weight: bold;
  1389. }
  1390. .trip {
  1391. font-size: 28rpx;
  1392. font-weight: 400;
  1393. color: #666666;
  1394. margin: 40rpx 0;
  1395. }
  1396. }
  1397. </style>