applyRefund.vue 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091
  1. <template>
  2. <view class="container">
  3. <!-- 商品信息 -->
  4. <view class="product-block">
  5. <view class="refund-title">退款商品</view>
  6. <view class="product-detail">
  7. <view class="profuct-info">
  8. <image mode="aspectFit" class="product-img" :src="orderInfo.picUrl"></image>
  9. <view class="info-right">
  10. <view class="info-main">
  11. <view class="product-name">{{ orderInfo.goodsName }}</view>
  12. <view class="price">
  13. ¥
  14. <text style="font-size: 24rpx">{{ orderInfo.actualPrice }}</text>
  15. </view>
  16. </view>
  17. <view class="other-info">服务{{ orderInfo.serviceTimes }}次</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="real-price">
  22. 实际付款:
  23. <text>¥{{ orderInfo.actualPrice }}</text>
  24. </view>
  25. </view>
  26. <!--
  27. <view class="card">
  28. <view class="module-title">订单明细</view>
  29. <view class="tt-cell">
  30. <view>商品总价</view>
  31. <view>¥{{orderInfo.goodsPrice}}元</view>
  32. </view>
  33. <view class="tt-cell">
  34. <view>优 惠</view>
  35. <view>-¥{{orderInfo.couponPrice}}元</view>
  36. </view>
  37. <view class="tt-cell">
  38. <view>订单实付</view>
  39. <view>-¥{{orderInfo.actualPrice}}元</view>
  40. </view>
  41. </view>
  42. -->
  43. <view class="card">
  44. <view class="refund-title">退款信息</view>
  45. <!-- <view class="refund-tips">
  46. 退款发起时间距离服务时间小于(含)24小时,将收取60元退改费
  47. </view> -->
  48. <view class="tt-cell">
  49. <view>退款金额</view>
  50. <view class="refund-price">¥{{ aftersale.amount }}</view>
  51. </view>
  52. <!-- <view class="comment-tips">不可更改,即订单实付</view> -->
  53. <!-- <picker value="{{index}}" range="{{columns}}" bindchange="bindPickerChange"> -->
  54. <view class="tt-cell" @tap="showReason">
  55. <view style="width: 150rpx">
  56. <text class="need">*</text>
  57. 退款原因
  58. </view>
  59. <view class="cell-right default" v-if="reasonActive.id == ''">请选择</view>
  60. <view class="cell-right" v-else>{{ reasonActive.name }}</view>
  61. <view class="arrow-wrapper">
  62. <image src="https://mall.zhaijieshi.cc/file/wx-dy/arrow-grey.png" mode="aspectFit" class="arrow-img"></image>
  63. </view>
  64. </view>
  65. <!-- </picker> -->
  66. <view class="tt-cell">
  67. <view style="width: 150rpx">补充描述</view>
  68. <input :value="aftersale.reason" placeholder="补充描述,有助于更好的处理售后问题。" placeholder-style="font-size:24rpx;color:#ACADB1;" @input="onReasonChange" />
  69. </view>
  70. <!-- <view class="comment-wrapper">
  71. <view class="tt-cell comment-cell">
  72. <view>退款说明</view>
  73. <input value="{{ aftersale.comment}}" placeholder="请输入" placeholder-style="font-size:26rpx;color:#999;"
  74. bindinput="onCommentChange">
  75. </input>
  76. </view>
  77. </view> -->
  78. <view class="upload-text">上传凭证</view>
  79. <view class="comment-tips">最多上传3张</view>
  80. <!-- 图片上传 -->
  81. <view class="upload-wrapper">
  82. <view class="img-item" v-for="(item, index) in imgList" :key="index">
  83. <image mode="aspectFill" :src="item" class="user-upload" @tap="previewImg" :data-img="item"></image>
  84. <image class="close-img" mode="aspectFill" src="/static/images/icon-close.png" @tap="delImg" :data-index="index"></image>
  85. </view>
  86. <view class="upload" @tap="uploadImg">
  87. <image mode="aspectFill" src="/static/images/icon-add.png"></image>
  88. <view>上传照片</view>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="submit-btn" @tap="submit" v-if='showRefundBtn'>申请退款</view>
  93. <!-- 备注退款原因 -->
  94. <view class="appoint-overlay-wrapper remark-overlay" v-if="reasonPopupShow" @tap="onReasonPopupClose">
  95. <view class="remark-select" @tap.stop.prevent="onReasonClick">
  96. <view class="title">选择退款原因</view>
  97. <view class="remark-list">
  98. <view class="remark-item" :data-reason="item" @tap.stop.prevent="reasonItemSelect" v-for="(item, index) in reasonList" :key="index">
  99. <view class="remark-value">{{ item.name }}</view>
  100. <image
  101. mode="aspectFit"
  102. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-select-popup.png"
  103. class="radio-img"
  104. v-if="reasonActive.id == item.id"
  105. ></image>
  106. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-unselect-popup.png" class="radio-img" v-else></image>
  107. </view>
  108. </view>
  109. <view class="remark-conf-btn" @tap.stop.prevent="reasonItemConfirm">确定</view>
  110. </view>
  111. </view>
  112. <contact-mov :pageX="260" :pageY="400"></contact-mov>
  113. <!-- 退款成功 -->
  114. <view class="refund-order-overlay" v-if="refundTipShowSuccess">
  115. <view class="refund-order-dialog refund-order-dia-success">
  116. <view class="refund-dia-title">退款成功</view>
  117. <view class="refund-dia-tips">预计1-3个工作日原路返还,请注意查收!</view>
  118. <view class="dia-btn-wrapper">
  119. <view class="dia-cancel-btn" @tap="refundBack">返回</view>
  120. </view>
  121. </view>
  122. </view>
  123. <!-- 退款审核中 -->
  124. <view class="refund-order-overlay" v-if="refundTipShowAlert">
  125. <view class="refund-order-dialog">
  126. <view class="refund-dia-title">审核中</view>
  127. <view class="refund-dia-tips">您的退款已在加速处理中!感谢您的耐心等待,如需进一步协助,请联系我们的在线客服</view>
  128. <view class="dia-btn-wrapper">
  129. <view class="dia-cancel-btn" @tap="refundBack">返回主页</view>
  130. <view class="dia-conf-btn" @tap="goIM">联系在线客服</view>
  131. </view>
  132. </view>
  133. </view>
  134. <!-- 退款失败 -->
  135. <view class="refund-order-overlay" v-if="refundTipShowFail">
  136. <view class="refund-order-dialog refund-order-dia-fail">
  137. <view class="refund-dia-title">退款失败</view>
  138. <view class="refund-dia-tips">非常抱歉,退款遇到问题,请立即联系在线客服协助处理问题!</view>
  139. <view class="dia-btn-wrapper">
  140. <view class="dia-cancel-btn" @tap="refundBack">返回主页</view>
  141. <view class="dia-conf-btn" @tap="goIM">联系在线客服</view>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. </template>
  147. <script>
  148. var util = require('../../../utils/util.js');
  149. var api = require('../../../config/api.js');
  150. import contactMov from '@/components/contact-mov';
  151. export default {
  152. components:{contactMov},
  153. data() {
  154. return {
  155. refundTipShowSuccess:false,
  156. refundTipShowAlert:false,
  157. refundTipShowFail:false,
  158. showRefundBtn:true,
  159. index: '',
  160. orderId: 0,
  161. orderInfo: {
  162. picUrl: '',
  163. goodsName: '',
  164. actualPrice: '',
  165. serviceTimes: ''
  166. },
  167. orderGoods: [],
  168. aftersale: {
  169. pictures: [],
  170. typeDesc: '',
  171. reason: '',
  172. amount: '',
  173. comment: '',
  174. type: ''
  175. },
  176. reasonActive: {
  177. id: '',
  178. name: ''
  179. },
  180. reasonPopupShow: false,
  181. reasonList: [],
  182. columns: ['地址约错', '约不到想要的服务时间', '活动/优惠未享受', '服务质量问题'],
  183. contentLength: 0,
  184. fileList: [],
  185. imgList: [],
  186. showPicker: false
  187. };
  188. },
  189. onLoad: function (options) {
  190. // 页面初始化 options为页面跳转所带来的参数
  191. this.setData({
  192. orderId: options.id
  193. });
  194. this.getOrderDetail();
  195. this.getRefudnType();
  196. this.getAmount();
  197. },
  198. onReady: function () {
  199. // 页面渲染完成
  200. },
  201. onShow: function () {
  202. // 页面显示
  203. },
  204. onHide: function () {
  205. // 页面隐藏
  206. },
  207. onUnload: function () {
  208. // 页面关闭
  209. },
  210. methods: {
  211. getRefudnType() {
  212. let that = this;
  213. util.request(api.AftersaleRefundType).then(function (res) {
  214. if (res.errno === 0) {
  215. that.setData({
  216. reasonList: res.data,
  217. columns: res.data.map((obj) => obj.name)
  218. });
  219. console.info(that.refundTypes);
  220. }
  221. });
  222. },
  223. getAmount: function () {
  224. util.request(api.AftersaleAmount, {
  225. orderId: this.orderId
  226. }).then((res) => {
  227. if (res.errno === 0) {
  228. console.log(res.data);
  229. this.setData({
  230. 'aftersale.amount': res.data.refundAmount
  231. });
  232. }
  233. });
  234. },
  235. getOrderDetail: function () {
  236. uni.showLoading({
  237. title: '加载中'
  238. });
  239. setTimeout(function () {
  240. uni.hideLoading();
  241. }, 2000);
  242. let that = this;
  243. util.request(api.OrderDetail, {
  244. orderId: that.orderId
  245. }).then(function (res) {
  246. if (res.errno === 0) {
  247. console.log(res.data);
  248. that.setData({
  249. orderInfo: res.data
  250. // orderGoods: res.data.orderGoods,
  251. // 'aftersale.orderId': that.data.orderId,
  252. // 'aftersale.amount': res.data.orderInfo.actualPrice - res.data.orderInfo.freightPrice
  253. });
  254. }
  255. uni.hideLoading();
  256. });
  257. },
  258. deleteImage(event) {
  259. const { fileList = [] } = this;
  260. fileList.splice(event.detail.index, 1);
  261. this.setData({
  262. fileList: fileList
  263. });
  264. let urls = [];
  265. fileList.forEach(function (e) {
  266. urls.push(e.url);
  267. });
  268. this.setData({
  269. 'aftersale.pictures': urls
  270. });
  271. },
  272. afterRead(event) {
  273. const { file } = event.detail;
  274. let that = this;
  275. const uploadTask = uni.uploadFile({
  276. url: api.StorageUpload,
  277. filePath: file.path,
  278. name: 'file',
  279. success: function (res) {
  280. var _res = JSON.parse(res.data);
  281. if (_res.errno === 0) {
  282. var url = _res.data.url;
  283. that.aftersale.pictures.push(url);
  284. const { fileList = [] } = that;
  285. fileList.push({
  286. ...file,
  287. url: url
  288. });
  289. that.setData({
  290. fileList: fileList
  291. });
  292. }
  293. },
  294. fail: function (e) {
  295. uni.showModal({
  296. title: '错误',
  297. content: '上传失败',
  298. showCancel: false
  299. });
  300. }
  301. });
  302. },
  303. previewImage: function (e) {
  304. uni.previewImage({
  305. current: e.currentTarget.id,
  306. // 当前显示图片的http链接
  307. urls: this.files // 需要预览的图片http链接列表
  308. });
  309. },
  310. contentInput: function (e) {
  311. this.setData({
  312. contentLength: e.detail.cursor,
  313. 'aftersale.comment': e.detail.value
  314. });
  315. },
  316. onReasonChange: function (e) {
  317. console.log(e);
  318. this.setData({
  319. 'aftersale.reason': e.detail.value
  320. });
  321. },
  322. onCommentChange: function (e) {
  323. console.log(e);
  324. this.setData({
  325. 'aftersale.comment': e.detail.value
  326. });
  327. },
  328. showTypePicker: function () {
  329. this.setData({
  330. showPicker: true
  331. });
  332. },
  333. onCancel: function () {
  334. this.setData({
  335. showPicker: false
  336. });
  337. },
  338. bindPickerChange: function (event) {
  339. console.log(event);
  340. this.setData({
  341. 'aftersale.type': event.detail.value,
  342. 'aftersale.typeDesc': this.columns[event.detail.value]
  343. });
  344. },
  345. submit: function () {
  346. let that = this;
  347. if (that.reasonActive.id == '') {
  348. util.showErrorToast('请选择退款原因');
  349. return false;
  350. }
  351. // let name = that.data.aftersale.typeDesc;
  352. // let vals = this.data.refundTypes.filter(item =>item.name == name);
  353. // that.setData({
  354. // type:vals[0].id
  355. // })
  356. // console.log(that.data.aftersale);
  357. // if (that.data.aftersale.reason == '') {
  358. // util.showErrorToast('请输入退款原因');
  359. // return false;
  360. // }
  361. uni.showLoading({
  362. title: '提交中...',
  363. mask: true,
  364. success: function () {}
  365. });
  366. // this.setData({
  367. // "aftersale.pictures": this.data.imgList
  368. // });
  369. let params = {
  370. orderId: this.orderId,
  371. pictures: this.imgList,
  372. type: this.reasonActive.id,
  373. typeDesc: this.reasonActive.name,
  374. reason: this.aftersale.reason,
  375. amount: this.aftersale.amount
  376. };
  377. util.request(api.AftersaleSubmit, params, 'POST').then(res=> {
  378. uni.hideLoading();
  379. if (res.errno === 0) {
  380. // uni.showToast({
  381. // title: '申请售后成功',
  382. // icon: 'success',
  383. // duration: 2000,
  384. // complete: function () {
  385. // uni.navigateBack({
  386. // delta: 1
  387. // });
  388. // }
  389. // });
  390. this.setData({
  391. showRefundBtn:false
  392. });
  393. if(res.data.canRefundNow){
  394. if(res.data.refundSuccess){
  395. this.setData({
  396. refundTipShowSuccess:true
  397. });
  398. }else{
  399. this.setData({
  400. refundTipShowFail:true
  401. });
  402. }
  403. }else{
  404. this.setData({
  405. refundTipShowAlert:true
  406. });
  407. }
  408. } else {
  409. util.showErrorToast(res.errmsg);
  410. }
  411. });
  412. },
  413. previewImg(e) {
  414. let img = e.currentTarget.dataset.img;
  415. let imgs = this.imgList;
  416. uni.previewImage({
  417. current: img,
  418. // 当前显示图片的http链接
  419. urls: imgs // 需要预览的图片http链接列表
  420. });
  421. },
  422. delImg(e) {
  423. let imgs = this.imgList;
  424. let index = e.currentTarget.dataset.index;
  425. imgs.splice(index, 1);
  426. this.setData({
  427. imgList: imgs
  428. });
  429. },
  430. uploadImg() {
  431. if (this.imgList.length >= 3) {
  432. uni.showToast({
  433. title: '最多上传3张图片',
  434. icon: 'none',
  435. duration: 2000
  436. });
  437. return false;
  438. }
  439. let that = this;
  440. let count = 3 - that.imgList.length;
  441. uni.chooseImage({
  442. count: count,
  443. sizeType: ['original', 'compressed'],
  444. sourceType: ['album', 'camera'],
  445. success: function (res) {
  446. console.log(res);
  447. let tempFilePaths = res.tempFilePaths;
  448. uni.showLoading({
  449. title: '上传中...'
  450. });
  451. for (let i = 0; i < tempFilePaths.length; i++) {
  452. let imgs = that.imgList;
  453. if (imgs.length >= 3) {
  454. that.setData({
  455. imgList: imgs
  456. });
  457. return false;
  458. } else {
  459. uni.uploadFile({
  460. url: api.StorageUpload,
  461. filePath: tempFilePaths[i],
  462. name: 'file',
  463. success(res) {
  464. console.log(res);
  465. let data = JSON.parse(res.data);
  466. if (data.errno == 0) {
  467. imgs.push(data.data.url);
  468. that.setData({
  469. imgList: imgs
  470. });
  471. } else {
  472. console.log('上传失败');
  473. }
  474. }
  475. });
  476. }
  477. }
  478. uni.hideLoading();
  479. }
  480. });
  481. },
  482. showReason() {
  483. this.setData({
  484. reasonPopupShow: true
  485. });
  486. },
  487. onReasonPopupClose() {
  488. this.setData({
  489. reasonPopupShow: false
  490. });
  491. },
  492. onReasonClick() {
  493. //阻止事件冒泡,不要删
  494. },
  495. reasonItemSelect(e) {
  496. let reason = e.currentTarget.dataset.reason;
  497. this.setData({
  498. reasonActive: reason
  499. });
  500. },
  501. reasonItemConfirm() {
  502. if (this.reasonActive.id === '') {
  503. util.showErrorToast('请选择退款原因');
  504. return false;
  505. }
  506. this.setData({
  507. reasonPopupShow: false
  508. });
  509. },
  510. refundBack(){
  511. this.setData({
  512. refundTipShowSuccess:false,
  513. refundTipShowAlert:false,
  514. refundTipShowFail:false
  515. });
  516. uni.navigateBack();
  517. },
  518. goIM() {
  519. this.setData({
  520. refundTipShowSuccess:false,
  521. refundTipShowAlert:false,
  522. refundTipShowFail:false
  523. });
  524. console.info('goIm');
  525. uni.navigateTo({
  526. url: '/pages/chat/im/im'
  527. });
  528. },
  529. }
  530. };
  531. </script>
  532. <style>
  533. page {
  534. /* height: 100%; */
  535. width: 100%;
  536. background: #f4f4f4;
  537. padding: 0 0 80rpx;
  538. }
  539. .container {
  540. padding: 0 30rpx;
  541. }
  542. .order-goods {
  543. margin-top: 30rpx;
  544. background: #fff;
  545. border-radius: 10rpx;
  546. width: 690rpx;
  547. padding: 30rpx 20rpx;
  548. }
  549. .order-goods .h {
  550. height: 30rpx;
  551. line-height: 30rpx;
  552. margin-bottom: 30rpx;
  553. font-size: 30rpx;
  554. color: #333;
  555. }
  556. .order-goods .h .label {
  557. float: left;
  558. font-size: 30rpx;
  559. color: #333;
  560. }
  561. .order-goods .h .status {
  562. float: right;
  563. font-size: 30rpx;
  564. color: #b4282d;
  565. }
  566. .order-goods .item {
  567. display: flex;
  568. align-items: center;
  569. height: 190rpx;
  570. }
  571. .order-goods .item:last-child {
  572. border-bottom: none;
  573. }
  574. .order-goods .item .img {
  575. height: 190rpx;
  576. width: 190rpx;
  577. background: #f4f4f4;
  578. margin-right: 20rpx;
  579. border-radius: 10rpx;
  580. }
  581. .order-goods .item .img image {
  582. height: 190rpx;
  583. border-radius: 10rpx;
  584. width: 190rpx;
  585. }
  586. .order-goods .item .info {
  587. flex: 1;
  588. height: 190rpx;
  589. }
  590. .order-goods .item .t {
  591. margin-top: 10rpx;
  592. /* height: 33rpx; */
  593. line-height: 34rpx;
  594. margin-bottom: 30rpx;
  595. display: flex;
  596. justify-content: space-between;
  597. }
  598. .order-goods .item .t .name {
  599. max-height: 68rpx;
  600. line-height: 34rpx;
  601. color: #333;
  602. font-size: 30rpx;
  603. width: 360rpx;
  604. margin-right: 40rpx;
  605. /* text-overflow: ellipsis;
  606. white-space: nowrap;*/
  607. overflow: hidden;
  608. }
  609. .order-goods .item .t .number {
  610. line-height: 36rpx;
  611. color: #666;
  612. font-size: 26rpx;
  613. }
  614. .order-goods .item .attr {
  615. height: 26rpx;
  616. line-height: 26rpx;
  617. color: #666;
  618. font-size: 26rpx;
  619. }
  620. .order-goods .item .price {
  621. height: 26rpx;
  622. line-height: 26rpx;
  623. color: #666;
  624. font-size: 26rpx;
  625. margin-top: 16rpx;
  626. }
  627. .module-title {
  628. height: 80rpx;
  629. padding: 0 8rpx;
  630. line-height: 80rpx;
  631. font-size: 30rpx;
  632. color: #333;
  633. border-bottom: 1rpx solid #efefef;
  634. }
  635. .tt-cell {
  636. display: flex;
  637. /* padding:0 4rpx 0 8rpx; */
  638. align-items: flex-end;
  639. justify-content: space-between;
  640. background: #fff;
  641. height: 78rpx;
  642. padding-bottom: 12rpx;
  643. /* border-bottom:2rpx solid #ebedf0; */
  644. }
  645. .tt-cell view {
  646. font-size: 26rpx;
  647. color: #191919;
  648. font-weight: bold;
  649. }
  650. .tt-cell view.cell-right {
  651. font-family: normal;
  652. flex: 1;
  653. border-bottom: 2rpx solid #e0e0e0;
  654. padding-bottom: 8rpx;
  655. }
  656. .arrow-wrapper {
  657. border-bottom: 2rpx solid #e0e0e0;
  658. height: 40rpx;
  659. }
  660. .arrow-img {
  661. width: 28rpx;
  662. height: 28rpx;
  663. }
  664. .tt-cell view.cell-right.default {
  665. color: #acadb1;
  666. font-size: 24rpx;
  667. font-weight: normal;
  668. }
  669. .tt-cell input {
  670. flex: 1;
  671. border-bottom: 2rpx solid #e0e0e0;
  672. }
  673. .need {
  674. color: red;
  675. }
  676. .comment-wrapper {
  677. /* border-bottom:2rpx solid #ebedf0; */
  678. }
  679. .tt-cell.comment-cell {
  680. border: none;
  681. }
  682. .tt-cell.comment-cell view {
  683. padding-left: 14rpx;
  684. }
  685. .comment-tips {
  686. /* padding-left:22rpx; */
  687. height: 50rpx;
  688. line-height: 30rpx;
  689. color: #777;
  690. font-size: 20rpx;
  691. background: #fff;
  692. }
  693. .submit-btn {
  694. text-align: center;
  695. color: #fff;
  696. margin: 120rpx 26rpx 60rpx;
  697. width: 650rpx;
  698. height: 90rpx;
  699. line-height: 90rpx;
  700. background: #ff8219;
  701. border-radius: 90rpx;
  702. font-size: 34rpx;
  703. }
  704. .upload-text {
  705. height: 88rpx;
  706. line-height: 88rpx;
  707. /* padding-left:22rpx; */
  708. background: #fff;
  709. font-size: 26rpx;
  710. color: #191919;
  711. font-weight: bold;
  712. }
  713. .upload-wrapper {
  714. /* margin:18rpx -20rpx 56rpx 0; */
  715. display: flex;
  716. flex-wrap: wrap;
  717. background: #fff;
  718. padding: 0 24rpx 40rpx 0;
  719. }
  720. .upload {
  721. width: 160rpx;
  722. height: 160rpx;
  723. background: #fafafa;
  724. border-radius: 4rpx;
  725. border: 1rpx solid #d9d9d9;
  726. display: flex;
  727. align-items: center;
  728. flex-direction: column;
  729. justify-content: center;
  730. margin-right: 16rpx;
  731. box-sizing: border-box;
  732. }
  733. .upload image {
  734. width: 38rpx;
  735. height: 38rpx;
  736. margin-bottom: 22rpx;
  737. }
  738. .upload view {
  739. font-weight: 400;
  740. color: #c5c3c3;
  741. line-height: 48rpx;
  742. font-size: 26rpx;
  743. }
  744. .img-item {
  745. width: 160rpx;
  746. height: 160rpx;
  747. background: #fff;
  748. border-radius: 2rpx;
  749. border: 1rpx solid #d9d9d9;
  750. margin: 0 20rpx 24rpx 0;
  751. padding: 8rpx;
  752. position: relative;
  753. box-sizing: border-box;
  754. }
  755. .img-item .user-upload {
  756. width: 144rpx;
  757. height: 144rpx;
  758. }
  759. .img-item .close-img {
  760. width: 28rpx;
  761. height: 28rpx;
  762. position: absolute;
  763. top: 0;
  764. right: 0;
  765. }
  766. .refund-tips {
  767. color: #ee0a24;
  768. font-size: 22rpx;
  769. line-height: 40rpx;
  770. padding-left: 8rpx;
  771. margin: 4rpx 0 8rpx;
  772. }
  773. .card {
  774. background: #fff;
  775. border-radius: 24rpx;
  776. padding: 30rpx 24rpx;
  777. }
  778. .tt-cell input {
  779. flex: 1;
  780. font-size: 26rpx;
  781. color: #666;
  782. }
  783. /* 产品订单信息 */
  784. .product-block {
  785. background: #ffffff;
  786. border-radius: 24rpx;
  787. padding: 24rpx;
  788. margin: 28rpx 0 30rpx;
  789. }
  790. .product-block .title {
  791. height: 88rpx;
  792. line-height: 78rpx;
  793. }
  794. .profuct-info {
  795. height: 190rpx;
  796. display: flex;
  797. align-items: flex-start;
  798. }
  799. .product-img {
  800. width: 190rpx;
  801. height: 190rpx;
  802. border-radius: 10rpx;
  803. margin-right: 20rpx;
  804. }
  805. .info-right {
  806. /* padding-top: 10rpx; */
  807. flex: 1;
  808. }
  809. .info-main {
  810. display: flex;
  811. height: 40rpx;
  812. align-items: center;
  813. justify-content: space-between;
  814. margin-bottom: 58rpx;
  815. }
  816. .product-name {
  817. line-height: 40rpx;
  818. font-size: 28rpx;
  819. /* padding-left: 20rpx;
  820. text-indent: -16rpx; */
  821. overflow: hidden;
  822. text-overflow: ellipsis;
  823. white-space: nowrap;
  824. width: 328rpx;
  825. font-weight: bold;
  826. color: rgba(0, 0, 0, 0.9);
  827. }
  828. .info-main .price {
  829. color: rgba(0, 0, 0, 0.9);
  830. font-size: 18rpx;
  831. font-weight: bold;
  832. }
  833. .info-right .other-info {
  834. font-size: 24rpx;
  835. color: rgba(0, 0, 0, 0.9);
  836. line-height: 34rpx;
  837. }
  838. .refund-title {
  839. color: #191919;
  840. font-size: 30rpx;
  841. font-weight: bold;
  842. margin-bottom: 28rpx;
  843. height: 30rpx;
  844. line-height: 30rpx;
  845. }
  846. .real-price {
  847. display: flex;
  848. align-items: center;
  849. height: 36rpx;
  850. justify-content: flex-end;
  851. font-size: 26rpx;
  852. font-weight: bold;
  853. margin: 20rpx 0 12rpx;
  854. }
  855. .real-price text {
  856. color: #ff004e;
  857. font-size: 26rpx;
  858. }
  859. .tt-cell view.refund-price {
  860. color: #ff004e;
  861. }
  862. /* 选择备注 */
  863. .appoint-overlay-wrapper {
  864. position: fixed;
  865. top: 0;
  866. left: 0;
  867. width: 100%;
  868. height: 100%;
  869. background-color: rgba(0, 0, 0, 0.7);
  870. z-index: 999;
  871. }
  872. .appoint-overlay-wrapper.remark-overlay {
  873. display: flex;
  874. align-items: flex-end;
  875. justify-content: center;
  876. }
  877. .remark-select {
  878. width: 750rpx;
  879. padding: 0 24rpx 56rpx;
  880. background: #ffffff;
  881. border-radius: 24rpx 24rpx 0 0;
  882. }
  883. .remark-select .title {
  884. font-weight: 600;
  885. color: #191919;
  886. font-size: 30rpx;
  887. height: 90rpx;
  888. line-height: 90rpx;
  889. text-align: center;
  890. border-bottom: 2rpx solid #e0e0e0;
  891. }
  892. .remark-list {
  893. min-height: 340rpx;
  894. /* height: 340rpx;
  895. overflow-y: scroll; */
  896. }
  897. .remark-item .remark-value {
  898. color: #191919;
  899. font-size: 26rpx;
  900. font-weight: bold;
  901. flex: 1;
  902. text-align: left;
  903. }
  904. .remark-list .remark-item {
  905. height: 84rpx;
  906. display: flex;
  907. border-bottom: 2rpx solid #e0e0e0;
  908. align-items: center;
  909. }
  910. .remark-item .radio-img {
  911. width: 26rpx;
  912. height: 26rpx;
  913. }
  914. .remark-conf-btn {
  915. width: 652rpx;
  916. height: 90rpx;
  917. line-height: 90rpx;
  918. border-radius: 90rpx;
  919. border: 4rpx solid #ff8219;
  920. text-align: center;
  921. font-size: 36rpx;
  922. color: #ff8219;
  923. margin: 0 auto;
  924. margin-top: 54rpx;
  925. }
  926. /* 退款弹框 */
  927. .refund-order-overlay {
  928. width: 750rpx;
  929. height: 100vh;
  930. background: rgba(0, 0, 0, 0.5);
  931. display: flex;
  932. align-items: center;
  933. justify-content: center;
  934. position: fixed;
  935. top: 0;
  936. bottom: 0;
  937. z-index:999;
  938. left:0;
  939. }
  940. .refund-order-dialog {
  941. width: 606rpx;
  942. /* height: 644rpx; */
  943. border-radius: 14rpx;
  944. background: #ffffff;
  945. border-radius: 20rpx;
  946. position: relative;
  947. padding: 270rpx 30rpx 40rpx;
  948. background: url('https://jzmall.lifejingzhi.com/file/jzmall-dy/dia-bg-fefund-alert.png') no-repeat;
  949. background-color: #FFFFFF;
  950. background-size: 606rpx 210rpx;
  951. }
  952. .refund-order-dialog.refund-order-dia-success{
  953. background-image: url('https://jzmall.lifejingzhi.com/file/jzmall-dy/dia-bg-refund-success.png')
  954. }
  955. .refund-order-dialog.refund-order-dia-fail{
  956. background-image: url('https://jzmall.lifejingzhi.com/file/jzmall-dy/dia-bg-refund-fail.png')
  957. }
  958. .refund-dia-title {
  959. height: 56rpx;
  960. font-weight: bold;
  961. font-size: 40rpx;
  962. color: rgba(0,0,0,0.85);
  963. line-height: 56rpx;
  964. text-align: center;
  965. margin:0rpx 0 34rpx;
  966. }
  967. .refund-dia-tips {
  968. width: 540rpx;
  969. color: #333333;
  970. line-height: 46rpx;
  971. font-size: 32rpx;
  972. color: rgba(0,0,0,0.85);
  973. text-align: center;
  974. white-space: wrap;
  975. margin-bottom: 60rpx;
  976. font-weight: bold;
  977. }
  978. .dia-btn-wrapper {
  979. height:94rpx;
  980. display: flex;
  981. justify-content: space-between;
  982. }
  983. .refund-order-dia-success .dia-btn-wrapper{
  984. justify-content: center;
  985. }
  986. .dia-cancel-btn{
  987. width: 248rpx;
  988. height: 94rpx;
  989. line-height: 94rpx;
  990. border-radius: 94rpx;
  991. border: 2rpx solid #FA6400;
  992. font-size: 32rpx;
  993. color: #FA6400;
  994. /* font-weight: bold; */
  995. text-align: center;
  996. }
  997. .refund-order-dia-success .dia-cancel-btn{
  998. width:494rpx;
  999. font-weight: bold;
  1000. border: 2rpx solid #0093FF;
  1001. color: #0093FF;
  1002. }
  1003. .refund-order-dia-fail .dia-cancel-btn{
  1004. border: 2rpx solid #E02020;
  1005. color: #E02020;
  1006. }
  1007. .refund-order-dia-fail .dia-conf-btn{
  1008. background: #E02020;
  1009. }
  1010. .dia-conf-btn{
  1011. width: 258rpx;
  1012. height: 94rpx;
  1013. line-height: 94rpx;
  1014. border-radius: 94rpx;
  1015. font-size: 32rpx;
  1016. color: #fff;
  1017. font-weight: bold;
  1018. background: #FA6400;
  1019. text-align: center;
  1020. }
  1021. </style>