order-page-takeout-order-refund-index.2f27bba4.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order-page-takeout-order-refund-index"],{1046:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.shangpu-shadow[data-v-5cbaf904]{border-radius:%?15?%;box-shadow:%?0?% %?0?% %?50?% %?0?% rgba(0,0,0,.07)}.shangpu-shadow .peusongfuwu[data-v-5cbaf904]{background-color:#f32e42;line-height:%?50?%;border-radius:%?20?% 0 %?20?% 0;height:%?50?%;margin-top:%?25?%;color:#fff;padding:0 %?10?% 0 %?10?%}',""]),t.exports=e},"2d2d":function(t,e,n){"use strict";n.r(e);var i=n("b2ef"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"417d":function(t,e,n){"use strict";n.r(e);var i=n("4ed1"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"4ed1":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("d240"),a={data:function(){return{id:0,type:"once",reasons:[],reasonSelect:"",reasonsInit:[],resInitSel:"",orderInfo:{}}},onLoad:function(t){t.id&&(this.id=t.id),t.type&&(this.type=t.type),t.id||(uni.showToast({title:"参数错误",icon:"none"}),setTimeout((function(){uni.navigateBack()}),1500))},onShow:function(t){this.getOrderInfo(),this.getRefundReason()},methods:{getOrderInfo:function(){var t=this;(0,i.getTakeoutOrderDetailApi)({id:this.id,type:this.type}).then((function(e){console.log("res",e),t.orderInfo=e}))},getRefundReason:function(){var t=this;(0,i.getRefundReasonApi)().then((function(e){console.log("res",e),t.reasons=e}))},onSelectCategory:function(t){console.log("event",t),this.reasonSelect=this.reasons[t.detail.value].title},onSubmit:function(){this.reasonSelect?(0,i.applyRefundApi)({id:this.id,type:this.type,reason:this.reasonSelect}).then((function(t){console.log("res",t),uni.showToast({title:"申请成功",icon:"none"}),setTimeout((function(){uni.navigateBack()}),1500)})).catch((function(t){console.log("err",t),uni.showToast({title:t.msg,icon:"none"})})):uni.showToast({title:"请选择退款原因",icon:"none"})}}};e.default=a},5181:function(t,e,n){"use strict";var i=n("72eba"),a=n.n(i);a.a},"6b08":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={tnNavBar:n("a305").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("tn-nav-bar",{attrs:{fixed:!0}},[t._v("部分退款")]),n("v-uni-view",{staticStyle:{"margin-top":"155rpx"}}),n("v-uni-view",{staticClass:"shangpu-shadow tn-margin-sm"},[n("v-uni-view",{staticClass:"tn-padding-sm tn-flex tn-flex-col-center"},[n("v-uni-view",{staticClass:"tn-flex-1"},[t._v("退款原因")]),n("v-uni-picker",{attrs:{"range-key":"title",value:"index",range:t.reasons},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.onSelectCategory.apply(void 0,arguments)}}},[t._v(t._s(t.reasonSelect?t.reasonSelect:"请选择"))]),n("v-uni-view",{staticClass:"tn-icon-right tn-margin-left-xs",staticStyle:{color:"#999999"}})],1)],1),n("v-uni-view",{staticClass:"shangpu-shadow tn-margin-sm"},[n("v-uni-view",{staticClass:"tn-padding-sm"},[n("v-uni-view",{staticClass:"tn-flex"},[n("v-uni-image",{staticStyle:{width:"100rpx",height:"100rpx"},attrs:{src:t.orderInfo.store.logo}}),n("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{"line-height":"100rpx","margin-left":"20rpx"}},[t._v(t._s(t.orderInfo.store.title))]),n("v-uni-view",{staticClass:"peusongfuwu"},[t._v(t._s(t.orderInfo.store.delivery_title))])],1)],1),n("v-uni-view",{staticClass:"tn-padding-sm tn-border-solid-bottom"},t._l(t.orderInfo.goods,(function(e,i){return n("v-uni-view",{staticClass:"tn-flex tn-padding-top-sm"},[n("v-uni-image",{staticStyle:{width:"100rpx",height:"100rpx"},attrs:{src:e.thumb}}),n("v-uni-view",{staticClass:"tn-margin-left-sm"},[n("v-uni-view",[t._v(t._s(e.goods_title))]),n("v-uni-view",{staticClass:"tn-flex tn-margin-top"},[n("v-uni-view",{staticClass:"tn-flex-1"},[t._v("x"+t._s(e.goods_num))])],1)],1)],1)})),1),n("v-uni-view",{staticClass:"tn-padding-sm tn-margin-top-sm"},[t.orderInfo.order.extra_fee?n("v-uni-view",{staticClass:"tn-flex tn-margin-top"},[n("v-uni-view",{staticClass:"tn-flex-1"},[t._v("平台服务费")]),n("v-uni-view",[n("v-uni-view",{staticClass:"tn-flex"},[n("v-uni-view",{staticClass:"tn-flex-1"}),n("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(t.orderInfo.order.extra_fee))])],1)],1)],1):t._e(),t.orderInfo.order.store_extra_fee?n("v-uni-view",{staticClass:"tn-flex tn-margin-top"},[n("v-uni-view",{staticClass:"tn-flex-1"},[t._v("商户服务费")]),n("v-uni-view",[n("v-uni-view",{staticClass:"tn-flex"},[n("v-uni-view",{staticClass:"tn-flex-1"}),n("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(t.orderInfo.order.store_extra_fee))])],1)],1)],1):t._e(),n("v-uni-view",{staticClass:"tn-flex tn-margin-top"},[n("v-uni-view",{staticClass:"tn-flex-1"},[t._v("商品总价")]),n("v-uni-view",[n("v-uni-view",{staticClass:"tn-flex"},[n("v-uni-view",{staticClass:"tn-flex-1"}),n("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(t.orderInfo.order.price))])],1)],1)],1),t.orderInfo.order.boxPrice?n("v-uni-view",{staticClass:"tn-flex tn-margin-top"},[n("v-uni-view",{staticClass:"tn-flex-1"},[t._v("餐盒费")]),n("v-uni-view",[n("v-uni-view",{staticClass:"tn-flex"},[n("v-uni-view",{staticClass:"tn-flex-1"}),n("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(t.orderInfo.order.boxPrice))])],1)],1)],1):t._e(),t.orderInfo.order.packing_price?n("v-uni-view",{staticClass:"tn-flex tn-margin-top"},[n("v-uni-view",{staticClass:"tn-flex-1"},[t._v("打包费")]),n("v-uni-view",[n("v-uni-view",{staticClass:"tn-flex"},[n("v-uni-view",{staticClass:"tn-flex-1"}),n("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(t.orderInfo.order.packing_price))])],1)],1)],1):t._e(),t.orderInfo.order.delivery_fee?n("v-uni-view",{staticClass:"tn-flex tn-margin-top"},[n("v-uni-view",{staticClass:"tn-flex-1"},[t._v("配送费")]),n("v-uni-view",[n("v-uni-view",{staticClass:"tn-flex"},[n("v-uni-view",{staticClass:"tn-flex-1"}),n("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(t.orderInfo.order.delivery_fee))])],1)],1)],1):t._e(),t.orderInfo.order.pack_fee?n("v-uni-view",{staticClass:"tn-flex tn-margin-top"},[n("v-uni-view",{staticClass:"tn-flex-1"},[t._v(t._s(t.orderInfo.store.cn.pack_fee))]),n("v-uni-view",[n("v-uni-view",{staticClass:"tn-flex"},[n("v-uni-view",{staticClass:"tn-flex-1"}),n("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(t.orderInfo.order.pack_fee))])],1)],1)],1):t._e(),n("v-uni-view",{staticClass:"tn-flex tn-margin-top"},[n("v-uni-view",[t._v("退款金额")]),n("v-uni-view",{staticClass:"tn-flex-1"},[t._v("(包含餐盒费)")]),n("v-uni-view",{staticStyle:{color:"#ff2c4c"}},[t._v(t._s(t.CurrencyUnit)+t._s(t.orderInfo.order.final_fee))])],1)],1)],1),n("v-uni-view",{staticClass:"tn-margin-sm"},[n("v-uni-view",{staticClass:"shangpu-shadow tn-margin-top-sm tn-padding-sm"},[n("v-uni-view",[t._v("退款计算方式")]),n("v-uni-view",{staticClass:"tn-margin-top-sm",staticStyle:{color:"#999999"}},[t._v("备注:单独商品的退款金额是在刨除配送费后按照优惠活动等比例计算得出:")]),n("v-uni-view",{staticClass:"tn-margin-top-sm",staticStyle:{color:"#ff2c4c"}},[t._v("退款金额=[(退款菜品现价+餐盒费)/(全部菜品现价总和+餐盒费)]x(最终支付价格-配送费-附加费)")])],1)],1),n("v-uni-view",{staticClass:"tn-padding tn-margin tn-text-center",staticStyle:{color:"white","background-color":"#33aafc","border-radius":"15rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSubmit.apply(void 0,arguments)}}},[t._v("申请退款"+t._s(t.refund_data.refund_total_fee>0?""+t.CurrencyUnit+t.refund_data.refund_total_fee:""))])],1)},r=[]},7207:function(t,e,n){"use strict";n.r(e);var i=n("6b08"),a=n("417d");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("5181");var s=n("828b"),o=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"5cbaf904",null,!1,i["a"],void 0);e["default"]=o.exports},"72eba":function(t,e,n){var i=n("1046");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("36471f06",i,!0,{sourceMap:!1,shadowMode:!1})},"74ff":function(t,e,n){n("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$tn.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$tn.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$tn.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$tn.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$tn.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},"84b2":function(t,e,n){"use strict";var i=n("c94c"),a=n.n(i);a.a},"862f":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"tn-custom-nav-bar-class tn-custom-nav-bar",style:[t.navBarStyle]},[n("v-uni-view",{staticClass:"tn-custom-nav-bar__bar",class:[t.barClass],style:[t.barStyle]},[t.isBack?n("v-uni-view",[t.customBack?n("v-uni-view",[n("v-uni-view",{style:{width:t.customBackStyleInfo.width+"px",height:t.customBackStyleInfo.height+"px",marginLeft:t.customBackStyleInfo.left+"px"}},[t._t("back")],2)],1):n("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handlerBack.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back",class:["tn-icon-"+t.backIcon]}),t.backTitle?n("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back-text"},[t._v(t._s(t.backTitle))]):t._e()],1)],1):t._e(),n("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__content",style:[t.contentStyle]},[t._t("default")],2),n("v-uni-view",[t._t("right")],2)],1)],1)},a=[]},8721:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-custom-nav-bar[data-v-312b16c3]{display:block;position:relative}.tn-custom-nav-bar__bar[data-v-312b16c3]{display:flex;position:relative;align-items:center;min-height:%?100?%;justify-content:space-between;min-height:0;box-shadow:%?0?% %?0?% %?0?%;z-index:9999}.tn-custom-nav-bar__bar--fixed[data-v-312b16c3]{position:fixed;width:100%;top:0}.tn-custom-nav-bar__bar--alpha[data-v-312b16c3]{background:transparent!important;box-shadow:none!important}.tn-custom-nav-bar__bar--bottom-shadow[data-v-312b16c3]{box-shadow:%?0?% %?0?% %?80?% %?0?% rgba(0,0,0,.05)}.tn-custom-nav-bar__bar__action[data-v-312b16c3]{display:flex;align-items:center;height:100%;justify-content:center;max-width:100%}.tn-custom-nav-bar__bar__action--nav-back[data-v-312b16c3]{\n /* position: absolute; */\n /* top: 50%; */\n /* left: 20rpx; */\n /* margin-top: -15rpx; */margin-left:%?20?%;font-size:%?38?%;line-height:100%}.tn-custom-nav-bar__bar__action--nav-back-text[data-v-312b16c3]{margin-left:%?10?%}.tn-custom-nav-bar__bar__content[data-v-312b16c3]{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:auto;font-size:%?32?%;cursor:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}',""]),t.exports=e},a305:function(t,e,n){"use strict";n.r(e);var i=n("862f"),a=n("2d2d");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("84b2");var s=n("828b"),o=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"312b16c3",null,!1,i["a"],void 0);e["default"]=o.exports},b2ef:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("2634")),r=i(n("2fdc"));n("64aa");var s=i(n("74ff")),o={name:"tn-nav-bar",mixins:[s.default],props:{zIndex:{type:Number,default:0},height:{type:Number,default:0},unit:{type:String,default:"px"},isBack:{type:Boolean,default:!0},backIcon:{type:String,default:"left"},backTitle:{type:String,default:"返回"},alpha:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},bottomShadow:{type:Boolean,default:!0},customBack:{type:Boolean,default:!1},beforeBack:{type:Function,default:null}},computed:{navBarStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.position="fixed"),t.zIndex=this.elZIndex,t},barClass:function(){var t="";return this.backgroundColorClass&&(t+=" ".concat(this.backgroundColorClass)),this.fontColorClass&&(t+="".concat(this.fontColorClass)),this.fixed&&(t+=" tn-custom-nav-bar__bar--fixed"),this.alpha&&(t+=" tn-custom-nav-bar__bar--alpha"),this.bottomShadow&&(t+=" tn-custom-nav-bar__bar--bottom-shadow"),t},barStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.paddingTop=this.statusBarHeight+"px"),this.backgroundColorClass||(t.backgroundColor=""!==this.backgroundColor?this.backgroundColor:"#FFFFFF"),!this.fontColorClass&&this.fontColor&&(t.color=this.fontColor),t.zIndex=this.elZIndex,t},contentStyle:function(){var t={};if(t.top=this.fixed?this.statusBarHeight+"px":"0px",t.height=0===this.height?this.customBarHeight-this.statusBarHeight+this.unit:this.height+this.unit,t.lineHeight=t.height,this.isBack)if(this.customBack){var e=2*(this.customBackStyleInfo.width+this.customBackStyleInfo.left);t.width="calc(100% - ".concat(e,"px)")}else t.width="calc(100% - 340rpx)";else t.width="100%";return t},elZIndex:function(){return this.zIndex?this.zIndex:this.$tn.zIndex.navbar}},data:function(){return{statusBarHeight:0,customBarHeight:0,customBackStyleInfo:{width:86,height:32,left:15}}},mounted:function(){this.updateNavBarInfo()},created:function(){},methods:{updateNavBarInfo:function(){var t=this;return(0,r.default)((0,a.default)().mark((function e(){var n,i,r;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.vuex_custom_bar_height,i=t.vuex_status_bar_height,n){e.next=15;break}return e.prev=3,e.next=6,t.$tn.updateCustomBar();case 6:r=e.sent,n=r.customBarHeight,i=r.statusBarHeight,e.next=15;break;case 11:return e.prev=11,e.t0=e["catch"](3),setTimeout((function(){t.updateNavBarInfo()}),10),e.abrupt("return");case 15:t&&t.$tn.vuex("vuex_status_bar_height",i),t&&t.$tn.vuex("vuex_custom_bar_height",n),t.customBarHeight=n,t.statusBarHeight=i;case 19:case"end":return e.stop()}}),e,null,[[3,11]])})))()},handlerBack:function(){var t=this;return(0,r.default)((0,a.default)().mark((function e(){var n;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.beforeBack||"function"!==typeof t.beforeBack){e.next=10;break}if(n=t.beforeBack.bind(t.$tn.$parent.call(t))(),!n||"function"!==typeof n.then){e.next=7;break}return e.next=5,n.then((function(e){t.navBack()})).catch((function(t){}));case 5:e.next=8;break;case 7:!0===n&&t.navBack();case 8:e.next=11;break;case 10:t.navBack();case 11:case"end":return e.stop()}}),e)})))()},navBack:function(){var t=getCurrentPages();if(t&&t.length>0){var e=t[0];1!=t.length||e.route&&"pages/index/index"==e.route?uni.navigateBack({delta:1}):uni.reLaunch({url:"/pages/index/index"})}else uni.reLaunch({url:"/pages/index/index"})}}};e.default=o},c94c:function(t,e,n){var i=n("8721");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("41c5c44b",i,!0,{sourceMap:!1,shadowMode:!1})},d240:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.searchExpressApi=e.orderStatusListApi=e.orderNoticeApi=e.getVisaOrderListApi=e.getVisaOrderDetailApi=e.getTakeoutOrderListApi=e.getTakeoutOrderDetailApi=e.getSpecialDeliveryStatusApi=e.getRefundReasonApi=e.getPaybillOrderListApi=e.getPaybillOrderDetailApi=e.getOrderwuliuApi=e.getOrderMapPathApi=e.getOrderIdByOutTradeNoApi=e.getErranderOrderListApi=e.getErranderOrderDetailApi=e.getChannelApi=e.getAllOrderListApi=e.getAirportPickupDetail=e.cancelOrderApi=e.applyRefundApi=void 0;var a=i(n("7653"));e.getTakeoutOrderListApi=function(t){var e=t.page,n=t.psize,i=t.status_index;return a.default.get("api/user.order.order/list",{page:e,psize:n,status_index:i})};e.getAllOrderListApi=function(){return a.default.get("api/user.order.order/allOrderList")};e.getTakeoutOrderDetailApi=function(t){var e=t.id,n=t.type;return a.default.get("api/user.order.order/detail",{id:e,type:n})};e.getErranderOrderListApi=function(t){var e=t.page,n=t.psize;return a.default.get("api/user.order.errander.errander/viList",{page:e,psize:n})};e.getErranderOrderDetailApi=function(t){var e=t.id;return a.default.get("api/user.order.errander.errander/detail",{id:e})};e.getVisaOrderListApi=function(t){return a.default.post("api/user.visa.order/list",t)};e.getVisaOrderDetailApi=function(t){return a.default.post("api/user.visa.order/detail",t)};e.getAirportPickupDetail=function(t){return a.default.post("api/user.airportTransfer.order/detail",t)};e.getPaybillOrderListApi=function(t){var e=t.page,n=t.psize;return a.default.get("api/user.order.paybill/list",{page:e,psize:n})};e.getPaybillOrderDetailApi=function(t){var e=t.id;return a.default.get("api/user.order.paybill/detail",{id:e})};e.getOrderMapPathApi=function(t){return a.default.post("api/user.order.order/mapPath",t)};e.getSpecialDeliveryStatusApi=function(t){return a.default.post("api/user.order.order/getSpecialDeliveryStatus",t)};e.getOrderIdByOutTradeNoApi=function(t){return a.default.post("api/user.order.order/getOrderIdByOutTradeNo",t)};e.getOrderwuliuApi=function(t){return a.default.post("api/user.order.order/wuliu",t)};e.getChannelApi=function(t){return a.default.get("api/user.order.order/getChannel?id="+t)};e.getRefundReasonApi=function(){return a.default.get("api/user.order.order/getRefundReason")};e.applyRefundApi=function(t){return a.default.post("api/user.order.order/applyRefund",t)};e.cancelOrderApi=function(t){return a.default.post("api/user.order.order/cancel",t)};e.orderNoticeApi=function(t){return a.default.post("api/user.order.order/orderNotice",t)};e.orderStatusListApi=function(t){return a.default.get("api/user.order.order/orderStatusList?id="+t)};e.searchExpressApi=function(t){return a.default.post("api/user.order.order/searchExpress",t)}}}]);