启程易购后端代码
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.
qicheng_shop_backend/public/static/js/pages-users-refund-goods-in...

1 line
17 KiB

8 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-refund-goods-index"],{"0c67":function(e,t,r){"use strict";r.r(t);var n=r("0d03"),a=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},"0d03":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")),o=n(r("1da1")),i=n(r("5530")),u=r("59c6"),d=r("5a7e"),c=n(r("c3cd")),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,i.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,o.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},1217: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("我知道了")])],1)],1)},a=[]},4911:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/*