1 line
62 KiB
JavaScript
1 line
62 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-72f5bc9a"],{"02e9":function(e,t,i){var o=i("0c12");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("9fb2058e",o,!0,{sourceMap:!1,shadowMode:!1})},"0692e":function(e,t,i){"use strict";i("f7c3")},"09b1":function(e,t,i){var o=i("d698");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("1d44b182",o,!0,{sourceMap:!1,shadowMode:!1})},"0c12":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".goods-form[data-v-ce5246b2]{overflow:hidden}.goods-form .cell[data-v-ce5246b2]{margin-top:.62rem;text-align:left;background-color:#fff;white-space:nowrap}.goods-form .cell .van-cell[data-v-ce5246b2]:before{left:4px;top:14px;font-weight:800}.goods-form .loader-imgs[data-v-ce5246b2]{padding:.5rem 1rem .5rem 0}.goods-form .loader-imgs .cell-title[data-v-ce5246b2]{margin-bottom:.5rem}.goods-form .loader-imgs .cell-title .icon-fontclass-xinghao[data-v-ce5246b2]{height:12px;color:#ee2e2b;font-size:10px}.goods-form .loader-imgs .photobox[data-v-ce5246b2]{position:relative;width:5rem;height:5rem;margin-right:.2rem;margin-bottom:.2rem}.goods-form .loader-imgs .photobox img[data-v-ce5246b2]{width:100%;height:100%}.goods-form .loader-imgs .photobox i[data-v-ce5246b2]{position:absolute;top:-.6rem;right:-.6rem;font-size:1rem;color:#606060}.goods-form .loader-imgs .uploader-img[data-v-ce5246b2]{display:inline-block;margin-right:.5rem;width:80px;height:80px;vertical-align:bottom}.goods-form .loader-imgs .uploader-icon[data-v-ce5246b2]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:.2rem;width:80px;height:80px;border:1px dashed #c0ccda;margin:0 auto}.goods-form .loader-imgs .uploader-icon img[data-v-ce5246b2]{width:80%;height:80%}.goods-form .loader-imgs[data-v-ce5246b2] .van-cell:after{border:none}.goods-form .loader-imgs[data-v-ce5246b2] .van-uploader__input-wrapper{width:auto}.goods-form .category-tag[data-v-ce5246b2]{position:relative;display:inline-block;color:#9897a4;padding:.5rem;font-size:.625rem}.goods-form .category-tag .close-icon[data-v-ce5246b2]{position:absolute;right:0;top:0;font-size:1rem}.goods-form .more[data-v-ce5246b2]{margin:1rem auto;color:#f15353}.goods-form .hide-logistics[data-v-ce5246b2]{text-align:left;max-height:0;overflow:hidden;-webkit-transition:max-height .5s ease-in-out;transition:max-height .5s ease-in-out}.goods-form .show-logistics[data-v-ce5246b2]{max-height:30rem}",""]),e.exports=t},"1fa5":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".release-goods[data-v-684e238a]{width:100%;height:100vh;overflow-y:auto;padding-bottom:3rem;background-color:#f6f6f6}.release-goods .sticky-box[data-v-684e238a]{background:#fff;padding-bottom:.3rem}.release-goods .sticky-box[data-v-684e238a] .van-sticky{overflow:hidden;background-color:#f6f6f6}.release-goods .tabs[data-v-684e238a]{width:100%;margin-top:4px}.release-goods .btn-confirm[data-v-684e238a]{max-width:350px;position:fixed;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:95%;height:2.31rem;padding:.5rem;border-radius:1.16rem;color:#fff;background-color:#f15353}",""]),e.exports=t},2001:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,"#Permissions[data-v-a01c78ec]{width:100%;padding-bottom:3.3125rem;overflow:scroll;z-index:9999}#Permissions[data-v-a01c78ec] .member_power{background:#fff;overflow:hidden}#Permissions[data-v-a01c78ec] .member_power .cell{margin-top:.62rem;text-align:left;background-color:#fff;white-space:nowrap}#Permissions[data-v-a01c78ec] .member_power .cell .van-cell__value{overflow:hidden}#Permissions[data-v-a01c78ec] .member_power .cell .van-cell__value .van-field__right-icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%}#Permissions[data-v-a01c78ec] .member_power .cell .van-cell__value .van-field__right-icon span{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:0;overflow:hidden;text-overflow:ellipsis}#Permissions[data-v-a01c78ec] .number_power{margin-top:.625rem;background:#fff}#Permissions[data-v-a01c78ec] .number_power .van-cell__title{width:auto}#Permissions[data-v-a01c78ec] .list{max-height:25rem;position:relative;overflow:scroll;padding:.625rem 0 .625rem .875rem}#Permissions[data-v-a01c78ec] .list .van-checkbox{margin-bottom:1rem;font-size:15px}#Permissions[data-v-a01c78ec] .list .van-checkbox .van-checkbox__icon .van-icon{color:#fff;background-color:#c4c4c4}#Permissions[data-v-a01c78ec] .list .van-checkbox .van-checkbox__icon--checked .van-icon{background-color:#f15353;border-color:#f15353}#Permissions[data-v-a01c78ec] .list .deletaAtfer:after{display:none}",""]),e.exports=t},"21a1":function(e,t,i){"use strict";i("5d5b")},"277a":function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"release-goods"},[i("c-title",{attrs:{hide:!1,text:e.title}}),i("van-sticky",{staticClass:"sticky-box",attrs:{"offset-top":40}},[i("van-tabs",{staticClass:"tabs",model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[i("van-tab",{attrs:{name:0,title:"基本信息"}}),i("van-tab",{attrs:{name:1,title:"权限"}}),i("van-tab",{attrs:{name:2,title:"折扣"}})],1)],1),i("van-divider",{staticStyle:{margin:"0"}}),e.isFinished?i("div",[i("base-set",{directives:[{name:"show",rawName:"v-show",value:0==e.active,expression:"active == 0"}],ref:"refBaseSet",attrs:{goodsInfo:e.goodsInfo,categoryMenus:e.categoryMenus,dispatchTemplates:e.dispatchTemplates,dispatchTypes:e.dispatchTypes}}),i("permissions",{directives:[{name:"show",rawName:"v-show",value:1==e.active,expression:"active == 1"}],ref:"refPermissions",attrs:{levelList:e.levelList,groupsList:e.groupsList,widgetsInfo:e.widgetsInfo}}),i("discount",{directives:[{name:"show",rawName:"v-show",value:2==e.active,expression:"active == 2"}],ref:"refDiscount",attrs:{levelList:e.discountValues,widgetsInfo:e.widgetsInfo}})],1):e._e(),i("div",{staticClass:"btn-confirm",on:{click:e.releaseGoods}},[e._v(e._s(e.goodsId?"确认修改":"确认发布"))])],1)},s=[],a=(i("ac1f"),i("5319"),function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"base-goods-info"},[o("div",{staticClass:"goods-form"},[o("div",{staticClass:"cell",staticStyle:{"margin-top":"0"}},[o("div",{staticClass:"loader-imgs"},[o("van-field",{attrs:{required:"",label:"商品图片:",readonly:!0}}),o("div",{staticStyle:{"margin-left":"1rem"}},[o("van-uploader",{attrs:{"after-read":function(t,i){return e.multipleMethod_1(t,i,"goods-img")},deletable:!1}},[e.goodsImg?o("img",{staticClass:"uploader-img",attrs:{src:e.goodsImg,alt:""}}):o("div",{staticClass:"uploader-icon"},[o("img",{attrs:{src:i("9619f")}})])])],1)],1),o("div",{staticClass:"loader-imgs"},[o("van-field",{attrs:{label:"其他图片:",readonly:!0}}),o("div",{staticStyle:{display:"flex","flex-wrap":"wrap","margin-left":"1rem"}},[e._l(e.otherImgs,(function(t,i){return o("div",{key:i,staticStyle:{"margin-right":"1rem","margin-bottom":"1rem"}},[o("div",{staticClass:"photobox"},[o("img",{staticStyle:{width:"100%"},attrs:{src:t}}),o("i",{staticClass:"iconfont icon-all_filldelete",on:{click:function(t){return e.removeOtherImg(i)}}})])])})),o("van-uploader",{attrs:{"after-read":function(t,i){return e.multipleMethod_1(t,i,"other-img")},"before-delete":e.removeOtherImgs,multiple:""}},[o("div",{staticClass:"uploader-icon"},[o("img",{attrs:{src:i("9619f")}})])])],2)],1)]),e.goodsId?e._e():o("div",{staticClass:"cell"},[o("input-cell",{attrs:{labelText:"商品详情:",isReadonly:!0,value:e.goodsDetail?"修改":"添加"},nativeOn:{click:function(t){return e.showGoodsDetailPop.apply(null,arguments)}}})],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{required:"",label:"商品名称:",placeholder:"请输入商品名称"},model:{value:e.goodsName,callback:function(t){e.goodsName=t},expression:"goodsName"}})],1),o("div",{staticClass:"cell"},[o("input-cell",{attrs:{labelText:"商品分类:",isReadonly:!0,isRequired:!0,value:"商品分类"},nativeOn:{click:function(t){return e.showCategoryPop.apply(null,arguments)}}}),o("div",{staticStyle:{"white-space":"pre-wrap"}},e._l(e.goodsCategory,(function(t,i){return o("div",{key:i,staticClass:"category-tag",on:{click:function(o){return e.showCategoryPop(t,i)}}},[o("div",{staticStyle:{"background-color":"#F3F3F3",padding:"0.2rem 0.5rem"}},[t.parent_name?o("span",[e._v(e._s(t.parent_name))]):e._e(),t.child_name?o("span",[e._v("/"+e._s(t.child_name))]):e._e(),t.third_name?o("span",[e._v("/"+e._s(t.third_name))]):e._e()]),o("span",{staticClass:"close-icon",on:{click:function(t){return t.stopPropagation(),e.removeCategory(i)}}},[e._v("x")])])})),0)],1),o("div",{staticClass:"cell"},[o("input-cell",{attrs:{labelText:"商品类型:",isReadonly:!0,value:1==e.goodsType?"实体商品":"虚拟商品"},nativeOn:{click:function(t){return e.showGoodsTypePop.apply(null,arguments)}}}),2==e.goodsType?o("van-field",{attrs:{label:"下单是否需要地址:",readonly:!0},scopedSlots:e._u([{key:"right-icon",fn:function(){return[o("van-switch",{attrs:{size:"18px","active-value":1,"inactive-value":0,"inactive-color":"#bebebe"},model:{value:e.needAddress,callback:function(t){e.needAddress=t},expression:"needAddress"}})]},proxy:!0}],null,!1,1752944319)}):e._e()],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{label:"商品条码:",placeholder:"请输入商品条码"},model:{value:e.product_sn,callback:function(t){e.product_sn=t},expression:"product_sn"}}),o("van-field",{attrs:{label:"商品编码:",placeholder:"请输入商品编码"},model:{value:e.goods_sn,callback:function(t){e.goods_sn=t},expression:"goods_sn"}})],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{required:"",label:"商品单位:",placeholder:"请输入商品单位"},model:{value:e.goodsUnit,callback:function(t){e.goodsUnit=t},expression:"goodsUnit"}})],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{required:"",label:"商品现价:",placeholder:"请输入商品现价",type:"number"},model:{value:e.price,callback:function(t){e.price=t},expression:"price"}}),o("van-field",{attrs:{label:"商品原价:",placeholder:"请输入商品原价",type:"number"},model:{value:e.marketPrice,callback:function(t){e.marketPrice=t},expression:"marketPrice"}}),o("van-field",{attrs:{label:"商品成本:",placeholder:"请输入商品成本",type:"number"},model:{value:e.costPrice,callback:function(t){e.costPrice=t},expression:"costPrice"}})],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{required:"",label:"商品库存:",placeholder:"请输入商品库存"},model:{value:e.stock,callback:function(t){e.stock=t},expression:"stock"}}),o("input-cell",{attrs:{labelText:"减库存的方式:",isReadonly:!0,value:e.stockTypeText},nativeOn:{click:function(t){return e.showStockTypePop.apply(null,arguments)}}})],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{label:"不可退货退款:",readonly:!0},scopedSlots:e._u([{key:"right-icon",fn:function(){return[o("van-switch",{attrs:{size:"18px","active-value":1,"inactive-value":0,"inactive-color":"#bebebe"},model:{value:e.refund,callback:function(t){e.refund=t},expression:"refund"}})]},proxy:!0}])})],1),o("div",{class:["hide-logistics",e.viewMore?"show-logistics":""]},[o("div",{staticStyle:{padding:"5px 16px"}},[e._v("配送")]),o("div",{staticClass:"cell"},[o("input-cell",{attrs:{labelText:"运费设置:",isReadonly:!0,value:e.dispatchData.type?"统一邮费":"运费模板"},nativeOn:{click:function(t){return e.showDispatchTypePop.apply(null,arguments)}}}),o("input-cell",{attrs:{labelText:"配送方式:",isReadonly:!0,value:e.distributeTypeText},nativeOn:{click:function(t){return e.showDistributeTypePop.apply(null,arguments)}}})],1)]),o("div",{staticClass:"more",on:{click:e.viewMoreSet}},[o("span",[e._v(e._s(e.viewMore?"收起":"更多设置"))]),e.viewMore?o("van-icon",{attrs:{name:"arrow-up"}}):o("van-icon",{attrs:{name:"arrow-down"}})],1)]),o("goods-detail-popup",{ref:"detailPopup",attrs:{defaultType:e.goodsDetail},on:{saveDetail:e.saveGoodsDetail}}),o("goods-category-popup",{ref:"categoryPopup",attrs:{categoryList:e.categoryMenus},on:{confirmType:e.editCategory}}),o("goods-type-popup",{ref:"typePopup",attrs:{defaultType:e.goodsType},on:{confirmType:e.editGoodsType}}),o("stock-type-popup",{ref:"stockPopup",attrs:{defaultType:e.stockType},on:{confirmType:e.editStockType}}),o("dispatch-type-popup",{ref:"dispatchPopup",attrs:{templates:e.dispatchTemplates,defaultData:e.dispatchData},on:{confirmType:e.editDispatch}}),o("distribute-type-popup",{ref:"distributePopup",attrs:{dispatchTypeList:e.dispatchTypes,defaultChecks:e.distributes},on:{confirmType:e.editDistribute}})],1)}),n=[],c=(i("e7e5"),i("d399")),l=i("5530"),r=(i("e9c4"),i("4de4"),i("d3b7"),i("d81d"),i("b0c0"),i("a15b"),i("159b"),i("a434"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("van-field",{attrs:{label:e.labelText,readonly:e.isReadonly,placeholder:e.value?"":e.placeholder,required:e.isRequired},on:{click:e.clickField},scopedSlots:e._u([{key:"right-icon",fn:function(){return[i("span",[e._v(e._s(e.value))]),i("van-icon",{attrs:{name:"arrow"}})]},proxy:!0}])})],1)}),d=[],p={props:{labelText:{type:String},isReadonly:{type:Boolean,default:!1},placeholder:{type:String,default:""},isRequired:{type:Boolean,default:!1},value:{type:String,default:""}},data:function(){return{}},methods:{clickField:function(){this.$emit("clickField")}},components:{}},u=p,h=(i("b64d"),i("2877")),f=Object(h["a"])(u,r,d,!1,null,"436a46a6",null),m=f.exports,v=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"goods-detail-pop"},[i("yz-popup",{attrs:{isShow:e.isShowPopup,title:"商品详情",isFill:!0,isShowRight:!1},on:{closePopup:e.closePopup}},[[i("bit-map-editor",{on:{saveEdit:e.finishEdit}})]],2)],1)},g=[],b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("van-popup",{class:["yz-popup",e.isFill?"fillView":""],attrs:{value:e.isShow,position:"bottom",round:e.isRound&&!e.isFill},on:{close:e.closePopup,"click-overlay":e.closePopup}},[i("div",{staticClass:"top"},[i("span",{staticClass:"cancel",on:{click:e.closePopup}},[e._v(e._s(e.isShowLeft?"取消":""))]),i("span",{staticClass:"title"},[e._v(e._s(e.title))]),i("span",{staticClass:"confirm",on:{click:e.confirm}},[e._v(e._s(e.isShowRight?"确认":""))])]),e._t("default")],2)],1)},_=[],y={props:{isFill:{type:Boolean,default:!1},isShow:{type:Boolean,default:!1},isRound:{type:Boolean,default:!0},title:{type:String},isShowRight:{type:Boolean,default:!0},isShowLeft:{type:Boolean,default:!0}},data:function(){return{}},methods:{closePopup:function(){this.$emit("closePopup",!1)},confirm:function(){this.$emit("clickConfirmBtn",!1)}},components:{}},w=y,k=(i("21a1"),Object(h["a"])(w,b,_,!1,null,"8cb884c0",null)),x=k.exports,A=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"editor-viewer"},[i("div",{staticClass:"content-viewer"},[i("div",{staticClass:"content-list"},e._l(e.contentList,(function(t,o){return i("div",{key:o,staticClass:"editor-item",attrs:{tabindex:o},on:{click:function(i){return e.handleClick(o,t)}}},["text"===t.type?i("van-field",{staticClass:"textarea",attrs:{rows:"2",autosize:"",type:"textarea",placeholder:"给商品添加介绍吧..."},model:{value:t.value,callback:function(i){e.$set(t,"value",i)},expression:"content.value"}}):e._e(),"image"===t.type?i("img",{attrs:{src:t.value}}):e._e(),t.visible?i("div",{staticClass:"editor-item-ops"},[e.contentList.length>1&&o!==e.contentList.length-1?i("div",{staticClass:"ops-btn btn-arrow-down",on:{click:function(t){return e.moveDown(o)}}},[e._v("下移")]):e._e(),e.contentList.length>1&&0!==o?i("div",{staticClass:"ops-btn btn-arrow-up",on:{click:function(t){return e.moveUp(o)}}},[e._v("上移")]):e._e(),i("div",{staticClass:"ops-btn btn-add",on:{click:function(t){return e.handlerInser(o)}}},[e._v("添加")]),i("div",{staticClass:"ops-btn btn-delete",on:{click:function(t){return e.delOne(o)}}},[e._v("删除")])]):e._e()],1)})),0)]),i("div",{staticClass:"editor-btn-viewer"},[i("div",{staticClass:"editor-opt-btns"},[i("div",{staticClass:"right"},[i("van-uploader",{ref:"uploadImg",attrs:{"after-read":e.onRead_1,"before-read":e.beforeImageUpload}},[i("i",{staticClass:"iconfont icon-customform_list_3"})]),i("i",{staticClass:"iconfont icon-ht_textstyle_blod editor-btn",on:{click:e.addAtLast}})],1),i("div",{staticClass:"save-btn",on:{click:e.saveEdit}},[e._v("保存")])])]),i("van-action-sheet",{attrs:{actions:e.actions},on:{select:e.onSelect},model:{value:e.showAction,callback:function(t){e.showAction=t},expression:"showAction"}})],1)},C=[],T={props:["contents"],data:function(){return{contentList:[{type:"text",value:"",visible:!1}],showAction:!1,actions:[{name:"文字",type:"text"},{name:"图片",type:"image"}]}},methods:{spliceContent:function(e,t,i){return"undefined"!==typeof i?this.contentList.splice(e,t,i):this.contentList.splice(e,t)},changeText:function(e,t){this.contentList[e].value=t.target.innerHTML},handleClick:function(e){var t=this;this.contentList.forEach((function(i,o){t.$set(i,"visible",o===e)}))},moveDown:function(e){var t=this.spliceContent(e,1);this.spliceContent(e+1,0,t[0])},moveUp:function(e){var t=this.spliceContent(e,1);this.spliceContent(e-1,0,t[0])},delOne:function(e){this.spliceContent(e,1)},handlerInser:function(e){this.showAction=!0,this.insertIndex=e},onSelect:function(e){this.showAction=!1,"text"===e.type?this.spliceContent(this.insertIndex+1,0,{type:"text",value:"",visible:!1}):(this.$refs.uploadImg.isInsert=!0,this.$refs.uploadImg.chooseFile())},addAtLast:function(){this.contentList.push({type:"text",value:"",visible:!1})},onRead_1:function(e,t){c["a"].loading({message:"上传中",forbidClick:!0});var i=new FormData;i.append("file",e.file);var o=this;axios.post(this.fun.getRealUrl("upload.uploadPic"),i,{headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var t=e.data;if(1===t.result){c["a"].clear();var i=t.data.img_url,s=o.$refs.uploadImg.isInsert?o.insertIndex+1:o.contentList.length;o.spliceContent(s,0,{type:"image",value:i,visible:!1})}else c["a"].clear(),Object(c["a"])(t.msg);o.$refs.uploadImg.isInsert=!1})).catch((function(e){o.$refs.uploadImg.isInsert=!1,c["a"].clear()}))},beforeImageUpload:function(e){var t="image/jpeg"===e.type||"image/png"===e.type,i=e.size/1024/1024<2;return t||this.$toast("上传头像图片只能是 JPG 格式!"),i||this.$toast("上传头像图片大小不能超过 2MB!"),t&&i},saveEdit:function(){if(this.contentList.length<=1&&!this.contentList[0].value)return this.$toast("请先给商品添加介绍吧");var e="";this.contentList.forEach((function(t,i){"text"===t.type&&(e+="<p>".concat(t.value,"</p>")),"image"===t.type&&(e+='<img src="'.concat(t.value,'"></img>'))})),this.$emit("saveEdit",e)}},components:{}},P=T,S=(i("a4d2"),Object(h["a"])(P,A,C,!1,null,"6c479b18",null)),D=S.exports,I={props:["defaultType"],data:function(){return{isShowPopup:!1}},mounted:function(){},methods:{showPopup:function(){this.isShowPopup=!0},closePopup:function(){this.isShowPopup=!1},checkDisTemplate:function(){this.isShowPopup=!1},finishEdit:function(e){this.isShowPopup=!1,this.$emit("saveDetail",e)}},components:{yzPopup:x,bitMapEditor:D}},M=I,O=(i("0692e"),Object(h["a"])(M,v,g,!1,null,"bc1a1664",null)),z=O.exports,L=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"goods-type-pop"},[i("yz-popup",{attrs:{isShow:e.isShowPopup,title:"选择商品类型"},on:{closePopup:e.cancelSelect,clickConfirmBtn:e.confirmType}},[[i("div",{staticClass:"select"},[i("div",{class:["option",1==e.active?"active-red":""],on:{click:function(t){return e.selectType(1)}}},[i("i",{staticClass:"iconfont icon-fontclass-fahuo"}),i("p",{staticClass:"type-description"},[e._v("实体商品")])]),i("div",{class:["option",2==e.active?"active-red":""],on:{click:function(t){return e.selectType(2)}}},[i("i",{staticClass:"iconfont icon-fontclass-xuni"}),i("p",{staticClass:"type-description"},[e._v("虚拟商品")])])])]],2)],1)},B=[],$=(i("a9e3"),{props:{defaultType:{type:[String,Number,Boolean,Object],default:""}},data:function(){return{active:"",isShowPopup:!1}},methods:{showPopup:function(e){this.isShowPopup=!0,this.active=e},cancelSelect:function(){this.isShowPopup=!1},selectType:function(e){this.active=e,this.$emit("changeType",this.active)},confirmType:function(e){this.isShowPopup=e,this.$emit("confirmType",this.active)}},components:{yzPopup:x}}),E=$,G=(i("ead1"),Object(h["a"])(E,L,B,!1,null,"72576cff",null)),j=G.exports,R=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"stock-type-pop"},[i("yz-popup",{attrs:{isShow:e.isShowPopup,title:"减库存方式"},on:{closePopup:e.closePopup,clickConfirmBtn:e.confirmType}},[[i("van-radio-group",{staticStyle:{"text-align":"left"},attrs:{"checked-color":"#f15353"},on:{change:e.changeType},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[i("van-cell-group",[i("van-cell",{attrs:{clickable:""},on:{click:function(t){e.radio=0}},scopedSlots:e._u([{key:"title",fn:function(){return[i("p",{staticClass:"title"},[e._v("拍下减少库存")]),i("p",{staticClass:"description"},[e._v("买家拍下商品即减少库存,存在恶拍风险")])]},proxy:!0},{key:"right-icon",fn:function(){return[i("van-radio",{attrs:{name:0}})]},proxy:!0}])}),i("van-cell",{attrs:{clickable:""},on:{click:function(t){e.radio=1}},scopedSlots:e._u([{key:"title",fn:function(){return[i("p",{staticClass:"title"},[e._v("付款减库存")]),i("p",{staticClass:"description"},[e._v("买家拍下并完成付款减少库存,存在超卖风险")])]},proxy:!0},{key:"right-icon",fn:function(){return[i("van-radio",{attrs:{name:1}})]},proxy:!0}])}),i("van-cell",{attrs:{clickable:""},on:{click:function(t){e.radio=2}},scopedSlots:e._u([{key:"title",fn:function(){return[i("p",{staticClass:"title"},[e._v("永不减库存")]),i("p",{staticClass:"description"},[e._v("无论拍下或付款成功,商品永远不会扣除库存数量")])]},proxy:!0},{key:"right-icon",fn:function(){return[i("van-radio",{attrs:{name:2}})]},proxy:!0}])})],1)],1)]],2)],1)},N=[],U={props:["defaultType"],data:function(){return{radio:0,isShowPopup:!1}},watch:{defaultType:function(e){this.radio=e}},mounted:function(){this.radio=this.defaultType?this.defaultType:0},methods:{showPopup:function(){this.isShowPopup=!0},changeType:function(e){this.$emit("changeType",e)},closePopup:function(){this.isShowPopup=!1},confirmType:function(e){this.isShowPopup=e,this.$emit("confirmType",this.radio)}},components:{yzPopup:x}},Y=U,Z=(i("b180"),Object(h["a"])(Y,R,N,!1,null,"272021ae",null)),q=Z.exports,J=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"stock-type-pop"},[i("yz-popup",{attrs:{isShow:e.isShowPopup,title:"运费设置"},on:{closePopup:e.closePopup,clickConfirmBtn:e.confirmType}},[[i("van-radio-group",{staticStyle:{"text-align":"left"},attrs:{"checked-color":"#f15353"},on:{change:e.changeType},model:{value:e.dispatchData.dispatch_type,callback:function(t){e.$set(e.dispatchData,"dispatch_type",t)},expression:"dispatchData.dispatch_type"}},[i("van-cell-group",[i("van-cell",{attrs:{clickable:""},on:{click:function(t){e.dispatchData.dispatch_type=1}},scopedSlots:e._u([{key:"title",fn:function(){return[i("p",{staticClass:"title"},[e._v("统一邮费")]),1==e.dispatchData.dispatch_type?i("van-field",{attrs:{placeholder:"请输入统一邮费"},scopedSlots:e._u([{key:"extra",fn:function(){return[i("span",{staticStyle:{display:"flex","align-items":"center"}},[e._v("元")])]},proxy:!0}],null,!1,561854218),model:{value:e.dispatchData.dispatch_price,callback:function(t){e.$set(e.dispatchData,"dispatch_price",t)},expression:"dispatchData.dispatch_price"}}):e._e()]},proxy:!0},{key:"right-icon",fn:function(){return[i("van-radio",{attrs:{name:1}})]},proxy:!0}])}),i("van-cell",{attrs:{clickable:""},on:{click:function(t){e.dispatchData.dispatch_type=0}},scopedSlots:e._u([{key:"title",fn:function(){return[i("p",{staticClass:"title"},[e._v("选择运费模板")])]},proxy:!0},{key:"right-icon",fn:function(){return[i("van-radio",{attrs:{name:0}})]},proxy:!0}])}),0==e.dispatchData.dispatch_type?i("van-cell",{staticStyle:{padding:"0 0 0 1rem"},attrs:{title:e.templateName,"is-link":""},on:{click:e.checkDisTemplate}}):e._e()],1)],1)]],2),i("van-popup",{attrs:{round:"",position:"bottom"},model:{value:e.showTemplate,callback:function(t){e.showTemplate=t},expression:"showTemplate"}},[i("van-picker",{ref:"dispatchPicker",attrs:{title:"运费设置","show-toolbar":"",columns:e.templates,"value-key":"dispatch_name"},on:{confirm:e.confirmTemplate,cancel:e.cancelTemplate}})],1)],1)},F=[],V={props:{defaultData:{type:Object,default:function(){return{}}},templates:{type:Array,default:function(){return[]}}},data:function(){return{isShowPopup:!1,showTemplate:!1,dispatchData:{},radio:0,dispatchPrice:"",columns:[],checkTemplate:{}}},computed:{templateName:function(){var e=this,t="";return this.templates.forEach((function(i,o){i.id==e.checkTemplate.id&&(t=e.checkTemplate.dispatch_name)})),t||"默认模板"}},mounted:function(){this.dispatchData=this.defaultData},methods:{showPopup:function(){this.isShowPopup=!0},changeType:function(e){this.$emit("changeType",e)},closePopup:function(){this.isShowPopup=!1},confirmType:function(e){if(1==this.dispatchData.dispatch_type&&this.fun.isTextEmpty(this.dispatchData.dispatch_price))return this.$toast("请填写统一邮费");this.isShowPopup=e,this.$emit("confirmType",this.dispatchData)},checkDisTemplate:function(){this.isShowPopup=!1,this.showTemplate=!0},confirmTemplate:function(e){this.checkTemplate=e,this.dispatchData.dispatch_id=e.id,this.cancelTemplate()},cancelTemplate:function(){this.isShowPopup=!0,this.showTemplate=!1}},components:{yzPopup:x}},Q=V,X=(i("76a9"),Object(h["a"])(Q,J,F,!1,null,"985e4b3c",null)),K=X.exports,H=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"goods-catgory-pop"},[i("yz-popup",{attrs:{isShow:e.isShowPopup,title:"选择商品分类"},on:{closePopup:e.cancelSelect,clickConfirmBtn:e.confirmType}},[[i("van-picker",{ref:"categoryPicker",attrs:{columns:e.columns},on:{confirm:e.confirmCategory}})]],2)],1)},W=[],ee={props:["defaultType","categoryList"],data:function(){return{isShowPopup:!1,columns:[]}},mounted:function(){this.columns=this.formatList(this.categoryList),this.active=this.defaultType?this.defaultType:0},methods:{formatList:function(e){var t=this,i=[];return e.forEach((function(e,o){var s={},a=e.id,n=e.name,c=e.parent_id;s={id:a,parent_id:c,text:n},e.has_many_children&&e.has_many_children.length>0&&(s.children=t.formatList(e.has_many_children)),i[o]=s})),i},showPopup:function(e,t){var i=this;this.isShowPopup=!0,e&&!this.fun.isTextEmpty(t)&&this.$nextTick((function(){var t=e.parent_name,o=e.child_name,s=e.third_name;i.$refs.categoryPicker.setValues([t,o,s])}))},cancelSelect:function(){this.isShowPopup=!1},confirmType:function(e){var t=this;this.$nextTick((function(){t.$refs.categoryPicker.confirm(),t.isShowPopup=e}))},confirmCategory:function(e,t){var i={},o=this.$refs.categoryPicker.getValues();o.length>=1&&(i.parentid=o[0].id,i.parent_name=o[0].text),o.length>=2&&(i.childid=o[1].id,i.child_name=o[1].text),o.length>=3&&(i.thirdid=o[2].id,i.third_name=o[2].text),this.$emit("confirmType",i)}},components:{yzPopup:x}},te=ee,ie=(i("81f0"),Object(h["a"])(te,H,W,!1,null,"e9440b9c",null)),oe=ie.exports,se=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"stock-type-pop"},[i("yz-popup",{attrs:{isShow:e.isShowPopup,title:"配送方式"},on:{closePopup:e.closePopup,clickConfirmBtn:e.confirmType}},[[i("van-checkbox-group",{staticStyle:{"text-align":"left"},attrs:{"checked-color":"#f15353"},on:{change:e.changeType},model:{value:e.checkBoxs,callback:function(t){e.checkBoxs=t},expression:"checkBoxs"}},[i("van-cell-group",e._l(e.dispatchTypeList,(function(t,o){return i("van-cell",{key:o,attrs:{clickable:"",title:t.name},on:{click:function(t){return e.toggle(o)}},scopedSlots:e._u([{key:"right-icon",fn:function(){return[i("van-checkbox",{ref:"checkboxes",refInFor:!0,attrs:{name:t.id+""}})]},proxy:!0}],null,!0)})})),1)],1)]],2)],1)},ae=[],ne={props:{defaultChecks:{type:Array,default:function(){return[]}},dispatchTypeList:{type:Array,default:function(){return[]}}},data:function(){return{checkBoxs:[],isShowPopup:!1}},watch:{defaultChecks:function(e){this.checkBoxs=e||[]}},methods:{showPopup:function(){this.isShowPopup=!0},changeType:function(e){this.checkBoxs=e,this.$emit("changeType",e)},closePopup:function(){this.isShowPopup=!1},confirmType:function(e){this.isShowPopup=e,this.$emit("confirmType",this.checkBoxs)},toggle:function(e){this.$refs.checkboxes&&this.$refs.checkboxes[e].toggle()}},components:{yzPopup:x}},ce=ne,le=(i("9fee"),Object(h["a"])(ce,se,ae,!1,null,"d85ba7f2",null)),re=le.exports,de={props:{goodsInfo:{type:Object},categoryMenus:{type:Array,default:function(){return[]}},dispatchTemplates:{type:Array,default:function(){return[]}},dispatchTypes:{type:Array,default:function(){return[]}}},data:function(){return{goodsId:"",goodsData:{},goodsImg:"",otherImgs:[],goodsDetail:"",goodsName:"",goodsCategory:[],goodsType:1,needAddress:0,goodsUnit:"",price:"",marketPrice:"",costPrice:"",stock:"",stockType:0,refund:0,viewMore:!1,dispatchData:{dispatch_type:0,dispatch_price:0,dispatch_id:""},distributes:[],goods_sn:"",product_sn:""}},mounted:function(){this.goodsId=this.$route.params.id,this.goodsInfo&&(this.goodsData=JSON.parse(JSON.stringify(this.goodsInfo)),this.splitGoodsData(this.goodsData))},computed:{stockTypeText:function(){var e="";switch(this.stockType){case 0:e="拍下减库存";break;case 1:e="付款减库存";break;case 2:e="永不减库存";break;default:break}return e},distributeTypeText:function(){var e=this,t=[],i=this.dispatchTypes.filter((function(t){return e.distributes.indexOf(t.id+"")>-1}));return t=i.map((function(e,t){return e.name})),t.join("/")}},methods:{validatorData:function(){if(this.fun.isTextEmpty(this.goodsImg))return this.$toast("请选择商品图片"),!1;if(this.fun.isTextEmpty(this.goodsName))return this.$toast("请输入商品名称"),!1;if(this.goodsCategory.length<=0)return this.$toast("请选择商品分类"),!1;if(this.fun.isTextEmpty(this.goodsName))return this.$toast("请输入商品名称"),!1;if(this.fun.isTextEmpty(this.goodsType))return this.$toast("请选择商品类型"),!1;if(this.fun.isTextEmpty(this.price))return this.$toast("请输入商品现价"),!1;if(this.fun.isTextEmpty(this.stock))return this.$toast("请输入商品库存"),!1;var e={goods_type:this.goodsType,status:1,title:this.goodsName,thumb:this.goodsImg,thumb_url:this.otherImgs,sku:this.goodsUnit,content:this.goodsDetail,market_price:this.marketPrice,price:this.price,cost_price:this.marketPrice,stock:this.stock,reduce_stock_method:this.stockType,no_refund:this.refund,need_address:this.needAddress,category:this.filterCategory(this.goodsCategory),goods_sn:this.goods_sn,product_sn:this.product_sn};return e.widgets={dispatch:Object(l["a"])(Object(l["a"])({},this.dispatchData),{},{dispatch_type_ids:this.distributes})},e},filterCategory:function(e){var t=[],i=[],o=[];return e.forEach((function(e,s){e.parentid&&t.push(e.parentid),e.childid&&i.push(e.childid),e.thirdid&&o.push(e.thirdid)})),{parentid:t,childid:i,thirdid:o}},splitGoodsData:function(e){if(this.goodsImg=e.thumb_src,this.otherImgs=e.thumb_url_src?e.thumb_url_src:[],this.goodsDetail=e.content,this.goodsName=e.title,this.goodsType=e.type,this.needAddress=e.need_address?e.need_address:0,this.goodsUnit=e.sku,this.price=e.price,this.marketPrice=e.market_price,this.costPrice=e.cost_price,this.stock=e.stock,this.stockType=e.reduce_stock_method,this.refund=e.no_refund,this.goodsCategory=e.has_many_goods_category?e.has_many_goods_category:[],this.product_sn=e.product_sn,this.goods_sn=e.goods_sn,e.widgets&&e.widgets.dispatch){var t=e.widgets.dispatch;this.dispatchData.dispatch_type=t.dispatch_type,this.dispatchData.dispatch_price=t.dispatch_price,this.dispatchData.dispatch_id=t.dispatch_id,this.distributes=t.dispatch_type_ids}},multipleMethod_1:function(e,t,i){if(this.LOADER_IMGS="goods-img"===i?"goodsImgs":"otherImgs",e&&e.length)for(var o=0;o<e.length;o++)this.onRead_1(e[o],t,i);else this.onRead_1(e,t,i)},onRead_1:function(e,t,i){c["a"].loading({message:"上传中",forbidClick:!0});var o=new FormData;o.append("file",e.file);var s=this;axios.post(this.fun.getRealUrl("upload.uploadPic"),o,{headers:{"Content-Type":"multipart/form-data"}}).then((function(e){var t=e.data;1===t.result?(c["a"].clear(),"goods-img"===i?s.goodsImg=t.data.img_url:s.otherImgs.push(t.data.img_url)):(c["a"].clear(),Object(c["a"])(t.msg))})).catch((function(e){c["a"].clear()}))},removeOtherImg:function(e){this.otherImgs.splice(e,1)},showGoodsDetailPop:function(){this.$refs.detailPopup.showPopup()},saveGoodsDetail:function(e){this.goodsDetail=e},removeCategory:function(e){this.goodsCategory.splice(e,1)},showGoodsTypePop:function(){this.$refs.typePopup.showPopup(this.goodsType)},editGoodsType:function(e){this.goodsType=e},showStockTypePop:function(){this.$refs.stockPopup.showPopup()},editStockType:function(e){this.stockType=e},showDispatchTypePop:function(){this.$refs.dispatchPopup.showPopup()},editDispatch:function(e){this.dispatchData=e},showCategoryPop:function(e,t){this.addCategoryIndex=void 0!==t&&""!==t?t:"",this.$refs.categoryPopup.showPopup(e)},editCategory:function(e){var t=this.goodsCategory.some((function(t){return e.thirdid?t.parentid==e.parentid&&t.childid==e.childid&&t.thirdid==e.thirdid:t.parentid==e.parentid&&t.childid==e.childid}));if(t)return this.$toast("不能重复添加商品分类");void 0!==this.addCategoryIndex&&""!==this.addCategoryIndex?this.goodsCategory.splice(this.addCategoryIndex,1,e):this.goodsCategory.push(e)},showDistributeTypePop:function(){this.$refs.distributePopup.showPopup()},editDistribute:function(e){this.distributes=e},viewMoreSet:function(){this.viewMore=!this.viewMore}},components:{inputCell:m,goodsDetailPopup:z,goodsTypePopup:j,stockTypePopup:q,dispatchTypePopup:K,goodsCategoryPopup:oe,distributeTypePopup:re}},pe=de,ue=(i("4f87"),Object(h["a"])(pe,a,n,!1,null,"ce5246b2",null)),he=ue.exports,fe=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"Permissions"}},[i("div",{staticClass:"power_box"},[i("div",{staticClass:"member_power"},[i("div",{staticClass:"cell"},[i("input-cell",{attrs:{value:e.hyll_Model.length>0?e.hyll_Model.join(","):"",labelText:"会员等级浏览权限:",isReadonly:!0},nativeOn:{click:function(t){return e.showPopup(1)}}})],1),i("div",{staticClass:"cell"},[i("input-cell",{attrs:{value:e.hygm_Model.length>0?e.hygm_Model.join(","):"",labelText:"会员等级购买权限:",isReadonly:!0},nativeOn:{click:function(t){return e.showPopup(2)}}})],1),i("div",{staticClass:"cell"},[i("input-cell",{attrs:{value:e.hyzll_Model.length>0?e.hyzll_Model.join(","):"",labelText:"会员组浏览权限:",isReadonly:!0},nativeOn:{click:function(t){return e.showPopup(3)}}})],1),i("div",{staticClass:"cell"},[i("input-cell",{attrs:{value:e.hyzgm_Model.length>0?e.hyzgm_Model.join(","):"",labelText:"会员组购买权限:",isReadonly:!0},nativeOn:{click:function(t){return e.showPopup(4)}}})],1)]),i("div",{staticClass:"number_power"},[i("div",{staticClass:"cell"},[i("van-field",{attrs:{label:"每次限购数量:",placeholder:"请输入每次下单限购数量",type:"number"},model:{value:e.once_buy_limit,callback:function(t){e.once_buy_limit=t},expression:"once_buy_limit"}})],1),i("div",{staticClass:"cell"},[i("van-field",{attrs:{label:"会员限购总数:",placeholder:"请输入会员限购的总数",type:"number"},model:{value:e.total_buy_limit,callback:function(t){e.total_buy_limit=t},expression:"total_buy_limit"}})],1),i("div",{staticClass:"cell"},[i("van-field",{attrs:{label:"会员每天限购总数:",placeholder:"请输入会员每天限购数量",type:"number"},model:{value:e.day_buy_limit,callback:function(t){e.day_buy_limit=t},expression:"day_buy_limit"}})],1),i("div",{staticClass:"cell"},[i("van-field",{attrs:{label:"会员每周期限购数量:",placeholder:"请输入会员每周期限购数量",type:"number"},model:{value:e.week_buy_limit,callback:function(t){e.week_buy_limit=t},expression:"week_buy_limit"}})],1),i("div",{staticClass:"cell"},[i("van-field",{attrs:{label:"会员每月限购数量:",placeholder:"请输入会员每月限购数",type:"number"},model:{value:e.month_buy_limit,callback:function(t){e.month_buy_limit=t},expression:"month_buy_limit"}})],1)])]),i("yz-popup",{attrs:{isShow:e.isShowPopup,isShowLeft:!1,isShowRight:!1,title:"会员等级浏览权限"},on:{closePopup:e.cancelSelect,clickConfirmBtn:e.confirmType}},[e.show1?i("div",{staticClass:"list"},[e.levelList.length?i("van-checkbox",{on:{click:e.checkAll},model:{value:e.show_levels_CheckedAll,callback:function(t){e.show_levels_CheckedAll=t},expression:"show_levels_CheckedAll"}},[e._v("全选")]):e._e(),i("van-checkbox-group",{ref:"checkboxGroup",model:{value:e.show_levels,callback:function(t){e.show_levels=t},expression:"show_levels"}},e._l(e.levelList,(function(t,o){return i("van-checkbox",{key:o,staticClass:"deletaAtfer",attrs:{name:t.id}},[e._v(e._s(t.level_name))])})),1),e.levelList.length?e._e():i("h2",{staticStyle:{"text-align":"center",margin:"15px 0"}},[e._v("暂无数据")])],1):e._e(),e.show2?i("div",{staticClass:"list"},[e.levelList.length?i("van-checkbox",{on:{click:e.checkAllBuyLevels},model:{value:e.buy_levels_CheckedAll,callback:function(t){e.buy_levels_CheckedAll=t},expression:"buy_levels_CheckedAll"}},[e._v("全选")]):e._e(),i("van-checkbox-group",{ref:"checkboxGroup",model:{value:e.buy_levels,callback:function(t){e.buy_levels=t},expression:"buy_levels"}},e._l(e.levelList,(function(t,o){return i("van-checkbox",{key:o,staticClass:"deletaAtfer",attrs:{name:t.id}},[e._v(e._s(t.level_name))])})),1),e.levelList.length?e._e():i("h2",{staticStyle:{"text-align":"center",margin:"15px 0"}},[e._v("暂无数据")])],1):e._e(),e.show3?i("div",{staticClass:"list"},[e.groupsList.length?i("van-checkbox",{on:{click:e.checkAllShowGroups},model:{value:e.show_groups_CheckedAll,callback:function(t){e.show_groups_CheckedAll=t},expression:"show_groups_CheckedAll"}},[e._v("全选")]):e._e(),i("van-checkbox-group",{ref:"checkboxGroup",model:{value:e.show_groups,callback:function(t){e.show_groups=t},expression:"show_groups"}},e._l(e.groupsList,(function(t,o){return i("van-checkbox",{key:o,staticClass:"deletaAtfer",attrs:{name:t.id}},[e._v(e._s(t.group_name))])})),1),e.groupsList.length?e._e():i("h2",{staticStyle:{"text-align":"center",margin:"15px 0"}},[e._v("暂无数据")])],1):e._e(),e.show4?i("div",{staticClass:"list"},[e.groupsList.length?i("van-checkbox",{on:{click:e.checkAllBuyGroups},model:{value:e.buy_groups_CheckedAll,callback:function(t){e.buy_groups_CheckedAll=t},expression:"buy_groups_CheckedAll"}},[e._v("全选")]):e._e(),i("van-checkbox-group",{ref:"checkboxGroup",model:{value:e.buy_groups,callback:function(t){e.buy_groups=t},expression:"buy_groups"}},e._l(e.groupsList,(function(t,o){return i("van-checkbox",{key:o,staticClass:"deletaAtfer",attrs:{name:t.id}},[e._v(e._s(t.group_name))])})),1),e.groupsList.length?e._e():i("h2",{staticStyle:{"text-align":"center",margin:"15px 0"}},[e._v("暂无数据")])],1):e._e()])],1)},me=[],ve={props:{levelList:{type:[String,Array,Object],default:function(){return[]}},groupsList:{type:[String,Array,Object],default:function(){return[]}},widgetsInfo:{type:[String,Number,Object],default:function(){}}},data:function(){return{isShowPopup:!1,popTitle:"",show_levels_CheckedAll:!1,buy_levels_CheckedAll:!1,show_groups_CheckedAll:!1,buy_groups_CheckedAll:!1,show1:!1,show2:!1,show3:!1,show4:!1,buy_levels:[],show_levels:[],show_groups:[],buy_groups:[],once_buy_limit:"0",total_buy_limit:"0",day_buy_limit:"0",week_buy_limit:"0",month_buy_limit:"0",hyll_Model:[],hygm_Model:[],hyzll_Model:[],hyzgm_Model:[]}},watch:{show_levels:function(e,t){e.length==this.levelList.length?this.show_levels_CheckedAll=!0:this.show_levels_CheckedAll=!1;var i=this.levelList.filter((function(t){return-1!==e.indexOf(t.id)}));this.hyll_Model=i.map((function(e){return e.level_name}))},buy_levels:function(e,t){e.length==this.levelList.length?this.buy_levels_CheckedAll=!0:this.buy_levels_CheckedAll=!1;var i=this.levelList.filter((function(t){return-1!==e.indexOf(t.id)}));this.hygm_Model=i.map((function(e){return e.level_name}))},show_groups:function(e,t){e.length==this.groupsList.length?this.show_groups_CheckedAll=!0:this.show_groups_CheckedAll=!1;var i=this.groupsList.filter((function(t){return-1!==e.indexOf(t.id)}));this.hyzll_Model=i.map((function(e){return e.group_name}))},buy_groups:function(e,t){e.length==this.groupsList.length?this.buy_groups_CheckedAll=!0:this.buy_groups_CheckedAll=!1;var i=this.groupsList.filter((function(t){return-1!==e.indexOf(t.id)}));this.hyzgm_Model=i.map((function(e){return e.group_name}))}},activated:function(){this.init(),this.getDataInfo()},mounted:function(){this.init(),this.getDataInfo()},methods:{cancelSelect:function(){this.isShowPopup=!1},confirmType:function(e){this.isShowPopup=!1},init:function(){this.show_levels_CheckedAll=!1,this.buy_levels_CheckedAll=!1,this.show_groups_CheckedAll=!1,this.buy_groups_CheckedAll=!1,this.show1=!1,this.show2=!1,this.show3=!1,this.show4=!1},getDataInfo:function(){var e=this,t=this;if(this.widgetsInfo&&this.widgetsInfo.privilege){var i=this.widgetsInfo.privilege,o=i.show_levels,s=i.show_groups,a=i.buy_levels,n=i.buy_groups,c=i.once_buy_limit,l=i.total_buy_limit,r=i.day_buy_limit,d=i.week_buy_limit,p=i.month_buy_limit;t.show_levels=o?o.map(Number):[],t.show_groups=s?s.map(Number):[],t.buy_levels=a?a.map(Number):[],t.buy_groups=n?n.map(Number):[],t.once_buy_limit=String(c),t.total_buy_limit=String(l),t.day_buy_limit=String(r),t.week_buy_limit=String(d),t.month_buy_limit=String(p);var u=t.levelList.filter((function(t){return-1!==e.widgetsInfo.privilege.show_levels.indexOf(t.id)}));t.hyll_Model=u.map((function(e){return e.level_name}));var h=t.levelList.filter((function(t){return-1!==e.widgetsInfo.privilege.buy_levels.indexOf(t.id)}));t.hygm_Model=h.map((function(e){return e.level_name}));var f=t.groupsList.filter((function(t){return-1!==e.widgetsInfo.privilege.show_groups.indexOf(t.id)}));t.hyzll_Model=f.map((function(e){return e.group_name}));var m=t.groupsList.filter((function(t){return-1!==e.widgetsInfo.privilege.buy_groups.indexOf(t.id)}));t.hyzgm_Model=m.map((function(e){return e.group_name}))}},checkAll:function(){this.show_levels_CheckedAll?this.$refs.checkboxGroup.toggleAll(!0):this.$refs.checkboxGroup.toggleAll()},checkAllBuyLevels:function(){this.buy_levels_CheckedAll?this.$refs.checkboxGroup.toggleAll(!0):this.$refs.checkboxGroup.toggleAll()},checkAllShowGroups:function(){this.show_groups_CheckedAll?this.$refs.checkboxGroup.toggleAll(!0):this.$refs.checkboxGroup.toggleAll()},checkAllBuyGroups:function(){this.buy_groups_CheckedAll?this.$refs.checkboxGroup.toggleAll(!0):this.$refs.checkboxGroup.toggleAll()},validatorData:function(){var e={};return e={show_levels:this.show_levels,buy_levels:this.buy_levels,show_groups:this.show_groups,buy_groups:this.buy_groups,once_buy_limit:this.once_buy_limit,total_buy_limit:this.total_buy_limit,day_buy_limit:this.day_buy_limit,week_buy_limit:this.week_buy_limit,month_buy_limit:this.month_buy_limit},e},showPopup:function(e){switch(this.isShowPopup=!0,this.show1=!1,this.show2=!1,this.show3=!1,this.show4=!1,e){case 1:this.popTitle="会员等级浏览权限",this.show1=!0;break;case 2:this.popTitle="会员等级购买权限",this.show2=!0;break;case 3:this.popTitle="会员组浏览权限",this.show3=!0;break;case 4:this.popTitle="会员组购买权限",this.show4=!0;break;default:break}}},components:{inputCell:m,yzPopup:x}},ge=ve,be=(i("caec"),Object(h["a"])(ge,fe,me,!1,null,"a01c78ec",null)),_e=be.exports,ye=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"discount"}},[i("div",{staticClass:"rebate_box"},[i("ul",{staticClass:"type"},[i("li",[i("van-field",{attrs:{label:"折扣类型:"},scopedSlots:e._u([{key:"input",fn:function(){return[i("van-checkbox",{attrs:{"checked-color":"#f15353"},model:{value:e.level_discount_type,callback:function(t){e.level_discount_type=t},expression:"level_discount_type"}},[e._v(" 会员等级 ")])]},proxy:!0}])})],1),i("li",[i("van-field",{attrs:{label:"折扣方式:"},scopedSlots:e._u([{key:"input",fn:function(){return[i("van-radio-group",{attrs:{direction:"horizontal","checked-color":"#f15353"},model:{value:e.discount_method,callback:function(t){e.discount_method=t},expression:"discount_method"}},[i("van-radio",{attrs:{name:1,"icon-size":"18px"}},[e._v("折扣")]),i("van-radio",{attrs:{name:2,"icon-size":"18px"}},[e._v("固定金额")]),i("van-radio",{attrs:{name:3,"icon-size":"18px"}},[e._v("成本比例")])],1)]},proxy:!0}])})],1)]),i("ul",{staticClass:"member_number"},e._l(e.discount_values,(function(t,o){return i("li",{key:o},[i("van-field",{attrs:{label:t.level_name,placeholder:"请输入等级折扣"},model:{value:t.discount_value,callback:function(i){e.$set(t,"discount_value",i)},expression:"item.discount_value"}})],1)})),0)])])},we=[],ke={props:{widgetsInfo:{type:[String,Number,Object],default:function(){}},levelList:{type:Array,default:function(){return[]}}},data:function(){return{discount_values:[],level_discount_type:!0,discount_method:1}},mounted:function(){this.discount_values=this.levelList,this.getDataInfo()},methods:{setDiscountValues:function(){},getDataInfo:function(){var e=this;if(this.widgetsInfo&&this.widgetsInfo.discount){var t=this.widgetsInfo.discount,i=t.level_discount_type,o=t.discount_method;e.level_discount_type=Boolean(i),e.discount_method=o}},filertMap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.map((function(e){return{level_id:e.id,discount_value:e.discount_value}}));return t},validatorData:function(){var e={};return e={level_discount_type:this.level_discount_type?1:0,discount_method:this.discount_method,discount_value:this.filertMap(this.discount_values)},e}},computed:{}},xe=ke,Ae=(i("c3940"),Object(h["a"])(xe,ye,we,!1,null,"7e461ce8",null)),Ce=Ae.exports,Te={data:function(){return{active:0,title:"商品发布",goodsId:"",getUrl:"",getJson:{},levelList:[],groupsList:[],isFinished:!1,goodsInfo:{},widgetsInfo:{},discountValues:[]}},activated:function(){this.init(),this.goodsId=this.$route.params.id,this.fun.isTextEmpty(this.goodsId)?(this.getJson={},this.getDatUrl="plugin.shop-assistant.frontend.goods.add",this.title="商品发布"):(this.title="商品修改",this.getJson={id:this.goodsId},this.getDatUrl="plugin.shop-assistant.frontend.goods.get-detail"),this.getGoodsDetail()},methods:{init:function(){this.active=0,this.title="商品发布",this.goodsId="",this.getUrl="",this.getJson={},this.levelList=[],this.groupsList=[],this.isFinished=!1,this.goodsInfo={},this.widgetsInfo={},this.discountValues=[]},getGoodsDetail:function(){var e=this;$http.get(this.getDatUrl,this.getJson,"loading").then((function(t){e.isFinished=!0;var i=t.data,o=i.levels,s=i.groups,a=i.goods,n=i.category_menus,c=i.dispatch_templates,l=i.dispatch_types;if(1!==t.result)return e.$router.replace(e.fun.getUrl("storeGoodsManagement")),e.$toast(t.msg);e.levelList=o,e.groupsList=s,e.goodsInfo=a,e.categoryMenus=n,e.dispatchTemplates=c,e.dispatchTypes=l,e.widgetsInfo=a?a.widgets:{},e.discountValues=e.levelList}))},releaseGoods:function(){var e=this.$refs.refBaseSet?this.$refs.refBaseSet.validatorData():{},t=this.$refs.refPermissions?this.$refs.refPermissions.validatorData():{},i=this.$refs.refDiscount?this.$refs.refDiscount.validatorData():{};if(!e)return!1;var o=e;o.widgets.privilege=t,o.widgets.discount=i,this.fun.isTextEmpty(this.goodsId)?this.saveRequest("plugin.shop-assistant.frontend.goods.create",o,"保存中..."):(o.id=this.goodsId,this.saveRequest("plugin.shop-assistant.frontend.goods.update",o,"保存中..."))},saveRequest:function(e,t,i){var o=this;$http.post(e,t,i).then((function(e){if(1!==e.result)return o.$toast(e.msg);o.$router.push(o.fun.getUrl("storeGoodsManagement"))}))}},components:{baseSet:he,permissions:_e,discount:Ce}},Pe=Te,Se=Pe,De=(i("b5f3"),Object(h["a"])(Se,o,s,!1,null,"684e238a",null));t["default"]=De.exports},"45ae5":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".stock-type-pop[data-v-272021ae] .van-cell{padding:1rem 0}.stock-type-pop[data-v-272021ae] .van-cell .van-radio__icon .van-icon{color:#fff;background-color:#c4c4c4}.stock-type-pop .title[data-v-272021ae]{font-size:.88rem;line-height:1.13rem;color:#2b2a2a}.stock-type-pop .description[data-v-272021ae]{margin-top:.5rem;font-size:.75rem;line-height:1.13rem;letter-spacing:0;color:#919191}",""]),e.exports=t},"4f87":function(e,t,i){"use strict";i("02e9")},57848:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,"#discount[data-v-7e461ce8]{padding-bottom:3.3125rem;overflow:scroll;z-index:9999;overflow:hidden}#discount[data-v-7e461ce8] .rebate_box .member_number,#discount[data-v-7e461ce8] .rebate_box .type{margin-top:.625rem;background:#fff}#discount[data-v-7e461ce8] .rebate_box .member_number li,#discount[data-v-7e461ce8] .rebate_box .type li{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:15px}#discount[data-v-7e461ce8] .rebate_box .member_number li .van-radio,#discount[data-v-7e461ce8] .rebate_box .type li .van-radio{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin-bottom:.5rem}#discount[data-v-7e461ce8] .rebate_box .member_number .van-cell__title,#discount[data-v-7e461ce8] .rebate_box .type .van-cell__title{width:auto!important;max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#discount[data-v-7e461ce8] .rebate_box .member_number .van-radio-group,#discount[data-v-7e461ce8] .rebate_box .type .van-radio-group{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap}#discount[data-v-7e461ce8] .rebate_box .member_number .van-radio .van-radio__icon .van-icon,#discount[data-v-7e461ce8] .rebate_box .type .van-radio .van-radio__icon .van-icon{color:#fff!important;background-color:#c4c4c4!important}#discount[data-v-7e461ce8] .rebate_box .member_number .van-radio .van-radio__icon--checked .van-icon,#discount[data-v-7e461ce8] .rebate_box .type .van-radio .van-radio__icon--checked .van-icon{background-color:#f15353!important;border-color:#f15353!important}#discount[data-v-7e461ce8] .rebate_box .member_number .list_box,#discount[data-v-7e461ce8] .rebate_box .type .list_box{padding:.625rem .875rem}#discount[data-v-7e461ce8] .rebate_box .type{margin-top:0}",""]),e.exports=t},"5b39":function(e,t,i){var o=i("ec64");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("0ca3580d",o,!0,{sourceMap:!1,shadowMode:!1})},"5d5b":function(e,t,i){var o=i("dc053");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("0c618598",o,!0,{sourceMap:!1,shadowMode:!1})},"75ed":function(e,t,i){var o=i("ce4a");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("6ad2fc28",o,!0,{sourceMap:!1,shadowMode:!1})},7600:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".editor-viewer[data-v-6c479b18]{position:relative;width:100%;margin-top:1rem;padding-bottom:50px;overflow-y:auto}.editor-viewer .content-viewer[data-v-6c479b18]{width:100%;height:100%;overflow-y:scroll;overflow-x:hidden}.editor-viewer .content-viewer .content-list[data-v-6c479b18]{padding:5px}.editor-viewer .content-viewer .content-list .editor-item[data-v-6c479b18]{position:relative;min-height:8rem;padding:.5rem;margin-bottom:2.7rem;border-radius:.31rem;background-color:#f7f7f7;overflow:visible!important}.editor-viewer .content-viewer .content-list .editor-item .textarea[data-v-6c479b18],.editor-viewer .content-viewer .content-list .editor-item img[data-v-6c479b18]{width:100%;height:auto;min-height:70px;text-align:left;padding:8px;color:#666;font-size:13px}.editor-viewer .content-viewer .content-list .editor-item .textarea[data-v-6c479b18]{min-height:8rem;line-height:22px;outline:0;background-color:#f7f7f7;border:none;-webkit-user-select:text}.editor-viewer .content-viewer .content-list .editor-item .editor-item-ops[data-v-6c479b18]{position:absolute;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:left;height:1.44rem;right:6px;bottom:-2.4rem;z-index:100}.editor-viewer .content-viewer .content-list .editor-item .editor-item-ops .ops-btn[data-v-6c479b18]{height:1.44rem;line-height:1rem;margin-left:.3rem;padding:.2rem 1rem;border-radius:.13rem;color:#fff}.editor-viewer .content-viewer .content-list .editor-item .editor-item-ops .grey[data-v-6c479b18]{color:#c9c9c9}.editor-viewer .content-viewer .content-list .editor-item .editor-item-ops .btn-arrow-down[data-v-6c479b18],.editor-viewer .content-viewer .content-list .editor-item .editor-item-ops .btn-arrow-up[data-v-6c479b18]{background-color:#28b2fa}.editor-viewer .content-viewer .content-list .editor-item .editor-item-ops .btn-add[data-v-6c479b18]{background-color:#f27c1c}.editor-viewer .content-viewer .content-list .editor-item .editor-item-ops .btn-delete[data-v-6c479b18]{background-color:#f15353}.editor-viewer .content-viewer .content-list .editor-item[data-v-6c479b18]:hover{-webkit-box-shadow:0 0 10px #ccc;box-shadow:0 0 10px #ccc}.editor-btn-viewer[data-v-6c479b18]{z-index:999;position:fixed;left:0;bottom:0;width:100%;height:50px;background-color:#fff;-webkit-box-shadow:0 -.12rem .5rem 0 hsla(0,0%,79.2%,.51);box-shadow:0 -.12rem .5rem 0 hsla(0,0%,79.2%,.51)}.editor-btn-viewer .right[data-v-6c479b18]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left}.editor-btn-viewer .editor-opt-btns[data-v-6c479b18]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;padding:0 1rem}.editor-btn-viewer .save-btn[data-v-6c479b18]{padding:.5rem 3rem;color:#fff;background-color:#f15353;border-radius:1.03rem;white-space:nowrap}.editor-btn-viewer .icon-customform_list_3[data-v-6c479b18]{font-size:22px;color:#9a9a9a}.editor-btn-viewer .icon-ht_textstyle_blod[data-v-6c479b18]{font-size:21px;color:#9a9a9a}.editor-btn-viewer .editor-btn[data-v-6c479b18]{display:inline-block;margin-left:1rem}.editor-btn-viewer .editor-btn[data-v-6c479b18]:hover{color:#409eff;background-color:#ecf5ff}",""]),e.exports=t},"76a9":function(e,t,i){"use strict";i("75ed")},"78e2":function(e,t,i){var o=i("1fa5");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("9ae435e2",o,!0,{sourceMap:!1,shadowMode:!1})},"81f0":function(e,t,i){"use strict";i("d042")},"83db":function(e,t,i){var o=i("e77a");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("a7a5b676",o,!0,{sourceMap:!1,shadowMode:!1})},"9205d":function(e,t,i){var o=i("7600");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("478d7dda",o,!0,{sourceMap:!1,shadowMode:!1})},"9619f":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAGv0lEQVR4Xu2dUYgVZRiGv292C89uiQQREVFEBhaUheZFIokXQtBNN5nmRRey5IaU7PyzexEdunFmznI2pNWQ6EIs7b7Ai3ApKrKMJAgFJcoL6SaCaPdIuztfzLK7oOn6enbc+c+c91zKO///z/N+PHrOGTwqXfZqNBovZln2nIg8KyKb8ttX1e/M7AdV/do591k3IdFuudkDBw482tPTc2yh9CXu+/Ts7OyOkZGR37qBTVcMQJIke1V1HC3UzK6o6n7n3GH0mk7NVX4A4jjeHgTByXYKUtVtYRieaufaTrmm0gNw8ODB1a1W66Kq3ttOIWZ2uVarrdu3b9/f7VzfCddUegDSNP1YRHYus4hjzrndy1zD28srOwDNZvOemZmZP4sg39/ff/fg4OA/Razl2xqVHYA4jrcEQfBlQcA3O+e+KWgtr5ap7ACkafq6iBwqiPaAc+5IQWt5tUxlByBJkjFVfbMg2mPOuf0FreXVMlUegHFV3VsQ7cPOuaLWKuhIxSzDAcA4cgAwTv6kkiShAYA6aAAAkojQABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqgATBONADGyZ8UDYB1QQNgnGgAjJM/KRoA64IGwDjRABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqgATBONADGyZ8UDYB1QQNgnGgAjJM/KRoA64IGwDjRABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMU3caYP7/3M9/XWu9ma3CWPmRUtUXRGRjEacxszMi8nkRa63UGqp6RUTOzs7Onh4ZGfnrRvte1wCNRuMdM3tNRB5aqQNzn9tK4HcR+cg59+61u1w1AEmSbBCRo6q67rYeh4uXQsDMzqnqTufc2YUDLA5AmqYvi8iJUk7GTVeUQJZlrwwPD891PTcAY2Nj909PT58XkdUrehJuVhaBySzLHh8eHr40NwBpmk6IyPNlnYb7rjwBM/vWObdZ4zh+KgiCxb8TVv4o3LFEAps1TdNBEXm/xENw6/IIvK1JkhxX1R3lnYE7l0XAzCZyA1wSkQfLOgT3LY/A3I9kJ0nyh6reV94xuHOZBPIBOKmq28s8BPcuh0D+TiAfgFhVo3KOwF1LJjCavw3cEQTB8ZIPwu1LIKCqL2m9Xu/r6+vLPwdYW8IZuGVJBMzsl1ar9czcJ4FxHD+hqmdUtaO+8i2JXcdva2ZTqrreOXdh8cugJEl2q+rRjr873sBNCajqrjAMP8mDV30d3Gg0NmVZdkJVH77pKgx0HAEzuxgEwathGJ5eOPz/HghpNpu1mZmZRETeuHZAOu6OeeAFApZ/3D81NeXq9Xr+pNDi64bPBDYajf4sy9ap6loze0RE7ugknnwkTP/NsuzX3t7eC2Z2PgzDyev1x4dCsanuzodCMTZ+pvhYONYLDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqgATBONADGyZ8UDYB1QQNgnGgAjJM/KRoA64IGwDjRABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqgATBONADGyZ8UDYB1QQNgnGgAjJM/KRoA64IGwDjRABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqorAHSNG2KyFsYhqVTZvZeFEWFrFXEeYpco7IDEMfxniAIjhQEa49z7sOC1vJqmcoOwOjo6MYsy74vgnYQBBuGhoZ+LGIt39ao7ADU6/U7a7VaS1WD5UA3s2zNmjWrBgYGppezjq/XVnYAcuBpmn4gIgPLhF/ZdwA5l0oPwPj4+F2Tk5PnReSBdobAzC4HQfDYjX5to501fbum0gOQw06SZJuqftEOeFXdFobhqXau7ZRrKj8A80OwV1XHb6UUMxuMoujQrVzTidmuGID5fw/kP371qao+vVRRZvaTiOyKouhcJxZ6q2fumgHIwZhZ/mPZT6rqVhHZqqpb5v/8KxGZMLOJKIp+VtX8Z9a64vUfBXQMKAwW+l8AAAAASUVORK5CYII="},"9a3c":function(e,t,i){var o=i("45ae5");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("6a705451",o,!0,{sourceMap:!1,shadowMode:!1})},"9fee":function(e,t,i){"use strict";i("09b1")},a4d2:function(e,t,i){"use strict";i("9205d")},b0fe:function(e,t,i){var o=i("2001");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("218d25b8",o,!0,{sourceMap:!1,shadowMode:!1})},b180:function(e,t,i){"use strict";i("9a3c")},b5f3:function(e,t,i){"use strict";i("78e2")},b64d:function(e,t,i){"use strict";i("83db")},c3940:function(e,t,i){"use strict";i("d697")},caec:function(e,t,i){"use strict";i("b0fe")},ce4a:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".stock-type-pop[data-v-985e4b3c] .van-cell{padding:1rem 0}.stock-type-pop[data-v-985e4b3c] .van-cell .van-radio{-webkit-box-align:start!important;-webkit-align-items:start!important;-ms-flex-align:start!important;align-items:start!important}.stock-type-pop[data-v-985e4b3c] .van-cell .van-radio .van-radio__icon .van-icon{color:#fff!important;background-color:#c4c4c4!important}.stock-type-pop[data-v-985e4b3c] .van-cell .van-radio .van-radio__icon--checked .van-icon{background-color:#f15353!important;border-color:#f15353!important}.stock-type-pop[data-v-985e4b3c] .van-cell .van-field__control{padding:.4rem 1rem;border-radius:.31rem;border:.03rem solid #cecece}.stock-type-pop .title[data-v-985e4b3c]{font-size:.88rem;line-height:1.13rem;color:#2b2a2a}.stock-type-pop .description[data-v-985e4b3c]{margin-top:.5rem;font-size:.75rem;line-height:1.13rem;letter-spacing:0;color:#919191}.stock-type-pop[data-v-985e4b3c] .van-picker-column__item--selected{color:#f15353}",""]),e.exports=t},d042:function(e,t,i){var o=i("edfe");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("6ff0470f",o,!0,{sourceMap:!1,shadowMode:!1})},d697:function(e,t,i){var o=i("57848");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("520e2e4f",o,!0,{sourceMap:!1,shadowMode:!1})},d698:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".stock-type-pop[data-v-d85ba7f2] .van-cell{padding:1rem 0}.stock-type-pop .title[data-v-d85ba7f2]{font-size:.88rem;line-height:1.13rem;color:#2b2a2a}.stock-type-pop .description[data-v-d85ba7f2]{margin-top:.5rem;font-size:.75rem;line-height:1.13rem;letter-spacing:0;color:#919191}",""]),e.exports=t},dc053:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".yz-popup[data-v-8cb884c0]{width:100%;padding:1.25rem 1rem}.yz-popup .top[data-v-8cb884c0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.yz-popup .top .cancel[data-v-8cb884c0]{color:#838383}.yz-popup .top .title[data-v-8cb884c0]{font-size:.94rem;color:#2b2a2a}.yz-popup .top .confirm[data-v-8cb884c0]{color:#f15353}.fillView[data-v-8cb884c0]{width:100%;height:100vh}",""]),e.exports=t},dc82c:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".goods-detail-pop[data-v-bc1a1664] .van-cell{padding:1rem 0}",""]),e.exports=t},e77a:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,"[data-v-436a46a6] .van-cell .van-cell__title{width:auto}[data-v-436a46a6] .van-cell .van-field__right-icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.van-cell[data-v-436a46a6]:before{left:4px;top:14px;font-weight:800}",""]),e.exports=t},ead1:function(e,t,i){"use strict";i("5b39")},ec64:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".goods-type-pop .select[data-v-72576cff]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:2rem 1rem}.goods-type-pop .select .option[data-v-72576cff]{padding:1.5rem 1.79rem;border-radius:.31rem;color:#bababa;border:.03rem solid #d2d2d2}.goods-type-pop .select .option .iconfont[data-v-72576cff]{font-size:2.6rem}.goods-type-pop .select .option .type-description[data-v-72576cff]{margin-top:1rem}.goods-type-pop .select .active-red[data-v-72576cff]{color:#f15353;border:.03rem solid #f15353}",""]),e.exports=t},edfe:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".goods-catgory-pop[data-v-e9440b9c] .van-picker-column__item--selected{color:#f15353}",""]),e.exports=t},f7c3:function(e,t,i){var o=i("dc82c");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var s=i("499e").default;s("9724dc1e",o,!0,{sourceMap:!1,shadowMode:!1})}}]); |