index.vue 56 KB

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