diff --git a/src/images/city/guangzhou.jpg b/src/images/city/guangzhou.jpg new file mode 100644 index 0000000..dff8cf2 Binary files /dev/null and b/src/images/city/guangzhou.jpg differ diff --git a/src/images/city/shanghai.jpg b/src/images/city/shanghai.jpg new file mode 100644 index 0000000..621d477 Binary files /dev/null and b/src/images/city/shanghai.jpg differ diff --git a/src/images/city/shenzhen.jpg b/src/images/city/shenzhen.jpg new file mode 100644 index 0000000..305c4f5 Binary files /dev/null and b/src/images/city/shenzhen.jpg differ diff --git a/src/images/index/touxiang.jpg b/src/images/index/touxiang.jpg new file mode 100644 index 0000000..bbfd814 Binary files /dev/null and b/src/images/index/touxiang.jpg differ diff --git a/src/pages/index/index.config.js b/src/pages/index/index.config.js index cb08b7b..238a7fd 100644 --- a/src/pages/index/index.config.js +++ b/src/pages/index/index.config.js @@ -1,3 +1,3 @@ export default definePageConfig({ - navigationBarTitleText: '数字游民' + navigationBarTitleText: '数字游民的星球' }) diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx index 1de3d9d..829a9ea 100644 --- a/src/pages/index/index.jsx +++ b/src/pages/index/index.jsx @@ -4,7 +4,11 @@ import Taro from "@tarojs/taro"; import { AtAvatar, AtTag, AtIcon, AtTabBar } from "taro-ui"; import "./index.scss"; import beijing from "@/images/city/beijing.jpg"; -import { VIEW } from "@tarojs/runtime"; +import guangzhou from "@/images/city/guangzhou.jpg"; +import shanghai from "@/images/city/shanghai.jpg"; +import shenzhen from "@/images/city/shenzhen.jpg"; +import touxiang from "@/images/index/touxiang.jpg"; + import { useEffect } from "react"; // import beijing from "../../images/city/beijing.jpg"; @@ -14,13 +18,13 @@ export default function Index() { }); useEffect(() => { - // 更新分享 + // 更新分享-minipro Taro.updateShareMenu({ withShareTicket: true, success() {}, }); - // 显示分享按钮 + // 显示分享按钮-minipro Taro.showShareMenu({ withShareTicket: true, // showShareItems:true, @@ -38,13 +42,17 @@ export default function Index() { }, []); const HomeCardItem = () => { - return [1, 2, 3].map((item, index) => { + return [ + { cityName: "北京", imagePath: beijing }, + { cityName: "上海", imagePath: shanghai }, + { cityName: "广州", imagePath: guangzhou }, + { cityName: "深圳", imagePath: shenzhen }, + ].map((item, index) => { return ( {/* 城市封面图片 */} - right + + {/* */} + ); }); @@ -78,7 +97,7 @@ export default function Index() { {/* 顶部 */} {/* 头像 */} - + {/* color="#F00" */} @@ -93,13 +112,15 @@ export default function Index() { + + {/* 底部tabbar */}