个人中心
This commit is contained in:
		@@ -25,16 +25,6 @@
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="list-wrap point-card">
 | 
			
		||||
      <div class="card">
 | 
			
		||||
        <div class="item">
 | 
			
		||||
          <div class="block">
 | 
			
		||||
            <img class="icon" src="./img/jfmx.png" alt="">
 | 
			
		||||
          </div>
 | 
			
		||||
          <span class="desc">积分明细</span>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="list-wrap">
 | 
			
		||||
      <div class="card" v-for="(group,index) in listGroup" :key="index">
 | 
			
		||||
        <div class="item" v-for="(item) in group" hover-class="bg-hover" :key="item.label"
 | 
			
		||||
@@ -42,10 +32,7 @@
 | 
			
		||||
          <div class="block">
 | 
			
		||||
            <img class="icon" :src="item.icon" alt="">
 | 
			
		||||
          </div>
 | 
			
		||||
          <span class="desc" v-if="!item.share">{{ item.label }}</span>
 | 
			
		||||
          <button open-type="share" v-else>
 | 
			
		||||
            <span>{{ item.label }}</span>
 | 
			
		||||
          </button>
 | 
			
		||||
          <span class="desc">{{ item.label }}</span>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
@@ -66,17 +53,25 @@ export default {
 | 
			
		||||
    },
 | 
			
		||||
    listGroup() {
 | 
			
		||||
      return [
 | 
			
		||||
        [
 | 
			
		||||
          {
 | 
			
		||||
            icon: require('./img/jfmx.png'),
 | 
			
		||||
            label: "积分明细",
 | 
			
		||||
            path: "./integralInfo",
 | 
			
		||||
            type: 'token'
 | 
			
		||||
          },
 | 
			
		||||
        ],
 | 
			
		||||
        [
 | 
			
		||||
          {
 | 
			
		||||
            icon: require('./img/xxjl.png'),
 | 
			
		||||
            label: "学习记录",
 | 
			
		||||
            path: "./myFamily",
 | 
			
		||||
            path: "./studyList",
 | 
			
		||||
            type: 'token'
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            icon: require('./img/ksjl.png'),
 | 
			
		||||
            label: "考试记录",
 | 
			
		||||
            path: "/mods/AppHometown/AppHometown",
 | 
			
		||||
            path: "./testList",
 | 
			
		||||
            type: 'token'
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
@@ -165,7 +160,7 @@ export default {
 | 
			
		||||
    .header-info {
 | 
			
		||||
      width: 100%;
 | 
			
		||||
      height: 100%;
 | 
			
		||||
      background: url("./img/header-banner.png") no-repeat no-repeat;
 | 
			
		||||
      // background: url("./img/header-banner.png") no-repeat no-repeat;
 | 
			
		||||
      background-size: 100% 100%;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      padding: 240px 0 0 48px;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										41
									
								
								src/project/qujing/AppMine/integralInfo.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								src/project/qujing/AppMine/integralInfo.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,41 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="page">
 | 
			
		||||
    
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
<script>
 | 
			
		||||
import {mapState} from 'vuex'
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "integralInfo",
 | 
			
		||||
  appName: "积分明细",
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user', 'token']),
 | 
			
		||||
  },
 | 
			
		||||
  onLoad() {
 | 
			
		||||
    uni.setNavigationBarTitle({ 
 | 
			
		||||
      title: '积分明细'
 | 
			
		||||
    })
 | 
			
		||||
    uni.setNavigationBarColor({
 | 
			
		||||
      frontColor: "#000000",
 | 
			
		||||
      backgroundColor: "#F4F6FA",
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
<style scoped lang="scss">
 | 
			
		||||
@import "~dvcp-wui/common";
 | 
			
		||||
 | 
			
		||||
.page {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  background-color: #F4F5FA;
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@@ -1,180 +0,0 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="page">
 | 
			
		||||
    <div class="credit-points">
 | 
			
		||||
      <div class="bg-blue"></div>
 | 
			
		||||
      <div class="header-content">
 | 
			
		||||
        <div class="title">家庭地址</div>
 | 
			
		||||
        <div class="address">
 | 
			
		||||
          <img src="https://cdn.cunwuyun.cn/img/location-blue.svg" alt="">
 | 
			
		||||
          <p>{{ info.resident.currentAreaName || '' }}{{ info.resident.currentAddress || '' }}</p>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="list-content">
 | 
			
		||||
        <div class="title">家庭成员</div>
 | 
			
		||||
        <div class="item" v-for="(item, index) in info.family" :key="index">
 | 
			
		||||
          <img src="https://cdn.cunwuyun.cn/dvcp/myFamily/1.png" alt="" class="banner-top" v-if="item.sex == 1">
 | 
			
		||||
          <img src="https://cdn.cunwuyun.cn/dvcp/myFamily/2.png" alt="" class="banner-top" v-else>
 | 
			
		||||
          <div class="user-img">
 | 
			
		||||
            <img v-if="item.photo" :src="item.photo" alt=""/>
 | 
			
		||||
            <img v-else src="https://cdn.cunwuyun.cn/dvcp/myFamily/tx.png" alt=""/>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="user-info">
 | 
			
		||||
            <p>{{ item.name }}</p>
 | 
			
		||||
            <div v-if="item.householdName == 1" class="color-5AAD6A">户主</div>
 | 
			
		||||
            <div v-else>{{ $dict.getLabel('householdRelation', item.householdRelation) }}</div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
<script>
 | 
			
		||||
import {mapState} from 'vuex'
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  appName: "我的家庭",
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user', 'token'])
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      info: {}
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  onLoad() {
 | 
			
		||||
    this.$dict.load('householdRelation').then(() => {
 | 
			
		||||
      this.$nextTick(() => {
 | 
			
		||||
        this.getUser()
 | 
			
		||||
      })
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    getUser() {
 | 
			
		||||
      this.$instance.post(`/app/appresident/detailForWx?id=${this.user.residentId}`).then(res => {
 | 
			
		||||
        if (res.code === 0) {
 | 
			
		||||
          this.info = res.data
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
<style scoped lang="scss">
 | 
			
		||||
@import "~dvcp-wui/common";
 | 
			
		||||
 | 
			
		||||
.page {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  background-color: #f3f6f9;
 | 
			
		||||
 | 
			
		||||
  .credit-points {
 | 
			
		||||
    .bg-blue {
 | 
			
		||||
      width: 100%;
 | 
			
		||||
      height: 112px;
 | 
			
		||||
      background-color: #197DF0;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .header-content {
 | 
			
		||||
      width: 690px;
 | 
			
		||||
      background: #FFF;
 | 
			
		||||
      border-radius: 16px;
 | 
			
		||||
      margin: -80px 0 32px 30px;
 | 
			
		||||
      padding: 0 30px 80px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
 | 
			
		||||
 | 
			
		||||
      .address {
 | 
			
		||||
        font-size: 32px;
 | 
			
		||||
        color: #666;
 | 
			
		||||
        overflow: hidden;
 | 
			
		||||
 | 
			
		||||
        img {
 | 
			
		||||
          width: 34px;
 | 
			
		||||
          height: 38px;
 | 
			
		||||
          margin-right: 14px;
 | 
			
		||||
          vertical-align: middle;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        p {
 | 
			
		||||
          line-height: 44px;
 | 
			
		||||
          width: 580px;
 | 
			
		||||
          word-break: break-all;
 | 
			
		||||
          float: right;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .title {
 | 
			
		||||
      font-size: 32px;
 | 
			
		||||
      font-weight: 500;
 | 
			
		||||
      color: #333;
 | 
			
		||||
      line-height: 120px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .list-content {
 | 
			
		||||
      width: 690px;
 | 
			
		||||
      background: #FFF;
 | 
			
		||||
      border-radius: 16px;
 | 
			
		||||
      padding: 0 30px 110px;
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
      margin-left: 30px;
 | 
			
		||||
      box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
 | 
			
		||||
 | 
			
		||||
      .item {
 | 
			
		||||
        width: 630px;
 | 
			
		||||
        height: 192px;
 | 
			
		||||
        background: #FFF;
 | 
			
		||||
        box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.08);
 | 
			
		||||
        border-radius: 16px;
 | 
			
		||||
        padding-left: 30px;
 | 
			
		||||
        box-sizing: border-box;
 | 
			
		||||
        margin-bottom: 32px;
 | 
			
		||||
        overflow: hidden;
 | 
			
		||||
 | 
			
		||||
        .banner-top {
 | 
			
		||||
          width: 100%;
 | 
			
		||||
          height: 72px;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .user-img {
 | 
			
		||||
          width: 104px;
 | 
			
		||||
          height: 104px;
 | 
			
		||||
          margin: -16px 34px 0 0;
 | 
			
		||||
          border-radius: 50%;
 | 
			
		||||
          float: left;
 | 
			
		||||
 | 
			
		||||
          img {
 | 
			
		||||
            width: 100%;
 | 
			
		||||
            height: 100%;
 | 
			
		||||
            border-radius: 50%;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .user-info {
 | 
			
		||||
          margin-top: -16px;
 | 
			
		||||
          width: calc(100% - 138px);
 | 
			
		||||
          float: right;
 | 
			
		||||
 | 
			
		||||
          p {
 | 
			
		||||
            font-size: 32px;
 | 
			
		||||
            font-weight: 600;
 | 
			
		||||
            color: #333;
 | 
			
		||||
            line-height: 44px;
 | 
			
		||||
            margin-bottom: 8px;
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          div {
 | 
			
		||||
            font-size: 26px;
 | 
			
		||||
            font-weight: 400;
 | 
			
		||||
            color: #666;
 | 
			
		||||
            line-height: 36px;
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          .color-5AAD6A {
 | 
			
		||||
            color: #5AAD6A;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
							
								
								
									
										158
									
								
								src/project/qujing/AppMine/studyList.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										158
									
								
								src/project/qujing/AppMine/studyList.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,158 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="page">
 | 
			
		||||
    <div class="list">
 | 
			
		||||
      <div class="item">
 | 
			
		||||
        <div class="top">
 | 
			
		||||
          <div class="flex-left">
 | 
			
		||||
            <img class="video-img" src="https://cdn.cunwuyun.cn/img/qrcode-sign-fail.png" alt="">
 | 
			
		||||
            <img class="play-icon" src="https://cdn.cunwuyun.cn/dvcp/pay-btn.png" alt="">
 | 
			
		||||
            <div class="status status0">未完成</div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="flex-right">
 | 
			
		||||
            <h3>课程名称</h3>
 | 
			
		||||
            <div class="time">
 | 
			
		||||
              <span>23人已学习</span>
 | 
			
		||||
              <span>共3分56秒</span>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="bottom">继续学习</div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="item">
 | 
			
		||||
        <div class="top">
 | 
			
		||||
          <div class="flex-left">
 | 
			
		||||
            <img class="video-img" src="https://cdn.cunwuyun.cn/dvcp/pay-btn.png" alt="">
 | 
			
		||||
            <div class="status status1">已完成</div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="flex-right">
 | 
			
		||||
            <h3>课程名称课程名称课程名称课程名称课程名称课程名称课程名称课程名称课程名称</h3>
 | 
			
		||||
            <div class="time">
 | 
			
		||||
              <span>23人已学习</span>
 | 
			
		||||
              <span>共3分56秒</span>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
<script>
 | 
			
		||||
import {mapState} from 'vuex'
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "studyList",
 | 
			
		||||
  appName: "学习记录",
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user', 'token']),
 | 
			
		||||
  },
 | 
			
		||||
  onLoad() {
 | 
			
		||||
    uni.setNavigationBarTitle({ 
 | 
			
		||||
      title: '学习记录'
 | 
			
		||||
    })
 | 
			
		||||
    uni.setNavigationBarColor({
 | 
			
		||||
      frontColor: "#000000",
 | 
			
		||||
      backgroundColor: "#F4F6FA",
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
<style scoped lang="scss">
 | 
			
		||||
@import "~dvcp-wui/common";
 | 
			
		||||
 | 
			
		||||
.page {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  background-color: #F4F5FA;
 | 
			
		||||
  .list {
 | 
			
		||||
    padding: 50px 32px 0;
 | 
			
		||||
    .item {
 | 
			
		||||
      width: 100%;
 | 
			
		||||
      background-color: #fff;
 | 
			
		||||
      box-shadow: inset 0 0 0 0 #EEEEEE;
 | 
			
		||||
      border-radius: 16px;
 | 
			
		||||
      margin-bottom: 24px;
 | 
			
		||||
      .top {
 | 
			
		||||
        padding: 24px;
 | 
			
		||||
        display: flex;
 | 
			
		||||
        .video-img {
 | 
			
		||||
          width: 160px;
 | 
			
		||||
          height: 160px;
 | 
			
		||||
          margin-right: 24px;
 | 
			
		||||
        }
 | 
			
		||||
        .flex-left {
 | 
			
		||||
          position: relative;
 | 
			
		||||
        }
 | 
			
		||||
        .play-icon {
 | 
			
		||||
          width: 48px;
 | 
			
		||||
          height: 48px;
 | 
			
		||||
          position: absolute;
 | 
			
		||||
          top: 56px;
 | 
			
		||||
          left: 56px;
 | 
			
		||||
        }
 | 
			
		||||
        .status {
 | 
			
		||||
          position: absolute;
 | 
			
		||||
          top: 0;
 | 
			
		||||
          left: 0;
 | 
			
		||||
          width: 110px;
 | 
			
		||||
          height: 48px;
 | 
			
		||||
          line-height: 48px;
 | 
			
		||||
          text-align: center;
 | 
			
		||||
          border-radius: 8px;
 | 
			
		||||
          font-family: PingFangSC-Regular;
 | 
			
		||||
          font-weight: 400;
 | 
			
		||||
          font-size: 26px;
 | 
			
		||||
          color: #FFF;
 | 
			
		||||
        }
 | 
			
		||||
        .status0 {
 | 
			
		||||
          background-color: #FF883C;
 | 
			
		||||
        }
 | 
			
		||||
        .status1 {
 | 
			
		||||
          background-color: #3BBC37;
 | 
			
		||||
        }
 | 
			
		||||
        .flex-right {
 | 
			
		||||
          width: calc(100% - 184px);
 | 
			
		||||
          h3 {
 | 
			
		||||
            width: 100%;
 | 
			
		||||
            line-height: 48px;
 | 
			
		||||
            height: 96px;
 | 
			
		||||
            font-family: PingFangSC-Medium;
 | 
			
		||||
            font-weight: 500;
 | 
			
		||||
            font-size: 34px;
 | 
			
		||||
            color: #333;
 | 
			
		||||
            overflow:hidden; 
 | 
			
		||||
            text-overflow:ellipsis;
 | 
			
		||||
            display:-webkit-box; 
 | 
			
		||||
            -webkit-box-orient:vertical;
 | 
			
		||||
            -webkit-line-clamp:2; 
 | 
			
		||||
            margin-bottom: 24px;
 | 
			
		||||
          }
 | 
			
		||||
          .time {
 | 
			
		||||
            line-height: 36px;
 | 
			
		||||
            font-family: PingFangSC-Regular;
 | 
			
		||||
            font-size: 26px;
 | 
			
		||||
            color: #999;
 | 
			
		||||
            letter-spacing: 0;
 | 
			
		||||
            display: flex;
 | 
			
		||||
            justify-content: space-between;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
      .bottom {
 | 
			
		||||
        line-height: 88px;
 | 
			
		||||
        border-top: 1px solid #eee;
 | 
			
		||||
        font-family: PingFangSC-Regular;
 | 
			
		||||
        font-size: 28px;
 | 
			
		||||
        color: #2D7DFF;
 | 
			
		||||
        text-align: center;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
							
								
								
									
										108
									
								
								src/project/qujing/AppMine/testList.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										108
									
								
								src/project/qujing/AppMine/testList.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,108 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="page">
 | 
			
		||||
    <div class="list">
 | 
			
		||||
      <div class="item">
 | 
			
		||||
        <div class="top">
 | 
			
		||||
          <div class="flex-left">
 | 
			
		||||
            <h3>曲靖规则基本考试</h3>
 | 
			
		||||
            <p class="mar-b16">共<span>10</span>题,预计<span>10</span>分钟</p>
 | 
			
		||||
            <p>264人通过/283人参与</p>
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="flex-right">
 | 
			
		||||
            <img src="https://cdn.cunwuyun.cn/img/qrcode-sign-fail.png" alt="">
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="bottom">重新考试</div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
<script>
 | 
			
		||||
import {mapState} from 'vuex'
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "studyList",
 | 
			
		||||
  appName: "考试记录",
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
    ...mapState(['user', 'token']),
 | 
			
		||||
  },
 | 
			
		||||
  onLoad() {
 | 
			
		||||
    uni.setNavigationBarTitle({ 
 | 
			
		||||
      title: '考试记录'
 | 
			
		||||
    })
 | 
			
		||||
    uni.setNavigationBarColor({
 | 
			
		||||
      frontColor: "#000000",
 | 
			
		||||
      backgroundColor: "#F4F6FA",
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
<style scoped lang="scss">
 | 
			
		||||
@import "~dvcp-wui/common";
 | 
			
		||||
 | 
			
		||||
.page {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  background-color: #F4F5FA;
 | 
			
		||||
  .list {
 | 
			
		||||
    padding: 50px 32px 0;
 | 
			
		||||
    .item {
 | 
			
		||||
      width: 100%;
 | 
			
		||||
      background-color: #fff;
 | 
			
		||||
      box-shadow: inset 0 0 0 0 #EEEEEE;
 | 
			
		||||
      border-radius: 16px;
 | 
			
		||||
      margin-bottom: 24px;
 | 
			
		||||
      .top {
 | 
			
		||||
        padding: 24px;
 | 
			
		||||
        position: relative;
 | 
			
		||||
        display: flex;
 | 
			
		||||
        .flex-left {
 | 
			
		||||
          width: calc(100% - 204px);
 | 
			
		||||
          h3 {
 | 
			
		||||
            width: 100%;
 | 
			
		||||
            line-height: 48px;
 | 
			
		||||
            font-family: PingFangSC-Medium;
 | 
			
		||||
            font-weight: 500;
 | 
			
		||||
            font-size: 34px;
 | 
			
		||||
            color: #333;
 | 
			
		||||
            margin-bottom: 32px;
 | 
			
		||||
          }
 | 
			
		||||
          p {
 | 
			
		||||
            color: #999;
 | 
			
		||||
            font-size: 26px;
 | 
			
		||||
            font-family: PingFangSC;
 | 
			
		||||
            line-height: 36px;
 | 
			
		||||
            span {
 | 
			
		||||
              color: #2D7DFF;
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
          .mar-b16 {
 | 
			
		||||
            margin-bottom: 16px;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
        .flex-right {
 | 
			
		||||
          img {
 | 
			
		||||
            width: 160px;
 | 
			
		||||
            height: 160px;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
      .bottom {
 | 
			
		||||
        line-height: 88px;
 | 
			
		||||
        border-top: 1px solid #eee;
 | 
			
		||||
        font-family: PingFangSC-Regular;
 | 
			
		||||
        font-size: 28px;
 | 
			
		||||
        color: #687DA6;
 | 
			
		||||
        text-align: center;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@@ -11,7 +11,7 @@
 | 
			
		||||
        <div class="item">
 | 
			
		||||
          <p>用户昵称</p>
 | 
			
		||||
          <div v-if="!editNickName" @click="editNickName=true">
 | 
			
		||||
            <p class="name" v-text="nickName"/>
 | 
			
		||||
            <div class="name" v-text="nickName"/>
 | 
			
		||||
          </div>
 | 
			
		||||
          <input v-else type="nickname" class="editNickName" v-model="nickName" @blur="handleWeixinSync">
 | 
			
		||||
        </div>
 | 
			
		||||
@@ -22,6 +22,20 @@
 | 
			
		||||
          <div>{{ user.phone || '' }}</div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="item-content mar-b8">
 | 
			
		||||
        <div class="item solid">
 | 
			
		||||
          <p>姓名</p>
 | 
			
		||||
          <div>{{ user.realName || '' }}</div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="item solid">
 | 
			
		||||
          <p>身份证号</p>
 | 
			
		||||
          <div>{{ user.idNumber || '' }}</div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="item">
 | 
			
		||||
          <p>地区</p>
 | 
			
		||||
          <div>{{ user.homeName || '' }}</div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="item-content" @click="onLogout">
 | 
			
		||||
        <div class="item">
 | 
			
		||||
          <p class="login-out">退出登录</p>
 | 
			
		||||
@@ -48,6 +62,13 @@ export default {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  onLoad() {
 | 
			
		||||
    uni.setNavigationBarTitle({ 
 | 
			
		||||
      title: '个人中心'
 | 
			
		||||
    })
 | 
			
		||||
    uni.setNavigationBarColor({
 | 
			
		||||
      frontColor: "#000000",
 | 
			
		||||
      backgroundColor: "#F4F6FA",
 | 
			
		||||
    })
 | 
			
		||||
    this.getUserInfo()
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
@@ -105,14 +126,15 @@ export default {
 | 
			
		||||
 | 
			
		||||
.page {
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  background-color: #F5F5F5;
 | 
			
		||||
  background-color: #F4F5FA;
 | 
			
		||||
 | 
			
		||||
  .info-list {
 | 
			
		||||
    margin: 0 0 16px 0;
 | 
			
		||||
    padding: 50px 16px 0;
 | 
			
		||||
 | 
			
		||||
    .item-content {
 | 
			
		||||
      padding: 0 32px;
 | 
			
		||||
      background-color: #fff;
 | 
			
		||||
      border-radius: 32px;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .item {
 | 
			
		||||
@@ -122,15 +144,17 @@ export default {
 | 
			
		||||
      box-sizing: content-box;
 | 
			
		||||
      display: flex;
 | 
			
		||||
      justify-content: space-between;
 | 
			
		||||
      font-size: 30px;
 | 
			
		||||
 | 
			
		||||
      p {
 | 
			
		||||
        color: #333;
 | 
			
		||||
        font-weight: 400;
 | 
			
		||||
        font-family: PingFangSC-Regular;
 | 
			
		||||
        color: #666;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      div {
 | 
			
		||||
        color: #666;
 | 
			
		||||
        font-size: 28px;
 | 
			
		||||
        font-family: PingFangSC-Medium;
 | 
			
		||||
        font-weight: 500;
 | 
			
		||||
        color: #333;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .user-img-div {
 | 
			
		||||
@@ -156,12 +180,14 @@ export default {
 | 
			
		||||
      .mar-t22 {
 | 
			
		||||
        margin-top: 44px;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .login-out {
 | 
			
		||||
      width: 100%;
 | 
			
		||||
      font-size: 30px;
 | 
			
		||||
      text-align: center;
 | 
			
		||||
      .login-out {
 | 
			
		||||
        width: 100%;
 | 
			
		||||
        font-size: 34px;
 | 
			
		||||
        text-align: center;
 | 
			
		||||
        font-family: PingFangSC-Regular;
 | 
			
		||||
        color: #4181FF;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@@ -218,5 +244,8 @@ export default {
 | 
			
		||||
    text-align: right;
 | 
			
		||||
    font-size: 28px;
 | 
			
		||||
  }
 | 
			
		||||
  .solid {
 | 
			
		||||
    border-bottom: 1px solid #eee;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user