| | |
| | | <template> |
| | | <view class="navbar"> |
| | | <image src="../../static/images/other/navBack.svg" alt="" @click="navBackTo()"></image> |
| | | <text>{{title}}</text> |
| | | <image class="img" src="../../static/images/navBack.svg" alt="" @click="navBackTo()"></image> |
| | | <text class="title">{{title}}</text> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | default:'' |
| | | } |
| | | }) |
| | | |
| | | const pageTitle = ref(props.title) |
| | | |
| | | watch(props.title, (New, Old)=>{ |
| | | pageTitle.value = New |
| | | },{immediate: true}, |
| | | ) |
| | | |
| | | const navBackTo = () => { |
| | | uni.navigateBack() |
| | |
| | | box-sizing: border-box; |
| | | position: relative; |
| | | padding:0 32rpx 24rpx; |
| | | image{ |
| | | .img{ |
| | | width:40rpx; |
| | | height:40rpx; |
| | | transform: rotate(180deg); |
| | | } |
| | | text{ |
| | | .title{ |
| | | font-weight: 400; |
| | | font-size: 36rpx; |
| | | color: #000000; |