1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-deliver_goods-deliver_goods"],{"1d15":function(e,t,a){var i=a("49a9");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("0a205dc6",i,!0,{sourceMap:!1,shadowMode:!1})},3844:function(e,t,a){"use strict";var i=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("5530"));a("96cf");var r=i(a("1da1")),o=a("cbd2"),s={data:function(){return{form:{id:0,invoice_no:"",send_type:1,shipping_id:0},show:!1,express:[],curData:{},list:[{name:"快递配送",val:1},{name:"无需快递",val:2}]}},onLoad:function(){try{var e=this.$Route.query.id;e&&(this.form.id=e,this.getExpressFunc(e))}catch(t){}},methods:{onSubmit:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(1!=e.form.send_type){t.next=5;break}if(void 0!=e.curData.value){t.next=3;break}return t.abrupt("return",e.$toast({title:"请选择快递公司"}));case 3:if(""!=e.form.invoice_no){t.next=5;break}return t.abrupt("return",e.$toast({title:"请输入快递单号"}));case 5:return a={id:e.form.id,send_type:e.form.send_type,invoice_no:1==e.form.send_type?e.form.invoice_no:"",shipping_id:1==e.form.send_type?e.curData.value:""},t.next=8,(0,o.apiOrderDelivery)((0,n.default)({},a));case 8:e.$refs.uToast.show({title:"发货成功",type:"success"}),setTimeout((function(){e.$Router.back()}),1e3);case 10:case"end":return t.stop()}}),t)})))()},confirm:function(e){this.curData=e[0]},getExpressFunc:function(e){var t=this;return(0,r.default)(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,(0,o.apiOrderExpress)({id:e});case 2:i=a.sent,t.express=i;case 4:case"end":return a.stop()}}),a)})))()}}};t.default=s},"434b":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var i={uIcon:a("031d").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"u-radio",style:[e.radioStyle]},[a("v-uni-view",{staticClass:"u-radio__icon-wrap",class:[e.iconClass],style:[e.iconStyle],on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggle.apply(void 0,arguments)}}},[a("u-icon",{staticClass:"u-radio__icon-wrap__icon",attrs:{name:"checkbox-mark",size:e.elIconSize,color:e.iconColor}})],1),a("v-uni-view",{staticClass:"u-radio__label",style:{fontSize:e.$u.addUnit(e.labelSize)},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClickLabel.apply(void 0,arguments)}}},[e._t("default")],2)],1)},r=[]},"49a9":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-c22b92ba]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.u-radio-group[data-v-c22b92ba]{display:inline-flex;flex-wrap:wrap}",""]),e.exports=t},"4cf2":function(e,t,a){"use strict";a.r(t);var i=a("5e59"),n=a("50c3");for(var r in n)"default"!==r&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("5ee5");var o,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"c22b92ba",null,!1,i["a"],o);t["default"]=c.exports},"50c3":function(e,t,a){"use strict";a.r(t);var i=a("65b3"),n=a.n(i);for(var r in i)"default"!==r&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a},"5e59":function(e,t,a){"use strict";var i;a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"u-radio-group u-clearfix"},[e._t("default")],2)},r=[]},"5ee5":function(e,t,a){"use strict";var i=a("1d15"),n=a.n(i);n.a},"5f2c":function(e,t,a){var i=a("62c8");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("0a1e584a",i,!0,{sourceMap:!1,shado
|