设置密码 会员

This commit is contained in:
魏啾
2024-05-23 11:21:11 +08:00
parent d0cf4a5cc6
commit 8386120c87
9 changed files with 259 additions and 75 deletions

View File

@@ -16,22 +16,32 @@
<!-- #endif -->
<!-- 标题搜索框 -->
<view class="flex-between" @click="clicknavigateBack">
<view class="navbar_tow_one flex-start">
<view class="navbar_tow_one flex-start" v-if="iconshow">
<u-icon name="arrow-left" color="#000" size="40"></u-icon>
</view>
<!-- #ifndef MP-WEIXIN -->
<view class="navbar_tow_tow" v-if="opacity || titleshow">
{{title}}
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<view class="navbar_tow_tow" v-if="opacity || titleshow"
:style="{'padding-left':HeighT.custwidth-14 + 'px'}">
<!-- #endif -->
{{title}}
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {};
return {
Topdistance: ''
};
},
props: {
title: {
@@ -46,14 +56,31 @@
type: Boolean,
default: false
},
iconshow: {
type: Boolean,
default: true
}
},
computed: {
HeighT() { //手机类型的尺寸
return this.$store.getters.is_BarHeight
},
},
mounted() {
this.$nextTick(() => {
this.GetTop()
});
// 当组件挂载完成后获取距离
},
methods: {
clicknavigateBack(){
GetTop() {
this.$u.getRect('.navbar').then(res => {
this.Topdistance = res.height //滚动距离
this.$emit('Topdistance', res.height)
})
},
clicknavigateBack() {
uni.navigateBack()
}
}
@@ -135,6 +162,8 @@
}
.navbar_tow_tow {
text-align: center;
flex: auto;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;