You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
10 KiB
1 lines
10 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-refund-detail"],{"04b5":function(e,t,i){"use strict";i.r(t);var n=i("366d"),a=i("c622");for(var s in a)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(s);i("0d8e");var l=i("f0c5"),r=Object(l["a"])(a["default"],n["b"],n["c"],!1,null,"6d21013a",null,!1,n["a"],void 0);t["default"]=r.exports},"0a19":function(e,t,i){var n=i("d8f3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("2061a6a6",n,!0,{sourceMap:!1,shadowMode:!1})},"0d8e":function(e,t,i){"use strict";var n=i("0a19"),a=i.n(n);a.a},"22a1":function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("c7eb")),s=n(i("1da1")),l=n(i("5530")),r=i("26cb"),o={components:{},data:function(){return{options:{},statusType:{1:"退款中",2:"退款成功",3:"退款失败"},detail:{},popupInfo:{}}},computed:(0,r.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},userInfo:function(e){return e.user.userInfo}}),onLoad:function(e){this.options=e,this.initIndex()},methods:(0,l.default)((0,l.default)({},(0,r.mapMutations)([""])),{},{initIndex:function(){var e=arguments,t=this;return(0,s.default)((0,a.default)().mark((function i(){var n,s;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.length>0&&void 0!==e[0]&&e[0],n||!t.$jweixin.isWechat()){i.next=5;break}return i.next=4,t.$jweixin.initJssdk();case 4:t.$jweixin.wxReady((function(){t.$jweixin.hideOptionMenu()}));case 5:return s=t.options.id,i.next=8,t.$api.order.refundOrderInfo({id:s});case 8:t.detail=i.sent,t.$util.setNavigationBarColor({bg:t.primaryColor});case 10:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.initIndex(!0)},toCancel:function(){var e=this;return(0,s.default)((0,a.default)().mark((function t(){var i,n,s,l;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:i=e.detail,n=i.order_code,s=i.order_goods,l=s[0].goods_cover,e.popupInfo={name:"退款单号:".concat(n),image:l},e.$refs.cancel_item.open();case 4:case"end":return t.stop()}}),t)})))()},confirmCancel:function(){var e=this;return(0,s.default)((0,a.default)().mark((function t(){var i;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e.detail.id,!e.lockTap){t.next=3;break}return t.abrupt("return");case 3:return e.lockTap=!0,e.$util.showLoading(),t.prev=5,t.next=8,e.$api.order.cancelRefundOrder({id:i});case 8:e.$util.hideAll(),e.$util.showToast({title:"取消成功"}),e.lockTap=!1,e.$refs.cancel_item.close(),setTimeout((function(){e.$util.back(),e.$util.goUrl({url:1,openType:"navigateBack"})}),1e3),t.next=18;break;case 15:t.prev=15,t.t0=t["catch"](5),setTimeout((function(){e.lockTap=!1,e.$util.hideAll()}),2e3);case 18:case"end":return t.stop()}}),t,null,[[5,15]])})))()},toTel:function(){var e=this.configInfo.mobile;this.$util.goUrl({url:e,openType:"call"})},previewImage:function(e,t){this.$util.previewImage({current:e,urls:t})}})};t.default=o},"366d":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.detail.id?i("v-uni-view",{staticClass:"order-pages"},[i("v-uni-view",{staticClass:"item-child mt-md ml-lg mr-lg pd-lg fill-base f-paragraph c-base radius-16",style:{background:e.primaryColor}},[i("v-uni-view",{staticClass:"flex-y-baseline text-bold"},[e._v(e._s(e.statusType[e.detail.status])),2==e.detail.status?i("v-uni-view",{staticClass:"f-caption text-normal ml-md"},[e._v("退款金额¥"+e._s(e.detail.refund_price))]):e._e()],1)],1),i("v-uni-view",{staticClass:"address-info flex-warp mt-lg ml-lg mr-lg pd-lg fill-base radius-16"},[i("v-uni-view",{staticClass:"address-icon flex-center c-base radius",style:{background:"linear-gradient(to right, "+e.subColor+", "+e.primaryColor+")"}},[i("i",{staticClass:"iconfont iconjuli"})]),i("v-uni-view",{staticClass:"flex-1 flex-between ml-md"},[i("v-uni-view",{staticClass:"max-540"},[i("v-uni-view",{staticClass:"flex-y-baseline username c-title text-bold"},[e._v(e._s(e.detail.address_info.user_name)),i("v-uni-view",{staticClass:"ml-md f-desc c-caption"},[e._v(e._s(e.detail.address_info.mobile))])],1),i("v-uni-view",{staticClass:"f-desc c-title"},[e._v(e._s(e.detail.address_info.address+" "+e.detail.address_info.address_info))])],1)],1)],1),i("v-uni-view",{staticClass:"item-child mt-md ml-lg mr-lg pd-lg fill-base radius-16"},[e._l(e.detail.order_goods,(function(t,n){return i("v-uni-view",{key:n,staticClass:"flex-center mb-lg"},[i("v-uni-image",{staticClass:"avatar lg radius-16",attrs:{mode:"aspectFill",src:t.goods_cover}}),i("v-uni-view",{staticClass:"flex-1 ml-md"},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"goods-title f-title c-title ellipsis",class:[{"max-300":t.refund_num>0}]},[e._v(e._s(t.goods_name))]),t.refund_num>0?i("v-uni-view",{staticClass:"f-caption c-warning"},[e._v("已退x"+e._s(t.refund_num))]):e._e()],1),i("v-uni-view",{staticClass:"f-caption c-caption mt-sm"},[e._v("服务技师:"+e._s(e.detail.coach_info.coach_name))]),i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"flex-y-baseline f-caption c-warning"},[e._v("¥"),i("v-uni-view",{staticClass:"f-title text-bold"},[e._v(e._s(t.goods_price))])],1),i("v-uni-view",{staticClass:"c-paragraph"},[e._v("x"+e._s(t.num))])],1)],1)],1)})),i("v-uni-view",{staticClass:"flex-between"},[i("veiw",{staticClass:"flex-1"}),i("v-uni-view",{staticClass:"flex-y-center f-desc c-title text-bold"},[e._v("共"),i("v-uni-view",{staticClass:"c-warning"},[e._v(e._s(e.detail.all_goods_num))]),e._v("件\n\t\t\t\t合计:"),i("v-uni-view",{staticClass:"f-icontext"},[e._v("¥")]),e._v(e._s(e.detail.apply_price))],1)],1),2!=e.detail.status?i("v-uni-view",{staticClass:"flex-between mt-lg"},[i("v-uni-view",{staticClass:"flex-1"}),3==e.detail.status?i("v-uni-button",{staticClass:"clear-btn order",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toTel.apply(void 0,arguments)}}},[e._v("联系平台")]):e._e(),1==e.detail.status?i("v-uni-button",{staticClass:"clear-btn order",style:{color:"#fff",background:e.primaryColor},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toCancel.apply(void 0,arguments)}}},[e._v("取消退款")]):e._e()],1):e._e()],2),i("v-uni-view",{staticClass:"item-child mt-md ml-lg mr-lg pd-lg fill-base radius-16"},[i("v-uni-view",{staticClass:"flex-between pb-lg f-title c-title text-bold b-1px-b"},[e._v("退款信息")]),i("v-uni-view",{staticClass:"pt-lg f-desc"},[i("v-uni-view",{staticClass:"flex-between mb-md"},[i("v-uni-view",[e._v("退款单号")]),i("v-uni-view",{staticClass:"c-caption flex-y-center ml-md"},[i("v-uni-view",{staticClass:"max-400 ellipsis"},[e._v(e._s(e.detail.order_code))]),i("v-uni-view",{staticClass:"copy-btn radius-5 f-icontext ml-sm",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$util.goUrl({url:""+e.detail.order_code,openType:"copy"})}}},[e._v("复制")])],1)],1),e.detail.out_refund_no?i("v-uni-view",{staticClass:"flex-between mb-md"},[i("v-uni-view",[e._v("微信退款单号")]),i("v-uni-view",{staticClass:"c-caption flex-y-center ml-md"},[i("v-uni-view",[e._v(e._s(e.detail.out_refund_no))]),i("v-uni-view",{staticClass:"copy-btn radius-5 f-icontext ml-sm",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.$util.goUrl({url:""+e.detail.out_refund_no,openType:"copy"})}}},[e._v("复制")])],1)],1):e._e(),i("v-uni-view",{staticClass:"flex-warp mb-md"},[i("v-uni-view",[e._v("提交日期")]),i("v-uni-view",{staticClass:"c-caption text-right flex-1 ml-md"},[e._v(e._s(e.detail.create_time))])],1),1!=e.detail.status?i("v-uni-view",{staticClass:"flex-warp mb-md"},[i("v-uni-view",[e._v("审核日期")]),i("v-uni-view",{staticClass:"c-caption text-right flex-1 ml-md"},[e._v(e._s(e.detail.refund_time))])],1):e._e(),i("v-uni-view",{staticClass:"flex-column mb-md"},[i("v-uni-view",[e._v("退款原因")]),i("v-uni-view",{staticClass:"c-caption mt-sm"},[e._v(e._s(e.detail.text))])],1),e.detail.imgs&&e.detail.imgs.length>0?i("v-uni-view",{staticClass:"flex-column"},[i("v-uni-view",[e._v("上传图片")]),i("v-uni-view",{staticClass:"flex-warp"},[e._l(e.detail.imgs,(function(t,n){return[i("v-uni-image",{key:n+"_0",staticClass:"refund-img mt-md mr-md radius-10",attrs:{src:t},on:{click:function(i){if(!i.type.indexOf("key")&&e._k(i.keyCode,"top",void 0,i.key,void 0))return null;arguments[0]=i=e.$handleEvent(i),e.previewImage(t,e.detail.imgs)}}})]}))],2)],1):e._e()],1)],1),i("v-uni-view",{staticClass:"space-footer"}),i("common-popup",{ref:"cancel_item",attrs:{type:"CANCEL_REFUND_ORDER",info:e.popupInfo},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmCancel.apply(void 0,arguments)}}})],1):e._e()},a=[]},c622:function(e,t,i){"use strict";i.r(t);var n=i("22a1"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(s);t["default"]=a.a},d8f3:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-button.order[data-v-6d21013a]{border-radius:%?30?%}',""]),e.exports=t}}]); |