|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-addGoods-addFreightTemplate"],{"0966":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("59c7").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=[]},"0a73":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{message:{type:String,default:"开启时指定区域不配送时无效"}}};e.default=n},1323:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a434"),i("14d9"),i("d81d");var a=n(i("2909")),r=n(i("92a5")),s=(i("a5eb"),{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=s},1690:function(t,e,i){"use strict";i.r(e);var n=i("e209"),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},"1c84":function(t,e,i){var n=i("5deb");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("4a15fc29",n,!0,{sourceMap:!1,shadowMode:!1})},"1d35":function(t,e,i){var n=i("24fb");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-1adca89e]{display:flex;color:#e93323;width:%?710?%;margin:auto;padding:%?21?% 0 %?28?% 0;font-size:%?22?%}.tip .iconfont[data-v-1adca89e]{font-size:%?22?%;display:inline-block;margin-right:%?10?%}',""]),t.exports=e},"1f65":function(t,e,i){"use strict";i.r(e);var n=i("0a73"),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},2785:function(t,e,i){"use strict";var n=i("603c"),a=i.n(n);a.a},"2dc2":function(t,e,i){"use strict";i.r(e);var n=i("0966"),a=i("4165");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("2785");var s=i("f0c5"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"cc1a42d8",null,!1,n["a"],void 0);e["default"]=o.exports},"3cb8":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=[]},"3f09":function(t,e,i){"use strict";var n=i("1c84"),a=i.n(n);a.a},"3f1b":function(t,e,i){"use strict";i.r(e);var n=i("a825"),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},4165:function(t,e,i){"use strict";i.r(e);var n=i("1323"),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},"4a2e":function(t,e,i){var n=i("24fb");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-1371e52f]{background:#fff;border-radius:16px 16px 0 0}.area_container_title[data-v-1371e52f]{display:flex;justify-content:space-between;padding:%?36?% %?30?% %?46?% 0}.area_container_title > uni-view[data-v-1371e52f]{flex:1}.area_container_title_name[data-v-1371e52f]{text-align:center;font-weight:700;font-size:%?32?%}.area_container_title_close[data-v-1371e52f]{text-align:right}.area_container_content[data-v-1371e52f]{padding:0 %?30?%}.area_container_content .selectList_con[data-v-1371e52f]{display:flex;flex-wrap:wrap;margin-bottom:%?50?%}.area_container_content .selectList_con_item[data-v-1371e52f]{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-1371e52f]:nth-child(1){display:inline-block;margin-right:%?14?%;white-space:nowrap}.area_container_content .selectList_con_item .iconfont[data-v-1371e52f]{font-size:%?20?%;margin-left:%?6?%}.area_container_content .selectList_tap[data-v-1371e52f]{border-bottom:1px solid #eee;display:flex}.area_container_content .selectList_tap_item[data-v-1371e52f]{font-size:%?28?%;margin-right:%?60?%;white-space:nowrap}.area_container_content .selectList_tap .selectTap[data-v-1371e52f]{color:#e93323;border-bottom:%?3?% solid #e93323;padding-bottom:%?21?%}.area_container_content .selectList_area .scroll[data-v-1371e52f]{height:%?597?%}.area_container_content .selectList_area .selectList_area_item[data-v-1371e52f]{padding:%?40?% 0;display:flex;justify-content:space-between;font-size:%?28?%}.area_container_content .selectList_area .selectList_area_item .iconfont[data-v-1371e52f]{color:#e93323;font-size:%?40?%}.area_container_content .selectList_area .selectList_area_item .selectList_area_item_name[data-v-1371e52f]{flex:0.7}.area_container_content .handle[data-v-1371e52f]{height:%?126?%}.area_container_content .handle_button[data-v-1371e52f]{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},"539d":function(t,e,i){var n=i("1d35");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("08e7368c",n,!0,{sourceMap:!1,shadowMode:!1})},"53fc":function(t,e,i){"use strict";var n=i("539d"),a=i.n(n);a.a},"57d6":function(t,e,i){"use strict";i.r(e);var n=i("3cb8"),a=i("1f65");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("53fc");var s=i("f0c5"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"1adca89e",null,!1,n["a"],void 0);e["default"]=o.exports},"5a6c":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("59c7").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=[]},"5deb":function(t,e,i){var n=i("24fb");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-04d17f08]{padding-top:%?20?%;padding-bottom:%?223?%}.freight_template[data-v-04d17f08]{background:#fff;width:%?710?%;margin:auto;border-radius:%?10?%;padding:0 %?20?%}.freight_template_name[data-v-04d17f08]{height:%?106?%;border-bottom:1px solid #eee;display:flex;align-items:center}.freight_template_name_con[data-v-04d17f08]{flex:1;padding:%?10?%;display:flex;align-items:center;justify-content:space-between}.freight_template_name_con_value[data-v-04d17f08]{flex:1;text-align:right}.freight_description[data-v-04d17f08]{padding-top:%?31?%;padding-bottom:%?47?%}.freight_description_title[data-v-04d17f08]{padding-left:%?20?%;padding-bottom:%?20?%}.freight_description_textarea[data-v-04d17f08]{padding:0 %?20?%}.freight_description_textarea uni-textarea[data-v-04d17f08]{padding:%?20?%;width:%?630?%;height:%?180?%;border-radius:%?10?%;background:#f5f5f5}.inputClass_template_name[data-v-04d17f08]{color:#bbb;font-size:%?30?%}.textarea_class[data-v-04d17f08]{color:#bbb;font-size:%?28?%}.billing_method[data-v-04d17f08]{margin:auto;margin-top:%?30?%;width:%?710?%;background:#fff;padding:%?30?% 0 %?36?% %?30?%;border-radius:%?10?%}.billing_method_title[data-v-04d17f08]{margin-bottom:%?42?%;color:#333;font-size:%?30?%}.billing_method .radioContainer[data-v-04d17f08]{display:flex;justify-content:space-between}.billing_method .radioContainer .uni-list-cell[data-v-04d17f08]{display:flex;padding-right:%?74?%}.billing_method .radioContainer .uni-list-cell > uni-view[data-v-04d17f08]:nth-child(2){white-space:nowrap}.regional_freight[data-v-04d17f08]{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-04d17f08]{color:#333;font-size:%?30?%}.regional_freight_value[data-v-04d17f08]{color:#bbb;font-size:%?30?%}.regional_freight_value > span[data-v-04d17f08]:nth-child(1){display:inline-block;margin-right:%?15?%}.free_shipping[data-v-04d17f08]{background:#fff;width:%?710?%;margin:auto}.free_shipping_item[data-v-04d17f08]{height:%?106?%;display:flex;justify-content:space-between;align-items:center;padding:0 %?30?%}.free_shipping_item_value[data-v-04d17f08]{color:#bbb;font-size:%?30?%;display:flex;align-items:center}.free_shipping_item_value > span[data-v-04d17f08]:nth-child(1){display:inline-block;margin-right:%?15?%;max-width:%?400?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.handle[data-v-04d17f08]{width:100%;height:%?126?%;background:#fff;display:flex;align-items:center;justify-content:center;position:fixed;left:0;bottom:0}.handle_button[data-v-04d17f08]{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-04d17f08]{width:100%}.mt30[data-v-04d17f08]{margin-top:%?30?%}',""]),t.exports=e},"5fe5":function(t,e,i){"use strict";i.r(e);var n=i("5a6c"),a=i("1690");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("d861");var s=i("f0c5"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"dfb69cd6",null,!1,n["a"],void 0);e["default"]=o.exports},"603c":function(t,e,i){var n=i("b3b2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("37b65902",n,!0,{sourceMap:!1,shadowMode:!1})},"6c05":function(t,e,i){var n=i("24fb");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-dfb69cd6]{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-dfb69cd6]{-webkit-transform:translateZ(0);transform:translateZ(0)}.pouponCount .title[data-v-dfb69cd6]{font-size:%?32?%;font-weight:700;text-align:center;padding:%?36?% 0;position:relative}.pouponCount .icon-guanbi[data-v-dfb69cd6]{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-dfb69cd6]{height:70vh}.area_container[data-v-dfb69cd6]{padding:%?20?%;background-color:#f7f7f7}.add[data-v-dfb69cd6]{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-dfb69cd6]{display:inline-block;margin-right:%?10?%}.distribution_area[data-v-dfb69cd6]{margin:0 auto %?30?%;width:%?710?%;padding:%?36?% %?30?% %?31?% %?30?%;box-sizing:border-box;background:#fff;border-radius:10px}.distribution_area[data-v-dfb69cd6]:first-child{margin-top:0}.distribution_area_title[data-v-dfb69cd6]{display:flex;justify-content:space-between;font-size:%?30?%;margin-bottom:%?36?%}.distribution_area_title > uni-view[data-v-dfb69cd6]:nth-child(2){color:#666}.distribution_area_title_del[data-v-dfb69cd6]{color:#e93323!important;font-size:%?28?%!important;display:flex;align-items:center}.distribution_area_title_del .iconfont[data-v-dfb69cd6]{font-size:%?30?%;margin-right:%?15?%}.distribution_area_title .blackColor[data-v-dfb69cd6]{color:#666!important}.distribution_area_item[data-v-dfb69cd6]{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-dfb69cd6]{text-align:right;display:flex;align-items:center}.distribution_area_item .line1[data-v-dfb69cd6]{max-width:%?430?%}.distribution_area_item .right[data-v-dfb69cd6]{color:#bbb}.distribution_area_item .right > span[data-v-dfb69cd6]:nth-child(1){display:inline-block;margin-right:%?14?%;max-width:%?350?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.handle[data-v-dfb69cd6]{width:100%;height:%?126?%;display:flex;align-items:center;justify-content:center;position:fixed;left:0;bottom:0}.handle_button[data-v-dfb69cd6]{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-dfb69cd6]{color:#bbb;font-size:%?30?%}',""]),t.exports=e},"86d6":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("59c7").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=[]},8753:function(t,e,i){"use strict";var n=i("d622"),a=i.n(n);a.a},"92a5":function(t,e,i){"use strict";i.r(e);var n=i("def6"),a=i("a42e");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("8753");var s=i("f0c5"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"1371e52f",null,!1,n["a"],void 0);e["default"]=o.exports},"9c1e":function(t,e,i){var n=i("6c05");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0522f6d2",n,!0,{sourceMap:!1,shadowMode:!1})},a156:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a434"),i("14d9"),i("d3b7"),i("d81d"),i("4de4");var a=n(i("5530")),r=n(i("c7eb")),s=n(i("1da1")),o=i("ef5b"),c=i("a5eb"),l={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,o.getCityV2)(t).then((function(t){e.areaList=t.data}))},selectArea:function(t){var e=this;return(0,s.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,s.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,c.Toast)("已经选择过了");else if(this.selectTapIndex>-1&&this.tapList.splice(this.selectTapIndex,999),t.parent_id){var e;e=(0,c.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=l},a42e:function(t,e,i){"use strict";i.r(e);var n=i("a156"),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},a5eb:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").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=s,e.formatDate=o,e.getQuarterStartDate=function(){var t=new Date(u,function(){var t=0;l<3&&(t=0);2<l&&l<6&&(t=3);5<l&&l<9&&(t=6);l>8&&(t=9);return t}(),1);return o(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+"?"+s(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"),s=r.getContext("2d"),o=new Image;return o.onload=function(){r.width=o.width,r.height=o.height,s.drawImage(o,0,0),e(r.toDataURL()),r.height=r.width=0},o.onerror=i,void(o.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 o(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),o(t,"yyyy-MM-dd")},e.throttle=function(t,e){var i,n;e=e||200;return function(){for(var a=this,r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];i=s,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("53ca")),r=n(i("5530"));function s(t){var e,i=[];return Object.keys(t).forEach((function(e){i.push("".concat(e,"=").concat(t[e]))})),e=i.join("&"),e}function o(t,e){return t?(e=e||"yyyy-MM-dd hh:mm:ss",new Date(t).format(e)):""}i("e9c4"),i("d9e2"),i("d401"),i("d3b7"),i("159b"),i("b64b"),i("14d9"),i("99af"),i("ac1f"),i("00b4"),i("5319"),i("4d63"),i("c607"),i("2c3e"),i("25f0"),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 c=new Date,l=c.getMonth(),u=c.getYear();u+=u<2e3?1900:0},a825:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("5530"));i("d81d"),i("d3b7"),i("159b"),i("14d9");var r=n(i("57d6")),s=n(i("92a5")),o=n(i("5fe5")),c=n(i("2dc2")),l=i("a5eb"),u=i("fdb9"),d={components:{tip:r.default,areas:s.default,distributionArea:o.default,parcelArea:c.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,l.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,l.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},b3b2:function(t,e,i){var n=i("24fb");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-cc1a42d8]{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-cc1a42d8]{-webkit-transform:translateZ(0);transform:translateZ(0)}.pouponCount .title[data-v-cc1a42d8]{font-size:%?32?%;font-weight:700;text-align:center;padding:%?36?% 0;position:relative}.pouponCount .icon-guanbi[data-v-cc1a42d8]{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-cc1a42d8]{height:%?650?%}.container[data-v-cc1a42d8]{padding-top:%?20?%;padding-bottom:%?197?%}.add[data-v-cc1a42d8]{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-cc1a42d8]{display:inline-block;margin-right:%?10?%}.distribution_area[data-v-cc1a42d8]{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-cc1a42d8]{display:flex;justify-content:space-between;font-size:%?30?%;margin-bottom:%?36?%}.distribution_area_title > uni-view[data-v-cc1a42d8]:nth-child(2){color:#666}.distribution_area_title_del[data-v-cc1a42d8]{color:#e93323!important;font-size:%?28?%!important;display:flex;align-items:center}.distribution_area_title_del .iconfont[data-v-cc1a42d8]{font-size:%?30?%;margin-right:%?15?%}.distribution_area_item[data-v-cc1a42d8]{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-cc1a42d8]{text-align:right;display:flex;align-items:center}.distribution_area_item .line1[data-v-cc1a42d8]{max-width:%?430?%}.distribution_area_item .right[data-v-cc1a42d8]{color:#bbb}.distribution_area_item .right > span[data-v-cc1a42d8]:nth-child(1){max-width:%?300?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;margin-right:%?14?%}.handle[data-v-cc1a42d8]{width:100%;height:%?126?%;background:#fff;display:flex;align-items:center;justify-content:center;position:fixed;left:0;bottom:0}.handle_button[data-v-cc1a42d8]{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-cc1a42d8]{color:#bbb;font-size:%?30?%}',""]),t.exports=e},b93f:function(t,e,i){"use strict";i.r(e);var n=i("86d6"),a=i("3f1b");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("3f09");var s=i("f0c5"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"04d17f08",null,!1,n["a"],void 0);e["default"]=o.exports},d622:function(t,e,i){var n=i("4a2e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("b20679fc",n,!0,{sourceMap:!1,shadowMode:!1})},d861:function(t,e,i){"use strict";var n=i("9c1e"),a=i.n(n);a.a},def6: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=[]},e209:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("159b"),i("14d9"),i("a434"),i("d81d");var a=n(i("2909")),r=n(i("92a5")),s={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=s},ef5b:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").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.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.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.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.getPageDiy=function(t){return a.default.get("micro",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.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.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("b5ef"))},fdb9:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").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("99af");var a=n(i("b5ef"))}}]); |