2 lines
8.1 KiB
JavaScript
2 lines
8.1 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/home"],{120:function(t,e,n){"use strict";(function(t,e){var o=n(4);n(26);o(n(25));var i=o(n(83));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},83:function(t,e,n){"use strict";n.r(e);var o=n(84),i=n(86);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n(88);var s,c=n(42),r=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"14a6ab35",null,!1,o["components"],s);r.options.__file="pages/index/home.vue",e["default"]=r.exports},84:function(t,e,n){"use strict";n.r(e);var o=n(85);n.d(e,"render",(function(){return o["render"]})),n.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(e,"components",(function(){return o["components"]}))},85:function(t,e,n){"use strict";var o;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return s})),n.d(e,"recyclableRender",(function(){return a})),n.d(e,"components",(function(){return o}));try{o={tnNavBar:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(n.bind(null,406))},tnNoticeBar:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-notice-bar/tn-notice-bar")]).then(n.bind(null,413))},tnButton:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-button/tn-button")]).then(n.bind(null,420))},tnTabs:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-tabs/tn-tabs")]).then(n.bind(null,428))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.actList.length),o=t.actList.length,i=t.news_list.length,a=t.__map(t.news_list,(function(e,n){var o=t.__get_orig(e),i=t.formatTime(e.showtime);return{$orig:o,m0:i}}));t.$mp.data=Object.assign({},{$root:{g0:n,g1:o,g2:i,l0:a}})},a=!1,s=[];i._withStripped=!0},86:function(t,e,n){"use strict";n.r(e);var o=n(87),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},87:function(t,e,n){"use strict";(function(t){var o=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(35)),a=o(n(5)),s=o(n(18)),c=o(n(37)),r=n(33),u=o(n(30)),l={data:function(){return{topShow:!0,new_top_list:[{article_title:"河南省青年企业家协会"}],list:[],selectShow:!1,selectList:[],topCurrent:0,searlist:[{article_title:"搜索资讯"}],cardCur:0,isAndroid:!0,goryList:[],news_list:[],actList:[],carousel_list:[],current:0,page:1,size:5,gory_id:0,type:1,HomeTitle:"",apiImgUrl:this.$store.state.imgUrl,association_id:this.$store.state.Gid,covers:[]}},mounted:function(){getApp().getUserLogin((function(t){console.log("---Login---",t)}));var e=this;t.$on("getGid",(function(t){console.log("-----",t),e.page=1,e.goryList=[],e.news_list=[],e.actList=[],e.carousel_list=[],e.getNewsGoryList(),e.getActivityList(),e.getAssociationIndex(),e.getCarouselIndex()})),this.getNewsGoryList(),this.getActivityList(),this.getAssociationIndex(),this.getCarouselIndex(),this.getMsg()},methods:{getLatitudeAndLongitude:function(){var e=this;(0,r.latitudeAndLongitude)().then((function(t){console.log(t);var n=t.data,o=n.map((function(t){return{latitude:parseFloat(t.dimension),longitude:parseFloat(t.longitude),id:t.id,iconPath:"/static/make.png",width:30,height:30,title:t.enterprise_name,company_image:t.company_image,nikename:t.nikename}}));console.log(o),e.covers=o})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},openNewUrl:function(e){console.log(e),""==e.wx_url||null==e.wx_url?t.navigateTo({url:"/pages/packageB/news/new_info?id="+e.news_id}):t.navigateTo({url:"/pages/index/web?url="+encodeURIComponent(e.wx_url)})},callPhone:function(){t.makePhoneCall({phoneNumber:"15503791530",success:function(){console.log("拨打电话成功")},fail:function(){console.log("拨打电话失败")}})},msg:function(){return this.$store.state.msgCount},getArticlePolicyListAll:function(){var e=this;(0,r.getArticlePolicyList)({cid:22}).then((function(n){console.log(n),1==n.code?e.list=n.data.ret:t.showToast({title:n.msg,icon:"none",duration:2e3})})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},openInfo:function(e){t.navigateTo({url:"/pages/packageC/info/policy_info?id="+e.id})},openRight:function(){t.navigateTo({url:"/pages/packageC/info/policy"})},getMsg:function(){var e=this;return(0,c.default)(i.default.mark((function n(){var o,a;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=t.getStorageSync("uid"),n.next=3,(0,r.Mailcoent)({member_id:o});case 3:a=n.sent,console.log(a),1==a.code?e.$store.commit("$tStore",{name:"msgCount",value:a.data}):e.$store.commit("$tStore",{name:"msgCount",value:0}),console.log(u.default.state.msgCount);case 7:case"end":return n.stop()}}),n)})))()},confirm:function(e){var n=e[0];u.default.commit("$tStore",{name:"Gid",value:n.value}),t.setStorageSync("Gid",n.value),this.association_id=n.value,this.page=1,this.goryList=[],this.news_list=[],this.actList=[],this.carousel_list=[],this.getNewsGoryList(),this.getActivityList(),this.getAssociationIndex(),this.getCarouselIndex()},getAssociationIndex:function(){var e=this;(0,r.associationIndex)().then((function(t){if(console.log(t),1==t.code){var n=t.data,o=n.map((function(t){return{value:t.id,label:t.association_name,icon:t.association_image}})),i=o.find((function(t){return t.value==u.default.state.Gid}));e.HomeTitle=i.label,e.selectList=o,e.$parent.childEvent(i)}})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},getCarouselIndex:function(){var e=this;(0,r.carouselIndex)({association_id:u.default.state.Gid}).then((function(t){console.log(t),1==t.code&&(e.carousel_list=t.data)})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},getActivityList:function(){var e=this;(0,r.activityList)({association_id:u.default.state.Gid,page:1,size:5}).then((function(t){console.log(t),1==t.code?e.actList=t.data.ret:e.actList=[]})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},getNewsGoryList:function(){var e=this;(0,r.newsGoryList)({association_id:this.association_id}).then((function(t){if(console.log(t),1==t.code){var n=t.data;e.goryList=n,e.type=0,e.gory_id=n[0].id,e.getNewsList()}})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},getNewsList:function(){var e=this;(0,r.newsList)({association_id:u.default.state.Gid,type:this.type,gory_id:this.gory_id,page:this.page,size:this.size}).then((function(t){var n;(console.log(t),1==t.code)&&(n=e.news_list).push.apply(n,(0,s.default)(t.data.ret))})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},cardSwiper:function(t){this.cardCur=t.detail.current},ReachScroll:function(t){var e=t.mp.detail.scrollTop;this.topShow=!(e>100)},ReachBottom:function(){console.log("home"),this.page=this.page+1,this.getNewsList()},change:function(t){this.current=t;var e=this.goryList[t];this.gory_id=e.id,this.type=0,this.page=1,this.news_list=[],this.getNewsList()},openUrl:function(e){t.navigateTo({url:e})},opentab:function(){t.$emit("depId",{index:1})},videoErrorCallback:function(e){t.showModal({content:e.target.errMsg,showCancel:!1})},formatTime:function(t){var e=t.split(" ")[0].split("-"),n=(0,a.default)(e,3),o=n[0],i=n[1],s=n[2];return"".concat(o,"-").concat(i,"-").concat(s)}}};e.default=l}).call(this,n(2)["default"])},88:function(t,e,n){"use strict";n.r(e);var o=n(89),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},89:function(t,e,n){}},[[120,"common/runtime","common/vendor"]]]);
|
||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/home.js.map
|