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,shadowMode:!1})},"62c8":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-daca0a12]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.u-radio[data-v-daca0a12]{display:inline-flex;align-items:center;overflow:hidden;-webkit-user-select:none;user-select:none;line-height:1.8}.u-radio__icon-wrap[data-v-daca0a12]{color:#606266;display:flex;flex-direction:row;flex:none;align-items:center;justify-content:center;box-sizing:border-box;width:%?42?%;height:%?42?%;color:transparent;text-align:center;transition-property:color,border-color,background-color;font-size:20px;border:1px solid #c8c9cc;transition-duration:.2s}.u-radio__icon-wrap--circle[data-v-daca0a12]{border-radius:100%}.u-radio__icon-wrap--square[data-v-daca0a12]{border-radius:3px}.u-radio__icon-wrap--checked[data-v-daca0a12]{color:#fff;background-color:#2979ff;border-color:#2979ff}.u-radio__icon-wrap--disabled[data-v-daca0a12]{background-color:#ebedf0;border-color:#c8c9cc}.u-radio__icon-wrap--disabled--checked[data-v-daca0a12]{color:#c8c9cc!important}.u-radio__label[data-v-daca0a12]{word-wrap:break-word;margin-left:%?10?%;margin-right:%?24?%;color:#606266;font-size:%?30?%}.u-radio__label--disabled[data-v-daca0a12]{color:#c8c9cc}",""]),e.exports=t},"65b3":function(e,t,a){"use strict";var i=a("4ea4");a("d81d"),a("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("f1b8")),r={name:"u-radio-group",mixins:[n.default],props:{disabled:{type:Boolean,default:!1},value:{type:[String,Number],default:""},activeColor:{type:String,default:"#2979ff"},size:{type:[String,Number],default:34},labelDisabled:{type:Boolean,default:!1},shape:{type:String,default:"circle"},iconSize:{type:[String,Number],default:20},width:{type:[String,Number],default:"auto"},wrap:{type:Boolean,default:!1}},created:function(){this.children=[]},watch:{parentData:function(){this.children.length&&this.children.map((function(e){"function"==typeof e.updateParentData&&e.updateParentData()}))}},computed:{parentData:function(){return[this.value,this.disabled,this.activeColor,this.size,this.labelDisabled,this.shape,this.iconSize,this.width,this.wrap]}},methods:{setValue:function(e){var t=this;this.children.map((function(t){t.parentData.value!=e&&(t.parentData.value="")})),this.$emit("input",e),this.$emit("change",e),setTimeout((function(){t.dispatch("u-form-item","on-form-change",e)}),60)}}};t.default=r},"66d9":function(e,t,a){"use strict";a.r(t);var i=a("3844"),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},7161:function(e,t,a){"use strict";a.r(t);var i=a("b8d4"),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},"7f77":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={uRadioGroup:a("4cf2").default,uRadio:a("ab10").default,uIcon:a("031d").default,uSelect:a("f13e").default,uToast:a("af9c").default},n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"m-t-20"},[a("v-uni-view",{staticClass:"item bb"},[a("v-uni-view",[e._v("快递方式")]),a("v-uni-view",{staticClass:"flex row-right"},[a("u-radio-group",{model:{value:e.form.send_type,callback:function(t){e.$set(e.form,"send_type",t)},expression:"form.send_type"}},e._l(e.list,(function(t,i){return a("u-radio",{key:i,attrs:{name:t.val}},[e._v(e._s(t.name))])})),1)],1)],1),1==e.form.send_type?[a("v-uni-view",{staticClass:"item bb",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.show=!0}}},[a("v-uni-view",[e._v("快递公司")]),a("v-uni-view",{staticClass:"flex row-right m-r-16"},[a("v-uni-view",{staticClass:"m-r-12"},[e._v(e._s(e.curData.label?e.curData.label:"未选择"))]),a("u-icon",{attrs:{name:"arrow-down"}})],1)],1),a("v-uni-view",{staticClass:"item bb",staticStyle:{"align-items":"flex-start"}},[a("v-uni-view",[e._v("快递单号")]),a("v-uni-view",{staticClass:"m-t-4",staticStyle:{"text-align":"left"}},[a("v-uni-input",{attrs:{placeholder:"请输入物流单号"},model:{value:e.form.invoice_no,callback:function(t){e.$set(e.form,"invoice_no",t)},expression:"form.invoice_no"}})],1)],1)]:e._e(),a("v-uni-view",{staticClass:"br60 btn flex row-center white md",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onSubmit(e.type)}}},[e._v("确认")]),a("u-select",{attrs:{list:e.express,mode:"single-column","value-name":"id","label-name":"name"},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}}),a("u-toast",{ref:"uToast"})],2)},r=[]},"9a12":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-2272a293]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.item[data-v-2272a293]{padding:%?30?%;display:flex;flex-direction:row;align-items:center;background-color:#fff;justify-content:space-between}.item > uni-view[data-v-2272a293]:first-child{width:%?180?%;color:#101010;font-size:%?28?%;font-weight:500}.item > uni-view[data-v-2272a293]:last-child{flex:1;text-align:right}.item > uni-view:last-child uni-textarea[data-v-2272a293]{width:%?560?%;height:%?300?%}.btn[data-v-2272a293]{width:%?690?%;height:%?88?%;margin:0 auto;margin-top:%?40?%;background-color:#40affa}",""]),e.exports=t},"9f80":function(e,t,a){"use strict";a.r(t);var i=a("7f77"),n=a("66d9");for(var r in n)"default"!==r&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("e9ff");var o,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"2272a293",null,!1,i["a"],o);t["default"]=c.exports},ab10:function(e,t,a){"use strict";a.r(t);var i=a("434b"),n=a("7161");for(var r in n)"default"!==r&&function(e){a.d(t,e,(function(){return n[e]}))}(r);a("e80f");var o,s=a("f0c5"),c=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"daca0a12",null,!1,i["a"],o);t["default"]=c.exports},b8d4:function(e,t,a){"use strict";a("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"u-radio",props:{name:{type:[String,Number],default:""},shape:{type:String,default:""},disabled:{type:[String,Boolean],default:""},labelDisabled:{type:[String,Boolean],default:""},activeColor:{type:String,default:""},iconSize:{type:[String,Number],default:""},labelSize:{type:[String,Number],default:""}},data:function(){return{parentData:{iconSize:null,labelDisabled:null,disabled:null,shape:null,activeColor:null,size:null,width:null,height:null,value:null,wrap:null}}},created:function(){this.parent=!1,this.updateParentData(),this.parent.children.push(this)},computed:{elDisabled:function(){return""!==this.disabled?this.disabled:null!==this.parentData.disabled&&this.parentData.disabled},elLabelDisabled:function(){return""!==this.labelDisabled?this.labelDisabled:null!==this.parentData.labelDisabled&&this.parentData.labelDisabled},elSize:function(){return this.size?this.size:this.parentData.size?this.parentData.size:34},elIconSize:function(){return this.iconSize?this.iconSize:this.parentData.iconSize?this.parentData.iconSize:20},elActiveColor:function(){return this.activeColor?this.activeColor:this.parentData.activeColor?this.parentData.activeColor:"primary"},elShape:function(){return this.shape?this.shape:this.parentData.shape?this.parentData.shape:"circle"},iconStyle:function(){var e={};return this.elActiveColor&&this.parentData.value==this.name&&!this.elDisabled&&(e.borderColor=this.elActiveColor,e.backgroundColor=this.elActiveColor),e.width=this.$u.addUnit(this.elSize),e.height=this.$u.addUnit(this.elSize),e},iconColor:function(){return this.name==this.parentData.value?"#ffffff":"transparent"},iconClass:function(){var e=[];return e.push("u-radio__icon-wrap--"+this.elShape),this.name==this.parentData.value&&e.push("u-radio__icon-wrap--checked"),this.elDisabled&&e.push("u-radio__icon-wrap--disabled"),this.name==this.parentData.value&&this.elDisabled&&e.push("u-radio__icon-wrap--disabled--checked"),e.join(" ")},radioStyle:function(){var e={};return this.parentData.width&&(e.width=this.$u.addUnit(this.parentData.width),e.flex="0 0 ".concat(this.$u.addUnit(this.parentData.width))),this.parentData.wrap&&(e.width="100%",e.flex="0 0 100%"),e}},methods:{updateParentData:function(){this.getParentData("u-radio-group")},onClickLabel:function(){this.elLabelDisabled||this.elDisabled||this.setRadioCheckedStatus()},toggle:function(){this.elDisabled||this.setRadioCheckedStatus()},emitEvent:function(){this.parentData.value!=this.name&&this.$emit("change",this.name)},setRadioCheckedStatus:function(){this.emitEvent(),this.parent&&(this.parent.setValue(this.name),this.parentData.value=this.name)}}};t.default=i},bd98:function(e,t,a){var i=a("9a12");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("9232893e",i,!0,{sourceMap:!1,shadowMode:!1})},e80f:function(e,t,a){"use strict";var i=a("5f2c"),n=a.n(i);n.a},e9ff:function(e,t,a){"use strict";var i=a("bd98"),n=a.n(i);n.a},f1b8:function(e,t,a){"use strict";function i(e,t,a){this.$children.map((function(n){e===n.$options.name?n.$emit.apply(n,[t].concat(a)):i.apply(n,[e,t].concat(a))}))}a("99af"),a("d81d"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={methods:{dispatch:function(e,t,a){var i=this.$parent||this.$root,n=i.$options.name;while(i&&(!n||n!==e))i=i.$parent,i&&(n=i.$options.name);i&&i.$emit.apply(i,[t].concat(a))},broadcast:function(e,t,a){i.call(this,e,t,a)}}};t.default=n}}]); |