applyRefund.vue 27 KB

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