|
|
|
|
@ -21,8 +21,9 @@ import { setIndexFlag } from "../../store/features/globalStore";
|
|
|
|
|
/** 自定义组件 **/
|
|
|
|
|
import AtCalendar from "../../components/calendar";
|
|
|
|
|
import PopupPrivacy from "../../components/popup/popup-privacy";
|
|
|
|
|
import PopupAlert from "../../components/popup/popup-alert";
|
|
|
|
|
|
|
|
|
|
import PopupSiteSwiper from "../../components/popup/popup-site-swiper";
|
|
|
|
|
import PopupAlert from "../../components/popup/popup-alert";
|
|
|
|
|
import type CustomTabBar from "../../custom-tab-bar";
|
|
|
|
|
import Navbar from "../../components/navbar/navbar";
|
|
|
|
|
/** 自定义组件 **/
|
|
|
|
|
@ -177,8 +178,6 @@ class Index extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
// 获取站点管理-弹窗列表 1-首页 2-发现模块 3-活动模块
|
|
|
|
|
GetSitePopupList = async () => {
|
|
|
|
|
// this.intData();
|
|
|
|
|
// return;
|
|
|
|
|
let res = await GetSitePopupList(1);
|
|
|
|
|
if (res.data.code === 200) {
|
|
|
|
|
// console.log("GetSitePopupList", res);
|
|
|
|
|
@ -214,24 +213,6 @@ class Index extends Component<any, any> {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
async intData() {
|
|
|
|
|
let MpSplashDetail_type1 =
|
|
|
|
|
Taro.getStorageSync("MpSplashDetail_type1") || undefined;
|
|
|
|
|
if (MpSplashDetail_type1) {
|
|
|
|
|
let detail = JSON.parse(MpSplashDetail_type1);
|
|
|
|
|
let list = detail.filter((item: any) => item.fileSuffix === "images");
|
|
|
|
|
let welcomeList = list.map((item) => {
|
|
|
|
|
return {
|
|
|
|
|
image: item.filePath,
|
|
|
|
|
title: item.title,
|
|
|
|
|
desc: item.content,
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
console.log("welcomeList", welcomeList);
|
|
|
|
|
this.setState({ sitePopupList: welcomeList, isShowSiteSwiper: true });
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
goRegister() {
|
|
|
|
|
go("/pages/register/register");
|
|
|
|
|
}
|
|
|
|
|
@ -429,6 +410,7 @@ class Index extends Component<any, any> {
|
|
|
|
|
isShow={isShowPrivacyPopup}
|
|
|
|
|
closePrivacy={this.closePrivacy}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<PopupSiteSwiper
|
|
|
|
|
isShow={isShowSiteSwiper}
|
|
|
|
|
siteData={sitePopupList}
|
|
|
|
|
|