杨总惠通宝
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.
htb_backend/public/static/js/pages-users-refund-goods-in...

1 line
17 KiB

9 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-refund-goods-index"],{"1dcb":function(e,t,r){"use strict";var n=r("729e"),a=r.n(n);a.a},"2bb4":function(e,t,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("d3b7"),r("3ca3"),r("ddb0"),r("a434"),r("14d9");var a=n(r("c7eb")),i=n(r("1da1")),o=n(r("5530")),u=r("a60b"),d=r("3c86"),c=n(r("b7ba")),s=r("26cb"),f={components:{alertBox:c.default},data:function(){return{order_id:0,isShowBox:!1,uploadImg:[],numArray:[],numIndex:0,id:"",productData:[],con:"",refund_price:"",msg:"",number:"",phone:""}},computed:(0,o.default)({},(0,s.mapGetters)(["viewColor"])),onLoad:function(e){this.id=e.id,this.refund_type=e.refund_type,this.type=e.type,this.order_id=e.order_id,Promise.all([this.refundProduct(),this.expressList()])},methods:{expressList:function(){var e=this;(0,u.expressList)().then((function(t){e.numArray=t.data}))},refundProduct:function(){var e=this;(0,u.refundDetail)(this.id).then((function(t){var r=t.data;e.productData=r.refundProduct}))},bindPickerChange:function(e){this.qsIndex=e.target.value},bindNumChange:function(e){this.numIndex=e.target.value,this.refund_price=this.unitPrice*this.numArray[e.target.value]},deleteImg:function(e){this.uploadImg.splice(e,1)},uploadpic:function(){if(this.uploadImg.length<9){var e=this;e.$util.uploadImageOne("upload/image",(function(t){e.uploadImg.push(t.data.path),e.$set(e,"uploadImg",e.uploadImg)}))}else uni.showToast({title:"最多可上传9张",icon:"none"})},bindComfirm:function(){var e=this;return(0,i.default)((0,a.default)().mark((function t(){var r;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,e.number){t.next=4;break}return uni.showToast({title:"请填写快递单号",icon:"none"}),t.abrupt("return");case 4:if((0,d.checkPhone)(e.phone)){t.next=7;break}return uni.showToast({title:"请填写正确的手机号码",icon:"none"}),t.abrupt("return");case 7:return t.next=9,(0,u.refundBackGoods)(e.id,{delivery_type:e.numArray[e.numIndex].label,delivery_id:e.number,delivery_phone:e.phone,ids:e.ids,delivery_mark:e.con,delivery_pics:e.uploadImg});case 9:r=t.sent,e.msg=r.message,e.isShowBox=!0,t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](0),uni.showToast({title:t.t0,icon:"none"});case 17:case"end":return t.stop()}}),t,null,[[0,14]])})))()},bindClose:function(){this.isShowBox=!1,uni.redirectTo({url:"/pages/users/refund/detail?id="+this.id})}}};t.default=f},"3c86":function(e,t,r){"use strict";r("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.checkPhone=function(e){return!!/^1(3|4|5|6|7|8|9)\d{9}$/.test(e)},t.isEmailAvailable=function(e){return!!/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(e)},t.isMoney=function(e){return!!/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(e)},r("ac1f"),r("00b4")},"729e":function(e,t,r){var n=r("b36f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("39561c36",n,!0,{sourceMap:!1,shadowMode:!1})},"82b8":function(e,t,r){"use strict";r("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("26cb"),a=r("8342"),i={data:function(){return{domain:a.HTTP_REQUEST_URL}},props:{msg:{type:String,default:""}},computed:(0,n.mapGetters)(["viewColor","keyColor"]),methods:{close:function(){this.$emit("bindClose")}}};t.default=i},"90af":function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"alert-wrapper",style:e.viewColor},[r("v-uni-view",{staticClass:"alert-box"},[r("v-uni-image",{attrs:{src:e.domain+"/static/diy/success"+e.keyColor+".png",mode:""}}),r("v-uni-view",{staticClass:"txt"},[e._v(e._s(e.msg))]),r("v-uni-view",{staticClass:"btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}},[e._v("我知<EFBFBD>