zx/public/static/js/pages-product-addGoods-addF...

1 line
59 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. 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([["pages-product-addGoods-addFreightTemplate"],{"02aa":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ajcaptchaCheck=function(t){return a.default.post("ajcheck",t,{noAuth:!0})},e.appleAppAuth=function(t){return a.default.post("auth/apple",t,{noAuth:!0})},e.appletsDecrypt=function(t){return a.default.post("user/mp/binding",t)},e.bindingPhone=function(t){return a.default.post("user/binding",t)},e.getAjcaptcha=function(t){return a.default.get("ajcaptcha",t,{noAuth:!0})},e.getAppVersion=function(){return a.default.get("appVersion",{},{noAuth:!0})},e.getArticleBannerList=function(){return a.default.get("article/banner/list",{},{noAuth:!0})},e.getArticleCategoryList=function(){return a.default.get("article/category/lst",{},{noAuth:!0})},e.getArticleDetails=function(t){return a.default.get("article/detail/"+t,{},{noAuth:!0})},e.getArticleHotList=function(){return a.default.get("article/hot/list",{},{noAuth:!0})},e.getArticleList=function(t,e){return a.default.get("article/lst/"+t,e,{noAuth:!0})},e.getAssistData=function(t){return a.default.get("diy/assist",t,{noAuth:!0})},e.getCateData=function(t){return a.default.get("diy/category",t,{noAuth:!0})},e.getCity=function(){return a.default.get("system/city/lst",{},{noAuth:!0})},e.getCityList=function(t){return a.default.get("v2/system/city",{address:t},{noAuth:!0})},e.getCityV2=function(t){return a.default.get("v2/system/city/lst/"+t,{},{noAuth:!0})},e.getCombinationData=function(t){return a.default.get("diy/group",t,{noAuth:!0})},e.getCouponData=function(t){return a.default.get("diy/coupon",t,{noAuth:!0})},e.getCoupons=function(t){return a.default.get("coupon/product",t,{noAuth:!0})},e.getDiy=function(t){return a.default.get("diy",t,{noAuth:!0})},e.getIndexData=function(){return a.default.get("common/home",{},{noAuth:!0})},e.getLiveData=function(t){return a.default.get("diy/broadcast",t,{noAuth:!0})},e.getLiveList=function(t,e){return a.default.get("wechat/live",{page:t,limit:e},{noAuth:!0})},e.getLogo=function(){return a.default.get("wechat/get_logo",{},{noAuth:!0})},e.getOpenAdv=function(){return a.default.get("open_screen",{},{noAuth:!0})},e.getPageDiy=function(t){return a.default.get("micro",t,{noAuth:!0})},e.getPresellData=function(t){return a.default.get("diy/presell",t,{noAuth:!0})},e.getProductData=function(t){return a.default.get("diy/spu",t,{noAuth:!0})},e.getSeckillData=function(t){return a.default.get("diy/seckill",t,{noAuth:!0})},e.getShopCoupons=function(t){return a.default.get("coupon/store/"+t,{},{noAuth:!0})},e.getTemlIds=function(){return a.default.get("wechat/teml_ids",{},{noAuth:!0})},e.getUserCoupons=function(t){return a.default.get("coupon/list",t)},e.graphicLstData=function(t){return a.default.get("diy/community",t,{noAuth:!0})},e.hotRankingList=function(t){return a.default.get("diy/hot_top",t,{noAuth:!0})},e.loginMobile=function(t){return a.default.post("login/mobile",t,{noAuth:!0})},e.logout=function(){return a.default.get("logout")},e.modifyPassword=function(t){return a.default.post("user/change/password",t)},e.modifyPhone=function(t){return a.default.post("user/change/phone",t)},e.phoneLogin=function(t){return a.default.post("login",t,{noAuth:!0})},e.phoneRegister=function(t){return a.default.post("register",t,{noAuth:!0})},e.phoneRegisterReset=function(t){return a.default.post("register/reset",t,{noAuth:!0})},e.pink=function(){return a.default.get("pink",{},{noAuth:!0})},e.registerVerify=function(t,e,i,n){return a.default.post("register/verify",{phone:t,type:void 0===e?"reset":e,key:i,code:n},{noAuth:!0})},e.setCouponReceive=function(t){return a.default.post("coupon/receive/"+t)},e.setFormId=function(t){return a.default.post("wechat/set_form_id",{formId:t})},e.storeList=function(t){return a.default.get("diy/store",t,{noAuth:!0})},e.switchH5Login=function(t){return a.default.post("user/switch",t)},e.verifyCode=function(){return a.default.get("verify_code",{},{noAuth:!0})},e.wechatAppAuth=function(t){return a.default.post("auth/app",t,{noAuth:!0})};var a=n(i("fea3"))},"0a95":function(t,e,i){"use strict";i.r(e);var n=i("43a8"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"0e8e":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uniPopup:i("8d5d").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"pouponCount",class:1==t.popup.show?"on":""},[i("v-uni-view",{staticClass:"title"},[t._v("配送区域及运费"),i("v-uni-text",{staticClass:"iconfont icon-guanbi",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeClose.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"area_container"},[i("v-uni-scroll-view",{attrs:{"scroll-y":"true"}},[t.shippingAddressData.length?i("v-uni-view",t._l(t.shippingAddressData,(function(e,n){return i("v-uni-view",{key:n,staticClass:"distribution_area"},[i("v-uni-view",{staticClass:"distribution_area_title"},[i("v-uni-view",[t._v(t._s(e.title))]),e.label?i("v-uni-view",{staticClass:"distribution_area_title_del blackColor"},[i("span",[t._v(t._s(e.label))])]):i("v-uni-view",{staticClass:"distribution_area_title_del",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.deleteAreaAndFreight(e,n)}}},[i("v-uni-text",{staticClass:"iconfont icon-shanchu2"}),i("span",[t._v("删除")])],1)],1),n?i("v-uni-view",{staticClass:"distribution_area_item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.selectArea(e,n)}}},[i("v-uni-view",{staticClass:"distribution_area_item_label"},[t._v("配送区域")]),i("v-uni-view",{staticClass:"distribution_area_item_value right"},[e.city_name?i("v-uni-text",{staticClass:"line1"},[Array.isArray(e.city_name)?i("v-uni-text",{staticClass:"select_name"},[t._v(t._s(e.city_name.length?e.city_name.map((function(t){return t.name})).join(","):"选择区域"))]):i("v-uni-text",{staticClass:"select_name"},[t._v(t._s(e.city_name))])],1):i("v-uni-text",[t._v("选择区域")]),i("v-uni-text",{staticClass:"iconfont"},[t._v("")])],1)],1):t._e(),i("v-uni-view",{staticClass:"distribution_area_item"},[i("v-uni-view",{staticClass:"distribution_area_item_label"},[t._v("首件")]),i("v-uni-view",{staticClass:"distribution_area_item_value"},[i("v-uni-input",{attrs:{type:"number",placeholder:"请填写首件数量","placeholder-class":"inputHolder"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),e.first=Number(e.first)}},model:{value:e.first,callback:function(i){t.$set(e,"first",i)},expression:"item.first"}})],1)],1),i("v-uni-view",{staticClass:"distribution_area_item"},[i("v-uni-view",{staticClass:"distribution_area_item_label"},[t._v("运费")]),i("v-uni-view",{staticClass:"distribution_area_item_value"},[i("v-uni-input",{attrs:{type:"number",placeholder:"请填写运费金额","placeholder-class":"inputHolder"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),e.first_price=Number(e.first_price)}},model:{value:e.first_price,callback:function(i){t.$set(e,"first_price",i)},expression:"item.first_price"}})],1)],1),i("v-uni-view",{staticClass:"distribution_area_item"},[i("v-uni-view",{staticClass:"distribution_area_item_label"},[t._v("续件")]),i("v-uni-view",{staticClass:"distribution_area_item_value"},[i("v-uni-input",{attrs:{type:"number",min:.1,placeholder:"请填写续件数量","placeholder-class":"inputHolder"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),e.continue=Number(e.continue)}},model:{value:e.continue,callback:function(i){t.$set(e,"continue",i)},expression:"item.continue"}})],1)],1),i("v-uni-view",{staticClass:"distribution_area_item"},[i("v-uni-view",{staticClass:"distribution_area_item_label"},[t._v("续费")]),i("v-uni-view",{staticClass:"distribution_area_item_value"},[i("v-uni-input",{attrs:{type:"number",placeholder:"请填写续费金额","placeholder-class":"inputHolder"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),e.continue_price=Number(e.continue_price)}},model:{value:e.continue_price,callback:function(i){t.$set(e,"continue_price",i)},expression:"item.continue_price"}})],1)],1)],1)})),1):t._e(),i("v-uni-view",{staticClass:"add",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addAreaAndFreight.apply(void 0,arguments)}}},[i("span",{staticClass:"iconfont"},[t._v("")]),i("span",[t._v("添加配送区域及运费")])])],1)],1),i("v-uni-view",{staticClass:"handle"},[i("v-uni-view",{staticClass:"handle_button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.save.apply(void 0,arguments)}}},[t._v("保存")])],1),i("uni-popup",{ref:"area_popup",attrs:{type:"bottom"}},[i("areas",{attrs:{allReadySelect:t.allReadySelect},on:{handleGetSelectArea:function(e){arguments[0]=e=t.$handleEvent(e),t.handleGetSelectArea.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1)],1)],1),i("v-uni-view",{staticClass:"mask",attrs:{catchtouchmove:"true",hidden:0==t.popup.show},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeClose.apply(void 0,arguments)}}})],1)},r=[]},"12ea":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.attrList=function(t,e){return a.default.get("server/".concat(t,"/attr/lst"),e,{login:!0})},e.categoryBrandlist=function(t){return a.default.get("server/".concat(t,"/category/brandlist"),{},{login:!0})},e.categoryList=function(t){return a.default.get("server/".concat(t,"/category/list"),{},{login:!0})},e.categorySelect=function(t){return a.default.get("server/".concat(t,"/category/select"),{},{login:!0})},e.getDeliveryType=function(t){return a.default.get("server/".concat(t,"/product/config"),{},{login:!0})},e.merClassifyAdd=function(t,e){return a.default.post("server/".concat(t,"/category/create"),e,{login:!0})},e.merClassifyDetail=function(t,e){return a.default.get("server/".concat(t,"/category/detail/").concat(e),{},{login:!0})},e.merClassifyLst=function(t){return a.default.get("server/".concat(t,"/category/select"),{},{login:!0})},e.merClassifyUpdate=function(t,e,i){return a.default.post("server/".concat(t,"/category/update/").concat(e),i,{login:!0})},e.productCreate=function(t,e){return a.default.post("server/".concat(t,"/product/create"),e,{login:!0})},e.productDeleteApi=function(t,e){return a.default.post("server/".concat(t,"/product/delete/").concat(e),{},{login:!0})},e.productDestory=function(t,e,i){return a.default.post("server/".concat(t,"/product/destory/").concat(e),i,{login:!0})},e.productDetail=function(t,e){return a.default.get("server/".concat(t,"/product/detail/").concat(e),{},{login:!0})},e.productLstApi=function(t,e){return a.default.get("server/".concat(t,"/product/lst"),e,{login:!0})},e.productOffApi=function(t,e,i){return a.default.post("server/".concat(t,"/product/status/").concat(e),i,{login:!0})},e.productRecommendApi=function(t,e,i){return a.default.post("server/".concat(t,"/product/good/").concat(e),i,{login:!0})},e.productRestore=function(t,e){return a.default.post("server/".concat(t,"/product/restore/").concat(e),{},{login:!0})},e.productTitle=function(t,e){return a.default.get("server/".concat(t,"/product/title"),e,{login:!0})},e.productUpdate=function(t,e,i){return a.default.post("server/".concat(t,"/product/update/").concat(e),i,{login:!0})},e.specificationAdd=function(t,e){return a.default.post("server/".concat(t,"/attr/create"),e,{login:!0})},e.specificationDel=function(t,e){return a.default.post("server/".concat(t,"/attr/delete"),e,{login:!0})},e.specificationDetail=function(t,e){return a.default.get("server/".concat(t,"/attr/detail/").concat(e),{},{login:!0})},e.specificationLst=function(t,e){return a.default.get("server/".concat(t,"/attr/lst"),e,{login:!0})},e.specificationUpdate=function(t,e,i){return a.default.post("server/".concat(t,"/attr/update/").concat(e),i,{login:!0})},e.storeClassifyDel=function(t,e){return a.default.post("server/".concat(t,"/category/delete/").concat(e),{},{login:!0})},e.storeClassifyLst=function(t){return a.default.get("server/".concat(t,"/category/lst"),{},{login:!0})},e.templateCreate=function(t,e){return a.default.post("server/".concat(t,"/template/create"),e,{login:!0})},e.templateDelete=function(t,e){return a.default.post("server/".concat(t,"/template/delete"),e,{login:!0})},e.templateDetail=function(t,e){return a.default.get("server/".concat(t,"/template/detail/").concat(e),{},{login:!0})},e.templateList=function(t,e){return a.default.get("server/".concat(t,"/template/lst"),e,{login:!0})},e.templateUpdate=function(t,e,i){return a.default.post("server/".concat(t,"/template/update/").concat(e),i,{login:!0})},i("c223");var a=n(i("fea3"))},"19ae":function(t,e,i){"use strict";i.r(e);var n=i("2dbe"),a=i("0a95");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("4e36");var o=i("828b"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"39b95393",null,!1,n["a"],void 0);e["default"]=s.exports},20259:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("bf0f"),i("2797"),i("aa9c"),i("dd2b"),i("fd3c");var a=n(i("b7c7")),r=n(i("71c3")),o={components:{areas:r.default},props:{freightData:{type:Array,default:function(){}},popup:{type:Object,default:function(){return{show:!1}}}},data:function(){return{shippingAddressData:this.freightData,selectIndex:"",allReadySelect:[]}},watch:{},mounted:function(){},methods:{initListData:function(){var t=(0,a.default)(this.freightData);0==t.length?t=[{title:"配送区域",label:"默认全国",city_id:[],first:"",first_price:"",continue:"",continue_price:""}]:t.forEach((function(t,e){t["title"]="配送区域",0==e&&(t["label"]="默认全国")})),this.shippingAddressData=t},addAreaAndFreight:function(){this.shippingAddressData.push({title:"配送区域",city_id:[],city_name:"",selectData:[],first:"",first_price:"",continue:"",continue_price:""})},deleteAreaAndFreight:function(t,e){this.shippingAddressData.splice(e,1)},selectArea:function(t,e){this.selectIndex=e,t.selectData?this.allReadySelect=t.selectData:(t.name=this.shippingAddressData[this.selectIndex]["city_name"].map((function(t){return t.name})).join("/"),this.allReadySelect=[t]),this.$refs.area_popup.open()},handleGetSelectArea:function(t){this.shippingAddressData[this.selectIndex].selectData=t,this.shippingAddressData[this.selectIndex].city_name=t.map((function(t){return t.name})).join(","),this.shippingAddressData[this.selectIndex].city_id=t.map((function(t){return t.id})),this.$refs.area_popup.close()},close:function(){this.$refs.area_popup.close()},changeClose:function(){this.$emit("changeClose")},save:function(){for(var t=this.shippingAddressData,e=0;e<t.length;e++){if(""===t[e].first)return this.$util.Tips({title:"请填写首件数量"});if(t[e].first<1)return this.$util.Tips({title:"首件数量不能小于1"});if(""===t[e].first_price)return this.$util.Tips({title:"请填写首件金额"});if(""===t[e].continue)return this.$util.Tips({title:"请填写续件数量"});if(""===t[e].continue_price)return this.$util.Tips({title:"请填写续费金额"});if(0!=e&&0==t[e].city_id.length)return this.$util.Tips({title:"请填写配送区域"})}this.$emit("getData",this.shippingAddressData)}}};e.default=o},"2dbe":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uniPopup:i("8d5d").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"freight_template"},[i("v-uni-view",{staticClass:"freight_template_name"},[i("v-uni-view",{staticClass:"freight_template_name_con"},[i("v-uni-view",{staticClass:"freight_template_name_con_label"},[t._v("运费模板名称")]),i("v-uni-view",{staticClass:"freight_template_name_con_value"},[i("v-uni-input",{attrs:{type:"text",placeholder:"填写模板名称","placeholder-class":"inputClass_template_name"},model:{value:t.billingData.name,callback:function(e){t.$set(t.billingData,"name",e)},expression:"billingData.name"}})],1)],1)],1),i("v-uni-view",{staticClass:"freight_description"},[i("v-uni-view",{staticClass:"freight_description_title"},[t._v("运费说明")]),i("v-uni-view",{staticClass:"freight_description_textarea"},[i("v-uni-textarea",{attrs:{placeholder:"填写运费说明","placeholder-class":"textarea_class"},model:{value:t.billingData.info,callback:function(e){t.$set(t.billingData,"info",e)},expression:"billingData.info"}})],1)],1)],1),i("v-uni-view",{staticClass:"billing_method"},[i("v-uni-view",{staticClass:"billing_method_title"},[t._v("计费方式")]),i("v-uni-view",{staticClass:"billing_method_radio"},[i("v-uni-radio-group",{staticClass:"radioContainer",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeType.apply(void 0,arguments)}},model:{value:t.billingData.type,callback:function(e){t.$set(t.billingData,"type",e)},expression:"billingData.type"}},t._l(t.billing.list,(function(e,n){return i("v-uni-label",{key:e.value,staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-radio",{attrs:{value:e.value,checked:e.value==t.billingData.type}}),i("v-uni-view",[t._v(t._s(e.label))])],1)})),1)],1)],1),i("v-uni-view",{staticClass:"regional_freight",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goDistributionArea.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"regional_freight_label"},[t._v("配送区域及运费")]),i("v-uni-view",{staticClass:"regional_freight_value"},[i("span",[t._v("去编辑")]),i("span",{staticClass:"iconfont"},[t._v("")])])],1),i("tip",{attrs:{message:"默认全国,开启时指定区域不配送时无效"}}),i("v-uni-view",{staticClass:"free_shipping"},[i("v-uni-view",{staticClass:"free_shipping_item"},[i("v-uni-view",{staticClass:"free_shipping_item_label"},[t._v("指定包邮")]),i("v-uni-view",{staticClass:"free_shipping_item_value"},[i("v-uni-switch",{staticStyle:{transform:"scale(0.7)"},attrs:{checked:1==t.billingData.appoint,color:"#E93323"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.switchChange.apply(void 0,arguments)}}})],1)],1),1==t.billingData.appoint?i("v-uni-view",{staticClass:"free_shipping_item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goarcelArea.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"free_shipping_item_label"},[t._v("包邮区域")]),i("v-uni-view",{staticClass:"free_shipping_item_value"},[i("span",[t._v("去编辑")]),i("span",{staticClass:"iconfont"},[t._v("")])])],1):t._e()],1),i("v-uni-view",{staticClass:"free_shipping mt30"},[i("v-uni-view",{staticClass:"billing_method width100"},[i("v-uni-view",{staticClass:"billing_method_title"},[t._v("指定区域不配送")]),i("v-uni-view",{staticClass:"billing_method_radio"},[i("v-uni-radio-group",{staticClass:"radioContainer",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeArea.apply(void 0,arguments)}},model:{value:t.billingData.undelivery,callback:function(e){t.$set(t.billingData,"undelivery",e)},expression:"billingData.undelivery"}},t._l(t.billing.specifiedArea,(function(e,n){return i("v-uni-label",{key:e.value,staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-view",[i("v-uni-radio",{attrs:{value:e.value,checked:e.value==t.billingData.undelivery}})],1),i("v-uni-view",[t._v(t._s(e.label))])],1)})),1)],1)],1),"1"==t.billingData.undelivery?i("v-uni-view",{staticClass:"free_shipping_item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectArea.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"free_shipping_item_label"},[t._v("自定义")]),i("v-uni-view",{staticClass:"free_shipping_item_value"},[i("span",[t._v(t._s(t.allReadySelect.length?t.allReadySelect.map((function(t){return t.name})).join(","):"请选择不配送区域"))]),i("span",{staticClass:"iconfont"},[t._v("")])])],1):t._e()],1),i("tip",{attrs:{message:"开启时,仅支持以上添加的配送区域"}}),i("v-uni-view",{staticClass:"handle"},[i("v-uni-view",{staticClass:"handle_button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.save.apply(void 0,arguments)}}},[t._v("保存")])],1),i("uni-popup",{ref:"area_popup",attrs:{type:"bottom"}},[i("areas",{attrs:{allReadySelect:t.allReadySelect},on:{handleGetSelectArea:function(e){arguments[0]=e=t.$handleEvent(e),t.handleGetSelectArea.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1),i("distribution-area",{ref:"distributionArea",attrs:{freightData:t.billingData.region,popup:t.popup},on:{changeClose:function(e){arguments[0]=e=t.$handleEvent(e),t.closeDistribution.apply(void 0,arguments)},getData:function(e){arguments[0]=e=t.$handleEvent(e),t.getData.apply(void 0,arguments)}}}),i("parcel-area",{ref:"parcelArea",attrs:{parcelData:t.billingData.free,popup:t.popup},on:{changeClose:function(e){arguments[0]=e=t.$handleEvent(e),t.closeParcel.apply(void 0,arguments)},getData:function(e){arguments[0]=e=t.$handleEvent(e),t.getFreeData.apply(void 0,arguments)}}})],1)},r=[]},3269:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("dd2b"),i("aa9c"),i("bf0f"),i("fd3c"),i("8f71");var a=n(i("9b1b")),r=n(i("2634")),o=n(i("2fdc")),s=i("02aa"),l=i("c25d"),c={props:{allReadySelect:{type:Array,default:function(){return[]}}},data:function(){return{selectList:[],selectTap:-1,selectTapIndex:-1,tapList:[],isShowLastItem:!0,areaList:[],old:{scrollTop:0},scrollTop:0}},watch:{allReadySelect:{handler:function(t){this.selectList=this.allReadySelect},deep:!0}},created:function(){this.loadAddress(0),this.selectList=this.allReadySelect},methods:{loadAddress:function(t){var e=this;return(0,s.getCityV2)(t).then((function(t){e.areaList=t.data}))},selectArea:function(t){var e=this;return(0,o.default)((0,r.default)().mark((function i(){return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!(e.selectTapIndex>-1)){i.next=9;break}return e.tapList.splice(e.selectTapIndex,999),e.loadAddress(t.id),e.tapList.push(t),e.isShowLastItem=!0,e.selectTap=-1,e.selectTapIndex=-1,e.goTop(),i.abrupt("return");case 9:if(!t.snum){i.next=16;break}return e.loadAddress(t.id),e.tapList.push(t),e.isShowLastItem=!0,e.selectTap=-1,e.goTop(),i.abrupt("return");case 16:if(t.snum){i.next=22;break}return i.abrupt("return");case 22:case"end":return i.stop()}}),i)})))()},selectTapItem:function(t,e){var i=this;return(0,o.default)((0,r.default)().mark((function n(){return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i.selectTap=t.id,i.selectTapIndex=e,n.next=4,i.loadAddress(t.parent_id);case 4:case"end":return n.stop()}}),n)})))()},selectTapLastItem:function(t){this.selectTap=-1,this.tapList.length?this.loadAddress(this.tapList[this.tapList.length-1].id):this.loadAddress(0)},handlyAddSelect:function(t){if(this.selectList.some((function(e){return e.id==t.id})))(0,l.Toast)("已经选择过了");else if(this.selectTapIndex>-1&&this.tapList.splice(this.selectTapIndex,999),t.parent_id){var e;e=(0,l.serialize)(this.tapList).map((function(t){return t.name})).join("/")+"/"+t.name,this.selectList.push((0,a.default)((0,a.default)({},t),{},{name:e}))}else this.selectList.push(t)},delSelectItem:function(t,e){this.selectList.splice(e,1)},handleGetSelectArea:function(){this.$emit("handleGetSelectArea",this.selectList)},close:function(){this.$emit("close")},unique:function(t){var e={};return t.filter((function(t){if(!e[t])return e[t]=!0,!0}))},scroll:function(t){this.old.scrollTop=t.detail.scrollTop},goTop:function(t){var e=this;this.scrollTop=this.old.scrollTop,this.$nextTick((function(){e.scrollTop=0}))}}};e.default=c},4089:function(t,e,i){"use strict";var n=i("81cd"),a=i.n(n);a.a},"43a8":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("9b1b"));i("fd3c"),i("bf0f"),i("2797"),i("aa9c");var r=n(i("8c99")),o=n(i("71c3")),s=n(i("d2ca")),l=n(i("e824")),c=i("c25d"),u=i("12ea"),d={components:{tip:r.default,areas:o.default,distributionArea:s.default,parcelArea:l.default},data:function(){return{mer_id:"",shipping_id:"",billingData:{name:"",type:0,appoint:0,undelivery:0,info:"",sort:"",region:[],undelives:{city_id:[]},free:[]},popup:{show:!1,showParael:!1},allReadySelect:[],billing:{list:[{value:"0",label:"按件数"},{value:"1",label:"按重量"},{value:"2",label:"按体积"}],specifiedArea:[{value:"1",label:"自定义"},{value:"2",label:"开启"},{value:"0",label:"关闭"}]}}},watch:{billingData:{handler:function(t){},deep:!0}},onLoad:function(t){this.mer_id=t.mer_id,this.shipping_id=t.shipping_id,this.shipping_id&&this.getShippingData()},methods:{getShippingData:function(){var t=this;uni.showLoading({title:"加载中"}),(0,u.templateDetail)(t.mer_id,t.shipping_id).then((function(e){uni.hideLoading();var i=e.data;t.billingData=i,t.getCityList(t.billingData.region),t.getCityList(t.billingData.free),t.billingData.undelives&&t.billingData.undelives.city_name.length>0?(t.allReadySelect=t.billingData.undelives.city_name,t.billingData.undelives["city_id"]=t.billingData.undelives.city_name.map((function(t){return t.id}))):t.billingData.undelives["city_id"]=[0]})).catch((function(e){t.$util.Tips({title:e})}))},getCityList:function(t){if(t.length>0)return t.forEach((function(t,e){Array.isArray(t["city_id"])||(t["city_id"]=[],t["city_name"].forEach((function(e,i){0==e.length?t["city_id"]=[0]:t["city_id"].push(e.id)})))})),t},changeType:function(t){this.billingData.type=t.detail.value},changeArea:function(t){this.billingData.undelivery=t.detail.value},selectArea:function(){this.$refs.area_popup.open()},close:function(){this.$refs.area_popup.close()},handleGetSelectArea:function(t){this.billingData.undelives||(this.billingData.undelives={}),this.billingData.undelives["city_id"]=t.map((function(t){return t.id})),this.allReadySelect=t,this.$refs.area_popup.close()},switchChange:function(t){t.target.value?this.billingData.appoint=1:this.billingData.appoint=0},getData:function(t){this.$set(this.billingData,"region",t),this.$set(this.popup,"show",!1)},getFreeData:function(t){this.$set(this.billingData,"free",t),this.$set(this.popup,"showParael",!1)},save:function(){var t=this,e=(0,a.default)({},this.billingData);return e.name?e.info?0==e.region.length?t.$util.Tips({title:"请编辑配送区域及运费"}):1==e.appoint&&0==e.free.length?t.$util.Tips({title:"请编辑包邮区域"}):1!=e.undelivery||e.undelives?void(t.shipping_id?(0,u.templateUpdate)(t.mer_id,t.shipping_id,e).then((function(e){t.$util.Tips({title:e.message,icon:"success"}),setTimeout((function(){uni.redirectTo({url:"/pages/product/addGoods/freightTemplate?mer_id=".concat(t.mer_id)})}),1e3)})).catch((function(t){(0,c.Toast)(t)})):(0,u.templateCreate)(this.mer_id,e).then((function(e){t.$util.Tips({title:e.message,icon:"success"}),uni.redirectTo({url:"/pages/product/addGoods/freightTemplate?mer_id=".concat(t.mer_id)})})).catch((function(t){(0,c.Toast)(t)}))):t.$util.Tips({title:"请编辑不包邮区域"}):t.$util.Tips({title:"请输入运费说明"}):t.$util.Tips({title:"请输入模板名称"})},goDistributionArea:function(){this.$set(this.popup,"show",!0),this.$refs.distributionArea.initListData()},closeDistribution:function(){this.$set(this.popup,"show",!1)},goarcelArea:function(){this.$set(this.popup,"showParael",!0),this.$refs.parcelArea.initParcelData()},closeParcel:function(){this.$set(this.popup,"showParael",!1)}}};e.default=d},"45e2":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.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/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.area_container[data-v-1898bcee]{background:#fff;border-radius:16px 16px 0 0}.area_container_title[data-v-1898bcee]{display:flex;justify-content:space-between;padding:%?36?% %?30?% %?46?% 0}.area_container_title > uni-view[data-v-1898bcee]{flex:1}.area_container_title_name[data-v-1898bcee]{text-align:center;font-weight:700;font-size:%?32?%}.area_container_title_close[data-v-1898bcee]{text-align:right}.area_container_content[data-v-1898bcee]{padding:0 %?30?%}.area_container_content .selectList_con[data-v-1898bcee]{display:flex;flex-wrap:wrap;margin-bottom:%?50?%}.area_container_content .selectList_con_item[data-v-1898bcee]{padding:%?3?% %?10?%;background:#fff6f5;color:#e93323;margin-right:%?20?%;margin-bottom:%?20?%;display:flex;align-items:center;font-size:%?22?%}.area_container_content .selectList_con_item > span[data-v-1898bcee]:nth-child(1){display:inline-block;margin-right:%?14?%;white-space:nowrap}.area_container_content .selectList_con_item .iconfont[data-v-1898bcee]{font-size:%?20?%;margin-left:%?6?%}.area_container_content .selectList_tap[data-v-1898bcee]{border-bottom:1px solid #eee;display:flex}.area_container_content .selectList_tap_item[data-v-1898bcee]{font-size:%?28?%;margin-right:%?60?%;white-space:nowrap}.area_container_content .selectList_tap .selectTap[data-v-1898bcee]{color:#e93323;border-bottom:%?3?% solid #e93323;padding-bottom:%?21?%}.area_container_content .selectList_area .scroll[data-v-1898bcee]{height:%?597?%}.area_container_content .selectList_area .selectList_area_item[data-v-1898bcee]{padding:%?40?% 0;display:flex;justify-content:space-between;font-size:%?28?%}.area_container_content .selectList_area .selectList_area_item .iconfont[data-v-1898bcee]{color:#e93323;font-size:%?40?%}.area_container_content .selectList_area .selectList_area_item .selectList_area_item_name[data-v-1898bcee]{flex:0.7}.area_container_content .handle[data-v-1898bcee]{height:%?126?%}.area_container_content .handle_button[data-v-1898bcee]{width:%?690?%;height:%?86?%;background:#e93323;border-radius:%?43?%;display:flex;align-items:center;justify-content:center;font-size:%?32?%;color:#fff}',""]),t.exports=e},"48fb":function(t,e,i){"use strict";var n=i("abc4"),a=i.n(n);a.a},4916:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.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/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.container[data-v-39b95393]{padding-top:%?20?%;padding-bottom:%?223?%}.freight_template[data-v-39b95393]{background:#fff;width:%?710?%;margin:auto;border-radius:%?10?%;padding:0 %?20?%}.freight_template_name[data-v-39b95393]{height:%?106?%;border-bottom:1px solid #eee;display:flex;align-items:center}.freight_template_name_con[data-v-39b95393]{flex:1;padding:%?10?%;display:flex;align-items:center;justify-content:space-between}.freight_template_name_con_value[data-v-39b95393]{flex:1;text-align:right}.freight_description[data-v-39b95393]{padding-top:%?31?%;padding-bottom:%?47?%}.freight_description_title[data-v-39b95393]{padding-left:%?20?%;padding-bottom:%?20?%}.freight_description_textarea[data-v-39b95393]{padding:0 %?20?%}.freight_description_textarea uni-textarea[data-v-39b95393]{padding:%?20?%;width:%?630?%;height:%?180?%;border-radius:%?10?%;background:#f5f5f5}.inputClass_template_name[data-v-39b95393]{color:#bbb;font-size:%?30?%}.textarea_class[data-v-39b95393]{color:#bbb;font-size:%?28?%}.billing_method[data-v-39b95393]{margin:auto;margin-top:%?30?%;width:%?710?%;background:#fff;padding:%?30?% 0 %?36?% %?30?%;border-radius:%?10?%}.billing_method_title[data-v-39b95393]{margin-bottom:%?42?%;color:#333;font-size:%?30?%}.billing_method .radioContainer[data-v-39b95393]{display:flex;justify-content:space-between}.billing_method .radioContainer .uni-list-cell[data-v-39b95393]{display:flex;padding-right:%?74?%}.billing_method .radioContainer .uni-list-cell > uni-view[data-v-39b95393]:nth-child(2){white-space:nowrap}.regional_freight[data-v-39b95393]{margin:auto;margin-top:%?30?%;width:%?710?%;height:%?106?%;background:#fff;border-radius:%?10?%;display:flex;align-items:center;justify-content:space-between;padding:0 %?30?%}.regional_freight_label[data-v-39b95393]{color:#333;font-size:%?30?%}.regional_freight_value[data-v-39b95393]{color:#bbb;font-size:%?30?%}.regional_freight_value > span[data-v-39b95393]:nth-child(1){display:inline-block;margin-right:%?15?%}.free_shipping[data-v-39b95393]{background:#fff;width:%?710?%;margin:auto}.free_shipping_item[data-v-39b95393]{height:%?106?%;display:flex;justify-content:space-between;align-items:center;padding:0 %?30?%}.free_shipping_item_value[data-v-39b95393]{color:#bbb;font-size:%?30?%;display:flex;align-items:center}.free_shipping_item_value > span[data-v-39b95393]:nth-child(1){display:inline-block;margin-right:%?15?%;max-width:%?400?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.handle[data-v-39b95393]{width:100%;height:%?126?%;background:#fff;display:flex;align-items:center;justify-content:center;position:fixed;left:0;bottom:0}.handle_button[data-v-39b95393]{width:%?690?%;height:%?86?%;background:#e93323;border-radius:43px;display:flex;align-items:center;justify-content:center;font-size:%?32?%;color:#fff}.width100[data-v-39b95393]{width:100%}.mt30[data-v-39b95393]{margin-top:%?30?%}',""]),t.exports=e},"4e36":function(t,e,i){"use strict";var n=i("af1d"),a=i.n(n);a.a},"51a6":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.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/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.tip[data-v-5af539a7]{display:flex;color:#e93323;width:%?710?%;margin:auto;padding:%?21?% 0 %?28?% 0;font-size:%?22?%}.tip .iconfont[data-v-5af539a7]{font-size:%?22?%;display:inline-block;margin-right:%?10?%}',""]),t.exports=e},"5c84":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.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/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.pouponCount[data-v-dc7730ba]{position:fixed;bottom:0;width:100%;left:0;background-color:#f5f5f5;z-index:77;border-radius:%?16?% %?16?% 0 0;padding-bottom:%?120?%;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9)}.pouponCount.on[data-v-dc7730ba]{-webkit-transform:translateZ(0);transform:translateZ(0)}.pouponCount .title[data-v-dc7730ba]{font-size:%?32?%;font-weight:700;text-align:center;padding:%?36?% 0;position:relative}.pouponCount .icon-guanbi[data-v-dc7730ba]{position:absolute;right:%?20?%;color:#8a8a8a;font-size:%?30?%;top:%?40?%;line-height:%?30?%;top:%?20?%;font-weight:400;background-color:initial}uni-scroll-view[data-v-dc7730ba]{height:70vh}.area_container[data-v-dc7730ba]{padding:%?20?%;background-color:#f7f7f7}.add[data-v-dc7730ba]{margin:auto;width:%?710?%;height:%?106?%;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#e93323;font-size:%?30?%}.add .iconfont[data-v-dc7730ba]{display:inline-block;margin-right:%?10?%}.distribution_area[data-v-dc7730ba]{margin:0 auto %?30?%;width:%?710?%;padding:%?36?% %?30?% %?31?% %?30?%;box-sizing:border-box;background:#fff;border-radius:10px}.distribution_area[data-v-dc7730ba]:first-child{margin-top:0}.distribution_area_title[data-v-dc7730ba]{display:flex;justify-content:space-between;font-size:%?30?%;margin-bottom:%?36?%}.distribution_area_title > uni-view[data-v-dc7730ba]:nth-child(2){color:#666}.distribution_area_title_del[data-v-dc7730ba]{color:#e93323!important;font-size:%?28?%!important;display:flex;align-items:center}.distribution_area_title_del .iconfont[data-v-dc7730ba]{font-size:%?30?%;margin-right:%?15?%}.distribution_area_title .blackColor[data-v-dc7730ba]{color:#666!important}.distribution_area_item[data-v-dc7730ba]{height:%?84?%;background:#f5f5f5;display:flex;justify-content:space-between;align-items:center;padding:0 %?30?%;border-radius:%?10?%;margin-bottom:%?20?%}.distribution_area_item_value[data-v-dc7730ba]{text-align:right;display:flex;align-items:center}.distribution_area_item .line1[data-v-dc7730ba]{max-width:%?430?%}.distribution_area_item .right[data-v-dc7730ba]{color:#bbb}.distribution_area_item .right > span[data-v-dc7730ba]:nth-child(1){display:inline-block;margin-right:%?14?%;max-width:%?350?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.handle[data-v-dc7730ba]{width:100%;height:%?126?%;display:flex;align-items:center;justify-content:center;position:fixed;left:0;bottom:0}.handle_button[data-v-dc7730ba]{background:#e93323;border-radius:%?43?%;display:flex;align-items:center;justify-content:center;font-size:%?32?%;color:#fff;width:%?690?%;padding:%?21?% 0;box-sizing:border-box}.inputHolder[data-v-dc7730ba]{color:#bbb;font-size:%?30?%}',""]),t.exports=e},"5d1a5":function(t,e,i){var n=i("51a6");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("10198cee",n,!0,{sourceMap:!1,shadowMode:!1})},"5d39":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"area_container"},[i("v-uni-view",{staticClass:"area_container_title"},[i("v-uni-view"),i("v-uni-view",{staticClass:"area_container_title_name"},[t._v("选择地区")]),i("v-uni-view",{staticClass:"area_container_title_close",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont"},[t._v("")])],1)],1),i("v-uni-view",{staticClass:"area_container_content"},[i("v-uni-view",{staticClass:"selectList_con"},t._l(t.selectList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"selectList_con_item"},[i("v-uni-text",[t._v(t._s(e.name))]),i("v-uni-text",{staticClass:"iconfont",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.delSelectItem(e,n)}}},[t._v("")])],1)})),1),i("v-uni-view",{staticClass:"selectList_tap"},[t._l(t.tapList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"selectList_tap_item",class:{selectTap:t.selectTap==e.id},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.selectTapItem(e,n)}}},[t._v(t._s(e.name))])})),t.isShowLastItem?i("v-uni-view",{staticClass:"selectList_tap_item",class:{selectTap:-1==t.selectTap},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectTapLastItem(-1)}}},[t._v("请选择")]):t._e()],2),i("v-uni-view",{staticClass:"selectList_area"},[i("v-uni-scroll-view",{staticClass:"scroll",attrs:{"scroll-y":"true","scroll-top":t.scrollTop},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.scroll.apply(void 0,arguments)}}},t._l(t.areaList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"selectList_area_item"},[i("v-uni-view",{staticClass:"selectList_area_item_name",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.selectArea(e)}}},[t._v(t._s(e.name))]),i("v-uni-view",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.handlyAddSelect(e)}}},[i("v-uni-text",{staticClass:"iconfont"},[t._v("")])],1)],1)})),1)],1),i("v-uni-view",{staticClass:"handle"},[i("v-uni-view",{staticClass:"handle_button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleGetSelectArea.apply(void 0,arguments)}}},[t._v("确定")])],1)],1)],1)},a=[]},"71c3":function(t,e,i){"use strict";i.r(e);var n=i("5d39"),a=i("91d1");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("48fb");var o=i("828b"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"1898bcee",null,!1,n["a"],void 0);e["default"]=s.exports},7854:function(t,e,i){"use strict";i.r(e);var n=i("20259"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"81cd":function(t,e,i){var n=i("e07a");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("72ccaa64",n,!0,{sourceMap:!1,shadowMode:!1})},"8c99":function(t,e,i){"use strict";i.r(e);var n=i("ee20"),a=i("ac14");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("9db8");var o=i("828b"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"5af539a7",null,!1,n["a"],void 0);e["default"]=s.exports},"91d1":function(t,e,i){"use strict";i.r(e);var n=i("3269"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"9db8":function(t,e,i){"use strict";var n=i("5d1a5"),a=i.n(n);a.a},abc4:function(t,e,i){var n=i("45e2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("69ad05d4",n,!0,{sourceMap:!1,shadowMode:!1})},ac14:function(t,e,i){"use strict";i.r(e);var n=i("f649"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},af1d:function(t,e,i){var n=i("4916");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("72a222dd",n,!0,{sourceMap:!1,shadowMode:!1})},be40:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uniPopup:i("8d5d").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"pouponCount",class:1==t.popup.showParael?"on":""},[i("v-uni-view",{staticClass:"title"},[t._v("指定包邮区域"),i("v-uni-text",{staticClass:"iconfont icon-guanbi",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeClose.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"container"},[i("v-uni-scroll-view",{attrs:{"scroll-y":"true"}},[t._l(t.parcelArea,(function(e,n){return i("v-uni-view",{key:n,staticClass:"distribution_area"},[i("v-uni-view",{staticClass:"distribution_area_title"},[i("v-uni-view",[t._v("新增包邮区域")]),n?i("v-uni-view",{staticClass:"distribution_area_title_del",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.deleteParcelArea(e,n)}}},[i("v-uni-text",{staticClass:"iconfont icon-shanchu2"}),i("v-uni-text",[t._v("删除")])],1):t._e()],1),i("v-uni-view",{staticClass:"distribution_area_item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.selectArea(e,n)}}},[i("v-uni-view",{staticClass:"distribution_area_item_label"},[t._v("选择地区")]),i("v-uni-view",{staticClass:"distribution_area_item_value right"},[e.city_name?i("v-uni-text",{staticClass:"line1"},[Array.isArray(e.city_name)?i("v-uni-text",{staticClass:"select_name"},[t._v(t._s(e.city_name.length?e.city_name.map((function(t){return t.name})).join(","):"选择区域"))]):i("v-uni-text",{staticClass:"select_name"},[t._v(t._s(e.city_name))])],1):i("v-uni-text",[t._v("选择区域")]),i("v-uni-text",{staticClass:"iconfont"},[t._v("")])],1)],1),i("v-uni-view",{staticClass:"distribution_area_item"},[i("v-uni-view",{staticClass:"distribution_area_item_label"},[t._v("最低限购数")]),i("v-uni-view",{staticClass:"distribution_area_item_value"},[i("v-uni-input",{attrs:{type:"number",placeholder:"请填写运费金额","placeholder-class":"inputHolder"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),e.number=Number(e.number)}},model:{value:e.number,callback:function(i){t.$set(e,"number",i)},expression:"item.number"}})],1)],1),i("v-uni-view",{staticClass:"distribution_area_item"},[i("v-uni-view",{staticClass:"distribution_area_item_label"},[t._v("最低购买金额")]),i("v-uni-view",{staticClass:"distribution_area_item_value"},[i("v-uni-input",{attrs:{type:"number",placeholder:"请填写续件金额","placeholder-class":"inputHolder"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),e.price=Number(e.price)}},model:{value:e.price,callback:function(i){t.$set(e,"price",i)},expression:"item.price"}})],1)],1)],1)})),i("v-uni-view",{staticClass:"add",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addParcelAreaItem.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont"},[t._v("")]),i("v-uni-text",[t._v("添加指定包邮区域")])],1)],2),i("uni-popup",{ref:"area_popup",attrs:{type:"bottom"}},[i("areas",{attrs:{allReadySelect:t.allReadySelect},on:{handleGetSelectArea:function(e){arguments[0]=e=t.$handleEvent(e),t.handleGetSelectArea.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"handle"},[i("v-uni-view",{staticClass:"handle_button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.save.apply(void 0,arguments)}}},[t._v("保存")])],1)],1)],1),i("v-uni-view",{staticClass:"mask",attrs:{catchtouchmove:"true",hidden:0==t.popup.showParael},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeClose.apply(void 0,arguments)}}})],1)},r=[]},c25d:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionSheet=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(i,n){uni.showActionSheet({itemList:t,itemColor:e,success:function(t){i(t.tapIndex)},fail:function(t){n(t.errMsg)}})}))},e.Authorize=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(e,i){uni.authorize({scope:t,success:function(t){e(t)},fail:function(t){i(t)}})}))},e.GetUserInfo=function(){return new Promise((function(t,e){uni.getUserInfo({success:function(e){t(e)},fail:function(t){e(t)}})}))},e.Loading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,r.default)({title:t,mask:!0},e))},e.Modal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!";return new Promise((function(i,n){uni.showModal({title:t,content:e,success:function(t){t.confirm&&i(),t.cancel&&n()}})}))},e.ScrollTo=function(t){uni.pageScrollTo({scrollTop:t,duration:300})},e.Toast=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,a=(0,r.default)({title:t,duration:n,position:"center",mask:!0,icon:e||"none"},i);uni.showToast(a)},e.chooseImage=function(t){return new Promise((function(e,i){uni.chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(t){e(t)},fail:function(t){i(t)}})}))},e.clearStorage=function(){try{uni.clearStorageSync()}catch(t){throw new Error("处理失败")}},e.convertObj=o,e.formatDate=s,e.getQuarterStartDate=function(){var t=new Date(u,function(){var t=0;c<3&&(t=0);2<c&&c<6&&(t=3);5<c&&c<9&&(t=6);c>8&&(t=9);return t}(),1);return s(t,"yyyy-MM-dd")},e.getStorage=function(t){var e=uni.getStorageSync(t);try{"number"!=typeof JSON.parse(e)&&(e=JSON.parse(e))}catch(i){}return e},e.hideLoading=function(){try{uni.hideLoading()}catch(t){throw new Error("处理失败")}},e.navigateBack=function(t){uni.navigateBack({delta:t})},e.navigateTo=function(t,e,i){var n=e,a="navigateTo";switch(n=i?n+"?"+o(i):n,t){case 1:a="navigateTo";break;case 2:a="redirectTo";break;case 3:a="reLaunch";break;case 4:a="switchTab";break;default:a="navigateTo";break}uni[a]({url:n,animationType:"slide-in-right",animationDuration:200})},e.pathToBase64=function(t){return new Promise((function(e,i){if("object"===("undefined"===typeof window?"undefined":(0,a.default)(window))&&"document"in window){if("function"===typeof FileReader){var n=new XMLHttpRequest;return n.open("GET",t,!0),n.responseType="blob",n.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=i,t.readAsDataURL(this.response)}},n.onerror=i,void n.send()}var r=document.createElement("canvas"),o=r.getContext("2d"),s=new Image;return s.onload=function(){r.width=s.width,r.height=s.height,o.drawImage(s,0,0),e(r.toDataURL()),r.height=r.width=0},s.onerror=i,void(s.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,a.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,a.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){i(t)}}):i(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(t),(function(t){t.file((function(t){var n=new plus.io.FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){i(t)},n.readAsDataURL(t)}),(function(t){i(t)}))}),(function(t){i(t)}))}))},e.removeStorage=function(t){t&&uni.removeStorageSync(t)},e.serialize=function(t){if(null!=t&&""!=t)try{return JSON.parse(JSON.stringify(t))}catch(e){return t instanceof Array?[]:{}}return t},e.setStorage=function(t,e){if("string"==typeof e)return uni.setStorageSync(t,e),e;uni.setStorageSync(t,JSON.stringify(e))},e.showMonthFirstDay=function(){var t=(new Date).setDate(1);return s(new Date(t).getTime(),"yyyy-MM-dd")},e.showWeekFirstDay=function(){var t=new Date,e=t.getDay()||7;return t.setDate(t.getDate()-e+1),s(t,"yyyy-MM-dd")},e.throttle=function(t,e){var i,n;e=e||200;return function(){for(var a=this,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];i=o,n||(n=setTimeout((function(){n=null,t.apply(a,i)}),e))}},e.unique=function(t){t=t||[];for(var e={},i=0;i<t.length;i++){var n=JSON.stringify(t[i]);"undefined"==typeof n&&(e[n]=1)}for(var i in t.length=0,e)t[t.length]=i;return t};var a=n(i("fcf3")),r=n(i("9b1b"));function o(t){var e,i=[];return Object.keys(t).forEach((function(e){i.push("".concat(e,"=").concat(t[e]))})),e=i.join("&"),e}function s(t,e){return t?(e=e||"yyyy-MM-dd hh:mm:ss",new Date(t).format(e)):""}i("d4b5"),i("7a76"),i("c9b5"),i("bf0f"),i("2797"),i("dc8a"),i("aa9c"),i("c223"),i("5c47"),i("0506"),i("a1c1"),i("23f4"),i("7d2f"),i("9c4e"),i("ab80"),Date.prototype.format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,String(this.getFullYear()).substr(4-RegExp.$1.length))),e)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[i]:("00"+e[i]).substr(String(e[i]).length)));return t};var l=new Date,c=l.getMonth(),u=l.getYear();u+=u<2e3?1900:0},ce2d:function(t,e,i){"use strict";var n=i("f292"),a=i.n(n);a.a},d2ca:function(t,e,i){"use strict";i.r(e);var n=i("0e8e"),a=i("7854");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("ce2d");var o=i("828b"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"dc7730ba",null,!1,n["a"],void 0);e["default"]=s.exports},e07a:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.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/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.pouponCount[data-v-ff6fd980]{position:fixed;bottom:0;width:100%;left:0;background-color:#f5f5f5;z-index:77;border-radius:%?16?% %?16?% 0 0;padding-bottom:%?20?%;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9)}.pouponCount.on[data-v-ff6fd980]{-webkit-transform:translateZ(0);transform:translateZ(0)}.pouponCount .title[data-v-ff6fd980]{font-size:%?32?%;font-weight:700;text-align:center;padding:%?36?% 0;position:relative}.pouponCount .icon-guanbi[data-v-ff6fd980]{position:absolute;right:%?20?%;color:#8a8a8a;font-size:%?30?%;line-height:%?30?%;top:%?40?%;background-color:initial;font-weight:400}uni-scroll-view[data-v-ff6fd980]{height:%?650?%}.container[data-v-ff6fd980]{padding-top:%?20?%;padding-bottom:%?197?%}.add[data-v-ff6fd980]{margin:auto;width:%?710?%;height:%?106?%;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#e93323;font-size:%?30?%}.add .iconfont[data-v-ff6fd980]{display:inline-block;margin-right:%?10?%}.distribution_area[data-v-ff6fd980]{margin:0 auto %?30?%;width:%?710?%;padding:%?36?% %?30?% %?31?% %?30?%;min-height:%?355?%;box-sizing:border-box;background:#fff;border-radius:10px}.distribution_area_title[data-v-ff6fd980]{display:flex;justify-content:space-between;font-size:%?30?%;margin-bottom:%?36?%}.distribution_area_title > uni-view[data-v-ff6fd980]:nth-child(2){color:#666}.distribution_area_title_del[data-v-ff6fd980]{color:#e93323!important;font-size:%?28?%!important;display:flex;align-items:center}.distribution_area_title_del .iconfont[data-v-ff6fd980]{font-size:%?30?%;margin-right:%?15?%}.distribution_area_item[data-v-ff6fd980]{height:%?84?%;background:#f5f5f5;display:flex;justify-content:space-between;align-items:center;padding:0 %?30?%;border-radius:%?10?%;margin-bottom:%?20?%}.distribution_area_item_value[data-v-ff6fd980]{text-align:right;display:flex;align-items:center}.distribution_area_item .line1[data-v-ff6fd980]{max-width:%?430?%}.distribution_area_item .right[data-v-ff6fd980]{color:#bbb}.distribution_area_item .right > span[data-v-ff6fd980]:nth-child(1){max-width:%?300?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;margin-right:%?14?%}.handle[data-v-ff6fd980]{width:100%;height:%?126?%;background:#fff;display:flex;align-items:center;justify-content:center;position:fixed;left:0;bottom:0}.handle_button[data-v-ff6fd980]{width:%?690?%;height:%?86?%;background:#e93323;border-radius:43px;display:flex;align-items:center;justify-content:center;font-size:%?32?%;color:#fff}.inputHolder[data-v-ff6fd980]{color:#bbb;font-size:%?30?%}',""]),t.exports=e},e824:function(t,e,i){"use strict";i.r(e);var n=i("be40"),a=i("fd25");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("4089");var o=i("828b"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"ff6fd980",null,!1,n["a"],void 0);e["default"]=s.exports},e83a:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("dd2b"),i("aa9c"),i("fd3c");var a=n(i("b7c7")),r=n(i("71c3")),o=(i("c25d"),{components:{areas:r.default},props:{parcelData:{type:Array,default:function(){}},popup:{type:Object,default:function(){return{showParael:!1}}}},data:function(){return{parcelArea:this.parcelData,allReadySelect:[],selectIndex:""}},mounted:function(){},methods:{initParcelData:function(){var t=(0,a.default)(this.parcelData);0==t.length&&(t=[{city_id:[],number:"",price:"",city_name:[]}]),this.parcelArea=t},deleteParcelArea:function(t,e){this.parcelArea.splice(e,1)},close:function(){this.$refs.area_popup.close()},changeClose:function(){this.$emit("changeClose")},selectArea:function(t,e){this.allReadySelect=t.city_name,this.selectIndex=e,this.$refs.area_popup.open()},addParcelAreaItem:function(){this.parcelArea.push({city_id:[],number:"",price:"",city_name:[]})},handleGetSelectArea:function(t){this.allReadySelect=t,this.parcelArea[this.selectIndex].city_name=t,this.parcelArea[this.selectIndex].city_id=t.map((function(t){return t.id})),this.$refs.area_popup.close()},save:function(){for(var t=this.parcelArea,e=0;e<t.length;e++){if(0==t[e].city_id.length)return this.$util.Tips({title:"请选择地区"});if(""===t[e].number)return this.$util.Tips({title:"请输入最低购买数量"});if(""===t[e].price)return this.$util.Tips({title:"请输入最低购买金额"})}this.$emit("getData",this.parcelArea)}}});e.default=o},ee20:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"tip"},[e("v-uni-view",[e("span",{staticClass:"iconfont"},[this._v("")])]),e("v-uni-view",[this._v(this._s(this.message))])],1)},a=[]},f292:function(t,e,i){var n=i("5c84");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("2162f4fc",n,!0,{sourceMap:!1,shadowMode:!1})},f649:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{message:{type:String,default:"开启时指定区域不配送时无效"}}};e.default=n},fd25:function(t,e,i){"use strict";i.r(e);var n=i("e83a"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a}}]);