59 lines
1003 B
Vue
59 lines
1003 B
Vue
<template>
|
|
<view class="uninavbars" @click="ReturnPage()">
|
|
<image src="../../../static/images/sign/return.png" @click="left_return"></image>
|
|
</view>
|
|
<view class="uninavbar">
|
|
<uni-nav-bar statusBar="false" :fixed="true" :border="false" :background-color=background_color
|
|
:title="title" />
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script setup>
|
|
import {
|
|
ref,
|
|
toRefs,
|
|
defineProps,
|
|
defineEmits
|
|
} from "vue";
|
|
|
|
const props = defineProps({
|
|
title: String,
|
|
background_color: String
|
|
})
|
|
const {
|
|
title,
|
|
background_color
|
|
} = toRefs(props)
|
|
|
|
let leftImage = ref("../../../static/images/sign/return.png")
|
|
//返回上一页
|
|
function ReturnPage() {
|
|
uni.navigateBack({
|
|
delta: 1
|
|
});
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
/* #ifdef H5 */
|
|
.uninavbars {
|
|
position: fixed;
|
|
z-index: 9999;
|
|
top: 110rpx;
|
|
left: 32rpx;
|
|
}
|
|
/* #ifdef APP-PLUS */
|
|
.uninavbars {
|
|
position: fixed;
|
|
z-index: 9999;
|
|
top: 110rpx;
|
|
left: 32rpx;
|
|
}
|
|
|
|
.uninavbars>image {
|
|
width: 31rpx;
|
|
height: 44rpx;
|
|
color: #000000;
|
|
}
|
|
</style> |