1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22c09ad9"],{"3ab6":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".timeAppointment_search[data-v-16f75f9e]{min-height:100vh}.timeAppointment_search .no-more[data-v-16f75f9e]{color:#aaaab3;font-size:.625rem;text-align:center;margin-top:1rem}.timeAppointment_search .loadNomore[data-v-16f75f9e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.timeAppointment_search .loadNomore img[data-v-16f75f9e]{width:100%;height:100%;width:5rem;height:5rem}.userList[data-v-16f75f9e]{margin:.75rem;padding:.75rem;background:#fff;border-radius:.5rem}.userList .list[data-v-16f75f9e]:last-child{padding-bottom:0!important}.userList .list[data-v-16f75f9e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-bottom:1.53rem}.userList .list .goosDetail[data-v-16f75f9e]{text-align:left;margin-left:.5rem;overflow:hidden;padding-top:.5625rem}.userList .list .goosDetail .title[data-v-16f75f9e]{font-size:.88rem;color:#3b3b4a;font-weight:500}.userList .list .goosDetail .intro[data-v-16f75f9e]{margin-top:.3rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;font-size:.75rem;color:#aaaab3}.userList .list .img[data-v-16f75f9e]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:3.5rem;height:3.5rem;background-color:#fff;border-radius:1.41rem;overflow:hidden}.userList .list .img img[data-v-16f75f9e]{width:100%;height:100%;border-radius:100%}.goodsList[data-v-16f75f9e]{overflow:hidden}.searchBox[data-v-16f75f9e]{width:100%;height:2.75rem;padding:.44rem .94rem;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff}.searchBox[data-v-16f75f9e],.searchBox .actions-box[data-v-16f75f9e]{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}.searchBox .actions-box .iconfont[data-v-16f75f9e]{color:#aaaab3;font-size:.75rem;margin-left:.25rem}.searchBox .search[data-v-16f75f9e]{background-color:#f6f6f6;border-radius:.94rem;width:100%;height: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;padding-left:1rem}.searchBox .search .iconfont[data-v-16f75f9e]{margin-right:.38rem;color:#999}.searchBox .search .van-cell[data-v-16f75f9e]{padding:0;background:#f6f6f6}",""]),t.exports=e},"3ffb":function(t,e,i){var o=i("5ead");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("f9d38926",o,!0,{sourceMap:!1,shadowMode:!1})},"5ead":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".timeAppointment_index_sort[data-v-44cc45d4] .van-field__control{font-size:.75rem;color:#999}.timeAppointment_index_sort[data-v-44cc45d4] .grid-content{font-size:.8125rem;color:#6e6e79}.home-box[data-v-44cc45d4]{border-top:1px solid #ececec;background:#fff;padding:.75rem}.home-box .choicenessList[data-v-44cc45d4]:first-child{margin-top:0}.border-radius[data-v-44cc45d4]{border-radius:.5rem;overflow:hidden}.search-box[data-v-44cc45d4]{background:#fff;margin:.75rem;padding:.75rem .75rem;border-radius:.5rem}.search-box .choicenessList[data-v-44cc45d4]{margin-top:0!important}.choicenessList[data-v-44cc45d4]:last-child{margin-bottom:0!important}.choicenessList[data-v-44cc45d4]{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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-height:4.375rem;margin-bottom:1.25rem;margin-top:.75rem}.choicenessList .button[data-v-44cc45d4]{background-color:var(--themeBaseColor);display:block;padding:.375rem 1.5938rem;color:#fff;border-radius:1.0938rem;font-size:.75rem;border:none}.choicenessList .choicenessList-left[data-v-44cc45d4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.choicenessList .rightBox[data-v-44cc45d4]{margin-left:.63rem;margin-right:1.75rem}.choicenessList .rightBox .title[data-v-44cc45d4]{text-align:left;font-size:.88rem;color:#3b3b4a;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.choicenessList .rightBox .total[data-v-44cc45d4]{text-align:left;font-size:.75rem;margin-top:.25rem;margin-bottom:.3125rem;color:#aaaab3}.choicenessList .rightBox .price[data-v-44cc45d4]{text-align:left;font-size:1rem;color:#f15353;font-weight:500}.choicenessList .img[data-v-44cc45d4]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:4.375rem;height:4.375rem;background-color:#9d9d9d;border-radius:.25rem;overflow:hidden}.choicenessList .img img[data-v-44cc45d4]{width:100%;height:100%}",""]),t.exports=e},8330:function(t,e,i){var o=i("3ab6");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("3359c0cd",o,!0,{sourceMap:!1,shadowMode:!1})},9300:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"timeAppointment_search"},[i("c-title",{attrs:{hide:!1,text:"搜索"}}),i("div",{staticClass:"searchBox"},[i("div",{staticStyle:{"flex-shrink":"0","margin-right":"0.75rem"}},[i("van-popover",{attrs:{trigger:"click",actions:t.actions},on:{select:t.onSelect},scopedSlots:t._u([{key:"reference",fn:function(){return[i("div",{staticClass:"actions-box"},[i("span",{staticStyle:{"font-size":"0.875rem",color:"#333"}},[t._v(t._s(t.actions_text))]),t.showPopover?i("i",{staticClass:"iconfont icon-icon_up1"}):i("i",{staticClass:"iconfont icon-icon_down1"})])]},proxy:!0}]),model:{value:t.showPopover,callback:function(e){t.showPopover=e},expression:"showPopover"}})],1),i("div",{staticClass:"search"},[i("i",{staticClass:"iconfont icon-a-icon_pressed",on:{click:t.tapTab}}),i("van-field",{attrs:{placeholder:"请输入搜索内容"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.tapTab.apply(null,arguments)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)]),0==t.active?i("div",{staticClass:"goodsList"},[i("i-Sort",{attrs:{good:t.sortGood,template:"1"},on:{tapJson:t.getChild}})],1):t._e(),1==t.active&&0!==t.userInfo.length?i("div",{staticClass:"userList"},t._l(t.userInfo,(function(e){return i("div",{key:e.id,staticClass:"list",on:{click:function(i){return t.goUser(e.id)}}},[i("div",{staticClass:"img"},[e.thumb?i("img",{attrs:{src:e.thumb}}):i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/error_thumb.png"}})]),i("div",{staticClass:"goosDetail"},[i("div",{staticClass:"title"},[t._v(t._s(e.name))]),i("div",{staticClass:"intro"},[t._v(t._s(e.description))])])])})),0):t._e(),0!=t.active||0!=t.sortGood.length&&!t.isLoadMore?t._e():i("div",{staticClass:"no-more"},[t._v("没有更多喽~")]),1!=t.active||0!=t.userInfo.length&&!t.isLoadMore?t._e():i("div",{staticClass:"no-more"},[t._v("没有更多喽~")])],1)},s=[],a=(i("e7e5"),i("d399")),r=(i("14d9"),i("ac1f"),i("841c"),i("99af"),i("c82c3")),n=i("ac0d"),c={mixins:[n["a"]],data:function(){return{active:0,sortGood:[],userInfo:[],postjson:{},keyword:"",showPopover:!1,actions_text:"服务",actions:[{text:"".concat(this.appointmentLang&&this.appointmentLang.reserve_obj||"服务"),active:0},{text:"".concat(this.appointmentLang&&this.appointmentLang.service||"预约人员"),active:1}],page:1,isLoadMore:!0,total_page:0}},activated:function(){this.initData(),this.active=1==this.$route.params.ind?1:0,1==this.$route.params.ind?this.actions_text="预约人员":this.actions_text="服务",this.getData()},computed:{appointmentLang:function(){var t;return null!==(t=this.$store.state.shopLanguage)&&void 0!==t&&t.reserve_simple?this.$store.state.shopLanguage.reserve_simple:{reserve_obj:"预约人员",service:"服务"}}},methods:{onSelect:function(t){this.active=t.active,this.actions_text=t.text,this.tapTab()},goUser:function(t){this.$router.push(this.fun.getUrl("AppointmentUserDe",{id:t}))},tapTab:function(t){this.initData(),this.getData()},getChild:function(t){this.initData(),this.postjson=t,this.getData(this.postjson)},getData:function(t){var e=this,i="",o={};0==this.active?(i="plugin.reserve-simple.frontend.goods.search-goods",o={"search[keyword]":this.keyword,page:this.page},t&&(t.order_by&&(o.order_by=t.order_by),t.order_field&&(o.order_field=t.order_field))):(i="plugin.reserve-simple.frontend.obj.search-objs",o={keyword:this.keyword,page:this.page}),$http.get(i,o,"加载中").then((function(t){1===t.result?(0==e.active?e.sortGood=t.data.data:e.userInfo=t.data.data,e.isLoadMore=!0,e.total_page=t.data.last_page,e.total_page||(e.total_page=0)):Object(a["a"])(t.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){var e;this.page+=1;var i=this.postjson;0==this.active?(e={"search[keyword]":this.keyword,page:this.page},i&&(i.order_by&&(e.order_by=i.order_by),i.order_field&&(e.order_field=i.order_field))):e={page:this.page,keyword:this.keyword},this.keyword&&(e.search.keyword,this.keyword),$http.get("plugin.reserve-simple.frontend.goods.search-goods",e,"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var i=response.data.data;0==t.active?t.sortGood=t.sortGood.concat(i):t.userInfo=t.userInfo.concat(i)}else t.page=t.page-1,t.isLoadMore=!1}))}},initData:function(){this.page=1,this.isLoadMore=!0,this.total_page=0,this.sortGood=[],this.userInfo=[]}},components:{ISort:r["a"]}},d=c,l=(i("dd5a"),i("c7a7"),i("2877")),f=Object(l["a"])(d,o,s,!1,null,"16f75f9e",null);e["default"]=f.exports},"97fb":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".van-popup{width:4.25rem!important;left:.75rem!important}.van-popover__action{padding:unset!important;width:100%!important}",""]),t.exports=e},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var o=document.documentElement,s=document.body,a={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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&o.clientHeight?Math.min(s.clientHeight,o.clientHeight):Math.max(s.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},c7a7:function(t,e,i){"use strict";i("8330")},c82c3:function(t,e,i){"use strict";var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"timeAppointment_index_sort",class:{"border-radius":"0"==t.template}},[i("c-sort",{staticStyle:{background:"#fff"},attrs:{supplier:!0},on:{sortIn:t.sortOut}}),t.good&&0!==t.good.length?i("div",{class:"0"==t.template?"home-box":"search-box"},t._l(t.good,(function(e){return i("div",{key:e.id,staticClass:"choicenessList"},[i("div",{staticClass:"choicenessList-left"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:e.thumb,alt:""}})]),i("div",{staticClass:"rightBox"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),i("div",{staticClass:"total"},[t._v("已售"+t._s(e.total_sales))]),1==e.has_option?i("div",{staticClass:"price"},[t._v(" "+t._s(t.$i18n.t("money"))+t._s(e.min_price)+" ")]):i("div",{staticClass:"price"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.price))])])]),i("div",{staticStyle:{"flex-shrink":"0"},on:{click:function(i){return t.toGood(e.goods_id)}}},[i("button",{staticClass:"button"},[t._v("预约")])])])})),0):t._e()],1)},s=[],a=(i("14d9"),i("6499")),r={props:{good:{type:null},template:{type:String,default:"0"}},data:function(){return{}},watch:{good:function(t){}},methods:{toGood:function(t){this.$router.push(this.fun.getUrl("goods",{id:t}))},getGoods:function(t){this.$emit("tapJson",t)},sortOut:function(t){this.order_field=t.order_field,this.order_by=t.order_by;var e={};"id"==this.order_field?e="asc"==this.order_by?{order_by:"asc"}:{order_by:"desc"}:"show_sales"==this.order_field?e="asc"==this.order_by?{order_by:"asc",order_field:"show_sales"}:{order_by:"desc",order_field:"show_sales"}:"price"==this.order_field&&(e="asc"==this.order_by?{order_by:"asc",order_field:"price"}:{order_by:"desc",order_field:"price"}),this.getGoods(e)}},components:{cSort:a["a"]}},n=r,c=(i("f1d4"),i("2877")),d=Object(c["a"])(n,o,s,!1,null,"44cc45d4",null);e["a"]=d.exports},dd5a:function(t,e,i){"use strict";i("fb3e")},dec5:function(t,e,i){t.exports=i.p+"static/app/img/jd-sprites.fb1e8d8b.png"},f1d4:function(t,e,i){"use strict";i("3ffb")},fb3e:function(t,e,i){var o=i("97fb");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("19388c35",o,!0,{sourceMap:!1,shadowMode:!1})}}]); |