完善页面

This commit is contained in:
wangxiaowei
2025-10-28 16:28:17 +08:00
parent 7963c28ceb
commit 331d6facdb
17 changed files with 1637 additions and 72 deletions

View File

@ -3,8 +3,9 @@
<view class="top_head pr" :style="'background-color:' + bg +';'">
<view class="head_top" :style="'height:' + topBarTop() + 'px;'"></view>
<view class="title" :style="topBarHeight() == 0 ? '' : 'height:' + topBarHeight() + 'px;'">
<image style="width: 48rpx;height: 48rpx;margin-top: 2rpx" src="@/static/icon/back2.png" mode=""></image>
<view class="s-title">{{ title }}</view>
<image style="width: 48rpx;height: 48rpx;margin-top: 2rpx" src="@/static/icon/back2.png" mode="" @click="back"></image>
<view class="s-title" v-if="title">{{ title }}</view>
<slot name="content"></slot>
</view>
</view>
</view>
@ -15,7 +16,7 @@
props: {
title: {
type: String,
default: '标题'
default: ''
},
bg: {
type: String,
@ -30,7 +31,11 @@
mounted() {
},
methods: {
back() {
uni.navigateBack({
delta: 1
});
},
}
};
</script>