forked from gzzfw/frontEnd/gzDyh

liuwh
2024-09-07 d7ca134342a0a2004d9c15fab49fd0a41557e29c
gz-wxparty/pages/me/index.wxml
@@ -1,64 +1,61 @@
<!--个人中心-->
<common-page id="common-page">
   <view>
      <view bindtap="handleGo" class="header">
         <view class="header-img">
            <image class="header-img-image" src="{{ userInfo.avatar }}" wx:if="{{ userInfo.avatar }}" />
            <van-icon name="user-circle-o" size="100rpx" wx:else />
         </view>
         <view>
            <view class="header-title">{{ userInfo.trueName || '微信用户'}}</view>
            <view class="header-subTitle">
               <text>完善资料</text>
               <van-icon name="records" size="28rpx" />
            </view>
         </view>
      </view>
      <view class="main-card">
         <van-cell-group inset>
            <van-cell is-link link-type="navigateTo" url="../../pages/messageCenter/index">
               <view class="main-card-item" slot="title">
                  <image class="main-card-item-image" src="{{ imgUrl }}message.png" />
                  <text>我的消息</text>
               </view>
               <view class="main-msgRound" wx:if="{{ userInfo.msgCount }}">{{ userInfo.msgCount }}</view>
            </van-cell>
            <van-cell
               border="{{ false }}"
               is-link
               link-type="navigateTo"
               url="{{userInfo.realStatus === '1' ? '../../pages/perfectInformation/index?isCheck=true' : '../../pages/realNameAuthentication/index'}}"
            >
               <view class="main-card-item" slot="title">
                  <image class="main-card-item-image" src="{{ imgUrl }}realName.png" />
                  <text>实名认证</text>
               </view>
               <view
                  class="main-realName {{ userInfo.realStatus === '1' ? 'main-realName-green' : 'main-realName-red'}}"
               >{{ userInfo.realStatus === '1' ? '已认证' : '未认证' }}</view>
            </van-cell>
         </van-cell-group>
      </view>
      <view class="main-card">
         <van-cell-group inset>
            <van-cell border="{{ false }}" is-link link-type="navigateTo" url="../../pages/agreement/index">
  <view>
    <view class="header">
      <view class="header-img">
        <image class="header-img-image" src="{{ userInfo.avatar }}" wx:if="{{ userInfo.avatar }}" />
        <van-icon name="user-circle-o" size="100rpx" wx:else />
      </view>
      <view>
        <view bindtap="handleGo" class="header-title">
          <text>{{ userInfo.trueName || '游客'}}</text>
          <image class="main-card-item-edit" src="../../images/me_3.png" mode="" />
        </view>
        <view wx:if="{{realStatus === '1'}}" class="header-subTitle"><text>最近登录时间:
            <time-format format="YYYY年MM月DD日" value="{{ userInfo.loginTime }}" />
          </text></view>
      </view>
    </view>
    <view class="main-card">
      <van-cell-group inset>
        <!-- <van-cell wx:if="{{realStatus === '1'}}" is-link link-type="navigateTo" url="../../pages/messageCenter/index"> -->
        <van-cell is-link link-type="navigateTo" url="../../pages/messageCenter/index">
          <view class="main-card-item" slot="title">
            <image class="main-card-item-image" src="../../images/me_2.png" />
            <text>我的消息</text>
          </view>
          <view class="main-msgRound" wx:if="{{ userInfo.msgCount }}">{{ userInfo.msgCount }}</view>
        </van-cell>
        <van-cell is-link link-type="navigateTo" url="{{userInfo.realStatus === '1' ? '../../pages/perfectInformation/index?isCheck=true' : '../../pages/realNameAuthentication/index'}}">
          <view class="main-card-item" slot="title">
            <image class="main-card-item-image" src="../../images/me_1.png" />
            <text>实名认证</text>
          </view>
          <view class="main-realName {{ userInfo.realStatus === 1 ? 'main-realName-green' : 'main-realName-red'}}">{{ userInfo.realStatus === 1 ? '已认证' : '未认证' }}</view>
        </van-cell>
      </van-cell-group>
    </view>
    <view class="main-card">
      <van-cell-group inset>
        <!-- <van-cell border="{{ false }}" is-link link-type="navigateTo" url="../../pages/agreement/index">
               <view class="main-card-item" slot="title">
                  <image class="main-card-item-image" src="{{ imgUrl }}agreement.png" />
                  <text>服务协议</text>
               </view>
            </van-cell>
            <!-- TODO:后期需求添加 -->
            <!-- <van-cell is-link border="{{ false }}">
            </van-cell> -->
        <!-- TODO:后期需求添加 -->
        <!-- <van-cell is-link border="{{ false }}">
          <view slot="title" class="main-card-item">
            <image class="main-card-item-image" src="{{ imgUrl }}proposal.png" />
            <text>反馈建议</text>
          </view>
          <view wx:if="{{ userInfo.opinionCount }}" class="main-msgRound">{{ userInfo.opinionCount }}</view>
            </van-cell>-->
         </van-cell-group>
      </view>
      <view class="loginOut">
      </van-cell-group>
    </view>
    <!-- <view class="loginOut">
         <van-button bind:click="handleLoginOut" block type="default">退出登录</van-button>
      </view>
   </view>
</common-page>
      </view> -->
  </view>
</common-page>