1 line
6.1 KiB
JavaScript
1 line
6.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-306e0db3"],{"149e":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"#footprint .mint-cell-value[data-v-71cf9c6c],#footprint .mint-cell.mint-cell-swipe[data-v-71cf9c6c]{width:100%}#footprint .mint-cell-value[data-v-71cf9c6c],#footprint .tbs[data-v-71cf9c6c]{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;background:#fff;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;border-bottom:.0625rem solid #f5f5f5;margin-bottom:.375rem}#footprint .mint-cell-value .li1[data-v-71cf9c6c],#footprint .tbs .li1[data-v-71cf9c6c]{-webkit-box-flex:10%;-webkit-flex:10%;-ms-flex:10%;flex:10%}#footprint .mint-cell-value .li2[data-v-71cf9c6c],#footprint .tbs .li2[data-v-71cf9c6c]{-webkit-box-flex:20%;-webkit-flex:20%;-ms-flex:20%;flex:20%}#footprint .mint-cell-value .li2 img[data-v-71cf9c6c],#footprint .tbs .li2 img[data-v-71cf9c6c]{width:5.85rem;height:5.85rem}#footprint .mint-cell-value .li3[data-v-71cf9c6c],#footprint .tbs .li3[data-v-71cf9c6c]{-webkit-box-flex:60%;-webkit-flex:60%;-ms-flex:60%;flex:60%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;text-align:justify;margin-left:.625rem;-webkit-box-sizing:border-box;box-sizing:border-box}#footprint .mint-cell-value .li3 .product-name[data-v-71cf9c6c],#footprint .tbs .li3 .product-name[data-v-71cf9c6c]{-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;font-size:14px;color:#666;text-align:justify;line-height:1rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;margin-bottom:1.125rem}#footprint .mint-cell-value .li3 .product-price[data-v-71cf9c6c],#footprint .tbs .li3 .product-price[data-v-71cf9c6c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#f15353;text-align:right;margin:0;font-size:12px}#footprint .mint-cell-value .li3 .product-price span[data-v-71cf9c6c],#footprint .tbs .li3 .product-price span[data-v-71cf9c6c]{font-size:18px}#footprint .mint-cell-value .li4[data-v-71cf9c6c],#footprint .tbs .li4[data-v-71cf9c6c]{-webkit-box-flex:10%;-webkit-flex:10%;-ms-flex:10%;flex:10%}#footprint #foota[data-v-71cf9c6c]{position:fixed;bottom:0;background:#fff;width:100%;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}#footprint #foota .el-checkbox[data-v-71cf9c6c]{-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;text-align:left;padding-left:.9375rem}#footprint #foota .dels[data-v-71cf9c6c]{-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;border-radius:.25rem;border:.0625rem solid red;background:red;color:#fff;padding:.625rem}#footprint .tbs .van-swipe-cell[data-v-71cf9c6c]{width:100%}#footprint .tbs .van-swipe-cell[data-v-71cf9c6c] .van-swipe-cell__wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;padding:.625rem .75rem}#footprint .tbs .van-swipe-cell[data-v-71cf9c6c] .van-swipe-cell__wrapper .van-button{height:100%;width:1rem;background:#f15353;line-height:1.5rem;font-size:16px}#footprint .tbs .van-swipe-cell[data-v-71cf9c6c] .van-swipe-cell__wrapper .van-button--danger{border:none}",""]),t.exports=e},"253a":function(t,e,i){t.exports=i.p+"static/app/img/img_default.a608a24a.png"},"73d6":function(t,e,i){"use strict";i("8d5c")},"8d5c":function(t,e,i){var o=i("149e");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var l=i("499e").default;l("ba55127a",o,!0,{sourceMap:!1,shadowMode:!1})},"9dae":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"footprint"}},[o("c-title",{attrs:{hide:!1,text:"商品管理"}}),t._l(t.datas,(function(e,l){return e.has_one_goods?o("div",{key:l,staticClass:"tbs",on:{click:function(i){return t.toItem(e.has_one_goods)}}},[o("van-swipe-cell",{scopedSlots:t._u([{key:"right",fn:function(){return[o("van-button",{attrs:{square:"",type:"danger",text:"删除"},on:{click:function(i){return t.delteteItem(e,l)}}})]},proxy:!0}],null,!0)},[e.has_one_goods.thumb?o("div",{staticClass:"li2"},[o("img",{attrs:{src:e.has_one_goods.thumb}})]):t._e(),e.has_one_goods.thumb?t._e():o("div",{staticClass:"li2"},[o("img",{attrs:{src:i("253a")}})]),o("div",{staticClass:"li3"},[o("div",{staticClass:"product-name"},[t._v(t._s(t._f("escapeTitle")(e.has_one_goods.title)))]),o("p",{staticClass:"product-price"},[t._v(" "+t._s(t.$i18n.t("money"))+" "),o("span",[t._v(t._s(e.has_one_goods.price))])])])])],1):t._e()}))],2)},l=[],a=(i("e7e5"),i("d399")),c=(i("a434"),i("6968")),n={data:function(){return{toi:this.fun.getKeyByI(),checkList:[],datas:[],checkAll:!1}},activated:function(){var t=JSON.parse(localStorage.getItem("mailLanguage"));t.micro?this.fun.setWXTitle("".concat(t.micro.title,"管理")):this.fun.setWXTitle("微店管理"),this.toi=this.fun.getKeyByI(),this.datas=[],this.getData()},mounted:function(){this.toi=this.fun.getKeyByI();var t=JSON.parse(localStorage.getItem("mailLanguage"));t.micro?this.fun.setWXTitle("".concat(t.micro.title,"管理")):this.fun.setWXTitle("微店管理")},methods:{getData:function(){var t=this,e={i:this.fun.getKeyByI(),type:this.fun.getTyep()};$http.get("plugin.micro.frontend.controllers.MicroShop.get-goods.index",e,"加载中").then((function(e){1==e.result&&(t.datas=e.data.list)}),(function(t){}))},delteteItem:function(t,e){var i=this,o={id:t.id,i:this.fun.getKeyByI(),type:this.fun.getTyep()};$http.get("plugin.micro.frontend.controllers.MicroShop.del-goods.index",o,"处理中...").then((function(t){1==t.result?(i.datas.splice(e,1),Object(a["a"])("操作成功")):Object(a["a"])(t.msg)}),(function(t){}))},toItem:function(t){this.$router.push(this.fun.getUrl("goods",{id:t.id}))}},components:{cTitle:c["a"]}},s=n,r=s,f=(i("73d6"),i("2877")),d=Object(f["a"])(r,o,l,!1,null,"71cf9c6c",null);e["default"]=d.exports}}]); |