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.
2 lines
6.8 KiB
2 lines
6.8 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{38:function(t,i,n){"use strict";(function(t,i){var e=n(4);n(26);e(n(25));var s=e(n(39));t.__webpack_require_UNI_MP_PLUGIN__=n,i(s.default)}).call(this,n(1)["default"],n(2)["createPage"])},39:function(t,i,n){"use strict";n.r(i);var e=n(40),s=n(42);for(var a in s)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return s[t]}))}(a);n(44);var o,c=n(32),r=Object(c["default"])(s["default"],e["render"],e["staticRenderFns"],!1,null,"57280228",null,!1,e["components"],o);r.options.__file="pages/index/index.vue",i["default"]=r.exports},40:function(t,i,n){"use strict";n.r(i);var e=n(41);n.d(i,"render",(function(){return e["render"]})),n.d(i,"staticRenderFns",(function(){return e["staticRenderFns"]})),n.d(i,"recyclableRender",(function(){return e["recyclableRender"]})),n.d(i,"components",(function(){return e["components"]}))},41:function(t,i,n){"use strict";var e;n.r(i),n.d(i,"render",(function(){return s})),n.d(i,"staticRenderFns",(function(){return o})),n.d(i,"recyclableRender",(function(){return a})),n.d(i,"components",(function(){return e}));var s=function(){var t=this,i=t.$createElement,n=(t._self._c,t.topBanner?t.__map(t.topBanner,(function(i,n){var e=t.__get_orig(i),s=t.showImg(i.head_img);return{$orig:e,m0:s}})):null),e=t.smallBanner?t.__map(t.smallBanner,(function(i,n){var e=t.__get_orig(i),s=t.showImg(i.head_img);return{$orig:e,m1:s}})):null,s=t.__map(t.winnowList,(function(i,n){var e=t.__get_orig(i),s=t.__map(i.list,(function(i,n){var e=t.__get_orig(i),s=t.showImgs(i.headimg);return{$orig:e,m2:s}}));return{$orig:e,l2:s}})),a=t.calendarItem?t.showImgs(t.calendarItem.post_url):null,o=t.__map(2,(function(i,n){var e=t.__get_orig(i),s=t.__map(t.getColumnItems(n),(function(i,n){var e=t.__get_orig(i),s=t.showImgs(i.headimg||i.head_img||i.post_url),a=i.display_tags&&0==t.typeIndex?i.display_tags.split(",").slice(0,2):null;return{$orig:e,m4:s,l4:a}}));return{$orig:e,l5:s}}));t.$mp.data=Object.assign({},{$root:{l0:n,l1:e,l3:s,m3:a,l6:o}})},a=!1,o=[];s._withStripped=!0},42:function(t,i,n){"use strict";n.r(i);var e=n(43),s=n.n(e);for(var a in e)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(a);i["default"]=s.a},43:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={data:function(){return{topBanner:[],menuList:[{title:"景点门票",img:"https://static.ticket.sz-trip.com/changshu/images/index/jdmp.png",path:""},{title:"非遗手作",img:"https://static.ticket.sz-trip.com/changshu/images/index/fysz.png",path:""},{title:"文创特产",img:"https://static.ticket.sz-trip.com/changshu/images/index/wctc.png",path:""},{title:"酒店住宿",img:"https://static.ticket.sz-trip.com/changshu/images/index/jdzs.png",path:""},{title:"电影购票",img:"https://static.ticket.sz-trip.com/changshu/images/index/dygp.png",path:""},{title:"场馆预约",img:"https://static.ticket.sz-trip.com/changshu/images/index/cgyy.png",path:""},{title:"一卡游玩",img:"https://static.ticket.sz-trip.com/changshu/images/index/ykyw.png",path:""},{title:"活动日历",img:"https://static.ticket.sz-trip.com/changshu/images/index/hdrl.png",path:""},{title:"特色线路",img:"https://static.ticket.sz-trip.com/changshu/images/index/tsxl.png",path:""},{title:"常熟周边",img:"https://static.ticket.sz-trip.com/changshu/images/index/cszb.png",path:"/subPackages/rim/rimList"}],smallBanner:[],winnowList:[{title:"景点",id:"619",spanColor:"#529AE7",list:[]},{title:"特产",id:"620",spanColor:"#EE710C",list:[]}],calendarItem:{},travelList:[{title:"聆听常熟",img:"https://static.ticket.sz-trip.com/changshu/images/index/lingting.png",path:""},{title:"云游常熟",img:"https://static.ticket.sz-trip.com/changshu/images/index/yunyou.png",path:""},{title:"寻味常熟",img:"https://static.ticket.sz-trip.com/changshu/images/index/xunwei.png",path:""}],publicList:[{title:"公共自行车",img:"https://static.ticket.sz-trip.com/changshu/images/index/ggzxc.png",path:""},{title:"咨询投诉",img:"https://static.ticket.sz-trip.com/changshu/images/index/zxts.png",path:""},{title:"景区舒适度",img:"https://static.ticket.sz-trip.com/changshu/images/index/jqssd.png",path:""},{title:"找车位",img:"https://static.ticket.sz-trip.com/changshu/images/index/zcw.png",path:""},{title:"找厕所",img:"https://static.ticket.sz-trip.com/changshu/images/index/zcs.png",path:""},{title:"公共交通",img:"https://static.ticket.sz-trip.com/changshu/images/index/ggjt.png",path:""}],hotType:[{title:"景点",id:"616"},{title:"活动",id:"617"},{title:"文创",id:"618"},{title:"非遗",id:"619"},{title:"线路",id:"620"},{title:"视频",id:"128"}],typeIndex:0,hotList:[],pageNo:1,limit:4,isLoading:!1}},onLoad:function(){},onShow:function(){},onReady:function(){this.getBanner(),this.getWinnowList(),this.getCalendarList()},onReachBottom:function(){var t=this;setTimeout((function(){t.isLoading||t.getHotList()}),500)},methods:{getColumnItems:function(t){var i=[];return this.hotList.forEach((function(n,e){e%2===t&&i.push(n)})),i},getBanner:function(){var t=this;this.Post({apiType:"jdsz",type_id:5,position:0},"/api/adv/getAdv").then((function(i){i&&(t.topBanner=i.data)})),this.Post({apiType:"jdsz",type_id:5,position:1},"/api/adv/getAdv").then((function(i){i&&(t.smallBanner=i.data)}))},getWinnowList:function(){var t=this;this.winnowList.map((function(i){t.Post({apiType:"jdsz",tag_id:i.id,offset:0,limit:3},"/api/product/get_product_by_tag").then((function(t){t&&(i.list=t.data.list)}))}))},getCalendarList:function(){var t=this;this.Post({apiType:"jdsz",page_no:1,page_num:1},"/api/pbservice/Actcalendar/getActList").then((function(i){i&&(t.calendarItem=i.data.rows[0])}))},changeType:function(t){this.typeIndex=t,this.pageNo=1,this.isLoading=!1,this.hotList=[],this.getHotList()},getHotList:function(){var t=this;1==this.typeIndex?this.Post({apiType:"jdsz",page_no:this.pageNo,page_num:this.limit},"/api/pbservice/Actcalendar/getActList").then((function(i){i&&(i.data.rows.length<t.limit&&(t.isLoading=!0),t.hotList=t.hotList.concat(i.data.rows),t.pageNo++)})):5==this.typeIndex?this.Post({apiType:"jdsz",class_id:this.hotType[this.typeIndex].id,page:this.pageNo,limit:this.limit},"/api/multimedia/media_list").then((function(i){i&&(i.data.data.length<t.limit&&(t.isLoading=!0),t.hotList=t.hotList.concat(i.data.data),t.pageNo++)})):this.Post({apiType:"jdsz",tag_id:this.hotType[this.typeIndex].id,offset:this.hotList.length,limit:this.limit},"/api/product/get_product_by_tag").then((function(i){i&&(i.data.list.length<t.limit&&(t.isLoading=!0),t.hotList=t.hotList.concat(i.data.list))}))}}};i.default=e},44:function(t,i,n){"use strict";n.r(i);var e=n(45),s=n.n(e);for(var a in e)["default"].indexOf(a)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(a);i["default"]=s.a},45:function(t,i,n){}},[[38,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|