gaoluyang
12 小时以前 d34f4e33ff328a05228b803285b17c6432ae9c16
src/pages_mine/pages/info/index.vue
@@ -1,17 +1,17 @@
<template>
  <view class="container">
    <uni-list>
      <uni-list-item showExtraIcon="true" :extraIcon="{ type: 'person-filled' }" title="昵称" :rightText="user.nickName" />
      <uni-list-item showExtraIcon="true" :extraIcon="{ type: 'phone-filled' }" title="手机号码"
        :rightText="user.phonenumber" />
      <uni-list-item showExtraIcon="true" :extraIcon="{ type: 'email-filled' }" title="邮箱" :rightText="user.email" />
      <uni-list-item showExtraIcon="true" :extraIcon="{ type: 'auth-filled' }" title="岗位" :rightText="postGroup" />
      <uni-list-item showExtraIcon="true" :extraIcon="{ type: 'staff-filled' }" title="角色" :rightText="roleGroup" />
      <uni-list-item showExtraIcon="true" :extraIcon="{ type: 'calendar-filled' }" title="创建日期"
        :rightText="user.createTime" />
    </uni-list>
    <view class="card">
      <van-cell-group inset>
        <van-cell icon="user" title="昵称" :value="user.nickName" />
        <van-cell icon="phone" title="手机号码" :value="user.phonenumber" />
        <van-cell icon="invitation" title="邮箱" :value="user.email" />
        <van-cell icon="medal" title="岗位" :value="postGroup" />
        <van-cell icon="friends" title="角色" :value="roleGroup" />
        <van-cell icon="notes" title="创建日期" :value="user.createTime" />
      </van-cell-group>
    </view>
    <u-button @click="register()">绑定微信</u-button>
    <!-- <u-button @click="register()">绑定微信</u-button> -->
  </view>
</template>
@@ -47,7 +47,38 @@
</script>
<style lang="scss">
/* 背景更柔和,卡片更突出 */
page {
  background-color: #ffffff;
  background-color: #f5f7fb;
}
.container {
  min-height: 100vh;
  padding: 0.75rem; /* 24rpx -> 0.75rem */
  box-sizing: border-box;
}
/* 列表卡片容器 */
.card {
  background-color: #ffffff;
  border-radius: 0.625rem; /* 20rpx -> 0.625rem */
  box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.06); /* 0 12rpx 32rpx -> 0 0.375rem 1rem */
  overflow: hidden;
}
/* 适配 Vant Cell */
:deep(.van-cell) {
  min-height: 2.875rem; /* 92rpx -> 2.875rem */
}
:deep(.van-cell__title) {
  font-weight: 500;
  color: #1f2937; /* 深灰 */
}
:deep(.van-cell__value) {
  color: #6b7280; /* 次要灰 */
}
/* 移除不再使用的 .cell-icon 样式 */
</style>