|
|
|
|
@ -1,30 +1,20 @@
|
|
|
|
|
import classnames from "classnames";
|
|
|
|
|
// import { MpSplashDetail, WCUserLogin } from "../../utils/Interface";
|
|
|
|
|
import { Component, PropsWithChildren, useEffect, useState } from "react";
|
|
|
|
|
import { Component } from "react";
|
|
|
|
|
import Taro from "@tarojs/taro";
|
|
|
|
|
// 引入 Swiper, SwiperItem 组件
|
|
|
|
|
import {
|
|
|
|
|
Block,
|
|
|
|
|
View,
|
|
|
|
|
Text,
|
|
|
|
|
Image,
|
|
|
|
|
Video,
|
|
|
|
|
Swiper,
|
|
|
|
|
SwiperItem,
|
|
|
|
|
} from "@tarojs/components";
|
|
|
|
|
|
|
|
|
|
import {Block, Image, Swiper, SwiperItem, View,} from "@tarojs/components";
|
|
|
|
|
/*** redux ***/
|
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
|
import { userRefresh } from "../../store/features/userInfo";
|
|
|
|
|
import { userRefresh } from "@/store/features/userInfo";
|
|
|
|
|
/*** redux end ***/
|
|
|
|
|
|
|
|
|
|
import Navbar from "../../components/navbar/navbar";
|
|
|
|
|
import Navbar from "@/components/navbar/navbar";
|
|
|
|
|
|
|
|
|
|
import "taro-ui/dist/style/components/button.scss"; // 按需引入
|
|
|
|
|
import "./entry.less";
|
|
|
|
|
import "./Animista.less";
|
|
|
|
|
import "./fade.css";
|
|
|
|
|
import { go, msg } from "../../utils/traoAPI";
|
|
|
|
|
|
|
|
|
|
/*** redux end ***/
|
|
|
|
|
|
|
|
|
|
class Entry extends Component<any, any> {
|
|
|
|
|
constructor(props) {
|
|
|
|
|
@ -149,11 +139,11 @@ class Entry extends Component<any, any> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let { menu, current, welcomeList, navHeight } = this.state;
|
|
|
|
|
let { menu, current, welcomeList } = this.state;
|
|
|
|
|
return (
|
|
|
|
|
<Block>
|
|
|
|
|
<Navbar></Navbar>
|
|
|
|
|
<View className="main">
|
|
|
|
|
<Navbar />
|
|
|
|
|
<View className="main entry-main">
|
|
|
|
|
{/* <View
|
|
|
|
|
className="logo"
|
|
|
|
|
style={"top:" + menu.top + "px; height:" + menu.height + "px"}
|
|
|
|
|
@ -188,7 +178,7 @@ class Entry extends Component<any, any> {
|
|
|
|
|
className="cover"
|
|
|
|
|
src={item.image}
|
|
|
|
|
mode="aspectFill"
|
|
|
|
|
></Image>
|
|
|
|
|
/>
|
|
|
|
|
</View>
|
|
|
|
|
<View className="bottom-card">
|
|
|
|
|
<View>
|
|
|
|
|
@ -209,18 +199,7 @@ class Entry extends Component<any, any> {
|
|
|
|
|
{item.desc}
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<View className="indicator">
|
|
|
|
|
{welcomeList.map((item, index) => {
|
|
|
|
|
return (
|
|
|
|
|
<View
|
|
|
|
|
key={"indicator_" + index}
|
|
|
|
|
className={classnames("dot", {
|
|
|
|
|
"bg-show": current === index,
|
|
|
|
|
})}
|
|
|
|
|
></View>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
@ -233,6 +212,19 @@ class Entry extends Component<any, any> {
|
|
|
|
|
<View className="btn" onClick={this.toHomePage.bind(this)}>
|
|
|
|
|
前往主页
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<View className="indicator">
|
|
|
|
|
{welcomeList.map((_item, index) => {
|
|
|
|
|
return (
|
|
|
|
|
<View
|
|
|
|
|
key={"indicator_" + index}
|
|
|
|
|
className={classnames("dot", {
|
|
|
|
|
"bg-show": current === index,
|
|
|
|
|
})}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
</Block>
|
|
|
|
|
|