index.vue 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161
  1. <template>
  2. <view :style="colorStyle">
  3. <view class='order-details'>
  4. <!-- 给header上与data上加on为退款订单-->
  5. <view class='header bg-color acea-row row-middle' :class='isGoodsReturn ? "on":""'>
  6. <view class='pictrue' v-if="isGoodsReturn==false">
  7. <image :src="orderInfo.status_pic"></image>
  8. </view>
  9. <view class='data' :class='isGoodsReturn ? "on":""'>
  10. <view class='state'>{{orderInfo._status._msg}}</view>
  11. <view>{{orderInfo.add_time_y}}<text class='time'>{{orderInfo.add_time_h}}</text></view>
  12. </view>
  13. </view>
  14. <view class="refund-msg" v-if="[4,5].includes(orderInfo.refund_type)">
  15. <view v-if="orderInfo._status.refund_name!=''">
  16. <view class="refund-msg-user">
  17. <text class="name">{{orderInfo._status.refund_name}}</text>
  18. <text>{{orderInfo._status.refund_phone}}</text>
  19. <!-- #ifndef H5 -->
  20. <text class="copy-refund-msg" @click="copyAddress()">{{$t(`复制`)}}</text>
  21. <!-- #endif -->
  22. <!-- #ifdef H5 -->
  23. <text class="copy-refund-msg"
  24. :data-clipboard-text="orderInfo._status.refund_name + orderInfo._status.refund_phone + orderInfo._status.refund_address">{{$t(`复制`)}}</text>
  25. <!-- #endif -->
  26. </view>
  27. <view class="refund-address">
  28. {{orderInfo._status.refund_address}}
  29. </view>
  30. <view class="refund-tip"><text class="iconfont icon-zhuyi-copy"></text>{{$t(`请按以上退货信息将商品退回`)}}
  31. </view>
  32. </view>
  33. <view v-else>
  34. <view class="refund-tip1 "><text class="iconfont icon-zhuyi-copy"></text>{{$t(`请联系管理员获取退货地址`)}}
  35. </view>
  36. </view>
  37. </view>
  38. <view class='line' v-if="[4,5].includes(orderInfo.refund_type)">
  39. <image src='@/static/images/line.jpg'></image>
  40. </view>
  41. <view v-if="isGoodsReturn==false">
  42. <view class='nav'>
  43. <view class='navCon acea-row row-between-wrapper'>
  44. <view :class="status.type == 0 || status.type == -9 ? 'on':''">{{$t(`待付款`)}}</view>
  45. <view :class="status.type == 1 || status.type == 5 ? 'on':''">
  46. {{orderInfo.shipping_type==1 ? $t(`待发货`):$t(`待核销`)}}
  47. </view>
  48. <view :class="status.type == 2 ? 'on':''" v-if="orderInfo.shipping_type == 1">{{$t(`待收货`)}}
  49. </view>
  50. <view :class="status.type == 3 ? 'on':''">{{$t(`待评价`)}}</view>
  51. <view :class="status.type == 4 ? 'on':''">{{$t(`已完成`)}}</view>
  52. </view>
  53. <view class='progress acea-row row-between-wrapper'>
  54. <view class='iconfont'
  55. :class='(status.type == 0 || status.type == -9 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 0 ? "font-num":"")'>
  56. </view>
  57. <view class='line' :class='status.type > 0 ? "bg-color":""'>
  58. </view>
  59. <view class='iconfont'
  60. :class='(status.type == 1 || status.type == 5 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 1 ? "font-num":"")'
  61. v-if="orderInfo.shipping_type!=4">
  62. </view>
  63. <view class='line' :class='status.type > 1 && status.type != 5 ? "bg-color":""'
  64. v-if="orderInfo.shipping_type == 1">
  65. </view>
  66. <view class='iconfont'
  67. :class='(status.type == 2 ? "icon-webicon318":"icon-yuandianxiao") + " " +(status.type >= 2 ? "font-num":"")'
  68. v-if="orderInfo.shipping_type == 1"></view>
  69. <view class='line' :class='status.type > 2 && status.type != 5 ? "bg-color":""'></view>
  70. <view class='iconfont'
  71. :class='(status.type == 3 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 3 && status.type != 5 ? "font-num":"")'>
  72. </view>
  73. <view class='line' :class='status.type > 3 && status.type != 5 ? "bg-color":""'></view>
  74. <view class='iconfont'
  75. :class='(status.type == 4 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 4 && status.type != 5 ? "font-num":"")'>
  76. </view>
  77. </view>
  78. </view>
  79. <!-- <view class="writeOff" v-if="orderInfo.shipping_type == 2 && orderInfo.paid"> -->
  80. <view class="writeOff" v-if="orderInfo.verify_code && orderInfo.paid == 1">
  81. <view class="title">{{$t(`核销信息`)}}</view>
  82. <view class="grayBg">
  83. <view class="written" v-if="orderInfo.status == 2">
  84. <image src="../static/written.png"></image>
  85. </view>
  86. <view class="pictrue">
  87. <image :src="codeSrc" mode=""></image>
  88. <zb-code ref="qrcode" :show="codeShow" :cid="cid" :val="val" :size="size" :unit="unit"
  89. :background="background" :foreground="foreground" :pdground="pdground" :icon="icon"
  90. :iconSize="iconsize" :onval="onval" :loadMake="loadMake" @result="qrR" />
  91. </view>
  92. </view>
  93. <view class="gear">
  94. <image src="../static/writeOff.jpg"></image>
  95. </view>
  96. <view class="num">{{orderInfo._verify_code}}</view>
  97. <view class="rules">
  98. <view class="item" v-if="orderInfo.shipping_type == 2">
  99. <view class="rulesTitle acea-row row-middle">
  100. <text class="iconfont icon-shijian"></text>{{$t(`营业时间`)}}
  101. </view>
  102. <view class="info">
  103. {{$t(`每日`)}}:<text class="time">{{orderInfo.system_store.day_time}}</text>
  104. </view>
  105. </view>
  106. <view class="item">
  107. <view class="rulesTitle acea-row row-middle">
  108. <text class="iconfont icon-shuoming1"></text>{{$t(`使用说明`)}}
  109. </view>
  110. <view class="info">
  111. {{orderInfo.shipping_type == 2?$t(`可将二维码出示给店员扫描或提供数字核销码`):$t(`可将二维码出示给配送员进行核销`)}}
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="map acea-row row-between-wrapper" v-if="orderInfo.shipping_type == 2">
  117. <view>{{$t(`地址信息`)}}</view>
  118. <view class="place cart-color acea-row row-center-wrapper" @tap="showMaoLocation">
  119. <text class="iconfont icon-weizhi"></text>{{$t(`查看位置`)}}
  120. </view>
  121. </view>
  122. <view v-if="orderInfo.virtual_type == 0">
  123. <view class='address' v-if="orderInfo.shipping_type === 1">
  124. <view class='name'>{{orderInfo.real_name}}<text class='phone'>{{orderInfo.user_phone}}</text>
  125. </view>
  126. <view>{{orderInfo.user_address}}</view>
  127. </view>
  128. <view class='address' v-else>
  129. <view class='name' @tap="makePhone">{{orderInfo.system_store.name}}<text
  130. class='phone'>{{orderInfo.system_store.phone}}</text><text
  131. class="iconfont icon-tonghua font-num"></text></view>
  132. <view>{{orderInfo.system_store.detailed_address}}</view>
  133. </view>
  134. <view class='line' v-if="orderInfo.shipping_type === 1">
  135. <image src='@/static/images/line.jpg'></image>
  136. </view>
  137. </view>
  138. <view v-if="orderInfo.virtual_type != 0" style="paddingTop: 6px;"></view>
  139. </view>
  140. <view v-else>
  141. <!-- 拒绝退款 -->
  142. <view class="refund" v-if="orderInfo.refund_type == 3">
  143. <view class="title">
  144. <image src="../static/shuoming.png" mode=""></image>
  145. {{$t(`拒绝退款`)}}
  146. </view>
  147. <view class="con">{{$t(`拒绝原因`)}}:{{orderInfo.refuse_reason || ''}}</view>
  148. </view>
  149. </view>
  150. <orderGoods v-for="(item,index) in split" :key="item.id" :evaluate='item._status._type == 3 ? 3 : 0'
  151. :orderId="item.order_id" :cartInfo="item.cartInfo" :jump="false" :jumpDetail='true' :pid="item.pid"
  152. :split="true" :status_type="item._status._type" :index="index" :refund_status="item.refund_status"
  153. :delivery_type="item.delivery_type" @confirmOrder="confirmOrder" @openSubcribe="openSubcribe">
  154. </orderGoods>
  155. <orderGoods :evaluate='evaluate' :deliveryType="orderInfo.shipping_type" :statusType="status.type"
  156. :sendType="orderInfo.delivery_type" :orderId="order_id" :oid="orderInfo.id" :cartInfo="cartInfo"
  157. :pid="pid" :jump="true" :refund_status="orderInfo.refund_status" :paid="orderInfo.paid"
  158. :virtualType="orderInfo.virtual_type" @openSubcribe="openSubcribe">
  159. </orderGoods>
  160. <!-- #ifdef H5 || APP-PLUS -->
  161. <div class="goodCall" @click="goGoodCall">
  162. <span class="iconfont icon-kefu"></span><span>{{$t(`联系客服`)}}</span>
  163. </div>
  164. <!-- #endif -->
  165. <!-- #ifdef MP -->
  166. <div class="goodCall" @click="goGoodCall" v-if='routineContact == 0'>
  167. <button hover-class='none'>
  168. <span class="iconfont icon-kefu"></span><span>{{$t(`联系客服`)}}</span>
  169. </button>
  170. </div>
  171. <div class="goodCall" v-else>
  172. <button hover-class='none' open-type='contact'>
  173. <span class="iconfont icon-kefu"></span><span>{{$t(`联系客服`)}}</span>
  174. </button>
  175. </div>
  176. <!-- #endif -->
  177. <view class='wrapper'>
  178. <view class='item acea-row row-between'>
  179. <view>{{$t(`订单号`)}}:</view>
  180. <view class='conter acea-row row-middle row-right'>
  181. <text>{{orderInfo.order_id}}</text>
  182. <!-- #ifndef H5 -->
  183. <text class='copy' @tap='copy(orderInfo.order_id)'>{{$t(`复制`)}}</text>
  184. <!-- #endif -->
  185. <!-- #ifdef H5 -->
  186. <text class='copy copy-data' :data-clipboard-text="orderInfo.order_id">{{$t(`复制`)}}</text>
  187. <!-- #endif -->
  188. </view>
  189. </view>
  190. <view class='item acea-row row-between'>
  191. <view>{{$t(`下单时间`)}}:</view>
  192. <view class='conter'>{{(orderInfo.add_time_y || '') +' '+(orderInfo.add_time_h || 0)}}</view>
  193. </view>
  194. <view class='item acea-row row-between'>
  195. <view>{{$t(`支付状态`)}}:</view>
  196. <view class='conter' v-if="orderInfo.paid">{{$t(`已支付`)}}</view>
  197. <view class='conter' v-else>{{$t(`未支付`)}}</view>
  198. </view>
  199. <view class='item acea-row row-between' v-if="orderInfo.paid">
  200. <view>{{$t(`支付方式`)}}:</view>
  201. <view class='conter'>{{$t(orderInfo._status._payType)}}</view>
  202. </view>
  203. <view class='item acea-row row-between' v-if="orderInfo.mark">
  204. <view v-if="orderInfo.pid">{{$t(`买家备注`)}}:</view>
  205. <view v-else>{{$t(`买家留言`)}}:</view>
  206. <view class='conter'>{{orderInfo.mark}}</view>
  207. </view>
  208. <view class='item acea-row row-between' v-if="orderInfo.remark">
  209. <view>{{$t(`商家备注`)}}:</view>
  210. <view class='conter'>{{orderInfo.remark}}
  211. <!-- #ifndef H5 -->
  212. <view v-if="orderInfo.virtual_type == 1" class='copy' @tap='copy(orderInfo.remark)'>{{$t(`复制`)}}
  213. </view>
  214. <!-- #endif -->
  215. <!-- #ifdef H5 -->
  216. <view v-if="orderInfo.virtual_type == 1" class='copy copy-data'
  217. :data-clipboard-text="orderInfo.remark">{{$t(`复制`)}}</view>
  218. <!-- #endif -->
  219. </view>
  220. </view>
  221. </view>
  222. <view class='wrapper' v-if="customForm && customForm.length">
  223. <view class='item acea-row row-between' v-for="(item,index) in customForm" :key="index">
  224. <view class='upload' v-if="item.label == 'img'">
  225. <view>{{item.title}}:</view>
  226. <view class='pictrue' v-for="(img,index) in item.value" :key="index">
  227. <image :src='img'></image>
  228. </view>
  229. </view>
  230. <view v-if="item.label !== 'img'">{{item.title}}:</view>
  231. <view v-if="item.label !== 'img'" class='conter'>{{item.value}}</view>
  232. </view>
  233. </view>
  234. <!-- 退款订单详情 -->
  235. <view class='wrapper' v-if="isGoodsReturn && orderInfo.cartInfo[0].productInfo.virtual_type != 3">
  236. <view class='item acea-row row-between'>
  237. <view>{{$t(`收货人`)}}:</view>
  238. <view class='conter'>{{orderInfo.real_name}}</view>
  239. </view>
  240. <view class='item acea-row row-between'>
  241. <view>{{$t(`联系电话`)}}:</view>
  242. <view class='conter'>{{orderInfo.user_phone}}</view>
  243. </view>
  244. <view class='item acea-row row-between'>
  245. <view>{{$t(`收货地址`)}}:</view>
  246. <view class='conter'>{{orderInfo.user_address}}</view>
  247. </view>
  248. </view>
  249. <view v-if="orderInfo.status!=0">
  250. <view class='wrapper' v-if='orderInfo.delivery_type=="express"'>
  251. <view class='item acea-row row-between'>
  252. <view>{{$t(`配送方式`)}}:</view>
  253. <view class='conter'>{{$t(`发货`)}}</view>
  254. </view>
  255. <view class='item acea-row row-between'>
  256. <view>{{$t(`快递公司`)}}:</view>
  257. <view class='conter'>{{orderInfo.delivery_name || ''}}</view>
  258. </view>
  259. <view class='item acea-row row-between'>
  260. <view>{{$t(`快递单号`)}}:</view>
  261. <view class='conter'>{{orderInfo.delivery_id || ''}}</view>
  262. </view>
  263. </view>
  264. <view class='wrapper' v-else-if='orderInfo.delivery_type=="send"'>
  265. <view class='item acea-row row-between'>
  266. <view>{{$t(`配送方式`)}}:</view>
  267. <view class='conter'>{{$t(`送货`)}}</view>
  268. </view>
  269. <view class='item acea-row row-between'>
  270. <view>{{$t(`配送人姓名`)}}:</view>
  271. <view class='conter'>{{orderInfo.delivery_name || ''}}</view>
  272. </view>
  273. <view class='item acea-row row-between'>
  274. <view>{{$t(`送货人电话`)}}:</view>
  275. <view class='conter acea-row row-middle row-right'>{{orderInfo.delivery_id || ''}}<text
  276. class='copy' @tap='goTel'>{{$t(`拨打`)}}</text></view>
  277. </view>
  278. </view>
  279. <view class='wrapper' v-else-if='orderInfo.delivery_type=="fictitious"'>
  280. <view class='item acea-row row-between'>
  281. <view>{{$t(`虚拟发货`)}}:</view>
  282. <view class='conter'>{{$t(`已发货,请注意查收`)}}</view>
  283. </view>
  284. <view class='item acea-row row-between' v-if="orderInfo.fictitious_content">
  285. <view>{{$t(`虚拟备注`)}}:</view>
  286. <view class='conter'>{{orderInfo.fictitious_content}}</view>
  287. </view>
  288. </view>
  289. </view>
  290. <view class='wrapper' v-if="orderInfo.total_price">
  291. <view class='item acea-row row-between'>
  292. <view>{{$t(`商品总价`)}}:</view>
  293. <view class='conter'>
  294. {{$t(`¥`)}}{{(parseFloat(orderInfo.total_price)+parseFloat(orderInfo.vip_true_price)).toFixed(2)}}
  295. </view>
  296. </view>
  297. <view class='item acea-row row-between' v-if="orderInfo.pay_postage > 0">
  298. <view>{{$t(`配送运费`)}}:</view>
  299. <view class='conter'>{{$t(`¥`)}}{{parseFloat(orderInfo.pay_postage).toFixed(2)}}</view>
  300. </view>
  301. <view v-if="orderInfo.levelPrice > 0" class='item acea-row row-between'>
  302. <view>{{$t(`用户等级优惠`)}}:</view>
  303. <view class='conter'>-{{$t(`¥`)}}{{parseFloat(orderInfo.levelPrice).toFixed(2)}}</view>
  304. </view>
  305. <view v-if="orderInfo.memberPrice > 0" class='item acea-row row-between'>
  306. <view>{{$t(`付费会员优惠`)}}:</view>
  307. <view class='conter'>-{{$t(`¥`)}}{{parseFloat(orderInfo.memberPrice).toFixed(2)}}</view>
  308. </view>
  309. <view class='item acea-row row-between' v-if='orderInfo.coupon_price > 0'>
  310. <view>{{$t(`优惠券抵扣`)}}:</view>
  311. <view class='conter'>-{{$t(`¥`)}}{{parseFloat(orderInfo.coupon_price).toFixed(2)}}</view>
  312. </view>
  313. <view class='item acea-row row-between' v-if="orderInfo.use_integral > 0">
  314. <view>{{$t(`积分抵扣`)}}:</view>
  315. <view class='conter'>-{{$t(`¥`)}}{{parseFloat(orderInfo.deduction_price).toFixed(2)}}</view>
  316. </view>
  317. <view class='actualPay acea-row row-right' v-if="!orderInfo.help_info.help_status">{{$t(`实付款`)}}:<text
  318. class='money font-color'>{{$t(`¥`)}}{{parseFloat(orderInfo.pay_price).toFixed(2)}}</text></view>
  319. <view class='actualPay acea-row row-right' v-else>
  320. <view class="pay-people">
  321. <image :src="orderInfo.help_info.pay_avatar" mode="代付头像"></image>
  322. <view class="pay-nickname">
  323. {{orderInfo.help_info.pay_nickname || ''}}
  324. </view>
  325. </view>
  326. {{$t(`总代付`)}}:<text
  327. class='money font-color'>{{$t(`¥`)}}{{parseFloat(orderInfo.pay_price).toFixed(2)}}</text>
  328. </view>
  329. </view>
  330. <view style='height:120rpx;'></view>
  331. <view class='footer acea-row row-right row-middle'
  332. v-if="isGoodsReturn==false || status.type == 9 || orderInfo.refund_type || orderInfo.is_apply_refund">
  333. <view class="more" v-if="(invoice_func || invoiceData) && orderInfo.paid && !orderInfo.refund_status"
  334. @click="more">{{$t(`更多`)}}<span class='iconfont icon-xiangshang'></span></view>
  335. <view class="" v-else></view>
  336. <view class="more-box" v-if="moreBtn">
  337. <view class="more-btn" v-if="invoice_func && !invoiceData" @click="invoiceApply">{{$t(`申请开票`)}}
  338. </view>
  339. <view class="more-btn" v-if="invoiceData" @click="aleartStatusChange">{{$t(`查看发票`)}}</view>
  340. </view>
  341. <view class="right-btn">
  342. <view class="qs-btn" v-if="status.type == 0 || status.type == -9" @click.stop="cancelOrder">
  343. {{$t(`取消订单`)}}
  344. </view>
  345. <view class='bnt bg-color' v-if="status.type==0" @tap='pay_open(orderInfo.order_id)'>{{$t(`立即付款`)}}
  346. </view>
  347. <view
  348. @click="openSubcribe(`/pages/goods/${cartInfo.length > 1 ? 'goods_return_list' : 'goods_return'}/index?orderId=`+orderInfo.order_id+ '&id=' + orderInfo.id)"
  349. class='bnt cancel'
  350. v-else-if="orderInfo.is_apply_refund && orderInfo.refund_status == 0 && cartInfo.length>1 && !orderInfo.virtual_type">
  351. {{cartInfo.length>1?$t(`批量退款`):$t(`申请退款`)}}
  352. </view>
  353. <navigator class='bnt cancel'
  354. v-if="orderInfo.delivery_type == 'express' && status.class_status==3 && status.type==2 && !split.length"
  355. hover-class='none' :url="'/pages/goods/goods_logistics/index?orderId='+ orderInfo.order_id">
  356. {{$t(`查看物流`)}}
  357. </navigator>
  358. <view class='bnt bg-color'
  359. v-if="orderInfo.type == 3 && orderInfo.refund_type == 0 && orderInfo.paid" @tap='goJoinPink'>
  360. {{$t(`查看拼团`)}}
  361. </view>
  362. <view class='bnt bg-color' v-if="status.class_status==3 && !split.length" @click='confirmOrder()'>
  363. {{$t(`确认收货`)}}
  364. </view>
  365. <view class='bnt bg-color' v-if="status.class_status==5" @tap='goOrderConfirm'>{{$t(`再次购买`)}}
  366. </view>
  367. <view class='bnt bg-color refundBnt'
  368. v-if="[1,2,4].includes(orderInfo.refund_type) && !orderInfo.is_cancel && orderInfo.type !=3 && orderInfo.refund_status != 2"
  369. @tap='cancelRefundOrder'>
  370. {{$t(`取消申请`)}}
  371. </view>
  372. <view class='bnt bg-color refundBnt' v-if="orderInfo.refund_type== 4" @tap='refundInput'>
  373. {{$t(`填写退货信息`)}}
  374. </view>
  375. <navigator class='bnt cancel refundBnt' v-if="orderInfo.refund_type == 5" hover-class='none'
  376. :url="'/pages/goods/goods_logistics/index?orderId='+ orderInfo.order_id + '&type=refund'">
  377. {{$t(`查看退货物流`)}}
  378. </navigator>
  379. <view class='bnt cancel' v-if="status.type==4 && !split.length || status.type == -2"
  380. @tap='delOrder'>
  381. {{$t(`删除订单`)}}
  382. </view>
  383. </view>
  384. </view>
  385. </view>
  386. <home v-show="!aleartStatus && !invShow"></home>
  387. <view class="mask" v-if="refund_close" @click="refund_close = false"></view>
  388. <!-- <view class="refund-input" :class="refund_close ? 'on' : ''">
  389. <view class="input-msg">
  390. <text class='iconfont icon-guanbi5' @tap='refund_close = false'></text>
  391. <view class="refund-input-title">填写物流单号
  392. </view>
  393. <view class="refund-input-sty">
  394. <input type="text" v-model="express_num" placeholder="请输入物流单号" />
  395. </view>
  396. <view class="refund-bth">
  397. <view class="submit-refund" @click="refundSubmit()">提交</view>
  398. </view>
  399. </view>
  400. </view> -->
  401. <!-- #ifdef MP -->
  402. <!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
  403. <!-- #endif -->
  404. <invoiceModal :aleartStatus="aleartStatus" :invoiceData="invoiceData" @close="aleartStatus=false">
  405. </invoiceModal>
  406. <view class="mask invoice-mask" v-if="aleartStatus" @click="aleartStatus = false"></view>
  407. <view class="mask more-mask" v-if="moreBtn" @click="moreBtn = false"></view>
  408. <invoice-picker :inv-show="invShow" :is-special="special_invoice" :url-query="urlQuery"
  409. :inv-checked="invChecked" :order-id='order_id' :inv-list="invList" :is-order="1" @inv-close="invClose"
  410. @inv-change="invSub" @inv-cancel="invCancel">
  411. </invoice-picker>
  412. </view>
  413. </template>
  414. <script>
  415. import {
  416. getOrderDetail,
  417. refundOrderDetail,
  418. orderAgain,
  419. orderTake,
  420. orderDel,
  421. refundOrderDel,
  422. orderCancel,
  423. refundExpress,
  424. cancelRefundOrder
  425. } from '@/api/order.js';
  426. import {
  427. openOrderRefundSubscribe
  428. } from '@/utils/SubscribeMessage.js';
  429. import {
  430. getCustomerType
  431. } from '@/api/api.js';
  432. import {
  433. getCustomer
  434. } from '@/utils/index.js'
  435. import {
  436. getUserInfo,
  437. invoiceList,
  438. makeUpinvoice
  439. } from '@/api/user.js';
  440. import home from '@/components/home';
  441. import orderGoods from "@/components/orderGoods";
  442. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  443. import {
  444. toLogin
  445. } from '@/libs/login.js';
  446. import {
  447. mapGetters
  448. } from "vuex";
  449. // #ifdef MP
  450. import authorize from '@/components/Authorize';
  451. // #endif
  452. import colors from "@/mixins/color";
  453. import invoicePicker from '../components/invoicePicker/index.vue';
  454. import invoiceModal from '../components/invoiceModal/index.vue'
  455. import zbCode from '@/components/zb-code/zb-code.vue'
  456. export default {
  457. components: {
  458. home,
  459. invoicePicker,
  460. invoiceModal,
  461. orderGoods,
  462. zbCode,
  463. // #ifdef MP
  464. authorize
  465. // #endif
  466. },
  467. mixins: [colors],
  468. data() {
  469. return {
  470. customForm: '', //自定义留言
  471. //二维码参数
  472. codeShow: false,
  473. cid: '1',
  474. ifShow: true,
  475. val: "", // 要生成的二维码值
  476. size: 200, // 二维码大小
  477. unit: 'upx', // 单位
  478. background: '#FFF', // 背景色
  479. foreground: '#000', // 前景色
  480. pdground: '#000', // 角标色
  481. icon: '', // 二维码图标
  482. iconsize: 40, // 二维码图标大小
  483. lv: 3, // 二维码容错级别 , 一般不用设置,默认就行
  484. onval: true, // val值变化时自动重新生成二维码
  485. loadMake: true, // 组件加载完成后自动生成二维码
  486. src: '', // 二维码生成后的图片地址或base64
  487. codeSrc: "",
  488. wd: 0,
  489. hg: 0,
  490. mpUrl: "",
  491. order_id: '',
  492. evaluate: 0,
  493. cartInfo: [], //购物车产品
  494. pid: 0, //上级订单ID
  495. split: [], //分单商品
  496. orderInfo: {
  497. help_info: {},
  498. system_store: {},
  499. _status: {}
  500. }, //订单详情
  501. system_store: {},
  502. isGoodsReturn: false, //是否为退款订单
  503. status: {}, //订单底部按钮状态
  504. refund_close: false,
  505. isClose: false,
  506. payMode: [{
  507. name: this.$t(`微信支付`),
  508. icon: "icon-weixinzhifu",
  509. value: 'weixin',
  510. title: this.$t(`使用微信快捷支付`),
  511. payStatus: true,
  512. },
  513. // #ifdef H5 || APP-PLUS
  514. {
  515. name: this.$t(`支付宝支付`),
  516. icon: 'icon-zhifubao',
  517. value: 'alipay',
  518. title: this.$t(`使用支付宝支付`),
  519. payStatus: true
  520. },
  521. // #endif
  522. {
  523. name: this.$t(`余额支付`),
  524. icon: "icon-yuezhifu",
  525. value: 'yue',
  526. title: this.$t(`可用余额`),
  527. number: 0,
  528. payStatus: true
  529. }, {
  530. "name": this.$t(`好友代付`),
  531. "icon": "icon-haoyoudaizhifu",
  532. value: 'friend',
  533. title: this.$t(`找微信好友支付`),
  534. payStatus: 1,
  535. },
  536. {
  537. "name": this.$t(`通联支付`),
  538. "icon": "icon-tonglianzhifu1",
  539. value: 'allinpay',
  540. title: this.$t(`使用通联支付付款`),
  541. payStatus: 1,
  542. }
  543. ],
  544. pay_close: false,
  545. pay_order_id: '',
  546. totalPrice: '0',
  547. isAuto: false, //没有授权的不会自动授权
  548. isShowAuth: false, //是否隐藏授权
  549. routineContact: 0,
  550. express_num: '',
  551. invoice_func: false,
  552. invoiceData: {},
  553. invoice_id: 0,
  554. invChecked: '',
  555. moreBtn: false,
  556. invShow: false,
  557. aleartStatus: false, //发票弹窗
  558. special_invoice: false,
  559. invList: [],
  560. customerInfo: {},
  561. userInfo: {},
  562. isReturen: '',
  563. urlQuery: ''
  564. };
  565. },
  566. computed: mapGetters(['isLogin']),
  567. onLoad: function(options) {
  568. if (options.order_id) {
  569. this.$set(this, 'order_id', options.order_id);
  570. this.isReturen = options.isReturen;
  571. }
  572. if (options.invoice_id) {
  573. this.invoice_id = options.invoice_id
  574. }
  575. },
  576. onShow() {
  577. if (this.isLogin) {
  578. this.getOrderInfo();
  579. this.getUserInfo();
  580. this.getCustomerType();
  581. let opt = wx.getEnterOptionsSync();
  582. console.log(opt)
  583. if (opt.scene == '1038' && opt.referrerInfo.appId == 'wxef277996acc166c3') {
  584. // 代表从收银台小程序返回
  585. let extraData = opt.referrerInfo.extraData;
  586. if (!extraData) {
  587. // "当前通过物理按键返回,未接收到返参,建议自行查询交易结果";
  588. this.getOrderInfo();
  589. } else {
  590. if (extraData.code == 'success') {
  591. // "支付成功";
  592. this.getOrderInfo();
  593. } else if (extraData.code == 'cancel') {
  594. // "支付已取消";
  595. this.$util.Tips({
  596. title: this.$t(`支付已取消`)
  597. });
  598. } else {
  599. // "支付失败:" + extraData.errmsg;
  600. this.$util.Tips({
  601. title: this.$t(`支付失败:${extraData.errmsg}`)
  602. });
  603. }
  604. }
  605. }
  606. } else {
  607. toLogin();
  608. }
  609. },
  610. onHide: function() {
  611. this.isClose = true;
  612. },
  613. onReady: function() {
  614. // #ifdef H5
  615. this.$nextTick(function() {
  616. const clipboard = new ClipboardJS(".copy-data");
  617. clipboard.on("success", () => {
  618. this.$util.Tips({
  619. title: this.$t(`复制成功`)
  620. });
  621. });
  622. const address = new ClipboardJS(".copy-refund-msg");
  623. address.on("success", () => {
  624. this.$util.Tips({
  625. title: this.$t(`复制成功`)
  626. });
  627. });
  628. });
  629. // #endif
  630. },
  631. methods: {
  632. qrR(res) {
  633. this.codeSrc = res
  634. },
  635. cancelRefundOrder(orderId) {
  636. let that = this;
  637. uni.showModal({
  638. title: that.$t(`取消申请`),
  639. content: that.$t(`您确认放弃此次申请吗`),
  640. success: (res) => {
  641. if (res.confirm) {
  642. cancelRefundOrder(that.order_id).then(res => {
  643. return that.$util.Tips({
  644. title: that.$t(`操作成功`),
  645. icon: 'success'
  646. }, {
  647. tab: 4,
  648. url: '/pages/users/user_return_list/index'
  649. });
  650. }).catch(err => {
  651. return that.$util.Tips({
  652. title: err
  653. });
  654. })
  655. }
  656. }
  657. })
  658. },
  659. refundInput() {
  660. uni.navigateTo({
  661. url: `/pages/goods/order_refund_goods/index?orderId=` + this.order_id
  662. })
  663. },
  664. getCustomerType() {
  665. getCustomerType().then(res => {
  666. this.customerInfo = res.data;
  667. }).catch(err => {
  668. this.$util.Tips({
  669. title: err
  670. });
  671. })
  672. },
  673. goGoodCall() {
  674. getCustomer(`/pages/extension/customer_list/chat?orderId=${this.order_id}&isReturen=${this.isReturen}`)
  675. },
  676. openSubcribe(e) {
  677. let page = e;
  678. console.log(page)
  679. // #ifndef MP
  680. uni.navigateTo({
  681. url: page,
  682. });
  683. // #endif
  684. // #ifdef MP
  685. uni.showLoading({
  686. title: this.$t(`正在加载中`),
  687. })
  688. openOrderRefundSubscribe().then(res => {
  689. uni.hideLoading();
  690. uni.navigateTo({
  691. url: page,
  692. });
  693. }).catch((err) => {
  694. uni.hideLoading();
  695. });
  696. // #endif
  697. },
  698. goReturnGoods() {},
  699. /**
  700. * 拨打电话
  701. */
  702. makePhone: function() {
  703. uni.makePhoneCall({
  704. phoneNumber: this.system_store.phone
  705. })
  706. },
  707. /**
  708. * 打开地图
  709. *
  710. */
  711. showMaoLocation: function() {
  712. if (!this.system_store.latitude || !this.system_store.longitude) return this.$util.Tips({
  713. title: this.$t(`缺少经纬度信息无法查看地图`)
  714. });
  715. uni.openLocation({
  716. latitude: parseFloat(this.system_store.latitude),
  717. longitude: parseFloat(this.system_store.longitude),
  718. scale: 8,
  719. name: this.system_store.name,
  720. address: this.system_store.address + this.system_store.detailed_address,
  721. success: function() {
  722. },
  723. });
  724. },
  725. /**
  726. * 打开支付组件
  727. *
  728. */
  729. pay_open: function() {
  730. uni.navigateTo({
  731. url: `/pages/goods/cashier/index?order_id=${this.orderInfo.order_id}&from_type=order`
  732. })
  733. // this.pay_close = true;
  734. // this.pay_order_id = this.orderInfo.order_id;
  735. // this.totalPrice = this.orderInfo.pay_price;
  736. },
  737. /**
  738. * 支付失败回调
  739. *
  740. */
  741. pay_fail: function() {
  742. this.pay_close = false;
  743. this.pay_order_id = '';
  744. },
  745. /**
  746. * 登录授权回调
  747. *
  748. */
  749. onLoadFun: function() {
  750. this.getOrderInfo();
  751. this.getUserInfo();
  752. },
  753. /**
  754. * 获取用户信息
  755. *
  756. */
  757. getUserInfo: function() {
  758. let that = this;
  759. getUserInfo().then(res => {
  760. that.userInfo = res.data
  761. // #ifdef H5
  762. that.payMode[2].number = res.data.now_money;
  763. // #endif
  764. // #ifdef APP-PLUS
  765. that.payMode[2].number = res.data.now_money;
  766. // #endif
  767. // #ifdef MP
  768. that.payMode[1].number = res.data.now_money;
  769. // #endif
  770. that.$set(that, 'payMode', that.payMode);
  771. })
  772. },
  773. /**
  774. * 获取订单详细信息
  775. *
  776. */
  777. getOrderInfo: function() {
  778. let that = this;
  779. uni.showLoading({
  780. title: this.$t(`正在加载中`)
  781. });
  782. let obj = '';
  783. if (that.isReturen) {
  784. obj = refundOrderDetail(this.order_id);
  785. } else {
  786. obj = getOrderDetail(this.order_id);
  787. }
  788. obj.then(res => {
  789. if (res.data.pid && res.data.pid == -1) {
  790. that.$util.Tips({
  791. title: this.$t(`订单信息不存在`)
  792. }, '/pages/goods/order_list/index');
  793. }
  794. let _type = res.data._status._type;
  795. uni.hideLoading();
  796. that.$set(that, 'orderInfo', res.data);
  797. //处理自定义留言非必填项的数据展示
  798. let arr = []
  799. that.orderInfo.custom_form.map(i => {
  800. if (i.value != '') {
  801. arr.push(i)
  802. }
  803. })
  804. that.$set(that, 'customForm', arr);
  805. that.$set(that, 'cartInfo', res.data.cartInfo);
  806. that.$set(that, 'pid', res.data.pid);
  807. that.$set(that, 'split', res.data.split);
  808. that.$set(that, 'evaluate', _type == 3 ? 3 : 0);
  809. that.$set(that, 'system_store', res.data.system_store);
  810. that.$set(that, 'invoiceData', res.data.invoice);
  811. if (that.invoiceData) {
  812. that.invoiceData.pay_price = res.data.pay_price;
  813. }
  814. that.$set(that, 'invoice_func', res.data.invoice_func);
  815. that.$set(that, 'special_invoice', res.data.special_invoice);
  816. that.$set(that, 'routineContact', Number(res.data.routine_contact_type));
  817. this.$nextTick(() => {
  818. that.val = that.orderInfo.verify_code
  819. })
  820. if (this.orderInfo.refund_status != 0) {
  821. this.isGoodsReturn = true;
  822. } else {
  823. this.isReturen = 0
  824. }
  825. if (that.invoice_id && !that.invoiceData) {
  826. that.invChecked = that.invoice_id || '';
  827. this.invoiceApply()
  828. }
  829. that.payMode.map(item => {
  830. if (item.value == 'weixin') {
  831. item.payStatus = res.data.pay_weixin_open ? true : false;
  832. }
  833. if (item.value == 'alipay') {
  834. item.payStatus = res.data.ali_pay_status ? true : false;
  835. }
  836. if (item.value == 'yue') {
  837. item.payStatus = res.data.yue_pay_status == 1 ? true : false;
  838. }
  839. if (item.value == 'friend') {
  840. item.payStatus = res.data.friend_pay_status == 1 ? true : false;
  841. }
  842. if (item.value == 'allinpay') {
  843. item.payStatus = res.data.pay_allin_open == 1 ? true : false;
  844. }
  845. });
  846. that.getOrderStatus();
  847. }).catch(err => {
  848. console.log(err, 'err')
  849. uni.hideLoading();
  850. that.$util.Tips({
  851. title: err
  852. }, '/pages/goods/order_list/index');
  853. });
  854. },
  855. // 不开发票
  856. invCancel() {
  857. this.invChecked = '';
  858. this.invTitle = this.$t(`不开发票`);
  859. this.invShow = false;
  860. },
  861. // 选择发票
  862. invSub(id) {
  863. this.invChecked = id;
  864. let data = {
  865. order_id: this.order_id,
  866. invoice_id: this.invChecked
  867. }
  868. makeUpinvoice(data).then(res => {
  869. uni.showToast({
  870. title: this.$t(`申请成功`),
  871. icon: 'success'
  872. });
  873. this.invShow = false;
  874. this.aleartStatus = true;
  875. this.getOrderInfo()
  876. }).catch(err => {
  877. uni.showToast({
  878. title: err,
  879. icon: 'none'
  880. });
  881. });
  882. },
  883. // 关闭发票
  884. invClose() {
  885. this.invShow = false;
  886. this.getInvoiceList()
  887. },
  888. //申请开票
  889. invoiceApply() {
  890. this.urlQuery = `&specialInvoice=${this.userInfo.special_invoice}`;
  891. this.getInvoiceList()
  892. this.moreBtn = false;
  893. this.invShow = true;
  894. },
  895. aleartStatusChange() {
  896. this.moreBtn = false;
  897. this.aleartStatus = true
  898. },
  899. getInvoiceList() {
  900. uni.showLoading({
  901. title: this.$t(`正在加载中`)
  902. })
  903. invoiceList().then(res => {
  904. uni.hideLoading();
  905. this.invList = res.data.map(item => {
  906. item.id = item.id.toString();
  907. return item;
  908. });
  909. const result = this.invList.find(item => item.id == this.invChecked);
  910. if (result) {
  911. let name = '';
  912. name += result.header_type === 1 ? this.$t(`个人`) : this.$t(`企业`);
  913. name += result.type === 1 ? this.$t(`普通`) : this.$t(`专用`);
  914. name += this.$t(`发票`);
  915. this.invTitle = name;
  916. }
  917. }).catch(err => {
  918. uni.showToast({
  919. title: err,
  920. icon: 'none'
  921. });
  922. });
  923. },
  924. more() {
  925. this.moreBtn = !this.moreBtn
  926. },
  927. /**
  928. *
  929. * 剪切订单号
  930. */
  931. // #ifndef H5
  932. copy: function(text) {
  933. let that = this;
  934. uni.setClipboardData({
  935. data: text
  936. });
  937. },
  938. // #endif
  939. // #ifndef H5
  940. copyAddress() {
  941. uni.setClipboardData({
  942. data: this.orderInfo._status.refund_name + this.orderInfo._status.refund_phone + this.orderInfo
  943. ._status
  944. .refund_address,
  945. success() {
  946. uni.Tips({
  947. title: this.$t(`复制成功`),
  948. icon: 'success'
  949. })
  950. }
  951. });
  952. },
  953. // #endif
  954. // #ifdef H5
  955. copyAddress() {
  956. // console.log('1111111111111')
  957. // let msg =
  958. // console.log(msg)
  959. // return msg
  960. },
  961. // #endif
  962. /**
  963. * 打电话
  964. */
  965. goTel: function() {
  966. uni.makePhoneCall({
  967. phoneNumber: this.orderInfo.delivery_id
  968. })
  969. },
  970. /**
  971. * 设置底部按钮
  972. *
  973. */
  974. getOrderStatus: function() {
  975. let orderInfo = this.orderInfo || {},
  976. _status = orderInfo._status || {
  977. _type: 0
  978. },
  979. status = {};
  980. let type = parseInt(_status._type),
  981. delivery_type = orderInfo.delivery_type,
  982. seckill_id = orderInfo.seckill_id ? parseInt(orderInfo.seckill_id) : 0,
  983. bargain_id = orderInfo.bargain_id ? parseInt(orderInfo.bargain_id) : 0,
  984. discount_id = orderInfo.discount_id ? parseInt(orderInfo.discount_id) : 0,
  985. combination_id = orderInfo.combination_id ? parseInt(orderInfo.combination_id) : 0;
  986. status = {
  987. type: type == 9 ? -9 : type,
  988. class_status: 0
  989. };
  990. if (type == 1 && combination_id > 0) status.class_status = 1; //查看拼团
  991. if (type == 2 && delivery_type == 'express') status.class_status = 2; //查看物流
  992. if (type == 2) status.class_status = 3; //确认收货
  993. if (type == 4 || type == 0) status.class_status = 4; //删除订单
  994. if (!seckill_id && !bargain_id && !combination_id && !discount_id && !orderInfo.type && (type == 3 ||
  995. type == 4)) status
  996. .class_status =
  997. 5; //再次购买
  998. this.$set(this, 'status', status);
  999. },
  1000. /**
  1001. * 去拼团详情
  1002. *
  1003. */
  1004. goJoinPink: function() {
  1005. uni.navigateTo({
  1006. url: '/pages/activity/goods_combination_status/index?id=' + this.orderInfo.pink_id,
  1007. });
  1008. },
  1009. /**
  1010. * 再此购买
  1011. *
  1012. */
  1013. goOrderConfirm: function() {
  1014. let that = this;
  1015. orderAgain(that.orderInfo.order_id).then(res => {
  1016. return uni.navigateTo({
  1017. url: '/pages/goods/order_confirm/index?new=1&cartId=' + res.data.cateId
  1018. });
  1019. }).catch(err => {
  1020. return that.$util.Tips({
  1021. title: err
  1022. });
  1023. })
  1024. },
  1025. confirmOrder(orderId) {
  1026. let that = this;
  1027. // #ifdef MP
  1028. if (wx.openBusinessView && this.orderInfo.order_shipping_open && this.orderInfo
  1029. .trade_no) {
  1030. uni.showLoading({
  1031. title: this.$t(`加载中`)
  1032. });
  1033. wx.openBusinessView({
  1034. businessType: 'weappOrderConfirm',
  1035. extraData: {
  1036. transaction_id: this.orderInfo.trade_no
  1037. },
  1038. success() {},
  1039. fail(err) {
  1040. uni.hideLoading();
  1041. return that.$util.Tips({
  1042. title: err.errMsg
  1043. });
  1044. },
  1045. complete() {
  1046. uni.hideLoading();
  1047. }
  1048. });
  1049. } else {
  1050. this.defaultTake(orderId)
  1051. }
  1052. // #endif
  1053. // #ifndef MP
  1054. this.defaultTake(orderId)
  1055. // #endif
  1056. },
  1057. defaultTake(orderId) {
  1058. let that = this;
  1059. uni.showModal({
  1060. title: that.$t(`确认收货`),
  1061. content: that.$t(`为保障权益,请收到货确认无误后,再确认收货`),
  1062. success: (res) => {
  1063. if (res.confirm) {
  1064. console.log('1')
  1065. orderTake(orderId ? orderId : that.order_id).then(res => {
  1066. return that.$util.Tips({
  1067. title: that.$t(`操作成功`),
  1068. icon: 'success'
  1069. }, function() {
  1070. that.getOrderInfo();
  1071. });
  1072. }).catch(err => {
  1073. return that.$util.Tips({
  1074. title: err
  1075. });
  1076. })
  1077. }
  1078. }
  1079. })
  1080. },
  1081. /**
  1082. *
  1083. * 删除订单
  1084. */
  1085. delOrder() {
  1086. let that = this;
  1087. uni.showModal({
  1088. title: this.$t(`删除订单`),
  1089. content: this.$t(`确定删除该订单`),
  1090. success: (res) => {
  1091. if (res.confirm) {
  1092. (that.isReturen ? refundOrderDel : orderDel)(that.order_id).then(res => {
  1093. if (that.status.type == -2) {
  1094. return that.$util.Tips({
  1095. title: that.$t(`删除成功`),
  1096. icon: 'success'
  1097. }, {
  1098. tab: 5,
  1099. url: '/pages/users/user_return_list/index'
  1100. });
  1101. } else {
  1102. return that.$util.Tips({
  1103. title: that.$t(`删除成功`),
  1104. icon: 'success'
  1105. }, {
  1106. tab: 5,
  1107. url: '/pages/goods/order_list/index'
  1108. });
  1109. }
  1110. }).catch(err => {
  1111. return that.$util.Tips({
  1112. title: err
  1113. });
  1114. });
  1115. } else if (res.cancel) {
  1116. return that.$util.Tips({
  1117. title: that.$t(`已取消`)
  1118. });
  1119. }
  1120. }
  1121. });
  1122. },
  1123. cancelOrder() {
  1124. let self = this
  1125. uni.showModal({
  1126. title: this.$t(`提示`),
  1127. content: this.$t(`确认取消该订单`),
  1128. success: function(res) {
  1129. if (res.confirm) {
  1130. orderCancel(self.orderInfo.order_id)
  1131. .then((data) => {
  1132. // #ifndef MP
  1133. self.$util.Tips({
  1134. title: data.msg
  1135. }, {
  1136. tab: 3
  1137. })
  1138. // #endif
  1139. // #ifdef MP
  1140. self.$util.Tips({
  1141. title: data.msg
  1142. }, '/pages/goods/order_list/index');
  1143. // #endif
  1144. })
  1145. .catch(() => {
  1146. self.getOrderInfo();
  1147. });
  1148. } else if (res.cancel) {}
  1149. }
  1150. });
  1151. },
  1152. }
  1153. }
  1154. </script>
  1155. <style scoped lang="scss">
  1156. .refund-tip {
  1157. font-size: 24rpx;
  1158. margin-top: 10rpx;
  1159. color: var(--view-theme);
  1160. .iconfont {
  1161. font-size: 24rpx;
  1162. margin-right: 6rpx;
  1163. }
  1164. }
  1165. .refund-tip1 {
  1166. font-size: 24rpx;
  1167. color: var(--view-theme);
  1168. .iconfont {
  1169. font-size: 24rpx;
  1170. margin-right: 6rpx;
  1171. }
  1172. }
  1173. .qs-btn {
  1174. width: auto;
  1175. height: 60rpx;
  1176. text-align: center;
  1177. line-height: 60rpx;
  1178. border-radius: 50rpx;
  1179. font-size: 27rpx;
  1180. white-space: nowrap;
  1181. padding: 0 26rpx;
  1182. color: #666;
  1183. border: 1px solid #ccc;
  1184. margin-right: 20rpx;
  1185. }
  1186. .refund-input {
  1187. position: fixed;
  1188. bottom: 0;
  1189. left: 0;
  1190. width: 100%;
  1191. border-radius: 16rpx 16rpx 0 0;
  1192. background-color: #fff;
  1193. z-index: 99;
  1194. padding: 40rpx 0 70rpx 0;
  1195. transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  1196. transform: translate3d(0, 100%, 0);
  1197. .refund-input-title {
  1198. font-size: 32rpx;
  1199. margin-bottom: 60rpx;
  1200. color: #282828;
  1201. }
  1202. .refund-input-sty {
  1203. border: 1px solid #ddd;
  1204. padding: 20rpx 20rpx;
  1205. border-radius: 40rpx;
  1206. width: 100%;
  1207. margin: 20rpx 65rpx;
  1208. }
  1209. .input-msg {
  1210. display: flex;
  1211. flex-direction: column;
  1212. justify-content: center;
  1213. align-items: center;
  1214. position: relative;
  1215. margin: 0 65rpx;
  1216. .iconfont {
  1217. position: absolute;
  1218. font-size: 32rpx;
  1219. color: #282828;
  1220. top: 8rpx;
  1221. right: -30rpx;
  1222. }
  1223. }
  1224. .refund-bth {
  1225. display: flex;
  1226. margin: 0 65rpx;
  1227. margin-top: 20rpx;
  1228. justify-content: space-around;
  1229. width: 100%;
  1230. .close-refund {
  1231. padding: 24rpx 80rpx;
  1232. border-radius: 80rpx;
  1233. color: #fff;
  1234. background-color: #ccc;
  1235. }
  1236. .submit-refund {
  1237. width: 100%;
  1238. padding: 24rpx 0rpx;
  1239. text-align: center;
  1240. border-radius: 80rpx;
  1241. color: #fff;
  1242. background-color: var(--view-theme);
  1243. }
  1244. }
  1245. }
  1246. .refund-input.on {
  1247. transform: translate3d(0, 0, 0);
  1248. }
  1249. .goodCall {
  1250. color: var(--view-theme);
  1251. text-align: center;
  1252. width: 100%;
  1253. height: 86rpx;
  1254. padding: 0 30rpx;
  1255. border-top: 1rpx solid #eee;
  1256. font-size: 30rpx;
  1257. line-height: 86rpx;
  1258. background: #fff;
  1259. .icon-kefu {
  1260. font-size: 36rpx;
  1261. margin-right: 15rpx;
  1262. }
  1263. /* #ifdef MP */
  1264. button {
  1265. display: flex;
  1266. align-items: center;
  1267. justify-content: center;
  1268. height: 86rpx;
  1269. font-size: 30rpx;
  1270. color: var(--view-theme);
  1271. }
  1272. /* #endif */
  1273. }
  1274. .order-details {
  1275. padding-bottom: calc(15rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1276. padding-bottom: calc(15rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1277. }
  1278. .order-details .header {
  1279. padding: 0 30rpx;
  1280. height: 150rpx;
  1281. display: flex;
  1282. align-items: center;
  1283. flex-wrap: nowrap;
  1284. }
  1285. .order-details .header.on {
  1286. background-color: #666 !important;
  1287. }
  1288. .order-details .header .pictrue {
  1289. width: 110rpx;
  1290. height: 110rpx;
  1291. }
  1292. .order-details .header .pictrue image {
  1293. width: 100%;
  1294. height: 100%;
  1295. }
  1296. .order-details .header .data {
  1297. color: rgba(255, 255, 255, 0.8);
  1298. font-size: 24rpx;
  1299. margin-left: 27rpx;
  1300. }
  1301. .order-details .header .data.on {
  1302. margin-left: 0;
  1303. }
  1304. .order-details .header .data .state {
  1305. font-size: 30rpx;
  1306. font-weight: bold;
  1307. color: #fff;
  1308. margin-bottom: 7rpx;
  1309. }
  1310. .order-details .header .data .time {
  1311. margin-left: 20rpx;
  1312. }
  1313. .order-details .nav {
  1314. background-color: #fff;
  1315. font-size: 26rpx;
  1316. color: #282828;
  1317. padding: 25rpx 0;
  1318. }
  1319. .order-details .nav .navCon {
  1320. padding: 0 40rpx;
  1321. }
  1322. .order-details .nav .on {
  1323. color: var(--view-theme);
  1324. }
  1325. .order-details .nav .progress {
  1326. padding: 0 65rpx;
  1327. margin-top: 10rpx;
  1328. }
  1329. .order-details .nav .progress .line {
  1330. width: 100rpx;
  1331. height: 2rpx;
  1332. background-color: #939390;
  1333. }
  1334. .order-details .nav .progress .iconfont {
  1335. font-size: 25rpx;
  1336. color: #939390;
  1337. margin-top: -2rpx;
  1338. }
  1339. .order-details .address {
  1340. font-size: 26rpx;
  1341. color: #868686;
  1342. background-color: #fff;
  1343. margin-top: 13rpx;
  1344. padding: 35rpx 30rpx;
  1345. margin-bottom: 12rpx;
  1346. }
  1347. .order-details .address .name {
  1348. font-size: 30rpx;
  1349. color: #282828;
  1350. margin-bottom: 15rpx;
  1351. }
  1352. .order-details .address .name .phone {
  1353. margin-left: 40rpx;
  1354. }
  1355. .order-details .line {
  1356. width: 100%;
  1357. height: 3rpx;
  1358. }
  1359. .order-details .line image {
  1360. width: 100%;
  1361. height: 100%;
  1362. display: block;
  1363. }
  1364. .order-details .wrapper {
  1365. background-color: #fff;
  1366. margin-top: 12rpx;
  1367. padding: 30rpx;
  1368. }
  1369. .order-details .wrapper .acea-row {
  1370. display: flex;
  1371. flex-wrap: nowrap;
  1372. }
  1373. .order-details .wrapper .item {
  1374. font-size: 28rpx;
  1375. color: #282828;
  1376. }
  1377. .order-details .wrapper .item~.item {
  1378. margin-top: 20rpx;
  1379. white-space: normal;
  1380. word-break: break-all;
  1381. word-wrap: break-word;
  1382. }
  1383. .order-details .wrapper .item .conter {
  1384. color: #868686;
  1385. width: 380srpx;
  1386. display: flex;
  1387. flex-wrap: nowrap;
  1388. justify-content: flex-end;
  1389. }
  1390. .order-details .wrapper .item .conter .copy {
  1391. font-size: 20rpx;
  1392. color: #333;
  1393. border-radius: 3rpx;
  1394. border: 1rpx solid #666;
  1395. padding: 3rpx 15rpx;
  1396. margin-left: 24rpx;
  1397. white-space: nowrap;
  1398. }
  1399. .order-details .wrapper .actualPay {
  1400. border-top: 1rpx solid #eee;
  1401. margin-top: 30rpx;
  1402. padding-top: 30rpx;
  1403. display: flex;
  1404. align-items: center;
  1405. .pay-people {
  1406. display: flex;
  1407. align-items: center;
  1408. image {
  1409. width: 40rpx;
  1410. height: 40rpx;
  1411. border-radius: 50%;
  1412. }
  1413. .pay-nickname {
  1414. margin-right: 20rpx;
  1415. padding: 0 10rpx;
  1416. }
  1417. }
  1418. }
  1419. .order-details .wrapper .actualPay .money {
  1420. font-weight: bold;
  1421. font-size: 30rpx;
  1422. }
  1423. .order-details .footer {
  1424. width: 100%;
  1425. position: fixed;
  1426. display: flex;
  1427. justify-content: space-between;
  1428. bottom: 0;
  1429. left: 0;
  1430. background-color: #fff;
  1431. padding: 20rpx 30rpx;
  1432. padding-bottom: calc(20rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1433. padding-bottom: calc(20rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1434. box-sizing: border-box;
  1435. .more {
  1436. // position: absolute;
  1437. left: 30rpx;
  1438. font-size: 26rpx;
  1439. color: #333;
  1440. .icon-xiangshang {
  1441. margin-left: 6rpx;
  1442. font-size: 22rpx;
  1443. }
  1444. }
  1445. .right-btn {
  1446. display: flex;
  1447. }
  1448. .more-box {
  1449. color: #333;
  1450. position: absolute;
  1451. left: 30rpx;
  1452. background-color: #fff;
  1453. padding: 18rpx 24rpx;
  1454. border-radius: 4rpx;
  1455. font-size: 28rpx;
  1456. -webkit-box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
  1457. -moz-box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
  1458. box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
  1459. bottom: 110rpx;
  1460. /* #ifdef APP-PLUS */
  1461. bottom: calc(110rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1462. bottom: calc(110rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1463. /* #endif */
  1464. .more-btn {
  1465. color: #333;
  1466. padding: 4rpx;
  1467. z-index: 9999;
  1468. }
  1469. }
  1470. .more-box:before {
  1471. content: "";
  1472. width: 0rpx;
  1473. height: 0rpx;
  1474. border-top: 20rpx solid rgba(200, 200, 200, 0.4);
  1475. border-bottom: 0rpx solid transparent;
  1476. border-top: 20rpx solid rgba(200, 200, 200, 0.4);
  1477. border-left: 20rpx solid rgba(0, 0, 0, 0);
  1478. border-right: 20rpx solid rgba(0, 0, 0, 0);
  1479. position: absolute;
  1480. bottom: -20rpx;
  1481. left: 20rpx;
  1482. }
  1483. .more-box::after {
  1484. content: "";
  1485. width: 0rpx;
  1486. height: 0rpx;
  1487. border-top: 20rpx solid #fff;
  1488. border-bottom: 0rpx solid rgba(0, 0, 0, 0);
  1489. border-left: 20rpx solid rgba(0, 0, 0, 0);
  1490. border-right: 20rpx solid rgba(0, 0, 0, 0);
  1491. position: absolute;
  1492. bottom: -18rpx;
  1493. left: 20rpx;
  1494. z-index: 9;
  1495. }
  1496. }
  1497. .order-details .footer .bnt {
  1498. width: 200rpx;
  1499. height: 60rpx;
  1500. text-align: center;
  1501. line-height: 60rpx;
  1502. border-radius: 50rpx;
  1503. color: #fff;
  1504. font-size: 27rpx;
  1505. }
  1506. .order-details .footer .bnt.refundBnt {
  1507. width: 210rpx;
  1508. }
  1509. .order-details .footer .bnt.cancel {
  1510. color: #666;
  1511. border: 1rpx solid #ccc;
  1512. }
  1513. .order-details .footer .bnt~.bnt {
  1514. margin-left: 18rpx;
  1515. }
  1516. .order-details .writeOff {
  1517. background-color: #fff;
  1518. margin-top: 13rpx;
  1519. padding-bottom: 30rpx;
  1520. }
  1521. .order-details .writeOff .title {
  1522. font-size: 30rpx;
  1523. color: #282828;
  1524. height: 87rpx;
  1525. border-bottom: 1px solid #f0f0f0;
  1526. padding: 0 30rpx;
  1527. line-height: 87rpx;
  1528. }
  1529. .order-details .writeOff .grayBg {
  1530. background-color: #f2f5f7;
  1531. width: 590rpx;
  1532. height: 384rpx;
  1533. border-radius: 20rpx 20rpx 0 0;
  1534. margin: 50rpx auto 0 auto;
  1535. padding-top: 55rpx;
  1536. position: relative;
  1537. }
  1538. .order-details .writeOff .grayBg .written {
  1539. position: absolute;
  1540. top: 0;
  1541. right: 0;
  1542. width: 60rpx;
  1543. height: 60rpx;
  1544. }
  1545. .order-details .writeOff .grayBg .written image {
  1546. width: 100%;
  1547. height: 100%;
  1548. }
  1549. .order-details .writeOff .grayBg .pictrue {
  1550. width: 290rpx;
  1551. height: 290rpx;
  1552. margin: 0 auto;
  1553. }
  1554. .order-details .writeOff .grayBg .pictrue image {
  1555. width: 100%;
  1556. height: 100%;
  1557. display: block;
  1558. }
  1559. .order-details .writeOff .gear {
  1560. width: 590rpx;
  1561. height: 30rpx;
  1562. margin: 0 auto;
  1563. }
  1564. .order-details .writeOff .gear image {
  1565. width: 100%;
  1566. height: 100%;
  1567. display: block;
  1568. }
  1569. .order-details .writeOff .num {
  1570. background-color: #f0c34c;
  1571. width: 590rpx;
  1572. height: 84rpx;
  1573. color: #282828;
  1574. font-size: 48rpx;
  1575. margin: 0 auto;
  1576. border-radius: 0 0 20rpx 20rpx;
  1577. text-align: center;
  1578. padding-top: 4rpx;
  1579. }
  1580. .order-details .writeOff .rules {
  1581. margin: 46rpx 30rpx 0 30rpx;
  1582. border-top: 1px solid #f0f0f0;
  1583. padding-top: 10rpx;
  1584. }
  1585. .order-details .writeOff .rules .item {
  1586. margin-top: 20rpx;
  1587. }
  1588. .order-details .writeOff .rules .item .rulesTitle {
  1589. font-size: 28rpx;
  1590. color: #282828;
  1591. }
  1592. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  1593. font-size: 30rpx;
  1594. color: #333;
  1595. margin-right: 8rpx;
  1596. margin-top: 5rpx;
  1597. }
  1598. .order-details .writeOff .rules .item .info {
  1599. font-size: 28rpx;
  1600. color: #999;
  1601. margin-top: 7rpx;
  1602. }
  1603. .order-details .writeOff .rules .item .info .time {
  1604. margin-left: 20rpx;
  1605. }
  1606. .order-details .map {
  1607. height: 86rpx;
  1608. font-size: 30rpx;
  1609. color: #282828;
  1610. line-height: 86rpx;
  1611. border-bottom: 1px solid #f0f0f0;
  1612. margin-top: 13rpx;
  1613. background-color: #fff;
  1614. padding: 0 30rpx;
  1615. }
  1616. .order-details .map .place {
  1617. font-size: 26rpx;
  1618. // width: 176rpx;
  1619. height: 50rpx;
  1620. border-radius: 25rpx;
  1621. line-height: 50rpx;
  1622. text-align: center;
  1623. padding: 0 10rpx;
  1624. }
  1625. .order-details .map .place .iconfont {
  1626. font-size: 27rpx;
  1627. height: 27rpx;
  1628. line-height: 27rpx;
  1629. margin: 2rpx 3rpx 0 0;
  1630. }
  1631. .order-details .address .name .iconfont {
  1632. font-size: 34rpx;
  1633. margin-left: 10rpx;
  1634. }
  1635. .refund {
  1636. padding: 0 30rpx 30rpx;
  1637. margin: 12rpx 0;
  1638. background-color: #fff;
  1639. .title {
  1640. display: flex;
  1641. align-items: center;
  1642. font-size: 30rpx;
  1643. color: #333;
  1644. height: 86rpx;
  1645. border-bottom: 1px solid #f5f5f5;
  1646. image {
  1647. width: 32rpx;
  1648. height: 32rpx;
  1649. margin-right: 10rpx;
  1650. }
  1651. }
  1652. .con {
  1653. padding-top: 25rpx;
  1654. font-size: 28rpx;
  1655. color: #868686;
  1656. }
  1657. }
  1658. </style>
  1659. <style scoped lang="scss">
  1660. .invoice-mask {
  1661. background-color: #999999;
  1662. opacity: 1;
  1663. }
  1664. .more-mask {
  1665. background-color: #fff;
  1666. opacity: 0;
  1667. left: 300rpx;
  1668. }
  1669. .goodCall {
  1670. color: var(--view-theme);
  1671. text-align: center;
  1672. width: 100%;
  1673. height: 86rpx;
  1674. padding: 0 30rpx;
  1675. border-bottom: 1rpx solid #eee;
  1676. font-size: 30rpx;
  1677. line-height: 86rpx;
  1678. background: #fff;
  1679. .icon-kefu {
  1680. font-size: 36rpx;
  1681. margin-right: 15rpx;
  1682. }
  1683. /* #ifdef MP */
  1684. button {
  1685. display: flex;
  1686. align-items: center;
  1687. justify-content: center;
  1688. height: 86rpx;
  1689. font-size: 30rpx;
  1690. color: var(--view-theme);
  1691. }
  1692. /* #endif */
  1693. }
  1694. .order-details .header {
  1695. padding: 0 30rpx;
  1696. height: 150rpx;
  1697. }
  1698. .order-details .header.on {
  1699. background-color: #666 !important;
  1700. }
  1701. .order-details .header .pictrue {
  1702. width: 110rpx;
  1703. height: 110rpx;
  1704. }
  1705. .order-details .header .pictrue image {
  1706. width: 100%;
  1707. height: 100%;
  1708. }
  1709. .order-details .header .data {
  1710. color: rgba(255, 255, 255, 0.8);
  1711. font-size: 24rpx;
  1712. margin-left: 27rpx;
  1713. }
  1714. .order-details .header .data.on {
  1715. margin-left: 0;
  1716. }
  1717. .order-details .header .data .state {
  1718. font-size: 30rpx;
  1719. font-weight: bold;
  1720. color: #fff;
  1721. margin-bottom: 7rpx;
  1722. }
  1723. .order-details .header .data .time {
  1724. margin-left: 20rpx;
  1725. }
  1726. .order-details .nav {
  1727. background-color: #fff;
  1728. font-size: 26rpx;
  1729. color: #282828;
  1730. padding: 25rpx 0;
  1731. }
  1732. .order-details .nav .navCon {
  1733. padding: 0 40rpx;
  1734. }
  1735. .order-details .nav .on {
  1736. color: var(--view-theme);
  1737. }
  1738. .order-details .nav .progress {
  1739. padding: 0 65rpx;
  1740. margin-top: 10rpx;
  1741. }
  1742. .order-details .nav .progress .line {
  1743. width: 100rpx;
  1744. height: 2rpx;
  1745. background-color: #939390;
  1746. }
  1747. .order-details .nav .progress .iconfont {
  1748. font-size: 25rpx;
  1749. color: #939390;
  1750. margin-top: -2rpx;
  1751. }
  1752. .order-details .address {
  1753. font-size: 26rpx;
  1754. color: #868686;
  1755. background-color: #fff;
  1756. margin-top: 13rpx;
  1757. padding: 35rpx 30rpx;
  1758. }
  1759. .order-details .address .name {
  1760. font-size: 30rpx;
  1761. color: #282828;
  1762. margin-bottom: 15rpx;
  1763. }
  1764. .order-details .address .name .phone {
  1765. margin-left: 40rpx;
  1766. }
  1767. .order-details .line {
  1768. width: 100%;
  1769. height: 3rpx;
  1770. }
  1771. .order-details .line image {
  1772. width: 100%;
  1773. height: 100%;
  1774. display: block;
  1775. }
  1776. .order-details .wrapper {
  1777. background-color: #fff;
  1778. margin-top: 12rpx;
  1779. padding: 30rpx;
  1780. }
  1781. .order-details .wrapper .item {
  1782. font-size: 28rpx;
  1783. color: #282828;
  1784. }
  1785. .order-details .wrapper .item~.item {
  1786. margin-top: 20rpx;
  1787. }
  1788. .order-details .wrapper .item .conter {
  1789. color: #868686;
  1790. width: 380rpx;
  1791. text-align: justify;
  1792. }
  1793. .order-details .wrapper .item .conter .copy {
  1794. font-size: 20rpx;
  1795. color: #333;
  1796. height: max-content;
  1797. border-radius: 3rpx;
  1798. border: 1rpx solid #666;
  1799. padding: 3rpx 15rpx;
  1800. margin-left: 24rpx;
  1801. }
  1802. .order-details .wrapper .actualPay {
  1803. border-top: 1rpx solid #eee;
  1804. margin-top: 30rpx;
  1805. padding-top: 30rpx;
  1806. }
  1807. .order-details .wrapper .actualPay .money {
  1808. font-weight: bold;
  1809. font-size: 30rpx;
  1810. }
  1811. .order-details .footer .bnt {
  1812. width: 160rpx;
  1813. height: 60rpx;
  1814. text-align: center;
  1815. line-height: 60rpx;
  1816. border-radius: 50rpx;
  1817. color: #fff;
  1818. font-size: 27rpx;
  1819. }
  1820. .order-details .footer .bnt~.bnt {
  1821. margin-left: 18rpx;
  1822. }
  1823. .order-details .writeOff {
  1824. background-color: #fff;
  1825. margin-top: 13rpx;
  1826. padding-bottom: 30rpx;
  1827. }
  1828. .order-details .writeOff .title {
  1829. font-size: 30rpx;
  1830. color: #282828;
  1831. height: 87rpx;
  1832. border-bottom: 1px solid #f0f0f0;
  1833. padding: 0 30rpx;
  1834. line-height: 87rpx;
  1835. }
  1836. .order-details .writeOff .grayBg {
  1837. background-color: #f2f5f7;
  1838. width: 590rpx;
  1839. height: 384rpx;
  1840. border-radius: 20rpx 20rpx 0 0;
  1841. margin: 50rpx auto 0 auto;
  1842. padding-top: 55rpx;
  1843. position: relative;
  1844. }
  1845. .order-details .writeOff .grayBg .written {
  1846. position: absolute;
  1847. top: 0;
  1848. right: 0;
  1849. width: 60rpx;
  1850. height: 60rpx;
  1851. }
  1852. .order-details .writeOff .grayBg .written image {
  1853. width: 100%;
  1854. height: 100%;
  1855. }
  1856. .order-details .writeOff .grayBg .pictrue {
  1857. width: 290rpx;
  1858. height: 290rpx;
  1859. margin: 0 auto;
  1860. }
  1861. .order-details .writeOff .grayBg .pictrue image {
  1862. width: 100%;
  1863. height: 100%;
  1864. display: block;
  1865. }
  1866. .order-details .writeOff .gear {
  1867. width: 590rpx;
  1868. height: 30rpx;
  1869. margin: 0 auto;
  1870. }
  1871. .order-details .writeOff .gear image {
  1872. width: 100%;
  1873. height: 100%;
  1874. display: block;
  1875. }
  1876. .order-details .writeOff .num {
  1877. background-color: #f0c34c;
  1878. width: 590rpx;
  1879. height: 84rpx;
  1880. color: #282828;
  1881. font-size: 48rpx;
  1882. margin: 0 auto;
  1883. border-radius: 0 0 20rpx 20rpx;
  1884. text-align: center;
  1885. padding-top: 4rpx;
  1886. }
  1887. .order-details .writeOff .rules {
  1888. margin: 46rpx 30rpx 0 30rpx;
  1889. border-top: 1px solid #f0f0f0;
  1890. padding-top: 10rpx;
  1891. }
  1892. .order-details .writeOff .rules .item {
  1893. margin-top: 20rpx;
  1894. }
  1895. .order-details .writeOff .rules .item .rulesTitle {
  1896. font-size: 28rpx;
  1897. color: #282828;
  1898. }
  1899. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  1900. font-size: 30rpx;
  1901. color: #333;
  1902. margin-right: 8rpx;
  1903. margin-top: 5rpx;
  1904. }
  1905. .order-details .writeOff .rules .item .info {
  1906. font-size: 28rpx;
  1907. color: #999;
  1908. margin-top: 7rpx;
  1909. }
  1910. .order-details .writeOff .rules .item .info .time {
  1911. margin-left: 20rpx;
  1912. }
  1913. .order-details .map {
  1914. height: 86rpx;
  1915. font-size: 30rpx;
  1916. color: #282828;
  1917. line-height: 86rpx;
  1918. border-bottom: 1px solid #f0f0f0;
  1919. margin-top: 13rpx;
  1920. background-color: #fff;
  1921. padding: 0 30rpx;
  1922. }
  1923. .order-details .map .place {
  1924. font-size: 26rpx;
  1925. // width: 176rpx;
  1926. height: 50rpx;
  1927. border-radius: 25rpx;
  1928. line-height: 50rpx;
  1929. text-align: center;
  1930. }
  1931. .order-details .map .place .iconfont {
  1932. font-size: 27rpx;
  1933. height: 27rpx;
  1934. line-height: 27rpx;
  1935. margin: 2rpx 3rpx 0 0;
  1936. }
  1937. .order-details .address .name .iconfont {
  1938. font-size: 34rpx;
  1939. margin-left: 10rpx;
  1940. }
  1941. .refund {
  1942. padding: 0 30rpx 30rpx;
  1943. margin: 12rpx 0;
  1944. background-color: #fff;
  1945. .title {
  1946. display: flex;
  1947. align-items: center;
  1948. font-size: 30rpx;
  1949. color: #333;
  1950. height: 86rpx;
  1951. border-bottom: 1px solid #f5f5f5;
  1952. image {
  1953. width: 32rpx;
  1954. height: 32rpx;
  1955. margin-right: 10rpx;
  1956. }
  1957. }
  1958. .con {
  1959. padding-top: 25rpx;
  1960. font-size: 28rpx;
  1961. color: #868686;
  1962. }
  1963. }
  1964. .refund-msg {
  1965. background-color: #fff;
  1966. padding: 20rpx 40rpx;
  1967. font-size: 28rpx;
  1968. .refund-msg-user {
  1969. font-weight: bold;
  1970. margin-bottom: 10rpx;
  1971. .copy-refund-msg {
  1972. font-size: 10px;
  1973. border-radius: 1px;
  1974. border: 0.5px solid #666;
  1975. padding: 1px 7px;
  1976. margin-left: 12px;
  1977. }
  1978. .name {
  1979. margin-right: 20rpx;
  1980. }
  1981. }
  1982. .refund-address {
  1983. color: #868686;
  1984. }
  1985. }
  1986. .upload .pictrue {
  1987. display: inline-block;
  1988. margin: 22rpx 17rpx 20rpx 0;
  1989. width: 156rpx;
  1990. height: 156rpx;
  1991. color: #bbb;
  1992. }
  1993. .upload .pictrue image {
  1994. width: 100%;
  1995. height: 100%;
  1996. }
  1997. </style>