yunshangxie/unpackage/dist/build/mp-weixin/pages/index/index.js

1 line
18 KiB
JavaScript
Raw Normal View History

2024-05-11 18:14:49 +08:00
(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