设置-页面-静态

This commit is contained in:
WindowBird 2025-08-16 10:39:19 +08:00
parent c33149ece5
commit 9bc1d8de2f
2 changed files with 97 additions and 14 deletions

View File

@ -28,12 +28,11 @@
}
},
{
"path" : "pages/set/set",
"style" :
{
"navigationBarTitleText" : "设置",
"autoBackButton":true
}
"path": "pages/set/set",
"style": {
"navigationBarTitleText": "设置"
}
}
],
"tabBar": {
@ -64,8 +63,9 @@
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "设备租赁",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
"navigationBarBackgroundColor": "#fff"
},
"uniIdRouter": {},
"mp-weixin": {

View File

@ -1,13 +1,96 @@
<template>
<view class="">
</view>
<view class="page">
<view class="info">
<view v-for="(item, index) in userInfoSettings" :key="index" class="info-row">
<view class="label">{{ item.label }}</view>
<view class="value">{{ item.value }} ></view>
</view>
</view>
<view class="log-out">退出登录</view>
</view>
</template>
<script setup>
<script>
export default {
data() {
return {
userInfoSettings: [
{
label: '头像',
value: '', // URL
icon: '灰色圆形图标', //
type: 'avatar',
},
{
label: '昵称',
value: '昵称', //
type: 'nickname',
},
{
label: '手机号',
value: '158****5964', //
type: 'phone',
},
],
}
},
}
</script>
<style lang="scss" scoped>
.page {
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
background: #f3f5f6;
.info {
display: flex;
flex-direction: column;
align-items: center;
width: 710rpx;
background: #ffffff;
border-radius: 10px;
opacity: 1;
margin: 30rpx auto;
//border: solid 1rpx red;
.info-row {
display: flex;
border-bottom: solid 1rpx #d8d8d8;
width: 646rpx;
padding: 40rpx 0;
margin: 0 34rpx;
.label {
flex: 1;
color: #3d3d3d;
font-size: 16px;
}
.value {
flex: 1;
text-align: right;
color: #bbbbbb;
font-size: 16px;
}
}
}
.log-out {
margin-top: 866rpx;
text-align: center;
line-height: 98rpx;
color: #f15a04;
font-size: 16px;
font-weight: 500;
width: 710rpx;
height: 98rpx;
background: #ffffff;
border-radius: 24.5px;
}
}
</style>