bztang-admin/addons/yun_shop/static/app/js/chunk-45f86974.1bb6fd45.js

1 line
6.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45f86974"],{2675: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:"sotoreList"}},[i("c-title",{attrs:{hide:!1,text:"服务门店"}}),i("div",{staticClass:"main"},[t._m(0),t._l(t.store,(function(e,a){return i("div",{key:a,staticClass:"lis",on:{click:function(i){return t.toRouter(e.id)}}},[i("div",{staticClass:"image"},[i("img",{attrs:{src:e.thumb,alt:""}})]),i("div",{staticClass:"right"},[i("div",{staticClass:"right_top"},[i("div",{staticClass:"title"},[t._v(t._s(e.store_name))]),t._m(1,!0)]),i("div",{staticClass:"time"},[t._v("营业时间:"+t._s(e.business_hours_start)+"-"+t._s(e.business_hours_end))]),i("div",{staticClass:"addressPath"},[i("i",{staticClass:"iconfont icon-icon_location"}),i("div",{staticClass:"addressGoods"},[t._v(t._s(e.address))])])])])}))],2)],1)},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"txtbox"},[i("div",{staticClass:"line"}),i("div",{staticClass:"txt"},[t._v("该项目附近可服务门店")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"iconT"},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/project_details_shop@2x.png",alt:""}})])}],o=(i("14d9"),i("99af"),i("ac0d")),n={mixins:[o["a"]],data:function(){return{store:[],isLoadMore:!1,total_page:0,page:1}},activated:function(){this.page=1,this.getData()},methods:{toRouter:function(t){this.$router.push(this.fun.getUrl("HomeSeller",{store_id:t,fromHome:1}))},getData:function(){var t=this;$http.get("plugin.appointment.frontend.project.getDetailStore",{lng:this.$route.query.lng,lat:this.$route.query.lat,project_id:this.$route.query.project_id},"获取中").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.store=e.data.data):t.$dialog.alert({message:e.msg})})).catch((function(t){}))},getMoreData:function(){var t=this;this.isLoadMore&&(t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.appointment.frontend.project.getDetailStore",{lng:this.$route.query.lng,lat:this.$route.query.lat,project_id:this.$route.query.project_id,page:t.page},"加载中").then((function(e){if(1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.data;t.store=t.store.concat(i),t.isLoadMore=!0}),(function(t){}))))}}},r=n,l=(i("2a29"),i("2877")),d=Object(l["a"])(r,a,s,!1,null,"53f55066",null);e["default"]=d.exports},"2a29":function(t,e,i){"use strict";i("97d8")},"97d8":function(t,e,i){var a=i("b60d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("6e4b26be",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=document.documentElement,s=document.body,o={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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},b60d:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".main[data-v-53f55066]{background:#fff;padding:.9375rem .9063rem .9375rem .9375rem}.main .lis[data-v-53f55066]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.875rem 0;border-bottom:1px solid #f5f5f5}.main .lis .image[data-v-53f55066]{width:4.0625rem;height:4.0625rem;border-radius:.125rem}.main .lis .image img[data-v-53f55066]{width:4.0625rem;height:4.0625rem;background:#f5f5f5;border-radius:4px}.main .lis .right[data-v-53f55066]{overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:.5938rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.main .lis .right[data-v-53f55066],.main .lis .right .addressPath[data-v-53f55066]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.main .lis .right .addressPath[data-v-53f55066]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%}.main .lis .right .addressPath .iconfont[data-v-53f55066]{color:#ce811d;font-size:14px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.main .lis .right .addressPath .addressGoods[data-v-53f55066]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main .lis .right .time[data-v-53f55066]{text-align:left}.main .lis .right .right_top[data-v-53f55066]{width:100%;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}.main .lis .right .right_top .title[data-v-53f55066]{font-size:.9375rem;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main .lis .right .right_top .iconT[data-v-53f55066]{width:.8125rem;height:.75rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.main .lis .right .right_top .iconT img[data-v-53f55066]{width:100%;height:100%}.main .txtbox[data-v-53f55066]{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}.main .txtbox .line[data-v-53f55066]{width:.125rem;height:.8125rem;background:#ce811d;border-radius:.0625rem}.main .txtbox .txt[data-v-53f55066]{font-size:1rem;font-weight:400;color:#333;line-height:1.5rem;margin-left:.4375rem}",""]),t.exports=e}}]);