bztang-admin/addons/yun_shop/static/app/js/chunk-1bd5fff2.e9980670.js

1 line
8.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1bd5fff2"],{"0133":function(t,e,i){var o=i("eddc");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("1d8828a5",o,!0,{sourceMap:!1,shadowMode:!1})},"0d75":function(t,e,i){"use strict";i("0133")},"253a":function(t,e,i){t.exports=i.p+"static/app/img/img_default.a608a24a.png"},"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,a){return[e.has_one_goods?o("div",{key:a,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,a)}}})]},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(t.checkPrice(e.has_one_goods)))])])])])],1):t._e()]}))],2)},a=[],l=(i("e7e5"),i("d399")),n=(i("b64b"),i("99af"),i("a434"),i("14d9"),i("6968")),r=i("ac0d"),s={mixins:[r["a"]],data:function(){return{toi:this.fun.getKeyByI(),checkList:[],datas:[],checkAll:!1,isLoadMore:!0,page:1,total_page:0}},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:{checkPrice:function(t){return t.vip_level_status&&1==t.vip_level_status.status?t.vip_level_status.word:1==t.has_option&&t.min_price&&"min_price"===this.maxPrice?t.min_price:1==t.has_option&&t.max_price&&"max_price"===this.maxPrice?t.max_price:1==t.has_option&&t.min_price?t.min_price:t.price},getData:function(){var t=this,e=this,i={i:this.fun.getKeyByI(),type:this.fun.getTyep()};$http.get("plugin.micro.frontend.controllers.MicroShop.get-goods.index",i,"加载中").then((function(i){1==i.result&&(t.isLoadMore=!0,e.datas=i.data.list.data,t.total_page=i.data.list.last_page,t.total_page||(t.total_page=0))}),(function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1;var e={page:1,i:this.fun.getKeyByI(),type:this.fun.getTyep()};this.$route.query.plugin_id&&(e.plugin_id=this.$route.query.plugin_id),this.page>=this.total_page?this.isLoadMore=!0:(this.page=this.page+1,e.page=this.page,$http.get("plugin.micro.frontend.controllers.MicroShop.get-goods.index",e,"加载中").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.list.data;t.datas=t.datas.concat(i)}),(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(l["a"])("操作成功")):Object(l["a"])(t.msg)}),(function(t){}))},toItem:function(t){this.$router.push(this.fun.getUrl("goods",{id:t.id}))}},components:{cTitle:n["a"]}},c=s,d=c,f=(i("0d75"),i("2877")),p=Object(f["a"])(d,o,a,!1,null,"7139463c",null);e["default"]=p.exports},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var o=document.documentElement,a=document.body,l={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&o.clientHeight?Math.min(a.clientHeight,o.clientHeight):Math.max(a.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,o.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},eddc:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"#footprint .mint-cell-value[data-v-7139463c],#footprint .mint-cell.mint-cell-swipe[data-v-7139463c]{width:100%}#footprint .mint-cell-value[data-v-7139463c],#footprint .tbs[data-v-7139463c]{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-7139463c],#footprint .tbs .li1[data-v-7139463c]{-webkit-box-flex:10%;-webkit-flex:10%;-ms-flex:10%;flex:10%}#footprint .mint-cell-value .li2[data-v-7139463c],#footprint .tbs .li2[data-v-7139463c]{-webkit-box-flex:20%;-webkit-flex:20%;-ms-flex:20%;flex:20%}#footprint .mint-cell-value .li2 img[data-v-7139463c],#footprint .tbs .li2 img[data-v-7139463c]{width:5.85rem;height:5.85rem}#footprint .mint-cell-value .li3[data-v-7139463c],#footprint .tbs .li3[data-v-7139463c]{-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-7139463c],#footprint .tbs .li3 .product-name[data-v-7139463c]{-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-7139463c],#footprint .tbs .li3 .product-price[data-v-7139463c]{-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-7139463c],#footprint .tbs .li3 .product-price span[data-v-7139463c]{font-size:18px}#footprint .mint-cell-value .li4[data-v-7139463c],#footprint .tbs .li4[data-v-7139463c]{-webkit-box-flex:10%;-webkit-flex:10%;-ms-flex:10%;flex:10%}#footprint #foota[data-v-7139463c]{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-7139463c]{-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;text-align:left;padding-left:.9375rem}#footprint #foota .dels[data-v-7139463c]{-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-7139463c]{width:100%}#footprint .tbs .van-swipe-cell[data-v-7139463c] .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-7139463c] .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-7139463c] .van-swipe-cell__wrapper .van-button--danger{border:none}",""]),t.exports=e}}]);