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
4.0 KiB
1 line
4.0 KiB
2 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"0ffa":function(t,e,n){"use strict";var i=n("3f8d"),a=n.n(i);a.a},"3f8d":function(t,e,n){},"5ba0":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("7eb4")),r=i(n("ee10")),u={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(){t.stopPullDownRefresh()}),1e3)},methods:{getConfig1:function(){var t=this;return(0,r.default)(a.default.mark((function e(){var n,i,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.getConfigIndex({});case 2:n=e.sent,i=n.code,r=n.data,n.msg,200==i&&(t.isShow1=r.is_open);case 7:case"end":return e.stop()}}),e)})))()},toDetail:function(e){t.setStorageSync("articleInfo",this.text3[e]),t.navigateTo({url:"/pages/index/detail"})},openPage:function(e,n){if(1==e){if(!t.getStorageSync("userToken"))return void t.navigateTo({url:"/pages/login/login"});t.setStorageSync("isShare",1),t.switchTab({url:"/pages/user/index"})}else 2==e?t.navigateTo({url:"/pages/question/buyOne"}):3==e&&(t.setStorageSync("articleInfo",n),t.navigateTo({url:"/pages/index/detail"}))},getBanner:function(){var e=this;return(0,r.default)(a.default.mark((function n(){var i,r,u,o;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.bannerList({});case 2:i=n.sent,r=i.code,u=i.data,o=i.msg,e.bannerList=[],200==r?u.map((function(t){e.bannerList.push(t.image)})):t.showToast({icon:"none",title:o});case 8:case"end":return n.stop()}}),n)})))()},getArticleList:function(e){var n=this;return(0,r.default)(a.default.mark((function i(){var r,u,o,s,c,l;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,n.$api.articleList({type:e});case 2:r=i.sent,u=r.code,o=r.data,s=r.msg,c=[],l=[],200==u?(o&&o.length>0&&o.map((function(t){c.push(t),l.push(t.title)})),4==e?(n.text3=c,n.text4=l):5==e&&(n.industryList=c,c.length>0?n.isShow=!1:n.isShow=!0)):(n.isShow=!0,t.showToast({icon:"none",title:s}));case 8:case"end":return i.stop()}}),i)})))()}}};e.default=u}).call(this,n("df3c")["default"])},6604:function(t,e,n){"use strict";n.r(e);var i=n("5ba0"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},d930:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("482e");i(n("3240"));var a=i(n("ee5a"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},e4db:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={uSwiper:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-swiper/u-swiper")]).then(n.bind(null,"80fc"))},uNoticeBar:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-notice-bar/u-notice-bar")]).then(n.bind(null,"9f88"))},uEmpty:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(n.bind(null,"1623"))}},a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.bannerList.length),i=t.staticUrl("/static/icon-notice.png"),a=t.text4&&t.text4.length>0,r=a?t.staticUrl("/static/icon-arrow.png"):null,u=t.staticUrl("/static/menu-01.png"),o=t.staticUrl("/static/menu-02.png");t.$mp.data=Object.assign({},{$root:{g0:n,m0:i,g1:a,m1:r,m2:u,m3:o}})},r=[]},ee5a:function(t,e,n){"use strict";n.r(e);var i=n("e4db"),a=n("6604");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("0ffa");var u=n("828b"),o=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"34723100",null,!1,i["a"],void 0);e["default"]=o.exports}},[["d930","common/runtime","common/vendor"]]]);
|