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
48 KiB
1 line
48 KiB
2 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0105":function(t,e,i){var n=i("2b0f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("967d").default;r("80ae6c5e",n,!0,{sourceMap:!1,shadowMode:!1})},"060b":function(t,e,i){"use strict";i.r(e);var n=i("4629"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},"0d82":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("fd3c"),i("aa9c");var r=n(i("2634")),o=n(i("2fdc")),a={data:function(){return{isShow1:!1,isShow:!0,bannerList:[],text3:[],text4:[],industryList:[]}},onShow:function(){this.getBanner(),this.getArticleList(4),this.getArticleList(5),this.getConfig1()},onPullDownRefresh:function(){this.getBanner(),this.getArticleList(4),this.getArticleList(5),setTimeout((function(){uni.stopPullDownRefresh()}),1e3)},methods:{getConfig1:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){var i,n,o;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.getConfigIndex({});case 2:i=e.sent,n=i.code,o=i.data,i.msg,200==n&&(t.isShow1=o.is_open);case 7:case"end":return e.stop()}}),e)})))()},toDetail:function(t){uni.setStorageSync("articleInfo",this.text3[t]),uni.navigateTo({url:"/pages/index/detail"})},openPage:function(t,e){if(1==t){if(!uni.getStorageSync("userToken"))return void uni.navigateTo({url:"/pages/login/login"});uni.setStorageSync("isShare",1),uni.switchTab({url:"/pages/user/index"})}else 2==t?uni.navigateTo({url:"/pages/question/buyOne"}):3==t&&(uni.setStorageSync("articleInfo",e),uni.navigateTo({url:"/pages/index/detail"}))},getBanner:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){var i,n,o,a;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.bannerList({});case 2:i=e.sent,n=i.code,o=i.data,a=i.msg,t.bannerList=[],200==n?o.map((function(e){t.bannerList.push(e.image)})):uni.showToast({icon:"none",title:a});case 8:case"end":return e.stop()}}),e)})))()},getArticleList:function(t){var e=this;return(0,o.default)((0,r.default)().mark((function i(){var n,o,a,u,c,s;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,e.$api.articleList({type:t});case 2:n=i.sent,o=n.code,a=n.data,u=n.msg,c=[],s=[],200==o?(a&&a.length>0&&a.map((function(t){c.push(t),s.push(t.title)})),4==t?(e.text3=c,e.text4=s):5==t&&(e.industryList=c,c.length>0?e.isShow=!1:e.isShow=!0)):(e.isShow=!0,uni.showToast({icon:"none",title:u}));case 8:case"end":return i.stop()}}),i)})))()}}};e.default=a},1479:function(t,e,i){"use strict";var n=i("2c0b"),r=i.n(n);r.a},1884:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uSwiper:i("bcc3").default,uNoticeBar:i("279d").default,uEmpty:i("7018").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"home"},[t.bannerList.length>0?i("v-uni-view",{staticClass:"home-swiper"},[i("u-swiper",{attrs:{list:t.bannerList,circular:!0,autoplay:!0}})],1):t._e(),i("v-uni-view",{staticClass:"home-notice"},[i("v-uni-image",{attrs:{src:t.staticUrl("/static/icon-notice.png")}}),t.text4&&t.text4.length>0?i("v-uni-view",{staticClass:"box"},[i("u-notice-bar",{attrs:{icon:" ",color:"#333333",bgColor:"#ffffff",text:t.text4,direction:"column"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toDetail.apply(void 0,arguments)}}}),i("v-uni-image",{attrs:{src:t.staticUrl("/static/icon-arrow.png")}})],1):i("v-uni-view",{staticStyle:{"margin-left":"20rpx"}},[t._v("暂无公告")])],1),i("v-uni-view",{staticClass:"home-menu"},[i("v-uni-view",{staticClass:"a",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openPage(1)}}},[i("v-uni-image",{attrs:{src:t.staticUrl("/static/menu-01.png")}}),t._v("专属推广码")],1),i("v-uni-view",{staticClass:
|