1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"01a1":function(t,n,e){},"09ea":function(t,n,e){"use strict";e.r(n);var i=e("d182"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},"15ef":function(t,n,e){"use strict";var i=e("01a1"),o=e.n(i);o.a},"1aba":function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("0c91"),a=i(e("de98")),c={data:function(){return{topCurrent:0,login:!1,loginMod:!1,userInfo:{},apiImgUrl:this.$store.state.imgUrl,loginData:{phone:"",password:"",association_id:a.default.state.Gid}}},mounted:function(){var n=t.getStorageSync("uid");n&&this.getUserInfo(n)},methods:{getUserInfo:function(n){var e=this;(0,o.getUserIndex)({member_id:n}).then((function(t){console.log(t),1==t.code&&(e.userInfo=t.data,e.login=!0)})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},submitLogin:function(){var n=this;(0,o.loginDo)(this.loginData).then((function(e){console.log(e),1==e.code?(t.showToast({title:"登陆成功!",icon:"none",duration:2e3}),t.setStorageSync("uid",e.data.id),n.userInfo=e.data,n.login=!0,n.loginMod=!1):t.showToast({title:"帐号或密码错误!",icon:"none",duration:2e3})})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},loginAut:function(){var n=this;t.showModal({title:"提示",content:"确定要退出吗?",success:function(e){e.confirm&&(t.clearStorageSync("uid"),n.login=!1)}})},tn:function(n){var e=t.getStorageSync("uid");e?t.navigateTo({url:n}):this.loginMod=!0}}};n.default=c}).call(this,e("543d")["default"])},3513:function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("0c91"),a=i(e("de98")),c={data:function(){return{topCurrent:0,swiperList:[{url:"/static/banner1.jpg"}],list:[{name:"协会简介"},{name:"组织架构"},{name:"规章制度"},{name:"入会须知"}],current:0,cardCur:0,info:{},apiImgUrl:this.$store.state.imgUrl,architecture:[],userInfo:{}}},methods:{getUserInfo:function(){var n=this,e=t.getStorageSync("uid");e&&(0,o.getUserIndex)({member_id:e}).then((function(t){console.log(t),1==t.code&&(n.userInfo=t.data)})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},getArchitectureList:function(){var n=this;(0,o.architectureList)({association_id:a.default.state.Gid}).then((function(t){console.log(t),1==t.code&&(n.architecture=t.data)})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},getAssociationInfo:function(){var n=this;console.log("discovery"),(0,o.associationInfo)({association_id:a.default.state.Gid}).then((function(t){if(console.log(t),1==t.code){var e=t.data;-1!=e.association_desc.indexOf("<img")&&(e.association_desc=getApp().addWidthToImages(e.association_desc)),n.info=e}})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},getNewInfo:function(){this.getAssociationInfo(),this.getArchitectureList(),this.getUserInfo()},openUrl:function(n){var e=t.getStorageSync("uid");e?t.navigateTo({url:n}):t.showToast({title:"请登录!",icon:"none",duration:2e3})},openPages:function(n){t.navigateTo({url:n})},change:function(t){this.current=t}}};n.default=c}).call(this,e("543d")["default"])},4771:function(t,n,e){"use strict";e.r(n);var i=e("3513"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},"57e9":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={tnNavBar:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(e.bind(null,"5d27"))},tnNoticeBar:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-notice-bar/tn-notice-bar")]).then(e.bind(null,"5cc8"))},tnButton:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-button/tn-button")]).then(e.bind(null,"f566"))},tnTabs:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-tabs/tn-tabs")]).then(e.bind(null,"8772"))},tnSelect:function(){return e.e("tuniao-ui/components/tn-select/tn-select").then(e.bind(null,"eb22"))}},o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.actList.length),i=t.actList.length;t._isMounted||(t.e0=function(n){t.selectShow=!0}),t.$mp.data=Object.assign({},{$root:{g0:e,g1:i}})},a=[]},"5b86":function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("ca31")),a=i(e("a783")),c=i(e("7c76")),r=i(e("bc5a")),u=i(e("f33e")),s={components:{Home:o.default,Service:a.default,Discovery:c.default,Pizz:r.default,User:u.default},data:function(){return{tabbarList:[{title:"首页",activeIcon:"/static/01_1.png",inactiveIcon:"/static/01.png"},{title:"协会活动",activeIcon:"/static/02_2.png",inactiveIcon:"/static/02.png"},{activeIcon:"",inactiveIcon:"",iconSize:110,out:!0},{title:"发现",activeIcon:"/static/03_3.png",inactiveIcon:"/static/03.png"},{title:"个人中心",activeIcon:"/static/04_4.png",inactiveIcon:"/static/04.png"}],currentIndex:0,tabberPageLoadFlag:[],apiImgUrl:this.$store.state.imgUrl}},onLoad:function(n){var e=Number(n.index||0);this.tabberPageLoadFlag=this.tabbarList.map((function(t,n){return e===n})),this.switchTabbar(e);var i=this;t.$on("depId",(function(t){i.switchTabbar(t.index)}))},mounted:function(){},onShareAppMessage:function(){return{title:"智慧云商协",path:"/pages/index/index",imageUrl:"/static/logo.png"}},onShareTimeline:function(){return{title:"智慧云商协",path:"/pages/index/index",imageUrl:"/static/logo.png"}},methods:{childEvent:function(t){console.log(t),this.tabbarList[2].activeIcon=this.apiImgUrl+t.icon,this.tabbarList[2].inactiveIcon=this.apiImgUrl+t.icon},wxshare:function(){this.$wxshare({url:"http://ysh.0rui.cn/#/pages/index/index",data:{url:window.location.href.split("#")[0]},share_data:{title:"智慧云商协",desc:"智慧云商协",imgUrl:"http://ysh.0rui.cn/static/ser.png",link:window.location.href}})},switchTabbar:function(t){this._switchTabbarPage(t)},tabbarPageScrollLower:function(t){console.log(123),0===this.currentIndex&&this.$refs.home.ReachBottom(),1===this.currentIndex&&this.$refs.service.ReachBottom()},_switchTabbarPage:function(t){var n=this,e=this.tabberPageLoadFlag[t];void 0!==e&&(!1===e&&(this.tabberPageLoadFlag[t]=!0),this.currentIndex=t,2===t&&setTimeout((function(){n.$refs.discovery.getNewInfo()}),100))}}};n.default=s}).call(this,e("543d")["default"])},"650b":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={tnTabbar:function(){return e.e("tuniao-ui/components/tn-tabbar/tn-tabbar").then(e.bind(null,"2648"))}},o=function(){var t=this.$createElement;this._self._c},a=[]},"7c76":function(t,n,e){"use strict";e.r(n);var i=e("a95b"),o=e("4771");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);var c=e("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=r.exports},"87b0":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("34f1");i(e("66fd"));var o=i(e("d863"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},9400:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={tnButton:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-button/tn-button")]).then(e.bind(null,"f566"))},tnListCell:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-list-cell/tn-list-cell")]).then(e.bind(null,"06c7"))},tnModal:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-modal/tn-modal")]).then(e.bind(null,"5c68"))},tnForm:function(){return e.e("tuniao-ui/components/tn-form/tn-form").then(e.bind(null,"2a5c"))},tnFormItem:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-form-item/tn-form-item")]).then(e.bind(null,"e6fc"))},tnInput:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-input/tn-input")]).then(e.bind(null,"1d50"))}},o=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){t.loginMod=!0},t.e1=function(n){t.loginMod=!1})},a=[]},"9b34":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={tnNavBar:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(e.bind(null,"5d27"))},tnTabs:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-tabs/tn-tabs")]).then(e.bind(null,"8772"))},tnButton:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-button/tn-button")]).then(e.bind(null,"f566"))}},o=function(){var t=this.$createElement;this._self._c},a=[]},a783:function(t,n,e){"use strict";e.r(n);var i=e("c468"),o=e("aeee");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);var c=e("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"16b9d26a",null,!1,i["a"],void 0);n["default"]=r.exports},a95b:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={tnNavBar:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(e.bind(null,"5d27"))},tnTabs:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-tabs/tn-tabs")]).then(e.bind(null,"8772"))},tnButton:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-button/tn-button")]).then(e.bind(null,"f566"))},tnGrid:function(){return e.e("tuniao-ui/components/tn-grid/tn-grid").then(e.bind(null,"8392"))},tnGridItem:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-grid-item/tn-grid-item")]).then(e.bind(null,"3309"))}},o=function(){var t=this.$createElement;this._self._c;this.$mp.data=Object.assign({},{$root:{a0:{fontWeight:"600",fontSize:"30rpx"},a1:{background:"linear-gradient(-45deg, #4AA2EF, #3A7FF4)",borderRadius:"4rpx"}}})},a=[]},a995:function(t,n,e){"use strict";e.r(n);var i=e("bc10"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},ae7a:function(t,n,e){"use strict";e.r(n);var i=e("1aba"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},aeee:function(t,n,e){"use strict";e.r(n);var i=e("cf87"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},bc10:function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("448a")),a=e("0c91"),c=(i(e("de98")),{data:function(){return{topCurrent:0,list:[],apiImgUrl:this.$store.state.imgUrl,content:""}},mounted:function(){this.getAssociationIndex()},methods:{onsubmit:function(){this.page=1,this.list=[],this.getAssociationIndex()},getAssociationIndex:function(){var n=this;(0,a.associationIndex)({association_name:this.content}).then((function(t){var e;(console.log(t),1==t.code)&&(e=n.list).push.apply(e,(0,o.default)(t.data))})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},tn:function(n){t.navigateTo({url:n})}}});n.default=c}).call(this,e("543d")["default"])},bc5a:function(t,n,e){"use strict";e.r(n);var i=e("9b34"),o=e("a995");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);var c=e("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=r.exports},c468:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={tnNavBar:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(e.bind(null,"5d27"))},tnButton:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-button/tn-button")]).then(e.bind(null,"f566"))},tnTabs:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-tabs/tn-tabs")]).then(e.bind(null,"8772"))},tnGrid:function(){return e.e("tuniao-ui/components/tn-grid/tn-grid").then(e.bind(null,"8392"))},tnGridItem:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-grid-item/tn-grid-item")]).then(e.bind(null,"3309"))},tnLoadMore:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-load-more/tn-load-more")]).then(e.bind(null,"cc00"))}},o=function(){var t=this.$createElement;this._self._c},a=[]},ca31:function(t,n,e){"use strict";e.r(n);var i=e("57e9"),o=e("09ea");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);var c=e("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"6b7fa3f3",null,!1,i["a"],void 0);n["default"]=r.exports},cf87:function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("448a")),a=e("0c91"),c=i(e("de98")),r={data:function(){return{current:0,load_status:"loading ",tabList:[{name:"进行中",id:1},{name:"未开始",id:2},{name:"已结束",id:3}],apiImgUrl:this.$store.state.imgUrl,content:"",topCurrent:0,actList:[],page:1,tabType:1}},mounted:function(){this.getActivityIndex()},methods:{onsubmit:function(){this.page=1,this.actList=[],this.getActivityIndex()},tabChange:function(t){console.log(t),this.current=t,this.page=1,this.actList=[],this.tabType=this.tabList[t].id,this.getActivityIndex()},ReachBottom:function(){console.log("service"),this.page=this.page+1,this.getActivityIndex()},getActivityIndex:function(){var n=this;(0,a.activityIndex)({association_id:c.default.state.Gid,type:this.tabType,page:this.page,size:10,activity_name:this.content}).then((function(t){var e;(console.log(t),1==t.code)?(e=n.actList).push.apply(e,(0,o.default)(t.data.ret)):n.load_status="nomore"})).catch((function(n){t.showToast({title:n,duration:2e3})}))},openUrl:function(n){t.navigateTo({url:n})}}};n.default=r}).call(this,e("543d")["default"])},d182:function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("448a")),a=e("0c91"),c=i(e("de98")),r={data:function(){return{selectShow:!1,selectList:[],topCurrent:0,searlist:["企业家名称/公司名称"],cardCur:0,isAndroid:!0,swiperList:[{url:"/static/banner.jpg"},{url:"/static/banner2.jpg"}],goryList:[],news_list:[],actList:[],current:0,page:1,size:10,gory_id:0,type:1,HomeTitle:"",apiImgUrl:this.$store.state.imgUrl}},mounted:function(){this.getNewsGoryList(),this.getActivityList(),this.getAssociationIndex()},methods:{confirm:function(n){var e=n[0];c.default.commit("$tStore",{name:"Gid",value:e.value}),t.setStorageSync("Gid",e.value),this.page=1,this.goryList=[],this.news_list=[],this.actList=[],this.getNewsGoryList(),this.getActivityList(),this.getAssociationIndex()},getAssociationIndex:function(){var n=this;(0,a.associationIndex)().then((function(t){if(console.log(t),1==t.code){var e=t.data,i=e.map((function(t){return{value:t.id,label:t.association_name,icon:t.association_image}})),o=i.find((function(t){return t.value==c.default.state.Gid}));n.HomeTitle=o.label,n.selectList=i,n.$parent.childEvent(o)}})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},getActivityList:function(){var n=this;(0,a.activityList)({association_id:c.default.state.Gid,page:1,size:5}).then((function(t){console.log(t),1==t.code?n.actList=t.data.ret:n.actList=[]})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},getNewsGoryList:function(){var n=this;(0,a.newsGoryList)({association_id:c.default.state.Gid}).then((function(t){if(console.log(t),1==t.code){var e=t.data;e.unshift({id:0,name:"最新"}),n.goryList=e,n.type=1,n.gory_id=0,n.getNewsList()}})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},getNewsList:function(){var n=this;(0,a.newsList)({association_id:c.default.state.Gid,type:this.type,gory_id:this.gory_id,page:this.page,size:this.size}).then((function(t){var e;(console.log(t),1==t.code)&&(e=n.news_list).push.apply(e,(0,o.default)(t.data.ret))})).catch((function(n){t.showToast({title:n,icon:"none",duration:2e3})}))},cardSwiper:function(t){this.cardCur=t.detail.current},ReachBottom:function(){console.log("home"),this.page=this.page+1,this.getNewsList()},change:function(t){this.current=t;var n=this.goryList[t];this.gory_id=n.id,this.type=0===t?1:0,this.page=1,this.news_list=[],this.getNewsList()},openUrl:function(n){t.navigateTo({url:n})},opentab:function(){t.$emit("depId",{index:1})}}};n.default=r}).call(this,e("543d")["default"])},d863:function(t,n,e){"use strict";e.r(n);var i=e("650b"),o=e("dd87");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("15ef");var c=e("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"2289f736",null,!1,i["a"],void 0);n["default"]=r.exports},dd87:function(t,n,e){"use strict";e.r(n);var i=e("5b86"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},f33e:function(t,n,e){"use strict";e.r(n);var i=e("9400"),o=e("ae7a");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);var c=e("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=r.exports}},[["87b0","common/runtime","common/vendor"]]]); |