导游中台-游客端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
27 KiB

10 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-daoyou-index"],{"071b":function(t,e,i){"use strict";i.r(e);var a=i("bdbc"),n=i("8195");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("48e6");var o=i("828b"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"f50d0fc6",null,!1,a["a"],void 0);e["default"]=c.exports},"0d69":function(t,e,i){"use strict";i.r(e);var a=i("4c87"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},1659:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223"),i("bf0f"),i("2797");var n=a(i("b7c7")),s=a(i("071b")),o={components:{SelectCalendar:s.default},data:function(){return{keywords:"",typeList:[{title:"推荐",isSelect:!1},{title:"只看有时间",isSelect:!1},{title:"性别",isSelect:!1,list:[]},{title:"擅长景区",isSelect:!1,num:0,list:[],typeIndex:0},{title:"时间段",isSelect:!1,num:0}],list:[],selectDate:{startDay:(new Date).Format("yyyy-MM-dd"),endDay:new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()+1).Format("yyyy-MM-dd"),differDays:1},finished:!1}},onLoad:function(){var t=this;uni.$on("changeScenicDate",(function(e){e&&(t.selectDate=e,t.typeList[4].num=t.selectDate.differDays,t.typeList[1].isSelect=!1,t.onReload()),t.$refs.calendarPopup.close()}))},onUnload:function(){uni.$off("changeScenicDate")},onShow:function(){this.getList()},onReachBottom:function(){var t=this;setTimeout((function(){t.finished||t.getList()}),1e3)},methods:{onReload:function(){this.list=[],this.finished=!1,this.getList()},getList:function(){var t=this;this.Post({type_id:2,offset:this.list.length,limit:10,start_date:this.typeList[4].num>0?this.selectDate.startDay:this.typeList[1].isSelect?(new Date).Format("yyyy-MM-dd"):"",end_date:this.typeList[4].num>0?this.selectDate.endDay:this.typeList[1].isSelect?(new Date).Format("yyyy-MM-dd"):"",sort:this.typeList[0].isSelect?"sort":"",order:this.typeList[0].isSelect?"desc":"",title:this.keywords},"/api/goods/getGoodsByDateType").then((function(e){t.list=[].concat((0,n.default)(t.list),(0,n.default)(e.data)),e.data.length<10&&(t.finished=!0)}))},goDetail:function(t){uni.navigateTo({url:"/subPackages/daoyou/detail?id="+t.id})},getScenicList:function(){var t=this;this.Post({},"/api/guide/getGuideScenicList").then((function(e){e.data.forEach((function(t){t.arr.forEach((function(t){t.isSelect=!1}))})),t.typeList[3].list=e.data}))},selectConditions:function(t,e){this.isCanClick||(4!=e&&(this.typeList[4].isSelect=!1,this.typeList[4].num=0,this.selectDate={startDay:(new Date).Format("yyyy-MM-dd"),endDay:new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()+1).Format("yyyy-MM-dd"),differDays:1}),0!=e&&1!=e||(t.isSelect=!t.isSelect,this.onReload()),2==e&&this.$refs.sexPopup.open(),3==e&&this.$refs.scenicPopup.open(),4==e&&this.$refs.calendarPopup.open())},changeTabBar:function(t){t.show?(uni.hideTabBar(),this.isCanClick=!0):(uni.showTabBar(),this.isCanClick=!1)},changeSex:function(t){t.id?(this.typeList[2].title=t.title,this.typeList[2].isSelect=!0):(this.typeList[2].title="性别",this.typeList[2].isSelect=!1),this.$refs.sexPopup.close()},scenicConfirm:function(t){if(t){var e=0;this.typeList[3].list.forEach((function(t){t.arr.forEach((function(t){t.isSelect&&(e+=1)}))})),this.typeList[3].num=e}else this.typeList[3].list.forEach((function(t){t.arr.forEach((function(t){t.isSelect=!1}))}));this.$refs.scenicPopup.close()}}};e.default=o},"211b":function(t,e,i){"use strict";i.r(e);var a=i("1659"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"3f17":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,".calendar-tz[data-v-3087109c]{width:100%;height:100vh;background:#fff;display:-webkit-box;display:flex;-webkit-flex-direction:column;flex-direction:column}.calendar-tz.fixed[data-v-3087109c]{position:fixed;width:100%;height:100%;left:0;top:0;z-index:900}.c