2024-10-04 11:49:56 +08:00
|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{1026:function(e,t,n){"use strict";var o=n("c515"),i=n.n(o);i.a},"33c5":function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n("7eb4")),r=o(n("ee10")),c=o(n("7ca3")),a=n("8f59");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={data:function(){return{list:[],token:""}},computed:u(u({},(0,a.mapState)(["user","HomeContent","InfoList","navbarlist"])),{},{mobile:function(){return this.user.name?this.user.cominfo.mobile:""},centerList:function(){return this.HomeContent?this.HomeContent.centerbannerlist:[]},todayviewer:function(){return this.HomeContent?this.HomeContent.todayviewer:[]},fimages:function(){return this.HomeContent?this.HomeContent.bannerlist:[]},notices:function(){return this.HomeContent?this.HomeContent.noticelist:[]},newsList:function(){return this.InfoList.rows?this.InfoList.rows:[]},tools:function(){return this.$json.tools}}),components:{list:function(){n.e("components/newsList").then(function(){return resolve(n("fae6"))}.bind(null,n)).catch(n.oe)},pikerSearch:function(){Promise.all([n.e("common/vendor"),n.e("components/search")]).then(function(){return resolve(n("f2a4"))}.bind(null,n)).catch(n.oe)},UniNoticeBar:function(){n.e("uni_modules/uni-notice-bar/uni-notice-bar").then(function(){return resolve(n("887b"))}.bind(null,n)).catch(n.oe)}},onLoad:function(){var t=this;return(0,r.default)(i.default.mark((function n(){var o;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=t,n.next=3,o.login();case 3:o.token=e.getStorageSync("token"),o.$store.dispatch("getInfoList",{searchValue:"",pageNo:1,pageSize:3}),o.handleVipList();case 6:case"end":return n.stop()}}),n)})))()},onShareAppMessage:function(){return{title:"智照团线上展厅",path:"/pages/index/index",imageUrl:"",success:function(e){console.log("分享到朋友成功")},fail:function(e){console.log("分享到朋友失败")}}},onShareTimeline:function(){return{title:"智照团线上展厅",query:"",imageUrl:"",success:function(e){console.log("分享到朋友圈成功")},fail:function(e){console.log("分享到朋友圈失败")}}},methods:{login:function(){var t=this;e.login({success:function(n){n.code&&(n.errMsg="login:ok")&&t.$model.onlogin({code:n.code}).then((function(n){if(2==n.code)return t.token=null,e.clearStorageSync(),void e.setStorageSync("sessionid",n.data.sessionid);0==n.code&&(t.token=n.data.token,e.setStorageSync("token",n.data.token),e.setStorageSync("refreshtoken",n.data.refreshtoken),e.setStorageSync("sessionid",n.data.sessionid),t.$store.dispatch("getUserInfo"))})).catch((function(e){}))}})},videoErrorCallback:function(t){e.showModal({content:t.target.errMsg,showCancel:!1})},handleVipList:function(){var e=this;this.$model.getVipList({pageNo:1,pageSize:100}).then((function(t){0==t.code&&(console.log("风采",t.data.rows),e.list=t.data.rows)}))},handleDetail:function(t){e.navigateTo({url:"/pages/phoneList/detail?id="+t.id})},handleSearch:function(t){console.log("搜索信息返回",t),e.navigateTo({url:"/pages/index/searchList?ite="+t})},handlePath:function(t,n){3==t?e.switchTab({url:n}):2==t?e.navigateTo({url:n+"?content=2"}):this.navTo(n)},detail:function(e,t){var n=this;return n.$model.getInfoDetail({id:e,type:t}).then((function(e){console.log("资讯列表",e),0==e.code&&(e.data.type=t,n.$tools.NewsPtype(e.data))}))},handleSearchId:function(e,t){console.log("返回",e,t),this.newsList.forEach((function(n){n.id==e&&(n.
|