bztang-admin/addons/yun_shop/static/app/js/chunk-4860bea6.b4ec1a94.js

1 line
7.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4860bea6"],{"18a0":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#tokerIndex .list[data-v-e690d80a]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#tokerIndex .list[data-v-e690d80a],#tokerIndex .list .lis[data-v-e690d80a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#tokerIndex .list .lis[data-v-e690d80a]{background-color:#fff;width:21.56rem;border-radius:.47rem;margin:.63rem 0 .63rem 0;padding:.75rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#tokerIndex .list .lis .bottom[data-v-e690d80a]:last-child{margin-bottom:0}#tokerIndex .list .lis .bottom[data-v-e690d80a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:.8rem}#tokerIndex .list .lis .bottom .left[data-v-e690d80a]{width:5.63rem;height:5.63rem;background-color:#d8d8d8}#tokerIndex .list .lis .bottom .left img[data-v-e690d80a]{width:100%;height:100%}#tokerIndex .list .lis .bottom .right[data-v-e690d80a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.63rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#tokerIndex .list .lis .bottom .right[data-v-e690d80a],#tokerIndex .list .lis .bottom .right .rightBottom[data-v-e690d80a]{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}#tokerIndex .list .lis .bottom .right .rightBottom .price[data-v-e690d80a]{font-size:1.06rem;color:#ee2e2b}#tokerIndex .list .lis .bottom .right .rightBottom .sales[data-v-e690d80a]{font-size:.75rem;color:#666;line-height:1.5rem}#tokerIndex .list .lis .bottom .right .rightBottom .sales span[data-v-e690d80a]{margin-left:.5rem}#tokerIndex .list .lis .bottom .right .title[data-v-e690d80a]{text-align:left;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:.94rem;color:#202020}#tokerIndex .list .lis .top[data-v-e690d80a]{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;margin-bottom:.78rem}#tokerIndex .list .lis .top .distance[data-v-e690d80a]{color:#ee2e2b;font-size:.88rem}#tokerIndex .list .lis .top .img[data-v-e690d80a]{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:.88rem}#tokerIndex .list .lis .top .img img[data-v-e690d80a]{width:2.19rem;height:2.19rem;background-color:#d8d8d8;border-radius:100%}#tokerIndex .list .lis .top .img .shopname[data-v-e690d80a]{font-size:.88rem;margin-left:.5rem}",""]),t.exports=e},"41e7c":function(t,e,i){"use strict";i("8c4a")},"8c4a":function(t,e,i){var a=i("18a0");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("8cc3ca2e",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var a=document.documentElement,o=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.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(){}}}},c85f:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"tokerIndex"}},[i("c-title",{attrs:{hide:!1,text:t.plugin_name}}),i("van-tabs",{attrs:{background:"#f2f2f2","title-active-color":"#ee2e2b"},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[i("van-tab",{attrs:{title:"离我最近"}})],1),t._l(t.list,(function(e,a){return i("div",{key:a,staticClass:"list"},[i("div",{staticClass:"lis"},[i("div",{staticClass:"top"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:e.thumb,alt:""}}),i("div",{staticClass:"shopname"},[t._v(t._s(e.store_name))])]),i("div",{staticClass:"distance"},[t._v(t._s(e.distance)+t._s(e.distance_unit))])]),t._l(e.has_many_goods,(function(e,a){return i("div",{key:a,staticClass:"bottom",on:{click:function(i){return t.toDetail(e.goods_id)}}},[i("div",{staticClass:"left"},[i("img",{attrs:{src:e.has_one_goods.thumb,alt:""}})]),i("div",{staticClass:"right"},[i("div",{staticClass:"title"},[t._v(t._s(e.has_one_goods.title))]),i("div",{staticClass:"rightBottom"},[i("div",{staticClass:"price"},[t._v("¥"+t._s(e.has_one_goods.price))]),i("div",{staticClass:"sales"},[t._v("销量:"),i("span",[t._v(t._s(e.has_one_goods.real_sales))])])])])])}))],2)])}))],2)},o=[],s=(i("99af"),i("6968")),n=i("ac0d"),l={mixins:[n["a"]],data:function(){return{active:0,list:[],lng:"",lat:"",city_name:"",page:1,isLoadMore:!0,total_page:0,plugin_name:""}},activated:function(){this.city_name=this.$route.params.city,this.lng=JSON.parse(this.$route.params.point).lng,this.lat=JSON.parse(this.$route.params.point).lat,this.getData()},methods:{toDetail:function(t){this.$router.push(this.fun.getUrl("goods",{id:t}))},getData:function(){var t;t="plugin.customer-development.Frontend.controllers.store.index";var e=this,i=this.fun.bd_encrypt(this.lng,this.lat),a={lng:i.lng,lat:i.lat,city_name:this.city_name,page:e.page};$http.post(t,a,"").then((function(t){1===t.result&&(e.list=t.data.stores.data,e.plugin_name=t.data.plugin_name?"".concat(t.data.plugin_name,"列表"):"拓客卡列表",e.fun.setWXTitle(t.data.plugin_name?"".concat(t.data.plugin_name,"列表"):"拓客卡列表"),e.isLoadMore=!0,e.total_page=t.data.last_page,e.total_page||(e.total_page=0))}))},getMoreData:function(){var t=this;t.isLoadMore=!1;var e={lng:p.lng,lat:p.lat,city_name:this.city_name,page:t.page};this.page>=this.total_page||$http.get("plugin.customer-development.Frontend.controllers.store.index",e,"").then((function(e){if(1!=e.result)return t.page=t.page-1,void(t.isLoadMore=!1);t.isLoadMore=!0,t.list.concat(e.data.data)}))}},components:{cTitle:s["a"]}},r=l,c=(i("41e7c"),i("2877")),d=Object(c["a"])(r,a,o,!1,null,"e690d80a",null);e["default"]=d.exports}}]);