bztang-admin/addons/yun_shop/static/app/js/chunk-53c8a4a2.eeb167ce.js

1 line
11 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53c8a4a2"],{"18e9":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"refund"}},[a("c-title",{attrs:{hide:!1,text:"归还商品"}}),2==e.order_status?a("div",{staticClass:"status-1"},[a("ul",{staticClass:"money"},[a("li",[a("span",{staticClass:"left"},[e._v("押金预计退还金额")]),a("span",[e._v(e._s(e.$i18n.t("money"))+e._s(e.refundMoney))])])]),a("p",{staticClass:"prompt"},[e._v("提示:最终退款金额已商品退还确认后为准")]),a("p",{staticClass:"refund-add"},[e._v("退还地址:请务必按照选择的地址退回商品")]),a("div",{staticClass:"add-box"},[a("van-radio-group",{on:{change:e.chooseAddress},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},e._l(e.address,(function(t,s){return a("div",{key:s,staticClass:"addr"},[a("div",{staticStyle:{width:"100%","font-size":"14px"}},[a("p",[a("i",{staticClass:"fa fa-map-marker",staticStyle:{"margin-right":"0.3125rem"}}),e._v("收件人:"+e._s(t.contact_name)+" "+e._s(t.mobile)+" ")]),a("div",{staticStyle:{float:"right"}},[a("van-radio",{attrs:{name:t}},[e._v(" ")])],1),a("p"),a("br"),a("p",[e._v(e._s(t.address))])])])})),0)],1),a("div",{staticClass:"express-member"},[a("span",[e._v("退还快递:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.express,expression:"express"}],attrs:{type:"text",readonly:"",placeholder:"请选择退还快递"},domProps:{value:e.express},on:{click:e.expressShow,input:function(t){t.target.composing||(e.express=t.target.value)}}})]),a("div",{staticClass:"express-member"},[a("span",[e._v("快递单号:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.expressSN,expression:"expressSN"}],attrs:{type:"text",placeholder:"请输入您的快递单号"},domProps:{value:e.expressSN},on:{input:function(t){t.target.composing||(e.expressSN=t.target.value)}}})]),a("div",{staticClass:"submit"},[a("input",{attrs:{type:"button",name:"button",id:"button",value:"提交归还"},on:{click:e.submit}})])]):e._e(),a("van-popup",{staticStyle:{width:"100%",height:"18.75rem"},attrs:{position:"bottom"},model:{value:e.popupVisible,callback:function(t){e.popupVisible=t},expression:"popupVisible"}},[a("div",{staticStyle:{height:"2.5rem","line-height":"2.5rem",background:"#fff",color:"#000","border-bottom":"0.0625rem solid #ebebeb"}},[e._v("选择快递")]),a("div",{staticStyle:{width:"100%",height:"18.75rem",overflow:"scroll"}},e._l(e.options,(function(t,s){return a("div",{key:s,staticStyle:{height:"2.5rem","line-height":"2.5rem","border-bottom":"0.0625rem solid #ebebeb"},on:{click:function(a){return e.expressChoose(t)}}},[e._v(" "+e._s(t.name)+" ")])})),0)])],1)},i=[],r=(a("d3b7"),a("159b"),a("b0c0"),a("6968")),n={data:function(){return{refundMoney:"",address:[],checked:{},options:[],express:"",expressCode:"",expressSN:"",popupVisible:!1,orderId:"",id:"",order_status:0,check_status:""}},activated:function(){this.applyData()},mounted:function(){},methods:{applyData:function(){var e=this;$http.get("plugin.lease-toy.api.retreat.return.index",{order_id:this.$route.params.id},"申请中...").then((function(t){if(1==t.result){var a=t.data.lease_order;e.refundMoney=a.deposit_total,e.orderId=a.order_id,e.id=a.id,e.order_status=a.return_status,e.check_status=a.return_name,e.fun.isTextEmpty(t.data.return_address)?(e.$dialog.alert({message:"请填写退还地址"}),e.$router.go(-1)):(e.address=t.data.return_address,e.address.forEach((function(t){1==t.is_default&&(e.checked=t)}))),e.options=t.data.express_companies}else e.$dialog.alert({message:t.msg})})).catch((function(e){}))},getAddress:function(){$http.get("plugin.lease-toy.api.return-address.index",{}).then((function(e){e.result})).catch((function(e){}))},chooseAddress:function(){},expressShow:function(){this.popupVisible=!0},expressChoose:function(e){this.initExpress(),this.express=e.name,this.expressCode=e.value,this.popupVisible=!1},initExpress:function(){this.express="",this.expressCode=""},getExpress:function(){var e=this;$http.get("dispatch.express-list",{}).then((function(t){1==t.result&&(e.options=t.data.express_companies)})).catch((function(e){}))},submit:function(){var e=this;if(this.fun.isTextEmpty(this.checked.address))this.$dialog.alert({message:"请选择归还地址"});else if(this.fun.isTextEmpty(this.express))this.$dialog.alert({message:"请选择退还快递"});else if(this.fun.isTextEmpty(this.expressCode))this.$dialog.alert({message:"快递code不能为空"});else if(this.fun.isTextEmpty(this.expressSN))this.$dialog.alert({message:"快递编号不能为空"});else{var t={order_id:this.orderId,lease_id:this.id,express_code:this.expressCode,express_company_name:this.express,express_sn:this.expressSN,address:this.checked.address,mobile:this.checked.mobile,realname:this.checked.contact_name};$http.get("plugin.lease-toy.api.retreat.return.submit-return",t,"提交中...").then((function(t){1==t.result?(e.$dialog.alert({message:"提交成功"}),e.$router.go(-1)):(e.$dialog.alert({message:"提交失败"}),e.$router.go(-1))})).catch((function(e){}))}}},components:{cTitle:r["a"]}},d=n,o=d,f=(a("3777"),a("2877")),l=Object(f["a"])(o,s,i,!1,null,"6bffe24b",null);t["default"]=l.exports},3777:function(e,t,a){"use strict";a("541b")},"541b":function(e,t,a){var s=a("e93b4");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var i=a("499e").default;i("34829754",s,!0,{sourceMap:!1,shadowMode:!1})},e93b4:function(e,t,a){var s=a("24fb");t=s(!1),t.push([e.i,"#refund .status-1[data-v-6bffe24b]{padding:0 .875rem 2.8125rem .875rem;background-color:#fff}#refund .money li[data-v-6bffe24b]{line-height:1.625rem}#refund .prompt[data-v-6bffe24b]{color:#f15353}#refund .prompt[data-v-6bffe24b],#refund .refund-add[data-v-6bffe24b]{line-height:1.5rem;margin-bottom:.625rem}#refund .refund-add[data-v-6bffe24b]{text-align:left;font-size:14px}#refund .add-box[data-v-6bffe24b]{margin-bottom:1.25rem}#refund .add-box .addr[data-v-6bffe24b]{border-top:.0625rem solid #ebebeb;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fff;padding:1rem 0}#refund .add-box .addr[data-v-6bffe24b],#refund .add-box .addr .icon[data-v-6bffe24b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#refund .add-box .addr .icon[data-v-6bffe24b]{font-size:.875rem}#refund .add-box .addr .icon i[data-v-6bffe24b]{line-height:1.5rem;margin-right:.625rem}#refund .add-box .addr i[data-v-6bffe24b]{font-size:16px;color:#333}#refund .add-box .addr .fa-angle-right[data-v-6bffe24b]{font-size:24px;color:#c9c9c9}#refund .add-box .addr p[data-v-6bffe24b]{-webkit-box-flex:6;-webkit-flex:6;-ms-flex:6;flex:6;text-align:justify;font-weight:700;line-height:1.5rem;padding-right:1rem;color:#333}#refund .add-box .addr p span[data-v-6bffe24b]{font-size:14px;font-weight:400;color:#666}#refund .refund-express[data-v-6bffe24b]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:left;font-size:14px}#refund .refund-express span[data-v-6bffe24b]{width:21%;line-height:1.625rem}#refund .refund-express select[data-v-6bffe24b]{width:79%;border:.0625rem solid #ebebeb;background-color:#fff;height:1.625rem;border-radius:.1875rem;padding:0 .25rem;color:#8c8c8c}#refund .express-member[data-v-6bffe24b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:left;font-size:14px;margin-top:1.25rem}#refund .express-member span[data-v-6bffe24b]{line-height:1.625rem;width:21%}#refund .express-member input[data-v-6bffe24b]{background-color:#fff;border:.0625rem solid #ebebeb;width:79%;height:1.625rem;border-radius:.1875rem;padding:0 .25rem}#refund .remarks[data-v-6bffe24b]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:left;font-size:14px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:1.25rem}#refund .remarks span[data-v-6bffe24b]{margin-right:.625rem}#refund .remarks textarea[data-v-6bffe24b]{width:79%;background-color:#fafafa;border:.0625rem solid #ebebeb;border-radius:.25rem;padding:.25rem;height:4.25rem}#refund .submit[data-v-6bffe24b]{margin-top:1.25rem}#refund .submit input[data-v-6bffe24b]{width:60%;height:2rem;color:#fff;background-color:#f15353;border:none;border-radius:.25rem;font-size:14px}#refund .my_wrapper[data-v-6bffe24b]{background:#fff;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.625rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#refund .my_wrapper span[data-v-6bffe24b]{width:6.5625rem;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;font-size:16px;line-height:1}#refund .my_wrapper .my-value[data-v-6bffe24b]{-webkit-box-flex:2;-webkit-flex:2;-ms-flex:2;flex:2;text-align:left}#refund .my_wrapper .my-value span[data-v-6bffe24b]{color:red}#refund .el-radio-group[data-v-6bffe24b]{display:block}#refund #state[data-v-6bffe24b]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background-color:#f15353;color:#fff;padding:0 .875rem;height:3.75rem;text-align:left}#refund #state span[data-v-6bffe24b]{font-size:16px;font-weight:700;line-height:3.75rem}#refund .return-money[data-v-6bffe24b]{background-color:#fff;padding:0 .875rem}#refund .money[data-v-6bffe24b]{padding:.625rem 0;border-bottom:.0625rem solid #ebebeb}#refund .money li[data-v-6bffe24b]{line-height:1.875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:14px}#refund .money .right[data-v-6bffe24b]{color:#f15353}#refund .prompt[data-v-6bffe24b]{color:#8c8c8c;text-align:left;line-height:2.25rem}#refund .van-nav-bar[data-v-6bffe24b],#refund[data-v-6bffe24b] .van-nav-bar__content{height:40px}#refund[data-v-6bffe24b] .van-nav-bar__title{font-weight:700;font-size:14px;color:#666}#refund[data-v-6bffe24b] .van-nav-bar .van-icon{color:#666}#refund[data-v-6bffe24b] .van-nav-bar__left{padding:0 0 0 10px}#refund .pcStyle[data-v-6bffe24b]{width:375px;margin:0 auto;left:50%;margin-left:-187.5px}",""]),e.exports=t}}]);