dykj-outsource-12123/pages/my/index.vue

117 lines
2.3 KiB
Vue
Raw Normal View History

2024-06-25 18:39:10 +08:00
<template>
2024-06-26 09:12:03 +08:00
<view>
<view class="user">
<view class="user-name">
<view style="font-size: 1.1rem">姓名</view>
<view style="font-size: 0.7rem; margin-top: 0.2rem">注册时间</view>
</view>
<view @click="set" class="user-icon">
<view>图标</view>
<view style="margin-top: 0.2rem; font-size: 0.9rem">设置</view>
</view>
</view>
<view v-for="item in serve" :key="item.id" class="userlist">
<view class="userlist-box">
<view class="userlist-box-text">
<view><uni-icons color="#00ba26" :type="item.icon" size="26"></uni-icons></view>
<view style="margin-left: 1rem">{{ item.text }}</view>
</view>
<view><uni-icons type="forward" size="26"></uni-icons></view>
</view>
</view>
2024-06-25 19:11:33 +08:00
</view>
2024-06-25 18:39:10 +08:00
</template>
2024-06-25 19:11:33 +08:00
<script setup>
2024-06-26 09:12:03 +08:00
import { ref } from 'vue';
const serve = ref([
{
text: '实人认证',
icon: 'location-filled',
user: '',
id: 0
},
{
text: '我的证件',
icon: 'wallet-filled',
user: '',
id: 1
},
{
text: '证件号码',
icon: 'wallet-filled',
id: 2
},
{
text: '有效期限',
icon: 'wallet-filled',
user: '',
id: 3
},
{
text: '手机号码',
icon: 'wallet-filled',
user: '',
id: 4
},
{
text: '邮寄地址',
icon: 'wallet-filled',
id: 5
},
{
text: '电子文书',
icon: 'wallet-filled',
id: 6
},
{
text: '信息申诉',
icon: 'wallet-filled',
id: 7
},
{
text: '交管小安',
icon: 'wallet-filled',
id: 8
},
{
text: '咨询反馈',
icon: 'wallet-filled',
id: 9
2024-06-25 19:11:33 +08:00
}
2024-06-26 09:12:03 +08:00
]);
2024-06-25 18:39:10 +08:00
</script>
2024-06-26 09:12:03 +08:00
<style lang="scss" scoped>
.user {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 0.8rem 1rem 1rem;
background-color: #2c66a9;
color: #fff;
letter-spacing: 1.5px; /* 设置字符间距为2像素 */
.user-icon {
border-left: 1rpx solid #3670b1;
}
}
.userlist {
background-color: #fff;
letter-spacing: 1.5px;
font-weight: 700;
.userlist-box {
width: 96%;
margin-left: 4%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 0;
border-bottom: 1rpx solid #eee;
.userlist-box-text {
display: flex;
align-items: center;
}
}
}
</style>