bztang-admin/addons/yun_shop/static/app/js/chunk-7c69cd70.8b640a9c.js

1 line
62 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c69cd70"],{"0394":function(t,e,i){var o=i("8cba");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("77eea578",o,!0,{sourceMap:!1,shadowMode:!1})},"059c":function(t,e,i){var o=i("901f");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("ba9744ec",o,!0,{sourceMap:!1,shadowMode:!1})},"0692e":function(t,e,i){"use strict";i("f7c3")},"0c0a":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".stock-type-pop[data-v-73209260] .van-cell{padding:1rem 0}.stock-type-pop[data-v-73209260] .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-73209260] .van-cell .van-radio .van-radio__icon .van-icon{color:#fff!important;background-color:#c4c4c4!important}.stock-type-pop[data-v-73209260] .van-cell .van-radio .van-radio__icon--checked .van-icon{background-color:#f15353!important;border-color:#f15353!important}.stock-type-pop[data-v-73209260] .van-cell .van-field__control{padding:.4rem 1rem;border-radius:.31rem;border:.03rem solid #cecece}.stock-type-pop .title[data-v-73209260]{font-size:.88rem;line-height:1.13rem;color:#2b2a2a}.stock-type-pop .description[data-v-73209260]{margin-top:.5rem;font-size:.75rem;line-height:1.13rem;letter-spacing:0;color:#919191}.stock-type-pop[data-v-73209260] .van-picker-column__item--selected{color:#f15353}",""]),t.exports=e},"0c60":function(t,e,i){var o=i("73ef");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("4b296b4c",o,!0,{sourceMap:!1,shadowMode:!1})},1464:function(t,e,i){var o=i("f82e");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("b15c5060",o,!0,{sourceMap:!1,shadowMode:!1})},"147c":function(t,e,i){var o=i("c350");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("a95f3334",o,!0,{sourceMap:!1,shadowMode:!1})},"277a":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"release-goods"},[i("c-title",{attrs:{hide:!1,text:t.title}}),i("van-sticky",{staticClass:"sticky-box",attrs:{"offset-top":40}},[i("van-tabs",{staticClass:"tabs",model:{value:t.active,callback:function(e){t.active=e},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"}}),t.isFinished?i("div",[i("base-set",{directives:[{name:"show",rawName:"v-show",value:0==t.active,expression:"active == 0"}],ref:"refBaseSet",attrs:{goodsInfo:t.goodsInfo,categoryMenus:t.categoryMenus,dispatchTemplates:t.dispatchTemplates,dispatchTypes:t.dispatchTypes}}),i("permissions",{directives:[{name:"show",rawName:"v-show",value:1==t.active,expression:"active == 1"}],ref:"refPermissions",attrs:{levelList:t.levelList,groupsList:t.groupsList,widgetsInfo:t.widgetsInfo}}),i("discount",{directives:[{name:"show",rawName:"v-show",value:2==t.active,expression:"active == 2"}],ref:"refDiscount",attrs:{levelList:t.discountValues,widgetsInfo:t.widgetsInfo}})],1):t._e(),i("div",{staticClass:"btn-confirm",on:{click:t.releaseGoods}},[t._v(t._s(t.goodsId?"确认修改":"确认发布"))])],1)},s=[],a=(i("ac1f"),i("5319"),i("14d9"),function(){var t=this,e=t.$createElement,o=t._self._c||e;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(e,i){return t.multipleMethod_1(e,i,"goods-img")},deletable:!1}},[t.goodsImg?o("img",{staticClass:"uploader-img",attrs:{src:t.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"}},[t._l(t.otherImgs,(function(e,i){return o("div",{key:i,staticStyle:{"margin-right":"1rem","margin-bottom":"1rem"}},[o("div",{staticClass:"photobox"},[o("img",{staticStyle:{width:"100%"},attrs:{src:e}}),o("i",{staticClass:"iconfont icon-all_filldelete",on:{click:function(e){return t.removeOtherImg(i)}}})])])})),o("van-uploader",{attrs:{"after-read":function(e,i){return t.multipleMethod_1(e,i,"other-img")},"before-delete":t.removeOtherImgs,multiple:""}},[o("div",{staticClass:"uploader-icon"},[o("img",{attrs:{src:i("9619f")}})])])],2)],1)]),t.goodsId?t._e():o("div",{staticClass:"cell"},[o("input-cell",{attrs:{labelText:"商品详情:",isReadonly:!0,value:t.goodsDetail?"修改":"添加"},nativeOn:{click:function(e){return t.showGoodsDetailPop.apply(null,arguments)}}})],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{required:"",label:"商品名称:",placeholder:"请输入商品名称"},model:{value:t.goodsName,callback:function(e){t.goodsName=e},expression:"goodsName"}})],1),o("div",{staticClass:"cell"},[o("input-cell",{attrs:{labelText:"商品分类:",isReadonly:!0,isRequired:!0,value:"商品分类"},nativeOn:{click:function(e){return t.showCategoryPop.apply(null,arguments)}}}),o("div",{staticStyle:{"white-space":"pre-wrap"}},t._l(t.goodsCategory,(function(e,i){return o("div",{key:i,staticClass:"category-tag",on:{click:function(o){return t.showCategoryPop(e,i)}}},[o("div",{staticStyle:{"background-color":"#f3f3f3",padding:"0.2rem 0.5rem"}},[e.parent_name?o("span",[t._v(t._s(e.parent_name))]):t._e(),e.child_name?o("span",[t._v("/"+t._s(e.child_name))]):t._e(),e.third_name?o("span",[t._v("/"+t._s(e.third_name))]):t._e()]),o("span",{staticClass:"close-icon",on:{click:function(e){return e.stopPropagation(),t.removeCategory(i)}}},[t._v("x")])])})),0)],1),o("div",{staticClass:"cell"},[o("input-cell",{attrs:{labelText:"商品类型:",isReadonly:!0,value:1==t.goodsType?"实体商品":"虚拟商品"},nativeOn:{click:function(e){return t.showGoodsTypePop.apply(null,arguments)}}}),2==t.goodsType?o("van-field",{attrs:{label:"下单是否需要地址:",readonly:!0},scopedSlots:t._u([{key:"right-icon",fn:function(){return[o("van-switch",{attrs:{size:"18px","active-value":1,"inactive-value":0,"inactive-color":"#bebebe"},model:{value:t.needAddress,callback:function(e){t.needAddress=e},expression:"needAddress"}})]},proxy:!0}],null,!1,1752944319)}):t._e()],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{label:"商品条码:",placeholder:"请输入商品条码"},model:{value:t.product_sn,callback:function(e){t.product_sn=e},expression:"product_sn"}}),o("van-field",{attrs:{label:"商品编码:",placeholder:"请输入商品编码"},model:{value:t.goods_sn,callback:function(e){t.goods_sn=e},expression:"goods_sn"}})],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{required:"",label:"商品单位:",placeholder:"请输入商品单位"},model:{value:t.goodsUnit,callback:function(e){t.goodsUnit=e},expression:"goodsUnit"}})],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{required:"",label:"商品现价:",placeholder:"请输入商品现价",type:"number"},model:{value:t.price,callback:function(e){t.price=e},expression:"price"}}),o("van-field",{attrs:{label:"商品原价:",placeholder:"请输入商品原价",type:"number"},model:{value:t.marketPrice,callback:function(e){t.marketPrice=e},expression:"marketPrice"}}),o("van-field",{attrs:{label:"商品成本:",placeholder:"请输入商品成本",type:"number"},model:{value:t.costPrice,callback:function(e){t.costPrice=e},expression:"costPrice"}})],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{required:"",label:"商品库存:",placeholder:"请输入商品库存"},model:{value:t.stock,callback:function(e){t.stock=e},expression:"stock"}}),o("input-cell",{attrs:{labelText:"减库存的方式:",isReadonly:!0,value:t.stockTypeText},nativeOn:{click:function(e){return t.showStockTypePop.apply(null,arguments)}}})],1),o("div",{staticClass:"cell"},[o("van-field",{attrs:{label:"不可退货退款:",readonly:!0},scopedSlots:t._u([{key:"right-icon",fn:function(){return[o("van-switch",{attrs:{size:"18px","active-value":1,"inactive-value":0,"inactive-color":"#bebebe"},model:{value:t.refund,callback:function(e){t.refund=e},expression:"refund"}})]},proxy:!0}])})],1),o("div",{class:["hide-logistics",t.viewMore?"show-logistics":""]},[o("div",{staticStyle:{padding:"5px 16px"}},[t._v("配送")]),o("div",{staticClass:"cell"},[o("input-cell",{attrs:{labelText:"运费设置:",isReadonly:!0,value:t.dispatchData.type?"统一邮费":"运费模板"},nativeOn:{click:function(e){return t.showDispatchTypePop.apply(null,arguments)}}}),o("input-cell",{attrs:{labelText:"配送方式:",isReadonly:!0,value:t.distributeTypeText},nativeOn:{click:function(e){return t.showDistributeTypePop.apply(null,arguments)}}})],1)]),o("div",{staticClass:"more",on:{click:t.viewMoreSet}},[o("span",[t._v(t._s(t.viewMore?"收起":"更多设置"))]),t.viewMore?o("van-icon",{attrs:{name:"arrow-up"}}):o("van-icon",{attrs:{name:"arrow-down"}})],1)]),o("goods-detail-popup",{ref:"detailPopup",attrs:{defaultType:t.goodsDetail},on:{saveDetail:t.saveGoodsDetail}}),o("goods-category-popup",{ref:"categoryPopup",attrs:{categoryList:t.categoryMenus},on:{confirmType:t.editCategory}}),o("goods-type-popup",{ref:"typePopup",attrs:{defaultType:t.goodsType},on:{confirmType:t.editGoodsType}}),o("stock-type-popup",{ref:"stockPopup",attrs:{defaultType:t.stockType},on:{confirmType:t.editStockType}}),o("dispatch-type-popup",{ref:"dispatchPopup",attrs:{templates:t.dispatchTemplates,defaultData:t.dispatchData},on:{confirmType:t.editDispatch}}),o("distribute-type-popup",{ref:"distributePopup",attrs:{dispatchTypeList:t.dispatchTypes,defaultChecks:t.distributes},on:{confirmType:t.editDistribute}})],1)}),n=[],l=(i("e7e5"),i("d399")),r=i("5530"),c=(i("b64b"),i("e9c4"),i("4de4"),i("d3b7"),i("d81d"),i("b0c0"),i("a15b"),i("159b"),i("a434"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("van-field",{attrs:{label:t.labelText,readonly:t.isReadonly,placeholder:t.value?"":t.placeholder,required:t.isRequired},on:{click:t.clickField},scopedSlots:t._u([{key:"right-icon",fn:function(){return[i("span",[t._v(t._s(t.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("dabd"),i("2877")),f=Object(h["a"])(u,c,d,!1,null,"67c7bc19",null),m=f.exports,v=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"goods-detail-pop"},[i("yz-popup",{attrs:{isShow:t.isShowPopup,title:"商品详情",isFill:!0,isShowRight:!1},on:{closePopup:t.closePopup}},[[i("bit-map-editor",{on:{saveEdit:t.finishEdit}})]],2)],1)},g=[],b=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("van-popup",{class:["yz-popup",t.isFill?"fillView":""],attrs:{value:t.isShow,position:"bottom",round:t.isRound&&!t.isFill},on:{close:t.closePopup,"click-overlay":t.closePopup}},[i("div",{staticClass:"top"},[i("span",{staticClass:"cancel",on:{click:t.closePopup}},[t._v(t._s(t.isShowLeft?"取消":""))]),i("span",{staticClass:"title"},[t._v(t._s(t.title))]),i("span",{staticClass:"confirm",on:{click:t.confirm}},[t._v(t._s(t.isShowRight?"确认":""))])]),t._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("466a"),Object(h["a"])(w,b,_,!1,null,"a57b815c",null)),x=k.exports,A=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"editor-viewer"},[i("div",{staticClass:"content-viewer"},[i("div",{staticClass:"content-list"},t._l(t.contentList,(function(e,o){return i("div",{key:o,staticClass:"editor-item",attrs:{tabindex:o},on:{click:function(i){return t.handleClick(o,e)}}},["text"===e.type?i("van-field",{staticClass:"textarea",attrs:{rows:"2",autosize:"",type:"textarea",placeholder:"给商品添加介绍吧..."},model:{value:e.value,callback:function(i){t.$set(e,"value",i)},expression:"content.value"}}):t._e(),"image"===e.type?i("img",{attrs:{src:e.value}}):t._e(),e.visible?i("div",{staticClass:"editor-item-ops"},[t.contentList.length>1&&o!==t.contentList.length-1?i("div",{staticClass:"ops-btn btn-arrow-down",on:{click:function(e){return t.moveDown(o)}}},[t._v("下移")]):t._e(),t.contentList.length>1&&0!==o?i("div",{staticClass:"ops-btn btn-arrow-up",on:{click:function(e){return t.moveUp(o)}}},[t._v("上移")]):t._e(),i("div",{staticClass:"ops-btn btn-add",on:{click:function(e){return t.handlerInser(o)}}},[t._v("添加")]),i("div",{staticClass:"ops-btn btn-delete",on:{click:function(e){return t.delOne(o)}}},[t._v("删除")])]):t._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":t.onRead_1,"before-read":t.beforeImageUpload}},[i("i",{staticClass:"iconfont icon-customform_list_3"})]),i("i",{staticClass:"iconfont icon-ht_textstyle_blod editor-btn",on:{click:t.addAtLast}})],1),i("div",{staticClass:"save-btn",on:{click:t.saveEdit}},[t._v("保存")])])]),i("van-action-sheet",{attrs:{actions:t.actions},on:{select:t.onSelect},model:{value:t.showAction,callback:function(e){t.showAction=e},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(t,e,i){return"undefined"!==typeof i?this.contentList.splice(t,e,i):this.contentList.splice(t,e)},changeText:function(t,e){this.contentList[t].value=e.target.innerHTML},handleClick:function(t){var e=this;this.contentList.forEach((function(i,o){e.$set(i,"visible",o===t)}))},moveDown:function(t){var e=this.spliceContent(t,1);this.spliceContent(t+1,0,e[0])},moveUp:function(t){var e=this.spliceContent(t,1);this.spliceContent(t-1,0,e[0])},delOne:function(t){this.spliceContent(t,1)},handlerInser:function(t){this.showAction=!0,this.insertIndex=t},onSelect:function(t){this.showAction=!1,"text"===t.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(t,e){l["a"].loading({message:"上传中",forbidClick:!0});var i=new FormData;i.append("file",t.file);var o=this;axios.post(this.fun.getRealUrl("upload.uploadPic"),i,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){var e=t.data;if(1===e.result){l["a"].clear();var i=e.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 l["a"].clear(),Object(l["a"])(e.msg);o.$refs.uploadImg.isInsert=!1})).catch((function(t){o.$refs.uploadImg.isInsert=!1,l["a"].clear()}))},beforeImageUpload:function(t){var e="image/jpeg"===t.type||"image/png"===t.type,i=t.size/1024/1024<2;return e||this.$toast("上传头像图片只能是 JPG 格式!"),i||this.$toast("上传头像图片大小不能超过 2MB!"),e&&i},saveEdit:function(){if(this.contentList.length<=1&&!this.contentList[0].value)return this.$toast("请先给商品添加介绍吧");var t="";this.contentList.forEach((function(e,i){"text"===e.type&&(t+="<p>".concat(e.value,"</p>")),"image"===e.type&&(t+='<img src="'.concat(e.value,'"></img>'))})),this.$emit("saveEdit",t)}},components:{}},P=T,S=(i("4a28"),Object(h["a"])(P,A,C,!1,null,"5bb5b242",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(t){this.isShowPopup=!1,this.$emit("saveDetail",t)}},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 t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"goods-type-pop"},[i("yz-popup",{attrs:{isShow:t.isShowPopup,title:"选择商品类型"},on:{closePopup:t.cancelSelect,clickConfirmBtn:t.confirmType}},[[i("div",{staticClass:"select"},[i("div",{class:["option",1==t.active?"active-red":""],on:{click:function(e){return t.selectType(1)}}},[i("i",{staticClass:"iconfont icon-fontclass-fahuo"}),i("p",{staticClass:"type-description"},[t._v("实体商品")])]),i("div",{class:["option",2==t.active?"active-red":""],on:{click:function(e){return t.selectType(2)}}},[i("i",{staticClass:"iconfont icon-fontclass-xuni"}),i("p",{staticClass:"type-description"},[t._v("虚拟商品")])])])]],2)],1)},B=[],$=(i("a9e3"),{props:{defaultType:{type:[String,Number,Boolean,Object],default:""}},data:function(){return{active:"",isShowPopup:!1}},methods:{showPopup:function(t){this.isShowPopup=!0,this.active=t},cancelSelect:function(){this.isShowPopup=!1},selectType:function(t){this.active=t,this.$emit("changeType",this.active)},confirmType:function(t){this.isShowPopup=t,this.$emit("confirmType",this.active)}},components:{yzPopup:x}}),E=$,G=(i("a22f"),Object(h["a"])(E,L,B,!1,null,"7a7e7ae6",null)),j=G.exports,R=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"stock-type-pop"},[i("yz-popup",{attrs:{isShow:t.isShowPopup,title:"减库存方式"},on:{closePopup:t.closePopup,clickConfirmBtn:t.confirmType}},[[i("van-radio-group",{staticStyle:{"text-align":"left"},attrs:{"checked-color":"#f15353"},on:{change:t.changeType},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[i("van-cell-group",[i("van-cell",{attrs:{clickable:""},on:{click:function(e){t.radio=0}},scopedSlots:t._u([{key:"title",fn:function(){return[i("p",{staticClass:"title"},[t._v("拍下减少库存")]),i("p",{staticClass:"description"},[t._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(e){t.radio=1}},scopedSlots:t._u([{key:"title",fn:function(){return[i("p",{staticClass:"title"},[t._v("付款减库存")]),i("p",{staticClass:"description"},[t._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(e){t.radio=2}},scopedSlots:t._u([{key:"title",fn:function(){return[i("p",{staticClass:"title"},[t._v("永不减库存")]),i("p",{staticClass:"description"},[t._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(t){this.radio=t}},mounted:function(){this.radio=this.defaultType?this.defaultType:0},methods:{showPopup:function(){this.isShowPopup=!0},changeType:function(t){this.$emit("changeType",t)},closePopup:function(){this.isShowPopup=!1},confirmType:function(t){this.isShowPopup=t,this.$emit("confirmType",this.radio)}},components:{yzPopup:x}},Y=U,Z=(i("d675"),Object(h["a"])(Y,R,N,!1,null,"05d54281",null)),q=Z.exports,J=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"stock-type-pop"},[i("yz-popup",{attrs:{isShow:t.isShowPopup,title:"运费设置"},on:{closePopup:t.closePopup,clickConfirmBtn:t.confirmType}},[[i("van-radio-group",{staticStyle:{"text-align":"left"},attrs:{"checked-color":"#f15353"},on:{change:t.changeType},model:{value:t.dispatchData.dispatch_type,callback:function(e){t.$set(t.dispatchData,"dispatch_type",e)},expression:"dispatchData.dispatch_type"}},[i("van-cell-group",[i("van-cell",{attrs:{clickable:""},on:{click:function(e){t.dispatchData.dispatch_type=1}},scopedSlots:t._u([{key:"title",fn:function(){return[i("p",{staticClass:"title"},[t._v("统一邮费")]),1==t.dispatchData.dispatch_type?i("van-field",{attrs:{placeholder:"请输入统一邮费"},scopedSlots:t._u([{key:"extra",fn:function(){return[i("span",{staticStyle:{display:"flex","align-items":"center"}},[t._v("元")])]},proxy:!0}],null,!1,561854218),model:{value:t.dispatchData.dispatch_price,callback:function(e){t.$set(t.dispatchData,"dispatch_price",e)},expression:"dispatchData.dispatch_price"}}):t._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(e){t.dispatchData.dispatch_type=0}},scopedSlots:t._u([{key:"title",fn:function(){return[i("p",{staticClass:"title"},[t._v("选择运费模板")])]},proxy:!0},{key:"right-icon",fn:function(){return[i("van-radio",{attrs:{name:0}})]},proxy:!0}])}),0==t.dispatchData.dispatch_type?i("van-cell",{staticStyle:{padding:"0 0 0 1rem"},attrs:{title:t.templateName,"is-link":""},on:{click:t.checkDisTemplate}}):t._e()],1)],1)]],2),i("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showTemplate,callback:function(e){t.showTemplate=e},expression:"showTemplate"}},[i("van-picker",{ref:"dispatchPicker",attrs:{title:"运费设置","show-toolbar":"",columns:t.templates,"value-key":"dispatch_name"},on:{confirm:t.confirmTemplate,cancel:t.cancelTemplate}})],1)],1)},V=[],F={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 t=this,e="";return this.templates.forEach((function(i,o){i.id==t.checkTemplate.id&&(e=t.checkTemplate.dispatch_name)})),e||"默认模板"}},mounted:function(){this.dispatchData=this.defaultData},methods:{showPopup:function(){this.isShowPopup=!0},changeType:function(t){this.$emit("changeType",t)},closePopup:function(){this.isShowPopup=!1},confirmType:function(t){if(1==this.dispatchData.dispatch_type&&this.fun.isTextEmpty(this.dispatchData.dispatch_price))return this.$toast("请填写统一邮费");this.isShowPopup=t,this.$emit("confirmType",this.dispatchData)},checkDisTemplate:function(){this.isShowPopup=!1,this.showTemplate=!0},confirmTemplate:function(t){this.checkTemplate=t,this.dispatchData.dispatch_id=t.id,this.cancelTemplate()},cancelTemplate:function(){this.isShowPopup=!0,this.showTemplate=!1}},components:{yzPopup:x}},Q=F,X=(i("4fd0"),Object(h["a"])(Q,J,V,!1,null,"73209260",null)),K=X.exports,H=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"goods-catgory-pop"},[i("yz-popup",{attrs:{isShow:t.isShowPopup,title:"选择商品分类"},on:{closePopup:t.cancelSelect,clickConfirmBtn:t.confirmType}},[[i("van-picker",{ref:"categoryPicker",attrs:{columns:t.columns},on:{confirm:t.confirmCategory}})]],2)],1)},W=[],tt={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(t){var e=this,i=[];return t.forEach((function(t,o){var s={},a=t.id,n=t.name,l=t.parent_id;s={id:a,parent_id:l,text:n},t.has_many_children&&t.has_many_children.length>0&&(s.children=e.formatList(t.has_many_children)),i[o]=s})),i},showPopup:function(t,e){var i=this;this.isShowPopup=!0,t&&!this.fun.isTextEmpty(e)&&this.$nextTick((function(){var e=t.parent_name,o=t.child_name,s=t.third_name;i.$refs.categoryPicker.setValues([e,o,s])}))},cancelSelect:function(){this.isShowPopup=!1},confirmType:function(t){var e=this;this.$nextTick((function(){e.$refs.categoryPicker.confirm(),e.isShowPopup=t}))},confirmCategory:function(t,e){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}},et=tt,it=(i("81f0"),Object(h["a"])(et,H,W,!1,null,"e9440b9c",null)),ot=it.exports,st=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"stock-type-pop"},[i("yz-popup",{attrs:{isShow:t.isShowPopup,title:"配送方式"},on:{closePopup:t.closePopup,clickConfirmBtn:t.confirmType}},[[i("van-checkbox-group",{staticStyle:{"text-align":"left"},attrs:{"checked-color":"#f15353"},on:{change:t.changeType},model:{value:t.checkBoxs,callback:function(e){t.checkBoxs=e},expression:"checkBoxs"}},[i("van-cell-group",t._l(t.dispatchTypeList,(function(e,o){return i("van-cell",{key:o,attrs:{clickable:"",title:e.name},on:{click:function(e){return t.toggle(o)}},scopedSlots:t._u([{key:"right-icon",fn:function(){return[i("van-checkbox",{ref:"checkboxes",refInFor:!0,attrs:{name:e.id+""}})]},proxy:!0}],null,!0)})})),1)],1)]],2)],1)},at=[],nt={props:{defaultChecks:{type:Array,default:function(){return[]}},dispatchTypeList:{type:Array,default:function(){return[]}}},data:function(){return{checkBoxs:[],isShowPopup:!1}},watch:{defaultChecks:function(t){this.checkBoxs=t||[]}},methods:{showPopup:function(){this.isShowPopup=!0},changeType:function(t){this.checkBoxs=t,this.$emit("changeType",t)},closePopup:function(){this.isShowPopup=!1},confirmType:function(t){this.isShowPopup=t,this.$emit("confirmType",this.checkBoxs)},toggle:function(t){this.$refs.checkboxes&&this.$refs.checkboxes[t].toggle()}},components:{yzPopup:x}},lt=nt,rt=(i("952e"),Object(h["a"])(lt,st,at,!1,null,"72e3e684",null)),ct=rt.exports,dt={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 t="";switch(this.stockType){case 0:t="拍下减库存";break;case 1:t="付款减库存";break;case 2:t="永不减库存";break;default:break}return t},distributeTypeText:function(){var t=this,e=[],i=this.dispatchTypes.filter((function(e){return t.distributes.indexOf(e.id+"")>-1}));return e=i.map((function(t,e){return t.name})),e.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 t={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 t.widgets={dispatch:Object(r["a"])(Object(r["a"])({},this.dispatchData),{},{dispatch_type_ids:this.distributes})},t},filterCategory:function(t){var e=[],i=[],o=[];return t.forEach((function(t,s){t.parentid&&e.push(t.parentid),t.childid&&i.push(t.childid),t.thirdid&&o.push(t.thirdid)})),{parentid:e,childid:i,thirdid:o}},splitGoodsData:function(t){if(this.goodsImg=t.thumb_src,this.otherImgs=t.thumb_url_src?t.thumb_url_src:[],this.goodsDetail=t.content,this.goodsName=t.title,this.goodsType=t.type,this.needAddress=t.need_address?t.need_address:0,this.goodsUnit=t.sku,this.price=t.price,this.marketPrice=t.market_price,this.costPrice=t.cost_price,this.stock=t.stock,this.stockType=t.reduce_stock_method,this.refund=t.no_refund,this.goodsCategory=t.has_many_goods_category?t.has_many_goods_category:[],this.product_sn=t.product_sn,this.goods_sn=t.goods_sn,t.widgets&&t.widgets.dispatch){var e=t.widgets.dispatch;this.dispatchData.dispatch_type=e.dispatch_type,this.dispatchData.dispatch_price=e.dispatch_price,this.dispatchData.dispatch_id=e.dispatch_id,this.distributes=e.dispatch_type_ids}},multipleMethod_1:function(t,e,i){if(this.LOADER_IMGS="goods-img"===i?"goodsImgs":"otherImgs",t&&t.length)for(var o=0;o<t.length;o++)this.onRead_1(t[o],e,i);else this.onRead_1(t,e,i)},onRead_1:function(t,e,i){l["a"].loading({message:"上传中",forbidClick:!0});var o=new FormData;o.append("file",t.file);var s=this;axios.post(this.fun.getRealUrl("upload.uploadPic"),o,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){var e=t.data;1===e.result?(l["a"].clear(),"goods-img"===i?s.goodsImg=e.data.img_url:s.otherImgs.push(e.data.img_url)):(l["a"].clear(),Object(l["a"])(e.msg))})).catch((function(t){l["a"].clear()}))},removeOtherImg:function(t){this.otherImgs.splice(t,1)},showGoodsDetailPop:function(){this.$refs.detailPopup.showPopup()},saveGoodsDetail:function(t){this.goodsDetail=t},removeCategory:function(t){this.goodsCategory.splice(t,1)},showGoodsTypePop:function(){this.$refs.typePopup.showPopup(this.goodsType)},editGoodsType:function(t){this.goodsType=t},showStockTypePop:function(){this.$refs.stockPopup.showPopup()},editStockType:function(t){this.stockType=t},showDispatchTypePop:function(){this.$refs.dispatchPopup.showPopup()},editDispatch:function(t){this.dispatchData=t},showCategoryPop:function(t,e){this.addCategoryIndex=void 0!==e&&""!==e?e:"",this.$refs.categoryPopup.showPopup(t)},editCategory:function(t){var e=this.goodsCategory.some((function(e){return t.thirdid?e.parentid==t.parentid&&e.childid==t.childid&&e.thirdid==t.thirdid:e.parentid==t.parentid&&e.childid==t.childid}));if(e)return this.$toast("不能重复添加商品分类");void 0!==this.addCategoryIndex&&""!==this.addCategoryIndex?this.goodsCategory.splice(this.addCategoryIndex,1,t):this.goodsCategory.push(t)},showDistributeTypePop:function(){this.$refs.distributePopup.showPopup()},editDistribute:function(t){this.distributes=t},viewMoreSet:function(){this.viewMore=!this.viewMore}},components:{inputCell:m,goodsDetailPopup:z,goodsTypePopup:j,stockTypePopup:q,dispatchTypePopup:K,goodsCategoryPopup:ot,distributeTypePopup:ct}},pt=dt,ut=(i("466d7"),Object(h["a"])(pt,a,n,!1,null,"385659e5",null)),ht=ut.exports,ft=function(){var t=this,e=t.$createElement,i=t._self._c||e;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:t.hyll_Model.length>0?t.hyll_Model.join(","):"",labelText:"会员等级浏览权限:",isReadonly:!0},nativeOn:{click:function(e){return t.showPopup(1)}}})],1),i("div",{staticClass:"cell"},[i("input-cell",{attrs:{value:t.hygm_Model.length>0?t.hygm_Model.join(","):"",labelText:"会员等级购买权限:",isReadonly:!0},nativeOn:{click:function(e){return t.showPopup(2)}}})],1),i("div",{staticClass:"cell"},[i("input-cell",{attrs:{value:t.hyzll_Model.length>0?t.hyzll_Model.join(","):"",labelText:"会员组浏览权限:",isReadonly:!0},nativeOn:{click:function(e){return t.showPopup(3)}}})],1),i("div",{staticClass:"cell"},[i("input-cell",{attrs:{value:t.hyzgm_Model.length>0?t.hyzgm_Model.join(","):"",labelText:"会员组购买权限:",isReadonly:!0},nativeOn:{click:function(e){return t.showPopup(4)}}})],1)]),i("div",{staticClass:"number_power"},[i("div",{staticClass:"cell"},[i("van-field",{attrs:{label:"每次限购数量:",placeholder:"请输入每次下单限购数量",type:"number"},model:{value:t.once_buy_limit,callback:function(e){t.once_buy_limit=e},expression:"once_buy_limit"}})],1),i("div",{staticClass:"cell"},[i("van-field",{attrs:{label:"会员限购总数:",placeholder:"请输入会员限购的总数",type:"number"},model:{value:t.total_buy_limit,callback:function(e){t.total_buy_limit=e},expression:"total_buy_limit"}})],1),i("div",{staticClass:"cell"},[i("van-field",{attrs:{label:"会员每天限购总数:",placeholder:"请输入会员每天限购数量",type:"number"},model:{value:t.day_buy_limit,callback:function(e){t.day_buy_limit=e},expression:"day_buy_limit"}})],1),i("div",{staticClass:"cell"},[i("van-field",{attrs:{label:"会员每周期限购数量:",placeholder:"请输入会员每周期限购数量",type:"number"},model:{value:t.week_buy_limit,callback:function(e){t.week_buy_limit=e},expression:"week_buy_limit"}})],1),i("div",{staticClass:"cell"},[i("van-field",{attrs:{label:"会员每月限购数量:",placeholder:"请输入会员每月限购数",type:"number"},model:{value:t.month_buy_limit,callback:function(e){t.month_buy_limit=e},expression:"month_buy_limit"}})],1)])]),i("yz-popup",{attrs:{isShow:t.isShowPopup,isShowLeft:!1,isShowRight:!1,title:"会员等级浏览权限"},on:{closePopup:t.cancelSelect,clickConfirmBtn:t.confirmType}},[t.show1?i("div",{staticClass:"list"},[t.levelList.length?i("van-checkbox",{on:{click:t.checkAll},model:{value:t.show_levels_CheckedAll,callback:function(e){t.show_levels_CheckedAll=e},expression:"show_levels_CheckedAll"}},[t._v("全选")]):t._e(),i("van-checkbox-group",{ref:"checkboxGroup",model:{value:t.show_levels,callback:function(e){t.show_levels=e},expression:"show_levels"}},t._l(t.levelList,(function(e,o){return i("van-checkbox",{key:o,staticClass:"deletaAtfer",attrs:{name:e.id}},[t._v(t._s(e.level_name))])})),1),t.levelList.length?t._e():i("h2",{staticStyle:{"text-align":"center",margin:"15px 0"}},[t._v("暂无数据")])],1):t._e(),t.show2?i("div",{staticClass:"list"},[t.levelList.length?i("van-checkbox",{on:{click:t.checkAllBuyLevels},model:{value:t.buy_levels_CheckedAll,callback:function(e){t.buy_levels_CheckedAll=e},expression:"buy_levels_CheckedAll"}},[t._v("全选")]):t._e(),i("van-checkbox-group",{ref:"checkboxGroup",model:{value:t.buy_levels,callback:function(e){t.buy_levels=e},expression:"buy_levels"}},t._l(t.levelList,(function(e,o){return i("van-checkbox",{key:o,staticClass:"deletaAtfer",attrs:{name:e.id}},[t._v(t._s(e.level_name))])})),1),t.levelList.length?t._e():i("h2",{staticStyle:{"text-align":"center",margin:"15px 0"}},[t._v("暂无数据")])],1):t._e(),t.show3?i("div",{staticClass:"list"},[t.groupsList.length?i("van-checkbox",{on:{click:t.checkAllShowGroups},model:{value:t.show_groups_CheckedAll,callback:function(e){t.show_groups_CheckedAll=e},expression:"show_groups_CheckedAll"}},[t._v("全选")]):t._e(),i("van-checkbox-group",{ref:"checkboxGroup",model:{value:t.show_groups,callback:function(e){t.show_groups=e},expression:"show_groups"}},t._l(t.groupsList,(function(e,o){return i("van-checkbox",{key:o,staticClass:"deletaAtfer",attrs:{name:e.id}},[t._v(t._s(e.group_name))])})),1),t.groupsList.length?t._e():i("h2",{staticStyle:{"text-align":"center",margin:"15px 0"}},[t._v("暂无数据")])],1):t._e(),t.show4?i("div",{staticClass:"list"},[t.groupsList.length?i("van-checkbox",{on:{click:t.checkAllBuyGroups},model:{value:t.buy_groups_CheckedAll,callback:function(e){t.buy_groups_CheckedAll=e},expression:"buy_groups_CheckedAll"}},[t._v("全选")]):t._e(),i("van-checkbox-group",{ref:"checkboxGroup",model:{value:t.buy_groups,callback:function(e){t.buy_groups=e},expression:"buy_groups"}},t._l(t.groupsList,(function(e,o){return i("van-checkbox",{key:o,staticClass:"deletaAtfer",attrs:{name:e.id}},[t._v(t._s(e.group_name))])})),1),t.groupsList.length?t._e():i("h2",{staticStyle:{"text-align":"center",margin:"15px 0"}},[t._v("暂无数据")])],1):t._e()])],1)},mt=[],vt={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(t,e){t.length==this.levelList.length?this.show_levels_CheckedAll=!0:this.show_levels_CheckedAll=!1;var i=this.levelList.filter((function(e){return-1!==t.indexOf(e.id)}));this.hyll_Model=i.map((function(t){return t.level_name}))},buy_levels:function(t,e){t.length==this.levelList.length?this.buy_levels_CheckedAll=!0:this.buy_levels_CheckedAll=!1;var i=this.levelList.filter((function(e){return-1!==t.indexOf(e.id)}));this.hygm_Model=i.map((function(t){return t.level_name}))},show_groups:function(t,e){t.length==this.groupsList.length?this.show_groups_CheckedAll=!0:this.show_groups_CheckedAll=!1;var i=this.groupsList.filter((function(e){return-1!==t.indexOf(e.id)}));this.hyzll_Model=i.map((function(t){return t.group_name}))},buy_groups:function(t,e){t.length==this.groupsList.length?this.buy_groups_CheckedAll=!0:this.buy_groups_CheckedAll=!1;var i=this.groupsList.filter((function(e){return-1!==t.indexOf(e.id)}));this.hyzgm_Model=i.map((function(t){return t.group_name}))}},activated:function(){this.init(),this.getDataInfo()},mounted:function(){this.init(),this.getDataInfo()},methods:{cancelSelect:function(){this.isShowPopup=!1},confirmType:function(t){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 t=this,e=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,l=i.once_buy_limit,r=i.total_buy_limit,c=i.day_buy_limit,d=i.week_buy_limit,p=i.month_buy_limit;e.show_levels=o?o.map(Number):[],e.show_groups=s?s.map(Number):[],e.buy_levels=a?a.map(Number):[],e.buy_groups=n?n.map(Number):[],e.once_buy_limit=String(l),e.total_buy_limit=String(r),e.day_buy_limit=String(c),e.week_buy_limit=String(d),e.month_buy_limit=String(p);var u=e.levelList.filter((function(e){return-1!==t.widgetsInfo.privilege.show_levels.indexOf(e.id)}));e.hyll_Model=u.map((function(t){return t.level_name}));var h=e.levelList.filter((function(e){return-1!==t.widgetsInfo.privilege.buy_levels.indexOf(e.id)}));e.hygm_Model=h.map((function(t){return t.level_name}));var f=e.groupsList.filter((function(e){return-1!==t.widgetsInfo.privilege.show_groups.indexOf(e.id)}));e.hyzll_Model=f.map((function(t){return t.group_name}));var m=e.groupsList.filter((function(e){return-1!==t.widgetsInfo.privilege.buy_groups.indexOf(e.id)}));e.hyzgm_Model=m.map((function(t){return t.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 t={};return t={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},t},showPopup:function(t){switch(this.isShowPopup=!0,this.show1=!1,this.show2=!1,this.show3=!1,this.show4=!1,t){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}},gt=vt,bt=(i("b348"),Object(h["a"])(gt,ft,mt,!1,null,"12354400",null)),_t=bt.exports,yt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"discount"}},[i("div",{staticClass:"rebate_box"},[i("ul",{staticClass:"type"},[i("li",[i("van-field",{attrs:{label:"折扣类型:"},scopedSlots:t._u([{key:"input",fn:function(){return[i("van-checkbox",{attrs:{"checked-color":"#f15353"},model:{value:t.level_discount_type,callback:function(e){t.level_discount_type=e},expression:"level_discount_type"}},[t._v(" 会员等级 ")])]},proxy:!0}])})],1),i("li",[i("van-field",{attrs:{label:"折扣方式:"},scopedSlots:t._u([{key:"input",fn:function(){return[i("van-radio-group",{attrs:{direction:"horizontal","checked-color":"#f15353"},model:{value:t.discount_method,callback:function(e){t.discount_method=e},expression:"discount_method"}},[i("van-radio",{attrs:{name:1,"icon-size":"18px"}},[t._v("折扣")]),i("van-radio",{attrs:{name:2,"icon-size":"18px"}},[t._v("固定金额")]),i("van-radio",{attrs:{name:3,"icon-size":"18px"}},[t._v("成本比例")])],1)]},proxy:!0}])})],1)]),i("ul",{staticClass:"member_number"},t._l(t.discount_values,(function(e,o){return i("li",{key:o},[i("van-field",{attrs:{label:e.level_name,placeholder:"请输入等级折扣"},model:{value:e.discount_value,callback:function(i){t.$set(e,"discount_value",i)},expression:"item.discount_value"}})],1)})),0)])])},wt=[],kt={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 t=this;if(this.widgetsInfo&&this.widgetsInfo.discount){var e=this.widgetsInfo.discount,i=e.level_discount_type,o=e.discount_method;t.level_discount_type=Boolean(i),t.discount_method=o}},filertMap:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.map((function(t){return{level_id:t.id,discount_value:t.discount_value}}));return e},validatorData:function(){var t={};return t={level_discount_type:this.level_discount_type?1:0,discount_method:this.discount_method,discount_value:this.filertMap(this.discount_values)},t}},computed:{}},xt=kt,At=(i("4287"),Object(h["a"])(xt,yt,wt,!1,null,"86f8f048",null)),Ct=At.exports,Tt={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 t=this;$http.get(this.getDatUrl,this.getJson,"loading").then((function(e){t.isFinished=!0;var i=e.data,o=i.levels,s=i.groups,a=i.goods,n=i.category_menus,l=i.dispatch_templates,r=i.dispatch_types;if(1!==e.result)return t.$router.replace(t.fun.getUrl("storeGoodsManagement")),t.$toast(e.msg);t.levelList=o,t.groupsList=s,t.goodsInfo=a,t.categoryMenus=n,t.dispatchTemplates=l,t.dispatchTypes=r,t.widgetsInfo=a?a.widgets:{},t.discountValues=t.levelList}))},releaseGoods:function(){var t=this.$refs.refBaseSet?this.$refs.refBaseSet.validatorData():{},e=this.$refs.refPermissions?this.$refs.refPermissions.validatorData():{},i=this.$refs.refDiscount?this.$refs.refDiscount.validatorData():{};if(!t)return!1;var o=t;o.widgets.privilege=e,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(t,e,i){var o=this;$http.post(t,e,i).then((function(t){if(1!==t.result)return o.$toast(t.msg);o.$router.push(o.fun.getUrl("storeGoodsManagement"))}))}},components:{baseSet:ht,permissions:_t,discount:Ct}},Pt=Tt,St=Pt,Dt=(i("c6fd"),Object(h["a"])(St,o,s,!1,null,"59033972",null));e["default"]=Dt.exports},"3db6":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"[data-v-67c7bc19] .van-cell .van-cell__title{width:auto}[data-v-67c7bc19] .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-67c7bc19]:before{left:4px;top:14px;font-weight:800}",""]),t.exports=e},4287:function(t,e,i){"use strict";i("147c")},"466a":function(t,e,i){"use strict";i("9b46")},"466d7":function(t,e,i){"use strict";i("1464")},"4a28":function(t,e,i){"use strict";i("0c60")},"4fd0":function(t,e,i){"use strict";i("a832")},"5a921":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"#Permissions[data-v-12354400]{width:100%;padding-bottom:3.3125rem;overflow:scroll;z-index:9999}#Permissions[data-v-12354400] .member_power{background:#fff;overflow:hidden}#Permissions[data-v-12354400] .member_power .cell{margin-top:.62rem;text-align:left;background-color:#fff;white-space:nowrap}#Permissions[data-v-12354400] .member_power .cell .van-cell__value{overflow:hidden}#Permissions[data-v-12354400] .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-12354400] .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-12354400] .number_power{margin-top:.625rem;background:#fff}#Permissions[data-v-12354400] .number_power .van-cell__title{width:auto}#Permissions[data-v-12354400] .list{max-height:25rem;position:relative;overflow:scroll;padding:.625rem 0 .625rem .875rem}#Permissions[data-v-12354400] .list .van-checkbox{margin-bottom:1rem;font-size:15px}#Permissions[data-v-12354400] .list .van-checkbox .van-checkbox__icon .van-icon{color:#fff;background-color:#c4c4c4}#Permissions[data-v-12354400] .list .van-checkbox .van-checkbox__icon--checked .van-icon{background-color:#f15353;border-color:#f15353}#Permissions[data-v-12354400] .list .deletaAtfer:after{display:none}",""]),t.exports=e},"62f3":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".yz-popup[data-v-a57b815c]{width:100%;padding:1.25rem 1rem}.yz-popup .top[data-v-a57b815c]{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-a57b815c]{color:#838383}.yz-popup .top .title[data-v-a57b815c]{font-size:.94rem;color:#2b2a2a}.yz-popup .top .confirm[data-v-a57b815c]{color:#f15353}.fillView[data-v-a57b815c]{width:100%;height:100vh}",""]),t.exports=e},"73ef":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".editor-viewer[data-v-5bb5b242]{position:relative;width:100%;margin-top:1rem;padding-bottom:50px;overflow-y:auto}.editor-viewer .content-viewer[data-v-5bb5b242]{width:100%;height:100%;overflow-y:scroll;overflow-x:hidden}.editor-viewer .content-viewer .content-list[data-v-5bb5b242]{padding:5px}.editor-viewer .content-viewer .content-list .editor-item[data-v-5bb5b242]{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-5bb5b242],.editor-viewer .content-viewer .content-list .editor-item img[data-v-5bb5b242]{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-5bb5b242]{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-5bb5b242]{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-5bb5b242]{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-5bb5b242]{color:#c9c9c9}.editor-viewer .content-viewer .content-list .editor-item .editor-item-ops .btn-arrow-down[data-v-5bb5b242],.editor-viewer .content-viewer .content-list .editor-item .editor-item-ops .btn-arrow-up[data-v-5bb5b242]{background-color:#28b2fa}.editor-viewer .content-viewer .content-list .editor-item .editor-item-ops .btn-add[data-v-5bb5b242]{background-color:#f27c1c}.editor-viewer .content-viewer .content-list .editor-item .editor-item-ops .btn-delete[data-v-5bb5b242]{background-color:#f15353}.editor-viewer .content-viewer .content-list .editor-item[data-v-5bb5b242]:hover{-webkit-box-shadow:0 0 10px #ccc;box-shadow:0 0 10px #ccc}.editor-btn-viewer[data-v-5bb5b242]{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-5bb5b242]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left}.editor-btn-viewer .editor-opt-btns[data-v-5bb5b242]{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-5bb5b242]{padding:.5rem 3rem;color:#fff;background-color:#f15353;border-radius:1.03rem;white-space:nowrap}.editor-btn-viewer .icon-customform_list_3[data-v-5bb5b242]{font-size:22px;color:#9a9a9a}.editor-btn-viewer .icon-ht_textstyle_blod[data-v-5bb5b242]{font-size:21px;color:#9a9a9a}.editor-btn-viewer .editor-btn[data-v-5bb5b242]{display:inline-block;margin-left:1rem}.editor-btn-viewer .editor-btn[data-v-5bb5b242]:hover{color:#409eff;background-color:#ecf5ff}",""]),t.exports=e},"7bb6":function(t,e,i){var o=i("5a921");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("4a84d9e7",o,!0,{sourceMap:!1,shadowMode:!1})},8028:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".stock-type-pop[data-v-72e3e684] .van-cell{padding:1rem 0}.stock-type-pop .title[data-v-72e3e684]{font-size:.88rem;line-height:1.13rem;color:#2b2a2a}.stock-type-pop .description[data-v-72e3e684]{margin-top:.5rem;font-size:.75rem;line-height:1.13rem;letter-spacing:0;color:#919191}",""]),t.exports=e},"81f0":function(t,e,i){"use strict";i("d042")},"83be":function(t,e,i){var o=i("3db6");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("7a22e102",o,!0,{sourceMap:!1,shadowMode:!1})},"8cba":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".goods-type-pop .select[data-v-7a7e7ae6]{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-7a7e7ae6]{padding:1.5rem 1.79rem;border-radius:.31rem;color:#bababa;border:.03rem solid #d2d2d2}.goods-type-pop .select .option .iconfont[data-v-7a7e7ae6]{font-size:2.6rem}.goods-type-pop .select .option .type-description[data-v-7a7e7ae6]{margin-top:1rem}.goods-type-pop .select .active-red[data-v-7a7e7ae6]{color:#f15353;border:.03rem solid #f15353}",""]),t.exports=e},"901f":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".stock-type-pop[data-v-05d54281] .van-cell{padding:1rem 0}.stock-type-pop[data-v-05d54281] .van-cell .van-radio__icon .van-icon{color:#fff;background-color:#c4c4c4}.stock-type-pop .title[data-v-05d54281]{font-size:.88rem;line-height:1.13rem;color:#2b2a2a}.stock-type-pop .description[data-v-05d54281]{margin-top:.5rem;font-size:.75rem;line-height:1.13rem;letter-spacing:0;color:#919191}",""]),t.exports=e},"952e":function(t,e,i){"use strict";i("c502")},"9619f":function(t,e){t.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="},9929:function(t,e,i){var o=i("c976");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("261060a4",o,!0,{sourceMap:!1,shadowMode:!1})},"9b46":function(t,e,i){var o=i("62f3");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("365519d8",o,!0,{sourceMap:!1,shadowMode:!1})},a22f:function(t,e,i){"use strict";i("0394")},a832:function(t,e,i){var o=i("0c0a");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("417b0a2c",o,!0,{sourceMap:!1,shadowMode:!1})},b348:function(t,e,i){"use strict";i("7bb6")},c350:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"#discount[data-v-86f8f048]{padding-bottom:3.3125rem;overflow:scroll;z-index:9999;overflow:hidden}#discount[data-v-86f8f048] .rebate_box .member_number,#discount[data-v-86f8f048] .rebate_box .type{margin-top:.625rem;background:#fff}#discount[data-v-86f8f048] .rebate_box .member_number li,#discount[data-v-86f8f048] .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-86f8f048] .rebate_box .member_number li .van-radio,#discount[data-v-86f8f048] .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-86f8f048] .rebate_box .member_number .van-cell__title,#discount[data-v-86f8f048] .rebate_box .type .van-cell__title{width:auto!important;max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#discount[data-v-86f8f048] .rebate_box .member_number .van-radio-group,#discount[data-v-86f8f048] .rebate_box .type .van-radio-group{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap}#discount[data-v-86f8f048] .rebate_box .member_number .van-radio .van-radio__icon .van-icon,#discount[data-v-86f8f048] .rebate_box .type .van-radio .van-radio__icon .van-icon{color:#fff!important;background-color:#c4c4c4!important}#discount[data-v-86f8f048] .rebate_box .member_number .van-radio .van-radio__icon--checked .van-icon,#discount[data-v-86f8f048] .rebate_box .type .van-radio .van-radio__icon--checked .van-icon{background-color:#f15353!important;border-color:#f15353!important}#discount[data-v-86f8f048] .rebate_box .member_number .list_box,#discount[data-v-86f8f048] .rebate_box .type .list_box{padding:.625rem .875rem}#discount[data-v-86f8f048] .rebate_box .type{margin-top:0}",""]),t.exports=e},c502:function(t,e,i){var o=i("8028");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("91305456",o,!0,{sourceMap:!1,shadowMode:!1})},c6fd:function(t,e,i){"use strict";i("9929")},c976:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".release-goods[data-v-59033972]{width:100%;height:100vh;overflow-y:auto;padding-bottom:3rem;background-color:#f6f6f6}.release-goods .sticky-box[data-v-59033972]{background:#fff;padding-bottom:.3rem}.release-goods .sticky-box[data-v-59033972] .van-sticky{overflow:hidden;background-color:#f6f6f6}.release-goods .tabs[data-v-59033972]{width:100%;margin-top:4px}.release-goods .btn-confirm[data-v-59033972]{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}",""]),t.exports=e},d042:function(t,e,i){var o=i("edfe");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("6ff0470f",o,!0,{sourceMap:!1,shadowMode:!1})},d675:function(t,e,i){"use strict";i("059c")},dabd:function(t,e,i){"use strict";i("83be")},dc82c:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".goods-detail-pop[data-v-bc1a1664] .van-cell{padding:1rem 0}",""]),t.exports=e},edfe:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".goods-catgory-pop[data-v-e9440b9c] .van-picker-column__item--selected{color:#f15353}",""]),t.exports=e},f7c3:function(t,e,i){var o=i("dc82c");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("9724dc1e",o,!0,{sourceMap:!1,shadowMode:!1})},f82e:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".goods-form[data-v-385659e5]{overflow:hidden}.goods-form .cell[data-v-385659e5]{margin-top:.62rem;text-align:left;background-color:#fff;white-space:nowrap}.goods-form .cell .van-cell[data-v-385659e5]:before{left:4px;top:14px;font-weight:800}.goods-form .loader-imgs[data-v-385659e5]{padding:.5rem 1rem .5rem 0}.goods-form .loader-imgs .cell-title[data-v-385659e5]{margin-bottom:.5rem}.goods-form .loader-imgs .cell-title .icon-fontclass-xinghao[data-v-385659e5]{height:12px;color:#ee2e2b;font-size:10px}.goods-form .loader-imgs .photobox[data-v-385659e5]{position:relative;width:5rem;height:5rem;margin-right:.2rem;margin-bottom:.2rem}.goods-form .loader-imgs .photobox img[data-v-385659e5]{width:100%;height:100%}.goods-form .loader-imgs .photobox i[data-v-385659e5]{position:absolute;top:-.6rem;right:-.6rem;font-size:1rem;color:#606060}.goods-form .loader-imgs .uploader-img[data-v-385659e5]{display:inline-block;margin-right:.5rem;width:80px;height:80px;vertical-align:bottom}.goods-form .loader-imgs .uploader-icon[data-v-385659e5]{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-385659e5]{width:80%;height:80%}.goods-form .loader-imgs[data-v-385659e5] .van-cell:after{border:none}.goods-form .loader-imgs[data-v-385659e5] .van-uploader__input-wrapper{width:auto}.goods-form .category-tag[data-v-385659e5]{position:relative;display:inline-block;color:#9897a4;padding:.5rem;font-size:.625rem}.goods-form .category-tag .close-icon[data-v-385659e5]{position:absolute;right:0;top:0;font-size:1rem}.goods-form .more[data-v-385659e5]{margin:1rem auto;color:#f15353}.goods-form .hide-logistics[data-v-385659e5]{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-385659e5]{max-height:30rem}",""]),t.exports=e}}]);