Browse Source

增加缺省页

zhaowenkang/feature-20251028181547-行情页面
wangyetao 4 weeks ago
parent
commit
300d06ba4c
  1. 12
      pages.json
  2. 69
      pages/blank/blank.vue
  3. 100
      pages/blank/institutionalTrendsBriefing.vue
  4. 100
      pages/blank/notice.vue
  5. 27
      pages/deepMate/deepMate.vue
  6. BIN
      static/icons/Left_(左).png
  7. BIN
      static/images/缺省.png

12
pages.json

@ -134,7 +134,17 @@
}
},
{
"path": "pages/blank/blank",
"path": "pages/blank/institutionalTrendsBriefing",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom",
"disableSwipeBack": true,
"titleNView": false,
"bounce": false
}
},
{
"path": "pages/blank/notice",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom",

69
pages/blank/blank.vue

@ -1,69 +0,0 @@
<template>
<view class="blank-page">
<!-- 返回按钮 -->
<view class="back-button" @click="goBack">
<text class="back-icon"></text>
<text class="back-text">返回</text>
</view>
<text class="tip">当前特斯拉该如何布局</text>
</view>
</template>
<script setup>
// deepMate
const goBack = () => {
uni.navigateTo({
url: '/pages/deepMate/deepMate'
});
};
</script>
<style scoped>
.blank-page {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #ffffff;
position: relative;
}
.back-button {
position: absolute;
top: 60rpx;
left: 30rpx;
display: flex;
align-items: center;
padding: 20rpx 30rpx;
background-color: #f5f5f5;
border-radius: 50rpx;
cursor: pointer;
transition: all 0.3s ease;
}
.back-button:hover {
background-color: #e0e0e0;
}
.back-button:active {
transform: scale(0.95);
}
.back-icon {
font-size: 32rpx;
color: #333333;
margin-right: 10rpx;
}
.back-text {
font-size: 28rpx;
color: #333333;
}
.tip {
color: #999999;
font-size: 28rpx;
}
</style>

100
pages/blank/institutionalTrendsBriefing.vue

@ -0,0 +1,100 @@
<template>
<view class="blank-page">
<view class="header" :style="{ paddingTop: safeAreaInsets?.top + 'px' }">
<!-- 返回按钮 -->
<view class="head-left">
<image class="back-button" @click="goBack" src="/static/icons/Left_(左).png">
<!-- <text class="tip">当前特斯拉该如何布局</text> -->
</image>
</view>
<view class="header-center">
<text class="title" :style="{ paddingTop: safeAreaInsets?.top + 'px' }"
>机构动向解析</text
>
</view>
</view>
<image class="picture" src="/static/images/缺省.png" />
<text class="tip">暂无内容~</text>
</view>
</template>
<script setup>
// deepMate
const goBack = () => {
uni.navigateTo({
url: '/pages/deepMate/deepMate'
});
};
</script>
<style scoped>
.blank-page {
display: flex;
flex-direction: column;
position: fixed;
/* 充满视口,彻底禁用页面滚动 */
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100vh;
overflow: hidden;
/* 锁定页面滚动 */
background-color: #ffffff;
padding: 20rpx 0rpx;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20rpx 30rpx;
background-color: #ffffff;
box-shadow: 0 2rpx rgba(0, 0, 0, 0.1);
}
.head-left {
display: flex;
align-items: center;
}
.back-button {
width: 40rpx;
height: 40rpx;
}
.header-center .title {
position: fixed;
top: 25rpx;
left: 50%;
transform: translateX(-50%);
font-size: 36rpx;
font-weight: bold;
color: #333333;
}
.back-button:hover {
background-color: #e0e0e0;
}
.back-button:active {
transform: scale(0.95);
}
.back-icon {
font-size: 32rpx;
color: #333333;
margin-right: 10rpx;
}
.picture {
display: block;
margin: 200rpx auto 0; /* 图片水平居中 */
width: 60%;
height: 600rpx;
}
.tip {
color: #999999;
font-size: 28rpx;
text-align: center;
margin-top: 20rpx;
}
</style>

100
pages/blank/notice.vue

@ -0,0 +1,100 @@
<template>
<view class="blank-page">
<view class="header" :style="{ paddingTop: safeAreaInsets?.top + 'px' }">
<!-- 返回按钮 -->
<view class="head-left">
<image class="back-button" @click="goBack" src="/static/icons/Left_(左).png">
<!-- <text class="tip">当前特斯拉该如何布局</text> -->
</image>
</view>
<view class="header-center">
<text class="title" :style="{ paddingTop: safeAreaInsets?.top + 'px' }"
>消息推送通知</text
>
</view>
</view>
<image class="picture" src="/static/images/缺省.png" />
<text class="tip">暂无内容~</text>
</view>
</template>
<script setup>
// deepMate
const goBack = () => {
uni.navigateTo({
url: '/pages/deepMate/deepMate'
});
};
</script>
<style scoped>
.blank-page {
display: flex;
flex-direction: column;
position: fixed;
/* 充满视口,彻底禁用页面滚动 */
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100vh;
overflow: hidden;
/* 锁定页面滚动 */
background-color: #ffffff;
padding: 20rpx 0rpx;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20rpx 30rpx;
background-color: #ffffff;
box-shadow: 0 2rpx rgba(0, 0, 0, 0.1);
}
.head-left {
display: flex;
align-items: center;
}
.back-button {
width: 40rpx;
height: 40rpx;
}
.header-center .title {
position: fixed;
top: 25rpx;
left: 50%;
transform: translateX(-50%);
font-size: 36rpx;
font-weight: bold;
color: #333333;
}
.back-button:hover {
background-color: #e0e0e0;
}
.back-button:active {
transform: scale(0.95);
}
.back-icon {
font-size: 32rpx;
color: #333333;
margin-right: 10rpx;
}
.picture {
display: block;
margin: 200rpx auto 0; /* 图片水平居中 */
width: 60%;
height: 600rpx;
}
.tip {
color: #999999;
font-size: 28rpx;
text-align: center;
margin-top: 20rpx;
}
</style>

27
pages/deepMate/deepMate.vue

@ -6,6 +6,7 @@
<image
src="https://d31zlh4on95l9h.cloudfront.net/images/f91e09b5987802185e7679055dafd272.svg"
class="icon"
@click="goToCustomerService"
>
</image>
</view>
@ -18,6 +19,7 @@
<image
src="https://d31zlh4on95l9h.cloudfront.net/images/d7c4e74201213a25dd9574e908233928.svg"
class="icon"
@click="goToNotice" @tap="goToNotice"
>
</image>
<image
@ -63,7 +65,7 @@
<view
class="recommend-card"
v-if="messages.length === 0"
@click="goBlank"
@click="goinstitutionalTrendsBriefing"
>
<view class="arrow" v-if="messages.length === 0"></view>
<view class="card-content">
@ -78,7 +80,7 @@
<image
src="https://d31zlh4on95l9h.cloudfront.net/images/40d94054644f6e3f1c366751f07f0010.svg"
class="arrow-icon"
@click="goBlank"
@click="goinstitutionalTrendsBriefing"
></image>
</view>
</view>
@ -418,12 +420,29 @@ const newChat = () => {
};
//
const goBlank = () => {
const goinstitutionalTrendsBriefing = () => {
uni.navigateTo({
url: "/pages/blank/blank",
url: "/pages/blank/institutionalTrendsBriefing",
});
};
//
const goToCustomerService = () => {
uni.navigateTo({
url: "/pages/customerServicePlatform/csPlatformIndex",
});
};
//
function goToNotice() {
try {
console.log("goToNotice: navigating to /pages/blank/notice");
uni.navigateTo({ url: "/pages/blank/notice" });
} catch (e) {
console.error("goToNotice navigateTo failed, fallback to redirect:", e);
uni.redirectTo({ url: "/pages/blank/notice" });
}
}
//
const openHistoryDrawer = async () => {
const res = await postHistory({

BIN
static/icons/Left_(左).png

After

Width: 20  |  Height: 20  |  Size: 247 B

BIN
static/images/缺省.png

After

Width: 213  |  Height: 228  |  Size: 16 KiB

Loading…
Cancel
Save