Browse Source

优化配置

wangyi/feature-20251022162725-启动页登录注册
Ethereal 1 month ago
parent
commit
5cb7fa6101
  1. 2
      pages/deepMate/deepMate.vue
  2. 6
      pages/start/Registration/Registration.vue
  3. 4
      pages/start/login/login.vue
  4. 50
      pages/start/select/select.vue
  5. 2
      pages/start/startup/startup.vue
  6. BIN
      static/icons/bell.png
  7. BIN
      static/icons/clock.png
  8. BIN
      static/icons/headset.png
  9. BIN
      static/icons/hot-tag.png
  10. BIN
      static/icons/mic.png
  11. BIN
      static/icons/send.png
  12. BIN
      static/images/card.jpg
  13. BIN
      static/images/robot.png
  14. BIN
      static/images/tesla-logo.png
  15. BIN
      static/logo.png

2
pages/deepMate/deepMate.vue

@ -22,7 +22,7 @@
<view class="main-content"> <view class="main-content">
<!-- 机器人头像和欢迎语 --> <!-- 机器人头像和欢迎语 -->
<view class="robot-container" v-if="messages.length === 0"> <view class="robot-container" v-if="messages.length === 0">
<image src="/static/robot.png" class="robot-avatar"></image>
<image src="../../static/images/robot.png" class="robot-avatar"></image>
<view class="welcome-message"> <view class="welcome-message">
<text class="greeting">Hi, 我是您的股市随身顾问~</text> <text class="greeting">Hi, 我是您的股市随身顾问~</text>
<text class="description">个股诊断市场情绪解读都可以找我</text> <text class="description">个股诊断市场情绪解读都可以找我</text>

6
pages/start/Registration/Registration.vue

@ -123,7 +123,7 @@ function openAgreement() {
// //
console.log("打开用户协议"); console.log("打开用户协议");
uni.navigateTo({ uni.navigateTo({
url: "/pages/agreement/agreement",
url: "/pages/start/agreement/agreement",
}); });
} }
@ -131,7 +131,7 @@ function openPrivacy() {
// //
console.log("打开隐私政策"); console.log("打开隐私政策");
uni.navigateTo({ uni.navigateTo({
url: "/pages/privacy/privacy",
url: "/pages/start/privacy/privacy",
}); });
} }
function register() { function register() {
@ -181,7 +181,7 @@ function loginWithGoogle() {
function goToLogin() { function goToLogin() {
// //
uni.navigateTo({ uni.navigateTo({
url: "/pages/login/login",
url: "/pages/start/login/login",
}); });
} }
</script> </script>

4
pages/start/login/login.vue

@ -107,7 +107,7 @@ const { safeAreaInsets } = uni.getSystemInfoSync();
function goToIndex() { function goToIndex() {
// //
uni.navigateTo({ url: '/pages/index/index' });
uni.navigateTo({ url: '/pages/start/index/index' });
} }
function switchEmail() { function switchEmail() {
@ -153,7 +153,7 @@ function loginWithGoogle() {
function goToRegistration() { function goToRegistration() {
// //
uni.navigateTo({ uni.navigateTo({
url: "/pages/Registration/Registration",
url: "/pages/start/Registration/Registration",
}); });
} }
</script> </script>

50
pages/start/select/select.vue

@ -17,62 +17,20 @@
<button class="register-button" @click="toRegistration">注册</button> <button class="register-button" @click="toRegistration">注册</button>
</view> </view>
<!-- 底部导航栏 -->
<!-- <view class="bottom-nav">
<navigator url="/pages/index/index" class="nav-item">
<image
class="nav-icon"
src="/static/images/home.png"
mode="aspectFill"
></image>
<text class="nav-text">首页</text>
</navigator>
<navigator url="/pages/index/index" class="nav-item">
<image
class="nav-icon"
src="/static/images/chart.png"
mode="aspectFill"
></image>
<text class="nav-text">行情</text>
</navigator>
<navigator url="/pages/index/index" class="nav-item active">
<image
class="nav-icon"
src="/static/images/logo.png"
mode="aspectFill"
></image>
<text class="nav-text">DeepMate</text>
</navigator>
<navigator url="/pages/index/index" class="nav-item">
<image
class="nav-icon"
src="/static/images/explore.png"
mode="aspectFill"
></image>
<text class="nav-text">深度探索</text>
</navigator>
<navigator url="/pages/index/index" class="nav-item">
<image
class="nav-icon"
src="/static/images/profile.png"
mode="aspectFill"
></image>
<text class="nav-text">我的</text>
</navigator>
</view> -->
</view> </view>
</template> </template>
<script setup> <script setup>
function toRegistration() { function toRegistration() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/Registration/Registration",
url: "/pages/start/Registration/Registration",
}); });
} }
function toLogin() { function toLogin() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/login/login",
url: "/pages/start/login/login",
}); });
} }
</script> </script>
@ -112,7 +70,7 @@ function toLogin() {
} }
.phone-card { .phone-card {
background-image: url("/static/20251021-132531.jpg");
background-image: url("/static/images/card.jpg");
background-size: 100% 100%; background-size: 100% 100%;
background-position: center; background-position: center;
min-width: 400rpx; min-width: 400rpx;

2
pages/start/startup/startup.vue

@ -10,7 +10,7 @@ import { onShow } from "@dcloudio/uni-app";
onShow(() => { onShow(() => {
setTimeout(() => { setTimeout(() => {
uni.redirectTo({ uni.redirectTo({
url: "/pages/select/select",
url: "/pages/start/select/select",
animationType: "slide-in-right", animationType: "slide-in-right",
animationDuration: 1000, animationDuration: 1000,
}); });

BIN
static/icons/bell.png

After

Width: 24  |  Height: 18  |  Size: 606 B

BIN
static/icons/clock.png

After

Width: 22  |  Height: 18  |  Size: 735 B

BIN
static/icons/headset.png

After

Width: 17  |  Height: 21  |  Size: 647 B

BIN
static/icons/hot-tag.png

After

Width: 18  |  Height: 19  |  Size: 905 B

BIN
static/icons/mic.png

After

Width: 26  |  Height: 27  |  Size: 1.3 KiB

BIN
static/icons/send.png

After

Width: 30  |  Height: 26  |  Size: 1.9 KiB

BIN
static/images/card.jpg

After

Width: 323  |  Height: 604  |  Size: 63 KiB

BIN
static/images/robot.png

After

Width: 63  |  Height: 60  |  Size: 6.7 KiB

BIN
static/images/tesla-logo.png

After

Width: 35  |  Height: 35  |  Size: 2.3 KiB

BIN
static/logo.png

Before

Width: 72  |  Height: 72  |  Size: 3.9 KiB

After

Width: 60  |  Height: 60  |  Size: 5.2 KiB

Loading…
Cancel
Save