bztang-admin/addons/yun_shop/static/app/js/chunk-42f83d98.08241bb2.js

1 line
16 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-42f83d98"],{"253a":function(e,t,c){e.exports=c.p+"static/app/img/img_default.a608a24a.png"},"346c":function(e,t,c){var i=c("24fb");t=i(!1),t.push([e.i,"#appMain .collection-title[data-v-64cecc53],#appMain .footer-btn[data-v-64cecc53]{left:auto}.ell[data-v-64cecc53]{text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.mb-10[data-v-64cecc53]{height:10px;clear:both}.mh-56[data-v-64cecc53]{height:3.5rem;clear:both}.footer-checked[data-v-64cecc53] .van-checkbox__label{font-size:.875rem;font-weight:500;color:#00001c}.coll-48[data-v-64cecc53]{height:3rem;clear:both}#footprint[data-v-64cecc53] .van-tabs__nav{background-color:transparent}#footprint[data-v-64cecc53] .van-tabs__line{bottom:22px}#footprint[data-v-64cecc53] .van-nav-bar--fixed{border-bottom:none}#footprint[data-v-64cecc53] .van-tab--active{font-weight:700}.commercial-block[data-v-64cecc53] .van-swipe-cell__right,.tbs[data-v-64cecc53] .van-swipe-cell__right{right:-1px}#footprint .mint-cell-value[data-v-64cecc53],#footprint .mint-cell.mint-cell-swipe[data-v-64cecc53]{width:100%}#footprint .mint-cell-value[data-v-64cecc53],#footprint .tbs[data-v-64cecc53]{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;border-radius:.5rem .5rem .5rem .5rem;margin:0 .75rem .625rem .75rem}#footprint .mint-cell-value .li1[data-v-64cecc53],#footprint .tbs .li1[data-v-64cecc53]{-webkit-box-flex:10%;-webkit-flex:10%;-ms-flex:10%;flex:10%}#footprint .mint-cell-value .li2[data-v-64cecc53],#footprint .tbs .li2[data-v-64cecc53]{-webkit-box-flex:20%;-webkit-flex:20%;-ms-flex:20%;flex:20%}#footprint .mint-cell-value .li2 img[data-v-64cecc53],#footprint .tbs .li2 img[data-v-64cecc53]{width:6.25rem;height:6.25rem;border-radius:.5rem}#footprint .mint-cell-value .li3[data-v-64cecc53],#footprint .tbs .li3[data-v-64cecc53]{-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-64cecc53],#footprint .tbs .li3 .product-name[data-v-64cecc53]{font-size:.875rem;font-weight:500;color:#00001c;text-align:justify;line-height:1.125rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;padding:1.0625rem 0 0 0}#footprint .mint-cell-value .li3 .product-price[data-v-64cecc53],#footprint .tbs .li3 .product-price[data-v-64cecc53]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#f15353;text-align:left;margin:0;padding:1rem 0 0 0;font-size:.875rem}#footprint .mint-cell-value .li3 .product-price span[data-v-64cecc53],#footprint .tbs .li3 .product-price span[data-v-64cecc53]{font-size:1.125rem}#footprint .mint-cell-value .li3 .product-price .s2[data-v-64cecc53],#footprint .tbs .li3 .product-price .s2[data-v-64cecc53]{padding:0 0 0 10px;color:#888;font-size:12px;text-decoration:line-through;vertical-align:middle}#footprint .mint-cell-value .li3 .product-price .product-price-span[data-v-64cecc53],#footprint .tbs .li3 .product-price .product-price-span[data-v-64cecc53]{font-size:.75rem;background:#f15353;color:#fff;padding:.2rem .5rem;border-top-left-radius:.5rem;border-bottom-right-radius:.5rem}#footprint .mint-cell-value .li4[data-v-64cecc53],#footprint .tbs .li4[data-v-64cecc53]{-webkit-box-flex:10%;-webkit-flex:10%;-ms-flex:10%;flex:10%}#footprint #foota[data-v-64cecc53]{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-64cecc53]{-webkit-box-flex:5;-webkit-flex:5;-ms-flex:5;flex:5;text-align:left;padding-left:.9375rem}#footprint #foota .dels[data-v-64cecc53]{-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 .commercial-list .van-swipe-cell[data-v-64cecc53],#footprint .tbs .van-swipe-cell[data-v-64cecc53]{width:100%;overflow:hidden}#footprint .commercial-list .van-swipe-cell[data-v-64cecc53] .van-swipe-cell__wrapper,#footprint .tbs .van-swipe-cell[data-v-64cecc53] .van-swipe-cell__wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;padding:.625rem .75rem}#footprint .commercial-list .van-swipe-cell[data-v-64cecc53] .van-swipe-cell__wrapper .van-button,#footprint .tbs .van-swipe-cell[data-v-64cecc53] .van-swipe-cell__wrapper .van-button{height:100%;padding:0 .75rem;background:#f15353;line-height:1.5rem;font-size:.875rem;border-radius:0 .5rem .5rem 0}#footprint .commercial-list .van-swipe-cell[data-v-64cecc53] .van-swipe-cell__wrapper .van-button--danger,#footprint .tbs .van-swipe-cell[data-v-64cecc53] .van-swipe-cell__wrapper .van-button--danger{border:none}#footprint .commercial-list[data-v-64cecc53]{position:relative;overflow:hidden}#footprint .commercial-list .van-swipe-cell[data-v-64cecc53]{width:100%;overflow:hidden;border-radius:.5rem .5rem .5rem .5rem}#footprint .commercial-list .van-swipe-cell[data-v-64cecc53] .van-swipe-cell__wrapper{padding:0}#footprint .commercial-list .commercial-block[data-v-64cecc53]{width:100%;overflow:hidden}.b-goodsList.row .main .li[data-v-64cecc53]{padding:.625rem 3.4375rem .625rem 5.625rem}.b-goodsList.row .del[data-v-64cecc53]{width:1.5625rem;height:5.625rem;position:absolute;padding:0 .625rem;background:#f0f0f0;border-left:.0313rem solid #d9d9d9;top:-.0313rem;right:0;z-index:5;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}.b-goodsList.row .del .imgDel[data-v-64cecc53]{width:1.5625rem;height:1.5625rem}.s1-two[data-v-64cecc53]{font-size:.75rem;background:#f15353;color:#fff;padding:.2rem .5rem;border-top-left-radius:.5rem;border-bottom-right-radius:.5rem}.Price[data-v-64cecc53]{color:#f15353}.commercial-list[data-v-64cecc53]{padding:.625rem .625rem 0 .625rem}.commercial-list .look-over[data-v-64cecc53]{padding:.9063rem 0 1.8125rem 0}.select[data-v-64cecc53]{padding:0 .625rem 0 0}.commercial-item[data-v-64cecc53]{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;padding:.625rem}.commercial-item .img[data-v-64cecc53]{width:6.25rem;min-width:6.25rem;height:6.25rem;margin-right:.625rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.commercial-item .img img[data-v-64cecc53]{width:6.25rem;min-width:6.25rem;height:6.25rem;border-radius:.5rem .5rem .5rem .5rem;margin:0}.commercial-item .wrap .wrap-title[data-v-64cecc53]{font-size:.9453rem;color:#222;font-size:1rem;font-weight:700;color:#00001c;padding:.625rem 0 .4375rem 0;text-align:left;word-wrap:break-word;word-break:break-all}.commercial-item .wrap .wrap-tag[data-v-64cecc53]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.commercial-item .wrap .wrap-tag div[data-v-64cecc53]{font-size:11px;line-height:11px;color:#3b3b4a;padding:3px 5px;background-color:#f0f0f1;margin:0 .3438rem 0 0;border-radius:.125rem .125rem .125rem .125rem}.commercial-item .distance[data-v-64cecc53]{font-size:.6875rem;color:#888}.commercial-item .distance img[data-v-64cecc53]{width:.6875rem;height:.6875rem}.commercial-item .address[data-v-64cecc53]{font-size:.6875rem;color:#888;margin:.875rem 0 0 0}.wrap .mean-tag[data-v-64cecc53]{font-weight:400;color:#00001c;font-size:.75rem;line-height:.75rem;padding:0 0 .4375rem 0;text-align:left}.address .address-text[data-v-64cecc53]{text-align:left;font-size:12px;font-weight:400;color:#6e6e79;line-height:15px}.mean-line[data-v-64cecc53]{font-size:.9375rem;margin-right:.3438rem}.collect-main[data-v-64cecc53]{padding:0 0 2.5rem 0}.collection-title[data-v-64cecc53]{position:fixed;top:2.3125rem;left:0;background-color:#fff;z-index:20;width:23.4375rem;height:3rem;line-height:3rem;padding:0 0 0 .875rem;font-weight:500;color:#00001c;font-size:.875rem;line-height:.875rem}.collection-title .operate[data-v-64cecc53]{cursor:pointer;height:3rem;line-height:3rem;padding:0 .875rem}.footer-btn[data-v-64cecc53]{width:23.4375rem;position:fixed;bottom:3.125rem;left:0;padding:.625rem .75rem .625rem .75rem;background-color:#fff}.footer-btn .confrim-btn[data-v-64cecc53]{font-size:.875rem;line-height:.875rem;font-weight:400;color:#fff;padding:.6875rem 1.75rem;border-radius:1.875rem 1.875rem 1.875rem 1.875rem;background:#f15353;cursor:pointer}",""]),e.exports=t},"42f1":function(e,t,c){var i=c("346c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=c("499e").default;o("5b9c3897",i,!0,{sourceMap:!1,shadowMode:!1})},"9eba":function(e,t,c){"use strict";c.r(t);var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"footprint"}},[i("c-title",{attrs:{hide:!1,text:"我的收藏"}}),i("div",{staticClass:"collection-title flex-a-c flex-j-sb"},[i("div",[e._v("我的收藏")]),i("div",{staticClass:"operate",on:{click:e.operateOn}},[e._v(e._s(e.checkAll?"完成":"管理"))])]),i("div",{staticClass:"coll-48"}),e.collectStoreIs?i("van-tabs",{attrs:{active:e.collectIndex,"title-inactive-color":"#6E6E79","title-active-color":"#00001C","line-width":"20px"},on:{change:e.onStoreChange}},e._l(e.collectTabs,(function(e,t){return i("block",{key:t},[i("van-tab",{attrs:{title:e.name}})],1)})),1):e._e(),0===e.collectIndex?i("div",{staticClass:"collect-main"},[e.datas.length>0?i("div",e._l(e.datas,(function(t,o){return t.goods?i("div",{key:o,staticClass:"tbs"},[i("van-swipe-cell",{scopedSlots:e._u([{key:"right",fn:function(){return[i("van-button",{attrs:{square:"",type:"danger",text:"删除"},on:{click:function(c){return e.delteteItem(t,o)}}})]},proxy:!0}],null,!0)},[e.checkAll?i("div",{staticClass:"select flex-a-c"},[i("van-checkbox",{attrs:{"checked-color":"#FE5E56"},on:{click:function(t){return e.checkItem(o)}},model:{value:t.checked,callback:function(c){e.$set(t,"checked",c)},expression:"item.checked"}})],1):e._e(),i("div",{staticClass:"flex",on:{click:function(c){return e.toItem(t.goods)}}},[t.goods.thumb?i("div",{staticClass:"li2"},[i("img",{attrs:{src:t.goods.thumb}})]):e._e(),t.goods.thumb?e._e():i("div",{staticClass:"li2"},[i("img",{attrs:{src:c("253a")}})]),i("div",{staticClass:"li3"},[i("div",{staticClass:"product-name ell"},[e._v(e._s(e._f("escapeTitle")(t.goods.title)))]),i("p",{staticClass:"product-price"},[e._v(" "+e._s(e.$i18n.t("money"))+" "),t.vip_level_status&&1==t.vip_level_status.status?i("span",{staticClass:"product-price-span"},[e._v(e._s(t.vip_level_status.word))]):i("span",[e._v(e._s(t.goods.price))]),i("span",{staticClass:"s2"},[e._v(e._s(e.$i18n.t("money"))+e._s(t.goods.market_price))])])])])])],1):e._e()})),0):i("van-empty",{attrs:{description:"空空如也"}})],1):e._e(),1===e.collectIndex?i("div",{staticClass:"commercial-list"},[e.commercialList.length>0?i("div",e._l(e.commercialList,(function(t,c){return i("block",{key:c,staticClass:"commercial-block"},[i("van-swipe-cell",{scopedSlots:e._u([{key:"right",fn:function(){return[i("van-button",{attrs:{square:"",type:"danger",text:"删除"},on:{click:function(i){return e.delteteItem(t,c)}}})]},proxy:!0}],null,!0)},[i("div",{staticClass:"commercial-item flex"},[e.checkAll?i("div",{staticClass:"select flex-a-c",on:{click:function(t){return e.checkItem(c)}}},[i("van-checkbox",{attrs:{"checked-color":"#FE5E56"},model:{value:t.checked,callback:function(c){e.$set(t,"checked",c)},expression:"item.checked"}})],1):e._e(),i("div",{staticClass:"flex",on:{click:function(c){return e.commercialTo(t.id)}}},[i("div",{staticClass:"img"},[i("img",{attrs:{src:t.store_logo_url}})]),i("div",{staticClass:"wrap"},[i("div",{staticClass:"wrap-title"},[e._v(e._s(t.store_name))]),"0.00"!==t.average_price?i("div",{staticClass:"mean-tag"},[e._v("人均¥"+e._s(t.average_price))]):e._e(),i("div",{staticClass:"flex-j-sb"},[i("div",{staticClass:"flex wrap-tag"},[i("div",[e._v(e._s(t.first_category))]),i("div",[e._v(e._s(t.second_category))]),i("div",[e._v(e._s(t.third_category))])])]),i("div",{staticClass:"flex-a-c address"},[i("div",{staticClass:"address-text"},[e._v(e._s(t.city)+e._s(t.district)+e._s(t.street)+e._s(t.address))])])])])])]),i("div",{staticClass:"mb-10"})],1)})),1):i("van-empty",{attrs:{description:"空空如也"}})],1):e._e(),i("div",{staticClass:"mh-56"}),e.checkAll?i("div",{staticClass:"footer-btn flex-a-c flex-j-sb"},[i("div",{staticClass:"footer-checked"},[i("van-checkbox",{attrs:{"checked-color":"#FE5E56"},on:{click:e.collCheckedOn},model:{value:e.collChecked,callback:function(t){e.collChecked=t},expression:"collChecked"}},[e._v("全选")])],1),i("div",{staticClass:"confrim-btn",on:{click:e.confrimOn}},[e._v("删除")])]):e._e()],1)},o=[],a=(c("e7e5"),c("d399")),l=(c("d81d"),c("14d9"),c("d3b7"),c("25f0"),c("6968")),r={data:function(){return{collectIndex:0,collectStoreIs:!1,collectTabs:[{name:"商品",status:1},{name:"商户",status:2}],commercialList:[],isLoadMore:!0,page:1,totalPage:0,goodsData:[],toi:this.fun.getKeyByI(),checkList:[],datas:[],collectIdArr:[],commIdArr:[],checkAll:!1,collChecked:!1}},activated:function(){this.initData(),this.getData()},mounted:function(){this.toi=this.fun.getKeyByI()},methods:{initData:function(){this.checkAll=!1,this.collChecked=!1,this.toi=this.fun.getKeyByI(),this.datas=[],this.collectIdArr=[]},operateOn:function(){this.checkAll=!this.checkAll},collCheckedOn:function(){0===this.collectIndex?this.datas.map((function(e,t){e.checked=!e.checked})):this.commercialList.map((function(e,t){e.checked=!e.checked}))},confrimOn:function(){this.collChecked?this.delteteItem():0===this.collectIndex?this.collectIdArr.length>0?this.delteteItem():this.$toast("请选择商品"):this.commIdArr.length>0?this.delteteItem():this.$toast("请选择商品")},checkItem:function(e){var t=[],c=[],i=[];0===this.collectIndex?(i=this.datas,this.datas.map((function(e,c){var i;e.checked&&t.push((null===(i=e.goods)||void 0===i?void 0:i.id)||"")})),this.collectIdArr=t):(i=this.commercialList,this.commercialList[e].checked=!this.commercialList[e].checked,this.commercialList.map((function(e,t){e.checked&&c.push(e.id||"")})),this.commIdArr=c),this.collChecked=i.every((function(e){return e.checked}))},getData:function(){var e=this,t={i:this.fun.getKeyByI(),type:this.fun.getTyep(),basic_info:1};$http.get("member.member-favorite.index",t).then((function(t){if(1==t.result){var c;e.datas=t.data,e.datas.map((function(t,c){e.$set(t,"checked",!1)}));var i=null===(c=t.basic_info.plugin_setting)||void 0===c?void 0:c.coupon_store;"[object Object]"===Object.prototype.toString.call(i)&&(e.collectStoreIs=!0,e.storeCollectList())}}),(function(e){}))},onStoreChange:function(e){this.checkAll=!1,this.collChecked=!1,this.collectIndex=e},storeCollectList:function(){var e={basic_info:1},t=this;$http.get("plugin.coupon-store.frontend.collection.storeCollectList",e,"处理中...").then((function(e){if(1==e.result){var c=e.data;t.commercialList=c.data,t.commercialList.map((function(e,c){t.$set(e,"checked",!1)}))}else Object(a["a"])(e.msg)}),(function(e){}))},delteteItem:function(e,t){var c,i=this,o=0===this.collectIndex?"member.member-favorite.destroy":"plugin.coupon-store.frontend.collection.destroy",l={};this.collChecked?l.has_all=!0:0===this.collectIndex?0==this.collectIdArr.length?l.goods_id=null===(c=e.goods)||void 0===c?void 0:c.id:l.goods_id=this.collectIdArr:0==this.commIdArr.length?l.store_id=e.id:l.store_id=this.commIdArr;$http.post(o,l,"处理中...").then((function(e){1==e.result?(i.collectIdArr=[],i.getData(),i.collChecked&&(i.checkAll=!1),Object(a["a"])("操作成功")):Object(a["a"])(e.msg)}),(function(e){}))},toItem:function(e){this.$router.push(this.fun.getUrl("goods",{id:e.id}))},commercialTo:function(e){this.$router.push(this.fun.getUrl("commodity",{},{storeId:e}))}},components:{cTitle:l["a"]}},n=r,s=n,d=(c("fa71"),c("2877")),m=Object(d["a"])(s,i,o,!1,null,"64cecc53",null);t["default"]=m.exports},fa71:function(e,t,c){"use strict";c("42f1")}}]);