完善页面
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user