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
3.8 KiB
2 lines
3.8 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{40:function(t,e,n){"use strict";(function(t,e){var i=n(4);n(26);i(n(25));var o=i(n(41));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},41:function(t,e,n){"use strict";n.r(e);var i=n(42),o=n(44);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n(46);var r,s=n(32),u=Object(s["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"57280228",null,!1,i["components"],r);u.options.__file="pages/index/index.vue",e["default"]=u.exports},42:function(t,e,n){"use strict";n.r(e);var i=n(43);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},43:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return o})),n.d(e,"staticRenderFns",(function(){return r})),n.d(e,"recyclableRender",(function(){return a})),n.d(e,"components",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.topBanner?t.__map(t.topBanner,(function(e,n){var i=t.__get_orig(e),o=t.showImg(e.head_img);return{$orig:i,m0:o}})):null),i=t.__map(t.tourList,(function(e,n){var i=t.__get_orig(e),o=t.showImg(e.goods.image);return{$orig:i,m1:o}})),o=t.__map(t.newList,(function(e,n){var i=t.__get_orig(e),o=t.showImg(e.goods.image);return{$orig:i,m2:o}})),a=t.__map(t.lineList,(function(e,n){var i=t.__get_orig(e),o=t.showImg(e.image);return{$orig:i,m3:o}}));t._isMounted||(t.e0=function(e,n){var i=arguments[arguments.length-1].currentTarget.dataset,o=i.eventParams||i["event-params"];n=o.index;t.typeIndex=n,t.getTouristList()}),t.$mp.data=Object.assign({},{$root:{l0:n,l1:i,l2:o,l3:a}})},a=!1,r=[];o._withStripped=!0},44:function(t,e,n){"use strict";n.r(e);var i=n(45),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},45:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{imageValue:[],topBanner:[],typeList:[{title:"品牌导游",id:"57"}],typeIndex:0,tourList:[],lineList:[],newList:[]}},onLoad:function(t){var e=this;t.token&&this.Post({token:t.token},"/api/user/getUserDetails").then((function(t){e.$store.commit("changeUserInfo",t.data)}))},onReady:function(){this.getTopBanner(),this.getLineList(),this.getTouristList(),this.getNewList()},methods:{getTouristList:function(){var t=this;this.Post({tag_id:this.typeList[this.typeIndex].id,offset:0,limit:5},"/api/tag/getGoodsByTagId").then((function(e){t.tourList=e.data}))},getLineList:function(){var t=this;this.Post({type_id:1,offset:0,limit:10},"/api/goods/getGoodsByType").then((function(e){t.lineList=e.data}))},getNewList:function(){var t=this;this.Post({tag_id:58,offset:0,limit:10},"/api/tag/getGoodsByTagId").then((function(e){t.newList=e.data}))},getTopBanner:function(){var t=this;this.Post({position:1,type_id:1},"/api/adv/getAdv").then((function(e){t.topBanner=e.data}))},gotoUrlNew:function(e){switch(e.jump_type){case 0:break;case 2:t.navigateTo({url:e.tdata});break;case 3:window.location.href=e.tdata;break;case 4:t.navigateToMiniProgram({appId:e.tdata.appid,path:e.tdata.page,envVersion:"release",success:function(t){console.log("打开成功",t)},fail:function(t){console.log(t)}});break;default:break}},gotoDy:function(){t.switchTab({url:"/pages/daoyou/index"})}}};e.default=n}).call(this,n(2)["default"])},46:function(t,e,n){"use strict";n.r(e);var i=n(47),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},47:function(t,e,n){}},[[40,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|