no message

This commit is contained in:
2025-09-17 17:24:59 +08:00
parent f86ae4a4b8
commit 3dc5c52690
6 changed files with 261 additions and 29 deletions
+31 -3
View File
@@ -8,9 +8,15 @@
v-for="(item,index) in headList" :key="index"
:style="{borderWidth:index == headList.length - 1 ? '0' : '2rpx'}"
>
<text class="text-zu1 text-32">{{item.text}}</text>
<view class="flex-r" >
<text class="text-zu1 text-32">{{item.text}}</text>
<view class="yi-view" v-if="item.type == 'text1' && item.she">
<text class="text-zi text-24">{{item.she}}</text>
</view>
</view>
<view class="flex-r-e" style="align-items: center;">
<text class="text-zu text-32" v-if="item.type == 'text'">{{item.value}}</text>
<text class="text-fu text-32" v-if="item.type == 'text1'">{{item.value}}</text>
<u-icon size="16" name="arrow-right" color="#666" style="margin-left:12rpx"></u-icon>
</view>
@@ -36,8 +42,8 @@ export default {
userInfo: null,
headList:[
{text:'注册手机号',type:'text',value:''},
{text:'交易密码设置',type:'text1',value:'设置密码'},
{text:'登录密码设置',type:'text1',value:'设置密码'},
{text:'交易密码设置',type:'text1',she:'',value:'设置密码'},
{text:'登录密码设置',type:'text1',she:'',value:'设置密码'},
{text:'注销账号',type:'text',value:''},
],
bottomList:[
@@ -81,6 +87,18 @@ export default {
this.userInfo = res.data;
this.headList[0].value = this.userInfo.mobile;
this.headList[0].value = this.headList[0].value.replace(this.headList[0].value.substring(3,7),'****')
if(res.data.tradePassword){
this.headList[1].she = '已设置';
this.headList[1].value = '修改密码';
}else{
this.headList[1].value = '设置密码';
}
if(res.data.password){
this.headList[2].she = '已设置';
this.headList[2].value = '修改密码';
}else{
this.headList[2].value = '设置密码';
}
}
})
}
@@ -89,6 +107,16 @@ export default {
</script>
<style lang="scss" scoped>
.yi-view{
width:104rpx;
height:44rpx;
display: flex;
background: rgba(122,53,246,0.1);
align-items: center;
justify-content: center;
border-radius: 8rpx;
margin-left:12rpx;
}
.setting-view {
width: 100%;
height: calc(100% - 88rpx - var(--status-bar-height));