index.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598
  1. <template>
  2. <view>
  3. <!-- #ifdef MP || APP-PLUS -->
  4. <!-- <NavBar
  5. titleText="订单详情"
  6. :iconColor="iconColor"
  7. :textColor="iconColor"
  8. :isScrolling="isScrolling"
  9. showBack
  10. ></NavBar> -->
  11. <!-- #endif -->
  12. <view class="headerBg">
  13. <view :style="{ height: `${getHeight.barTop}px` }"></view>
  14. <view :style="{ height: `${getHeight.barHeight}px` }"></view>
  15. <view class="inner"></view>
  16. </view>
  17. <view class="order-details pos-order-details">
  18. <view class="header">
  19. <view class="state">{{ title }}</view>
  20. <view
  21. v-if="
  22. orderInfo.status == 0 &&
  23. orderInfo.paid == 0 &&
  24. orderInfo.pay_type != 'offline'
  25. "
  26. class="data acea-row row-middle"
  27. >
  28. 需付款:¥{{ orderInfo.pay_price }}
  29. <countDown
  30. :isDay="false"
  31. tipText="支付剩余:"
  32. dayText=" "
  33. hourText="时"
  34. minuteText="分"
  35. secondText=" "
  36. dotColor="#FFFFFF"
  37. colors="#FFFFFF"
  38. :datatime="orderInfo.stop_time"
  39. :isSecond="false"
  40. >
  41. </countDown>
  42. </view>
  43. <view v-if="orderInfo._status._type == 1" class="data"
  44. >用户已付款,需要您尽快发货哦~</view
  45. >
  46. <view v-if="orderInfo._status._type == 2" class="data"
  47. >商家已发货,等待用户收货</view
  48. >
  49. <view v-if="orderInfo._status._type == 5" class="data"
  50. >需用户出示二维码或数字即可核销</view
  51. >
  52. </view>
  53. <view
  54. class="remarks acea-row row-middle"
  55. @click="modify('1')"
  56. v-if="goname != 'looks'"
  57. >
  58. <text class="iconfont icon-ic_notes"></text>
  59. <view class="p-20 flex-1 fs-28 flex-y-center">{{
  60. orderInfo.remark || "订单未备注,点击添加备注信息"
  61. }}</view>
  62. </view>
  63. <view class="address" v-if="orderInfo.shipping_type == 1">
  64. <view class="flex-between-center">
  65. <view class="name">
  66. <text class="iconfont icon-ic_location4"></text>
  67. {{ orderInfo.real_name }}
  68. <text class="phone">{{ orderInfo.user_phone }}</text>
  69. </view>
  70. <text
  71. class="copy-btn"
  72. @click="
  73. copyNum(
  74. orderInfo.real_name +
  75. ' ' +
  76. orderInfo.user_phone +
  77. ' ' +
  78. orderInfo.user_address,
  79. )
  80. "
  81. >复制</text
  82. >
  83. </view>
  84. <view>地址:{{ orderInfo.user_address }}</view>
  85. <view class="line">
  86. <image src="/static/images/line.jpg" />
  87. </view>
  88. </view>
  89. <view class="acea-row row-middle user-box">
  90. <image :src="userInfo.avatar" class="image"></image>
  91. <view class="text">
  92. <view class="acea-row row-middle name">
  93. {{ userInfo.nickname }}
  94. <view v-if="userInfo.isMember" class="svip">SVIP</view>
  95. <view v-if="userInfo.level_grade" class="grade acea-row row-middle"
  96. ><text class="iconfont icon-huiyuandengji"></text>V{{
  97. userInfo.level_grade
  98. }}</view
  99. >
  100. </view>
  101. <view v-if="userInfo.phone" class=""
  102. >{{ userInfo.phone }}(ID:{{ userInfo.uid }})</view
  103. >
  104. <view v-else class="">ID:{{ userInfo.uid }}</view>
  105. </view>
  106. </view>
  107. <!-- 拆单时 -->
  108. <view
  109. v-for="(j, indexw) in orderInfo.split"
  110. :key="indexw"
  111. v-if="orderInfo.split && orderInfo.split.length"
  112. >
  113. <view class="splitTitle acea-row row-between-wrapper">
  114. <view>订单包裹{{ indexw + 1 }}</view>
  115. <view class="title">{{ j._status._title }}</view>
  116. </view>
  117. <view class="pos-order-goods">
  118. <navigator
  119. :url="`/pages/admin/orderDetail/index?id=${j.order_id}`"
  120. hover-class="none"
  121. class="goods acea-row row-between-wrapper"
  122. v-for="(item, index) in j.cartInfo"
  123. :key="index"
  124. >
  125. <view class="picTxt acea-row row-between-wrapper">
  126. <view class="pictrue">
  127. <image
  128. :src="
  129. item.productInfo.attrInfo
  130. ? item.productInfo.attrInfo.image
  131. : item.productInfo.image
  132. "
  133. />
  134. </view>
  135. <view class="text acea-row row-between row-column">
  136. <view class="info line2">
  137. {{ item.productInfo.store_name }}
  138. </view>
  139. <view class="attr">{{ item.productInfo.attrInfo.suk }}</view>
  140. </view>
  141. </view>
  142. <view class="money">
  143. <view class="x-money"
  144. >¥{{
  145. item.productInfo.attrInfo
  146. ? item.productInfo.attrInfo.price
  147. : item.productInfo.price
  148. }}</view
  149. >
  150. <view class="num">x {{ item.cart_num }}</view>
  151. <!-- <view class="y-money">¥{{ item.productInfo.ot_price }}</view> -->
  152. </view>
  153. </navigator>
  154. </view>
  155. </view>
  156. <!-- 结束 -->
  157. <!-- 未拆单时,正常单 -->
  158. <view
  159. class="pos-order-goods split"
  160. v-if="orderInfo.cartInfo && orderInfo.cartInfo.length"
  161. >
  162. <view
  163. class="title acea-row row-between-wrapper"
  164. v-if="
  165. (orderInfo.status == 0 &&
  166. orderInfo.paid == 1 &&
  167. orderInfo.shipping_type == 2) ||
  168. orderInfo.status == 5 ||
  169. (orderInfo.status == 2 && orderInfo.shipping_type == 2)
  170. "
  171. >
  172. <text>共{{ totalNmu }}件商品</text>
  173. <!-- <navigator class="bnt" :url="'/pages/admin/delivery/index?id='+orderInfo.order_id+'&listId='+orderInfo.id+'&totalNum='+orderInfo.total_num+'&orderStatus='+orderInfo.status+'&comeType=2'">去发货</navigator> -->
  174. <!-- <navigator class="btn" :url="'/pages/admin/writeRecordList/index?id='+orderInfo.id" hover-class="none">
  175. 核销记录<text class="iconfont icon-ic_rightarrow"></text>
  176. </navigator> -->
  177. </view>
  178. <navigator
  179. :url="`/pages/goods_details/index?id=${item.product_id}`"
  180. hover-class="none"
  181. class="goods acea-row"
  182. v-for="(item, index) in orderInfo.cartInfo"
  183. :key="index"
  184. >
  185. <view class="picTxt acea-row">
  186. <view class="pictrue">
  187. <image
  188. :src="
  189. item.productInfo.attrInfo
  190. ? item.productInfo.attrInfo.image
  191. : item.productInfo.image
  192. "
  193. />
  194. </view>
  195. <view class="text">
  196. <view class="info line1">{{ item.productInfo.store_name }}</view>
  197. <view class="attr line1">{{
  198. item.productInfo.attrInfo.suk
  199. }}</view>
  200. </view>
  201. </view>
  202. <view class="money">
  203. <!-- <view class="x-money">¥{{ item.productInfo.attrInfo?item.productInfo.attrInfo.price:item.productInfo.price }}</view> -->
  204. <BaseMoney
  205. :money="
  206. item.productInfo.attrInfo
  207. ? item.productInfo.attrInfo.price
  208. : item.productInfo.price
  209. "
  210. symbolSize="20"
  211. integerSize="32"
  212. decimalSize="20"
  213. ></BaseMoney>
  214. <view class="num">共{{ item.cart_num }}件</view>
  215. <view class="acea-row row-right">
  216. <view
  217. class="writeOff"
  218. v-if="item.refund_num && orderInfo.refund_type != 6"
  219. >{{ item.refund_num }}件退款中</view
  220. >
  221. <view
  222. class="writeOff"
  223. v-if="
  224. orderInfo._status._type == 2 &&
  225. orderInfo.delivery_type == 'send'
  226. "
  227. >
  228. <text v-if="item.refund_num">,</text>
  229. <text class="on" v-if="item.is_writeoff">已核销</text>
  230. <text
  231. v-if="!item.is_writeoff && item.surplus_num < item.cart_num"
  232. >已核销{{
  233. parseInt(item.cart_num) - parseInt(item.surplus_num)
  234. }}件</text
  235. >
  236. <text
  237. v-if="!item.is_writeoff && item.surplus_num == item.cart_num"
  238. >未核销</text
  239. >
  240. </view>
  241. </view>
  242. </view>
  243. </navigator>
  244. <view class="giveGoods">
  245. <view
  246. class="item acea-row row-between-wrapper"
  247. v-for="(item, index) in giveCartInfo"
  248. :key="index"
  249. >
  250. <view class="picTxt acea-row row-middle">
  251. <view class="pictrue">
  252. <image
  253. :src="item.productInfo.attrInfo.image"
  254. v-if="item.productInfo.attrInfo"
  255. ></image>
  256. <image :src="item.productInfo.image" v-else></image>
  257. </view>
  258. <view class="texts">
  259. <view class="name line1"
  260. >[赠品]{{ item.productInfo.store_name }}</view
  261. >
  262. <view class="limit line1" v-if="item.productInfo.attrInfo">{{
  263. item.productInfo.attrInfo.suk
  264. }}</view>
  265. </view>
  266. </view>
  267. <view class="num">x{{ item.cart_num }}</view>
  268. </view>
  269. <view
  270. class="item acea-row row-between-wrapper"
  271. v-for="(item, index) in giveData.give_coupon"
  272. :key="index"
  273. v-if="giveData.give_coupon.length"
  274. >
  275. <view class="picTxt acea-row row-middle">
  276. <view class="pictrue acea-row row-center-wrapper">
  277. <text class="iconfont icon-pc-youhuiquan"></text>
  278. </view>
  279. <view class="texts">
  280. <view class="line1">[赠品]{{ item.coupon_title }}</view>
  281. </view>
  282. </view>
  283. </view>
  284. <view
  285. class="item acea-row row-between-wrapper"
  286. v-if="giveData.give_integral > 0"
  287. >
  288. <view class="picTxt acea-row row-middle">
  289. <view class="pictrue acea-row row-center-wrapper">
  290. <text class="iconfont icon-pc-jifen"></text>
  291. </view>
  292. <view class="texts">
  293. <view class="line1"
  294. >[赠品]{{ giveData.give_integral }}积分</view
  295. >
  296. </view>
  297. </view>
  298. </view>
  299. </view>
  300. <view class="mark acea-row" v-if="orderInfo.mark">
  301. <view class="name">留言</view>
  302. <view class="value line1">{{ orderInfo.mark }}</view>
  303. </view>
  304. </view>
  305. <view
  306. class="wrapper"
  307. v-if="
  308. orderInfo.delivery_type == 'fictitious' && orderInfo.product_type != 1
  309. "
  310. >
  311. <view
  312. class="item acea-row row-between"
  313. v-if="orderInfo.fictitious_content"
  314. >
  315. <view>虚拟备注:</view>
  316. <view class="conter">{{ orderInfo.fictitious_content }}</view>
  317. </view>
  318. </view>
  319. <view
  320. class="wrapper"
  321. v-if="orderInfo.virtual_info && orderInfo.product_type == 1"
  322. >
  323. <view class="item acea-row row-between">
  324. <view>卡密发货</view>
  325. <view class="conter">{{ orderInfo.virtual_info }}</view>
  326. </view>
  327. </view>
  328. <customForm :customForm="orderInfo.custom_form"></customForm>
  329. <view class="wrapper">
  330. <view class="item acea-row row-between">
  331. <view>订单编号</view>
  332. <view class="conter acea-row row-middle row-right"
  333. >{{ orderInfo.order_id }}
  334. <text class="copy-btn" @click="copyNum(orderInfo.order_id)"
  335. >复制</text
  336. >
  337. </view>
  338. </view>
  339. <view class="item acea-row row-between">
  340. <view>下单时间</view>
  341. <view class="conter">{{ orderInfo._add_time }}</view>
  342. </view>
  343. <view class="item acea-row row-between">
  344. <view>支付状态</view>
  345. <view class="conter">
  346. {{ orderInfo.paid == 1 ? "已支付" : "未支付" }}
  347. </view>
  348. </view>
  349. <view class="item acea-row row-between">
  350. <view>支付方式</view>
  351. <view class="conter">{{ payType }}</view>
  352. </view>
  353. <!-- <view class="item acea-row row-between" v-if="orderInfo.mark">
  354. <view v-if="statusType == -3">退款留言:</view>
  355. <view v-else>买家留言:</view>
  356. <view class="conter">{{ orderInfo.mark }}</view>
  357. </view> -->
  358. <view
  359. class="item acea-row row-between"
  360. v-if="orderInfo.refund_goods_explain"
  361. >
  362. <view>退货留言</view>
  363. <view class="conter">{{ orderInfo.refund_goods_explain }}</view>
  364. </view>
  365. <view
  366. class="item acea-row row-between"
  367. v-if="orderInfo.refund_img && orderInfo.refund_img.length"
  368. >
  369. <view>退款凭证</view>
  370. <view class="conter">
  371. <view
  372. class="pictrue"
  373. v-for="(item, index) in orderInfo.refund_img"
  374. :key="index"
  375. >
  376. <image
  377. :src="item"
  378. mode="aspectFill"
  379. @click="getpreviewImage(index, 1)"
  380. ></image>
  381. </view>
  382. </view>
  383. </view>
  384. <view
  385. class="item acea-row row-between"
  386. v-if="orderInfo.refund_goods_img && orderInfo.refund_goods_img.length"
  387. >
  388. <view>退货凭证</view>
  389. <view class="conter">
  390. <view
  391. class="pictrue"
  392. v-for="(item, index) in orderInfo.refund_goods_img"
  393. :key="index"
  394. >
  395. <image
  396. :src="item"
  397. mode="aspectFill"
  398. @click="getpreviewImage(index, 0)"
  399. ></image>
  400. </view>
  401. </view>
  402. </view>
  403. </view>
  404. <view
  405. class="wrapper"
  406. v-if="
  407. orderInfo.delivery_type != 'fictitious' &&
  408. orderInfo._status._type === 2 &&
  409. (!orderInfo.split || !orderInfo.split.length)
  410. "
  411. >
  412. <view class="item acea-row row-between">
  413. <view>配送方式</view>
  414. <view class="conter" v-if="orderInfo.delivery_type === 'express'">
  415. 快递
  416. </view>
  417. <view class="conter" v-if="orderInfo.delivery_type === 'send'"
  418. >送货</view
  419. >
  420. </view>
  421. <view class="item acea-row row-between">
  422. <view v-if="orderInfo.delivery_type === 'express'">快递公司</view>
  423. <view v-if="orderInfo.delivery_type === 'send'">送货人</view>
  424. <view class="conter">{{ orderInfo.delivery_name }}</view>
  425. </view>
  426. <view class="item acea-row row-between">
  427. <view v-if="orderInfo.delivery_type === 'express'">快递单号</view>
  428. <view v-if="orderInfo.delivery_type === 'send'">送货人电话</view>
  429. <view class="conter">
  430. {{ orderInfo.delivery_id }}
  431. <span class="copy-btn" @click="copyNum(orderInfo.delivery_id)"
  432. >复制</span
  433. >
  434. </view>
  435. </view>
  436. </view>
  437. <view class="wrapper">
  438. <view class="item acea-row row-between">
  439. <view>商品总价</view>
  440. <view class="conter" v-if="statusType == -3">
  441. ¥{{ orderInfo.total_price }}</view
  442. >
  443. <view class="conter" v-else>
  444. ¥{{
  445. (
  446. parseFloat(orderInfo.total_price) +
  447. parseFloat(orderInfo.vip_true_price)
  448. ).toFixed(2)
  449. }}</view
  450. >
  451. </view>
  452. <view
  453. class="item acea-row row-between"
  454. v-if="orderInfo.pay_postage > 0"
  455. >
  456. <view>配送运费</view>
  457. <view class="conter">¥{{ orderInfo.pay_postage }}</view>
  458. </view>
  459. <view
  460. v-if="orderInfo.vip_true_price > 0"
  461. class="item acea-row row-between"
  462. >
  463. <view>会员商品优惠</view>
  464. <view class="conter"
  465. >-¥{{ parseFloat(orderInfo.vip_true_price).toFixed(2) }}</view
  466. >
  467. </view>
  468. <view class="item acea-row row-between" v-if="orderInfo.coupon_id">
  469. <view>优惠券抵扣</view>
  470. <view class="conter">-¥{{ orderInfo.coupon_price }}</view>
  471. </view>
  472. <view
  473. class="item acea-row row-between"
  474. v-if="orderInfo.use_integral > 0"
  475. >
  476. <view>积分抵扣</view>
  477. <view class="conter"
  478. >-¥{{ parseFloat(orderInfo.deduction_price).toFixed(2) }}</view
  479. >
  480. </view>
  481. <view class="item acea-row row-between" v-if="orderInfo.yue_price > 0">
  482. <view>余额抵扣</view>
  483. <view class="conter"
  484. >-¥{{ parseFloat(orderInfo.yue_price).toFixed(2) }}</view
  485. >
  486. </view>
  487. <!-- 采购优惠 channel_price -->
  488. <view
  489. class="item acea-row row-between"
  490. v-if="Number(orderInfo.channel_price) > 0"
  491. >
  492. <text class="fs-28">采购优惠</text>
  493. <text class="fs-28">-¥{{ orderInfo.channel_price }}</text>
  494. </view>
  495. <view
  496. class="item acea-row row-between"
  497. v-for="(item, index) in orderInfo.promotions_detail"
  498. :key="index"
  499. v-if="parseFloat(item.promotions_price)"
  500. >
  501. <view>{{ item.title }}</view>
  502. <view class="conter"
  503. >-¥{{ parseFloat(item.promotions_price).toFixed(2) }}</view
  504. >
  505. </view>
  506. <view class="actualPay acea-row row-right">
  507. 实付款
  508. <BaseMoney
  509. :money="orderInfo.pay_price"
  510. symbolSize="24"
  511. integerSize="40"
  512. decimalSize="24"
  513. color="#FF7E00"
  514. ></BaseMoney>
  515. </view>
  516. </view>
  517. <view class="height-add"></view>
  518. <view
  519. class="footer acea-row row-right row-middle"
  520. v-if="goname != 'looks'"
  521. >
  522. <view class="more"></view>
  523. <view class="bnt cancel" @click="modify('0')" v-if="types == 0">
  524. 一键改价
  525. </view>
  526. <!-- types == -1 -->
  527. <view class="bnt cancel" @click="modify('1')">订单备注</view>
  528. <view
  529. class="bnt cancel"
  530. @click="modify('2', 1)"
  531. v-if="
  532. (!orderInfo.refund || !orderInfo.refund.length) &&
  533. (orderInfo.refund_type == 0 ||
  534. orderInfo.refund_type == 1 ||
  535. orderInfo.refund_type == 5) &&
  536. orderInfo.paid &&
  537. parseFloat(orderInfo.pay_price) >= 0
  538. "
  539. >
  540. 立即退款
  541. </view>
  542. <view
  543. class="bnt cancel"
  544. @click="modify('2', 0)"
  545. v-if="orderInfo.refund_type == 2"
  546. >
  547. 同意退货
  548. </view>
  549. <view
  550. class="bnt delivery"
  551. v-if="
  552. orderInfo.status == 0 &&
  553. orderInfo.paid === 0 &&
  554. orderInfo.is_cancel === 0
  555. "
  556. @click="confirmShow = true"
  557. >
  558. 确认付款
  559. </view>
  560. <view
  561. class="bnt delivery"
  562. v-if="
  563. types == 1 &&
  564. orderInfo.shipping_type === 1 &&
  565. (orderInfo.pinkStatus === null || orderInfo.pinkStatus === 2)
  566. "
  567. @click="goDelivery(orderInfo)"
  568. >发送货</view
  569. >
  570. <view
  571. class="bnt delivery"
  572. v-if="
  573. orderInfo.delivery_type == 'express' && orderInfo._status._type == 2
  574. "
  575. @click="goLogistics(orderInfo)"
  576. >查看物流
  577. </view>
  578. <view
  579. v-if="
  580. orderInfo.shipping_type == 2 &&
  581. (orderInfo.status == 0 || orderInfo.status == 5) &&
  582. orderInfo.paid == 1 &&
  583. orderInfo.refund_status === 0
  584. "
  585. class="bnt delivery"
  586. @click="verify"
  587. >立即核销</view
  588. >
  589. </view>
  590. <PriceChange
  591. :change="change"
  592. :orderInfo="orderInfo"
  593. :isRefund="isRefund"
  594. v-on:statusChange="statusChange($event)"
  595. v-on:closechange="changeclose($event)"
  596. v-on:savePrice="savePrice"
  597. :status="status"
  598. ></PriceChange>
  599. </view>
  600. <view v-if="confirmShow" class="mask"></view>
  601. <view v-if="confirmShow" class="confirm-popup">
  602. <view class="title">确认付款</view>
  603. <view class="info">确认该订单用户已付款</view>
  604. <view class="acea-row btn-box">
  605. <view class="btn" @click="confirmShow = false">取消</view>
  606. <view class="btn primary" @click="offlinePay">确认</view>
  607. </view>
  608. </view>
  609. <home></home>
  610. </view>
  611. </template>
  612. <script>
  613. import PriceChange from "../components/PriceChange/index.vue";
  614. import customForm from "../components/customForm";
  615. import countDown from "@/components/countDown/index.vue";
  616. // #ifdef MP || APP-PLUS
  617. import NavBar from "@/components/NavBar.vue";
  618. // #endif
  619. import {
  620. getAdminOrderDetail,
  621. getAdminRefundDetail,
  622. setAdminOrderPrice,
  623. setAdminRefundRemark,
  624. setAdminOrderRemark,
  625. setOfflinePay,
  626. setOrderRefund,
  627. orderRefundAgree,
  628. getUserInfo,
  629. orderVerific,
  630. } from "@/api/admin";
  631. // import {
  632. // erpConfig
  633. // } from "@/api/esp.js";
  634. import { isMoney } from "@/utils/validate.js";
  635. export default {
  636. name: "AdminOrder",
  637. components: {
  638. PriceChange,
  639. customForm,
  640. countDown,
  641. // #ifdef MP || APP-PLUS
  642. NavBar,
  643. // #endif
  644. },
  645. props: {},
  646. data: function () {
  647. return {
  648. giveData: {
  649. give_integral: 0,
  650. give_coupon: [],
  651. },
  652. giveCartInfo: [],
  653. totalNmu: 0,
  654. order: false,
  655. change: false,
  656. order_id: "",
  657. orderInfo: {
  658. _status: {},
  659. },
  660. status: "",
  661. title: "",
  662. payType: "",
  663. types: "",
  664. statusType: "",
  665. clickNum: 1,
  666. goname: "",
  667. isRefund: 0, //1是仅退款;0是同意退货退款
  668. iconColor: "#FFFFFF",
  669. isScrolling: false,
  670. getHeight: this.$util.getWXStatusHeight(),
  671. confirmShow: false,
  672. userInfo: {},
  673. };
  674. },
  675. watch: {
  676. "$route.params.oid": function (newVal) {
  677. let that = this;
  678. if (newVal != undefined) {
  679. that.order_id = newVal;
  680. that.getIndex();
  681. }
  682. },
  683. },
  684. computed: {
  685. identity() {
  686. return this.$store.state.app.identity;
  687. },
  688. },
  689. onLoad: function (option) {
  690. let self = this;
  691. this.order_id = option.id;
  692. this.goname = option.goname;
  693. this.statusType = option.types;
  694. },
  695. onShow() {
  696. this.getIndex();
  697. // this.getErpConfig();
  698. },
  699. onPageScroll(e) {
  700. // #ifdef MP || APP-PLUS
  701. if (e.scrollTop > 50) {
  702. this.iconColor = "#333333";
  703. this.isScrolling = true;
  704. } else {
  705. this.iconColor = "#FFFFFF";
  706. this.isScrolling = false;
  707. }
  708. // #endif
  709. },
  710. methods: {
  711. verify() {
  712. uni.showModal({
  713. title: '操作提示',
  714. content: '是否确认核销该订单?',
  715. success: (res) => {
  716. if (res.confirm) {
  717. orderVerific(this.orderInfo.verify_code, 1, 1)
  718. .then((res) => {
  719. this.$util.Tips({
  720. title: res.msg
  721. });
  722. this.getIndex();
  723. })
  724. .catch((res) => {
  725. return this.$util.Tips({
  726. title: res
  727. });
  728. });
  729. }
  730. }
  731. });
  732. },
  733. statusChange(e) {
  734. this.status = e;
  735. },
  736. goLogistics(orderInfo) {
  737. uni.navigateTo({
  738. url: "/pages/admin/logistics/index?orderId=" + orderInfo.order_id,
  739. });
  740. },
  741. goDelivery(orderInfo) {
  742. uni.navigateTo({
  743. url:
  744. "/pages/admin/delivery/index?id=" +
  745. orderInfo.order_id +
  746. "&listId=" +
  747. orderInfo.id +
  748. "&totalNum=" +
  749. orderInfo.total_num +
  750. "&orderStatus=" +
  751. orderInfo.status +
  752. "&comeType=2&productType=" +
  753. orderInfo.product_type,
  754. });
  755. },
  756. getpreviewImage: function (index, num) {
  757. uni.previewImage({
  758. urls: num ? this.orderInfo.refund_img : this.orderInfo.refund_goods_img,
  759. current: num
  760. ? this.orderInfo.refund_img[index]
  761. : this.orderInfo.refund_goods_img[index],
  762. });
  763. },
  764. more: function () {
  765. this.order = !this.order;
  766. },
  767. modify(status, type) {
  768. this.change = true;
  769. this.status = status;
  770. if (status == 2) {
  771. this.isRefund = type
  772. }
  773. },
  774. changeclose: function (msg) {
  775. this.change = msg;
  776. },
  777. getIndex: function () {
  778. let that = this;
  779. let obj = "";
  780. if (that.statusType == -3) {
  781. obj = getAdminRefundDetail(that.order_id);
  782. } else {
  783. obj = getAdminOrderDetail(that.order_id);
  784. }
  785. obj
  786. .then((res) => {
  787. let num = 0;
  788. that.types = res.data._status._type;
  789. that.title = res.data._status._title;
  790. that.payType = res.data._status._payType;
  791. that.giveData.give_coupon = res.data.give_coupon;
  792. that.giveData.give_integral = res.data.give_integral;
  793. let cartObj = [],
  794. giftObj = [];
  795. res.data.cartInfo.forEach((item, index) => {
  796. num += item.cart_num;
  797. if (item.is_gift == 1) {
  798. giftObj.push(item);
  799. } else {
  800. cartObj.push(item);
  801. }
  802. });
  803. this.totalNmu = num;
  804. res.data.cartInfo = cartObj;
  805. that.$set(that, "giveCartInfo", giftObj);
  806. that.orderInfo = res.data;
  807. that.getUserInfo();
  808. })
  809. .catch((err) => {
  810. return that.$util.Tips({
  811. title: err.msg,
  812. });
  813. });
  814. },
  815. objOrderRefund(data) {
  816. let that = this;
  817. setOrderRefund(data).then(
  818. (res) => {
  819. that.change = false;
  820. that.$util.Tips({
  821. title: res.msg,
  822. });
  823. that.getIndex();
  824. },
  825. (err) => {
  826. that.change = false;
  827. that.$util.Tips({
  828. title: err,
  829. });
  830. },
  831. );
  832. },
  833. async savePrice(opt) {
  834. let that = this,
  835. data = {},
  836. price = opt.price,
  837. refund_price = opt.refund_price,
  838. refund_status = that.orderInfo.refund_status,
  839. remark = opt.remark;
  840. data.order_id = that.orderInfo.order_id;
  841. if (that.status == 0) {
  842. if (!isMoney(price)) {
  843. return that.$util.Tips({
  844. title: "请输入正确的金额",
  845. });
  846. }
  847. data.price = price;
  848. setAdminOrderPrice(data)
  849. .then((res) => {
  850. that.change = false;
  851. that.$util.Tips({
  852. title: "改价成功",
  853. icon: "success",
  854. });
  855. that.order_id = res.data.order_id;
  856. that.getIndex();
  857. })
  858. .catch((err) => {
  859. that.change = false;
  860. that.$util.Tips({
  861. title: "改价失败",
  862. icon: "none",
  863. });
  864. });
  865. } else if (that.status == 2) {
  866. if (this.isRefund) {
  867. if (!isMoney(refund_price)) {
  868. return that.$util.Tips({
  869. title: "请输入正确的金额",
  870. });
  871. }
  872. data.price = refund_price;
  873. data.type = opt.type;
  874. this.objOrderRefund(data);
  875. } else {
  876. if (opt.type == 1) {
  877. orderRefundAgree(this.orderInfo.id)
  878. .then((res) => {
  879. that.change = false;
  880. that.$util.Tips({
  881. title: res.msg,
  882. });
  883. that.getIndex();
  884. })
  885. .catch((err) => {
  886. that.change = false;
  887. that.$util.Tips({
  888. title: err,
  889. });
  890. });
  891. }
  892. }
  893. } else if (that.status == 8) {
  894. data.type = opt.type;
  895. data.refuse_reason = opt.refuse_reason;
  896. this.objOrderRefund(data);
  897. } else {
  898. if (!remark) {
  899. return this.$util.Tips({
  900. title: "请输入备注",
  901. });
  902. }
  903. data.remark = remark;
  904. let obj = "";
  905. if (that.statusType == -3) {
  906. obj = setAdminRefundRemark(data);
  907. } else {
  908. obj = setAdminOrderRemark(data);
  909. }
  910. obj.then(
  911. (res) => {
  912. that.change = false;
  913. this.$util.Tips({
  914. title: res.msg,
  915. icon: "success",
  916. });
  917. this.orderInfo.remark = remark;
  918. // that.getIndex();
  919. },
  920. (err) => {
  921. that.change = false;
  922. that.$util.Tips({
  923. title: err,
  924. });
  925. },
  926. );
  927. }
  928. },
  929. offlinePay: function () {
  930. setOfflinePay({
  931. order_id: this.orderInfo.order_id,
  932. }).then(
  933. (res) => {
  934. this.confirmShow = false;
  935. this.$util.Tips({
  936. title: res.msg,
  937. icon: "success",
  938. });
  939. this.getIndex();
  940. },
  941. (err) => {
  942. this.$util.Tips({
  943. title: err,
  944. });
  945. },
  946. );
  947. },
  948. copyNum(id) {
  949. uni.setClipboardData({
  950. data: id,
  951. });
  952. },
  953. getUserInfo() {
  954. getUserInfo(this.orderInfo.uid).then((res) => {
  955. this.userInfo = res.data;
  956. });
  957. },
  958. },
  959. };
  960. </script>
  961. <style lang="scss" scoped>
  962. .headerBg {
  963. position: absolute;
  964. top: 0;
  965. left: 0;
  966. width: 100%;
  967. background-image:
  968. linear-gradient(360deg, #f5f5f5 0%, rgba(245, 245, 245, 0) 100%),
  969. linear-gradient(270deg, $gradient-primary-admin 0%, $primary-admin 100%);
  970. background-position:
  971. left bottom,
  972. left top;
  973. background-repeat: no-repeat;
  974. background-size:
  975. 100% 120rpx,
  976. 100% 100%;
  977. .inner {
  978. height: 356rpx;
  979. }
  980. }
  981. .order-details {
  982. position: absolute;
  983. width: 100%;
  984. padding: 0 20rpx;
  985. }
  986. .height-add {
  987. height: calc(120rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  988. height: calc(120rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  989. }
  990. .giveGoods {
  991. .item {
  992. padding: 14rpx 30rpx 14rpx 0;
  993. margin-left: 30rpx;
  994. border-top: 1px solid #eee;
  995. .picTxt {
  996. .pictrue {
  997. width: 76rpx;
  998. height: 76rpx;
  999. border-radius: 6rpx;
  1000. background-color: #f5f5f5;
  1001. color: $primary-admin;
  1002. .iconfont {
  1003. font-size: 34rpx;
  1004. }
  1005. image {
  1006. width: 100%;
  1007. height: 100%;
  1008. border-radius: 6rpx;
  1009. }
  1010. margin-right: 16rpx;
  1011. }
  1012. .texts {
  1013. width: 360rpx;
  1014. color: #999999;
  1015. font-size: 20rpx;
  1016. .name {
  1017. color: #333;
  1018. }
  1019. .limit {
  1020. font-size: 20rpx;
  1021. margin-top: 4rpx;
  1022. }
  1023. }
  1024. }
  1025. .num {
  1026. color: #999999;
  1027. font-size: 20rpx;
  1028. }
  1029. }
  1030. }
  1031. .splitTitle {
  1032. width: 100%;
  1033. height: 80rpx;
  1034. background-color: #fff;
  1035. margin-top: 17rpx;
  1036. border-bottom: 1px solid #e5e5e5;
  1037. padding: 0 30rpx;
  1038. }
  1039. .splitTitle .title {
  1040. color: #2291f8;
  1041. }
  1042. /*商户管理订单详情*/
  1043. .pos-order-details .remarks {
  1044. padding-left: 32rpx;
  1045. border-radius: 24rpx;
  1046. background: #ffffff;
  1047. }
  1048. .pos-order-details .remarks .iconfont {
  1049. font-size: 32rpx;
  1050. color: #000000;
  1051. }
  1052. .pos-order-details .remarks input {
  1053. flex: 1;
  1054. height: 100rpx;
  1055. padding-left: 20rpx;
  1056. font-size: 28rpx;
  1057. }
  1058. .pos-order-details .remarks input::placeholder {
  1059. color: #cccccc;
  1060. }
  1061. .pos-order-details .address {
  1062. margin-top: 0;
  1063. }
  1064. .pos-order-details .footer .more {
  1065. font-size: 27upx;
  1066. color: #aaa;
  1067. width: 100upx;
  1068. height: 64upx;
  1069. text-align: center;
  1070. line-height: 64upx;
  1071. margin-right: 25upx;
  1072. position: relative;
  1073. }
  1074. .pos-order-details .footer .delivery {
  1075. border-color: $primary-admin !important;
  1076. background: $primary-admin;
  1077. color: #ffffff !important;
  1078. }
  1079. .pos-order-details .footer .more .order .arrow {
  1080. width: 0;
  1081. height: 0;
  1082. border-left: 11upx solid transparent;
  1083. border-right: 11upx solid transparent;
  1084. border-top: 20upx solid #e5e5e5;
  1085. position: absolute;
  1086. left: 15upx;
  1087. bottom: -18upx;
  1088. }
  1089. .pos-order-details .footer .more .order .arrow:before {
  1090. content: "";
  1091. width: 0;
  1092. height: 0;
  1093. border-left: 9upx solid transparent;
  1094. border-right: 9upx solid transparent;
  1095. border-top: 19upx solid #fff;
  1096. position: absolute;
  1097. left: -10upx;
  1098. bottom: 0;
  1099. }
  1100. .pos-order-details .footer .more .order {
  1101. width: 200upx;
  1102. background-color: #fff;
  1103. border: 1px solid #eee;
  1104. border-radius: 10upx;
  1105. position: absolute;
  1106. top: -200upx;
  1107. z-index: 9;
  1108. }
  1109. .pos-order-details .footer .more .order .item {
  1110. height: 77upx;
  1111. line-height: 77upx;
  1112. }
  1113. .pos-order-details .footer .more .order .item ~ .item {
  1114. border-top: 1px solid #f5f5f5;
  1115. }
  1116. .pos-order-details .footer .more .moreName {
  1117. width: 100%;
  1118. height: 100%;
  1119. }
  1120. /*订单详情*/
  1121. .order-details .header {
  1122. padding: 48rpx 0 30rpx 12rpx;
  1123. }
  1124. .order-details .header .state {
  1125. font-weight: 500;
  1126. font-size: 36rpx;
  1127. line-height: 50rpx;
  1128. color: #ffffff;
  1129. }
  1130. .order-details .header .data {
  1131. margin-top: 8rpx;
  1132. font-size: 26rpx;
  1133. line-height: 36rpx;
  1134. color: #ffffff;
  1135. }
  1136. .order-details .header.on .data {
  1137. margin-left: 0;
  1138. }
  1139. .order-details .header .data .time {
  1140. margin-left: 20rpx;
  1141. }
  1142. .order-details .header .data .state {
  1143. font-size: 30upx;
  1144. font-weight: bold;
  1145. color: #fff;
  1146. margin-bottom: 7upx;
  1147. }
  1148. .order-details .address {
  1149. position: relative;
  1150. padding: 32rpx 32rpx 40rpx;
  1151. border-radius: 24rpx;
  1152. margin-top: 20rpx;
  1153. background: #ffffff;
  1154. overflow: hidden;
  1155. font-size: 24rpx;
  1156. line-height: 34rpx;
  1157. color: #999999;
  1158. }
  1159. .order-details .address .name {
  1160. margin-bottom: 12rpx;
  1161. font-weight: 500;
  1162. font-size: 30rpx;
  1163. line-height: 42rpx;
  1164. color: #333333;
  1165. }
  1166. .order-details .address .name .iconfont {
  1167. margin-right: 8rpx;
  1168. font-size: 32rpx;
  1169. }
  1170. .order-details .address .name .phone {
  1171. margin-left: 40upx;
  1172. }
  1173. .order-details .line {
  1174. position: absolute;
  1175. bottom: 0;
  1176. left: 0;
  1177. width: 100%;
  1178. height: 4rpx;
  1179. }
  1180. .order-details .line image {
  1181. width: 100%;
  1182. height: 100%;
  1183. display: block;
  1184. }
  1185. .order-details .wrapper {
  1186. padding: 32rpx 24rpx;
  1187. border-radius: 24rpx;
  1188. margin-top: 20rpx;
  1189. background: #ffffff;
  1190. }
  1191. .order-details .wrapper .item {
  1192. font-size: 28rpx;
  1193. line-height: 40rpx;
  1194. color: #333333;
  1195. }
  1196. .order-details .wrapper .item ~ .item {
  1197. margin-top: 24rpx;
  1198. }
  1199. .order-details .wrapper .item .conter {
  1200. // color: #868686;
  1201. // width: 468rpx;
  1202. // display: flex;
  1203. // flex-wrap: nowrap;
  1204. // justify-content: flex-end;
  1205. // text-align: right;
  1206. .pictrue {
  1207. width: 80rpx;
  1208. height: 80rpx;
  1209. margin-left: 6rpx;
  1210. image {
  1211. width: 100%;
  1212. height: 100%;
  1213. border-radius: 6rpx;
  1214. }
  1215. }
  1216. }
  1217. .copy {
  1218. height: 36rpx;
  1219. padding: 0 12rpx;
  1220. border: 0;
  1221. border-radius: 18rpx;
  1222. margin-left: 8rpx;
  1223. background: #f5f5f5;
  1224. font-size: 22rpx;
  1225. line-height: 36rpx;
  1226. color: #333333;
  1227. }
  1228. .copy-btn {
  1229. width: 72rpx;
  1230. height: 36rpx;
  1231. text-align: center;
  1232. line-height: 36rpx;
  1233. border-radius: 18rpx;
  1234. margin-left: 8rpx;
  1235. background: #f5f5f5;
  1236. font-size: 20rpx;
  1237. color: #333333;
  1238. }
  1239. .order-details .wrapper .actualPay {
  1240. margin-top: 26rpx;
  1241. align-items: baseline;
  1242. }
  1243. .order-details .wrapper .actualPay .money {
  1244. font-weight: bold;
  1245. font-size: 30upx;
  1246. color: #e93323;
  1247. }
  1248. .order-details .footer {
  1249. width: 100%;
  1250. height: 100upx;
  1251. position: fixed;
  1252. bottom: 0;
  1253. left: 0;
  1254. background-color: #fff;
  1255. padding: 0 30upx;
  1256. border-top: 1px solid #eee;
  1257. height: calc(100rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1258. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1259. padding-bottom: constant(safe-area-inset-bottom);
  1260. }
  1261. .order-details .footer .wait {
  1262. color: #2a7efb;
  1263. margin-right: 30rpx;
  1264. }
  1265. .order-details .footer .bnt {
  1266. width: 144rpx;
  1267. height: 56rpx;
  1268. border: 1rpx solid #cccccc;
  1269. line-height: 54rpx;
  1270. text-align: center;
  1271. border-radius: 28rpx;
  1272. font-size: 24rpx;
  1273. color: #333333;
  1274. transform: rotateZ(360deg);
  1275. &.on {
  1276. color: #c5c8ce !important;
  1277. background: #f7f7f7 !important;
  1278. border: 1px solid #dcdee2 !important;
  1279. }
  1280. }
  1281. .order-details .footer .bnt.cancel {
  1282. // color: #333333;
  1283. // border: 1px solid #CCCCCC;
  1284. }
  1285. .order-details .footer .bnt.default {
  1286. color: #444;
  1287. border: 1px solid #444;
  1288. }
  1289. .order-details .footer .bnt ~ .bnt {
  1290. margin-left: 16rpx;
  1291. }
  1292. .pos-order-goods {
  1293. padding: 32rpx 24rpx;
  1294. border-radius: 24rpx;
  1295. background: #ffffff;
  1296. }
  1297. .pos-order-goods.split {
  1298. margin-top: 20rpx;
  1299. }
  1300. .pos-order-goods .title {
  1301. height: 40rpx;
  1302. margin-bottom: 32rpx;
  1303. font-size: 28rpx;
  1304. color: #333333;
  1305. }
  1306. .pos-order-goods .title .btn {
  1307. font-size: 26rpx;
  1308. color: #999999;
  1309. }
  1310. .pos-order-goods .title .btn .iconfont {
  1311. font-size: 24rpx;
  1312. }
  1313. .pos-order-goods.split .goods {
  1314. }
  1315. .pos-order-goods .goods ~ .goods {
  1316. margin-top: 32rpx;
  1317. }
  1318. .pos-order-goods .goods .picTxt {
  1319. flex: 1;
  1320. min-width: 0;
  1321. }
  1322. .pos-order-goods .goods .picTxt .pictrue {
  1323. width: 136rpx;
  1324. height: 136rpx;
  1325. }
  1326. .pos-order-goods .goods .picTxt .pictrue image {
  1327. width: 100%;
  1328. height: 100%;
  1329. border-radius: 16rpx;
  1330. }
  1331. .pos-order-goods .goods .picTxt .text {
  1332. flex: 1;
  1333. min-width: 0;
  1334. padding-left: 20rpx;
  1335. }
  1336. .pos-order-goods .goods .picTxt .text .info {
  1337. font-size: 28rpx;
  1338. line-height: 40rpx;
  1339. color: #333333;
  1340. }
  1341. .pos-order-goods .goods .picTxt .text .info .label {
  1342. color: #ff4c3c;
  1343. }
  1344. .pos-order-goods .goods .picTxt .text .attr {
  1345. margin-top: 8rpx;
  1346. font-size: 24rpx;
  1347. line-height: 34rpx;
  1348. color: #999999;
  1349. }
  1350. .pos-order-goods .goods .money {
  1351. width: 144rpx;
  1352. text-align: right;
  1353. }
  1354. .pos-order-goods .goods .money .writeOff {
  1355. font-size: 24upx;
  1356. margin-top: 17upx;
  1357. color: #1890ff;
  1358. }
  1359. .pos-order-goods .goods .money .writeOff .on {
  1360. color: #ff7e00;
  1361. }
  1362. .pos-order-goods .goods .money .x-money {
  1363. color: #282828;
  1364. }
  1365. .pos-order-goods .goods .money .num {
  1366. margin-top: 10rpx;
  1367. font-size: 24rpx;
  1368. line-height: 34rpx;
  1369. color: #999999;
  1370. }
  1371. .pos-order-goods .goods .money .y-money {
  1372. color: #999;
  1373. text-decoration: line-through;
  1374. }
  1375. .public-total {
  1376. font-size: 28upx;
  1377. color: #282828;
  1378. border-top: 1px solid #eee;
  1379. height: 92upx;
  1380. line-height: 92upx;
  1381. text-align: right;
  1382. padding: 0 30upx;
  1383. background-color: #fff;
  1384. }
  1385. .public-total .money {
  1386. color: #ff4c3c;
  1387. }
  1388. .pos-order-goods .mark {
  1389. margin-top: 32rpx;
  1390. font-size: 28rpx;
  1391. line-height: 40rpx;
  1392. color: #333333;
  1393. .name {
  1394. width: 136rpx;
  1395. }
  1396. .value {
  1397. flex: 1;
  1398. }
  1399. }
  1400. .mask {
  1401. z-index: 21;
  1402. }
  1403. .confirm-popup {
  1404. position: fixed;
  1405. top: 50%;
  1406. right: 75rpx;
  1407. left: 75rpx;
  1408. z-index: 21;
  1409. transform: translateY(-50%);
  1410. border-radius: 32rpx;
  1411. background: #ffffff;
  1412. text-align: center;
  1413. .title {
  1414. padding: 40rpx 32rpx 0;
  1415. font-weight: 500;
  1416. font-size: 32rpx;
  1417. line-height: 52rpx;
  1418. color: #333333;
  1419. }
  1420. .info {
  1421. padding: 24rpx 40rpx 0;
  1422. font-size: 30rpx;
  1423. line-height: 42rpx;
  1424. color: #666666;
  1425. }
  1426. .btn-box {
  1427. padding: 40rpx;
  1428. }
  1429. .btn {
  1430. flex: 1;
  1431. height: 72rpx;
  1432. border: 1rpx solid $primary-admin;
  1433. border-radius: 36rpx;
  1434. margin-left: 32rpx;
  1435. font-weight: 500;
  1436. font-size: 26rpx;
  1437. line-height: 70rpx;
  1438. color: $primary-admin;
  1439. transform: rotateZ(360deg);
  1440. &.primary {
  1441. background: $primary-admin;
  1442. color: #ffffff;
  1443. }
  1444. }
  1445. }
  1446. .user-box {
  1447. padding: 24rpx;
  1448. border-radius: 24rpx;
  1449. margin-top: 20rpx;
  1450. background: #ffffff;
  1451. .image {
  1452. width: 80rpx;
  1453. height: 80rpx;
  1454. border-radius: 50%;
  1455. }
  1456. .text {
  1457. flex: 1;
  1458. padding-left: 20rpx;
  1459. font-size: 24rpx;
  1460. line-height: 34rpx;
  1461. color: #999999;
  1462. }
  1463. .name {
  1464. margin-bottom: 4rpx;
  1465. font-weight: 500;
  1466. font-size: 28rpx;
  1467. line-height: 40rpx;
  1468. color: #333333;
  1469. }
  1470. .svip {
  1471. width: 56rpx;
  1472. height: 26rpx;
  1473. border-radius: 14rpx;
  1474. margin-left: 12rpx;
  1475. background: linear-gradient(90deg, #484643 0%, #1f1b17 100%);
  1476. text-align: center;
  1477. font-weight: 600;
  1478. font-size: 18rpx;
  1479. line-height: 26rpx;
  1480. color: #fddaa4;
  1481. }
  1482. .grade {
  1483. height: 26rpx;
  1484. padding: 0 10rpx;
  1485. border: 1rpx solid #facc7d;
  1486. border-radius: 14rpx;
  1487. margin-left: 10rpx;
  1488. background: #fef0d9;
  1489. font-weight: 500;
  1490. font-size: 18rpx;
  1491. line-height: 24rpx;
  1492. color: #dfa541;
  1493. transform: rotateZ(360deg);
  1494. .iconfont {
  1495. margin-right: 6rpx;
  1496. font-size: 18rpx;
  1497. }
  1498. }
  1499. }
  1500. </style>