personalCenter.wxml 8.8 KB
<!--pages/personalCenter/personalCenter.wxml-->
<view class='banner_box'>
  <view class='head_img'>
    <image src='{{personalinfo.user.avatar}}'></image>
  </view>
  <view class='head_info_box'>
    <view class='user_name'>{{personalinfo.user.name}}</view>
    <view>{{personalinfo.user.mobile}}</view>
    <view>{{personalinfo.user.work_post}}</view>
    <view>{{personalinfo.user.work}}</view>
  </view>
  <view class='edit_box' bindtap='editInfo' wx:if="{{user_type != 2}}">
    <view class='iconfont icon-xiugai'></view>
    <view>修改个人资料</view>
  </view>
</view>
<!-- 顾问个人中心 -->
<view class='content_box' wx:if='{{user_type==3}}'>
  <view class='item_list' bindtap='TB'>
    <view class='list_icon'>
      <text class='iconfont icon-kakou'></text>
    </view>
    <view class='list_item_box'>
      <view>T币交易记录</view>
      <view class='iconfont icon-jinru'></view>
    </view>
  </view>
  <view class='item_list' bindtap='vipCharge'>
    <view class='list_icon'>
      <text class='iconfont icon-gray-crown'></text>
    </view>
    <view class='list_item_box'>
      <view>会员充值</view>
      <view class='iconfont icon-jinru'></view>
    </view>
  </view>
  <view class='item_list' bindtap='reportList'>
    <view class='list_icon'>
      <text class='iconfont icon-baogao'></text>
    </view>
    <view class='list_item_box'>
      <view>报告浏览记录</view>
      <view class='iconfont icon-jinru'></view>
    </view>
  </view>
  <view class='item_list' bindtap='articlList'>
    <view class='list_icon'>
      <text class='iconfont icon-baogao1'></text>
    </view>
    <view class='list_item_box'>
      <view>文章浏览记录</view>
      <view class='iconfont icon-jinru'></view>
    </view>
  </view>
  <view class='item_list' bindtap='suggest'>
    <view class='list_icon'>
      <text class='iconfont icon-jianyi'></text>
    </view>
    <view class='list_item_box'>
      <view>建议预设</view>
      <view class='iconfont icon-jinru'></view>
    </view>
  </view>
  <view class='item_list' bindtap='project'>
    <view class='list_icon'>
      <text class='iconfont icon-fangan'></text>
    </view>
    <view class='list_item_box'>
      <view>方案预设</view>
      <view class='iconfont icon-jinru'></view>
    </view>
  </view>
  <view class='item_list' bindtap='share'>
    <view class='list_icon'>
      <text class='iconfont icon-fenxiang1'></text>
    </view>
    <view class='list_item_box'>
      <view>分享赚T币</view>
      <view class='iconfont icon-jinru'></view>
    </view>
  </view>
  <navigator class='item_list'  url='/pages/index/twoCode/twoCode?imgUrls={{personalinfo.counselor.wechat_code}}'>
    <view class='list_icon'>
      <text class='iconfont icon-xiazai'></text>
    </view>
    <view class='list_item_box'>
      <view>下载专属二维码</view>
      <view class='iconfont icon-jinru'></view>
    </view>
  </navigator>
  <view class='item_list' bindtap='inviteList'>
    <view class='list_icon'>
      <text class='iconfont icon-yaoqing'></text>
    </view>
    <view class='list_item_box'>
      <view>邀请名单</view>
      <view class='iconfont icon-jinru'></view>
    </view>
  </view>
  <view class='item_list' bindtap='remind'>
    <view class='list_icon'>
      <text class='iconfont icon-YDUI-naozhong'></text>
    </view>
    <view class='list_item_box'>
      <view>7天到期提醒</view>
      <view class='iconfont icon-jinru'></view>
    </view>
  </view>
</view>

<!-- 客户个人中心 -->
<block wx:elif='{{user_type==2}}'>
  <view class='content_box'>
    <view class='item_list' bindtap='policyList'>
      <view class='list_icon'>
        <text class='iconfont icon-listpress'></text>
      </view>
      <view class='list_item_box'>
        <view>保单列表</view>
        <view class='iconfont icon-jinru'></view>
      </view>
    </view>
    <view class='item_list' bindtap='medicalReport'>
      <view class='list_icon'>
        <text class='iconfont icon-icon-test'></text>
      </view>
      <view class='list_item_box'>
        <view>体检报告</view>
        <view class='iconfont icon-jinru'></view>
      </view>
    </view>
    <view class='item_list' bindtap='register'>
      <view class='list_icon'>
        <text class='iconfont icon-renzheng1'></text>
      </view>
      <view class='list_item_box'>
        <view>顾问认证</view>
        <view class='iconfont icon-jinru'></view>
      </view>
    </view>
    <view class='item_list' bindtap='consultantInfo'>
      <view class='list_icon'>
        <text class='iconfont icon-kehuguanli-copy-copy'></text>
      </view>
      <view class='list_item_box'>
        <view>顾问信息</view>
        <view class='iconfont icon-jinru'></view>
      </view>
    </view>
  </view>
</block>
<!-- 传播大使个人中心 -->
<view class='envoy_box' wx:elif='{{user_type==4}}'>
  <view class='tab_box'>
    <view class="tab_item  {{currentTab==0?'tab_active':''}}" data-current="0" bindtap='tabCharge'>账户余额</view>
    <view class="tab_item  {{currentTab==1?'tab_active':''}}" data-current="1" bindtap='tabCharge'>分享</view>
  </view>
  <block wx:if='{{currentTab==0}}'>
    <view class='envoy_content_box envoy'>
      <view>
        <view class='envoy_money'>{{personalinfo.popularize.balance}}元</view>
        <view class='envoy_info'>正在提现中{{personalinfo.user.pay}}元</view>
      </view>
      <view class='envoy_btn' bindtap='withdraw'>我要提现</view>
    </view>
    <view class='charge_box'>
      <view class='envoy_title_box'>交易记录</view>
      <view class='box' wx:for='{{personalinfo.paylog}}' wx:key >
        <view class='envoy_content_box'>
          <view>
            <view class='envoy_title'>{{item.name}}</view>
          </view>
          <view bindtap='tabExpand' data-index='{{index}}'>
            <text class="iconfont font_icon  {{item.tab_state?'icon-shang':'icon-xiala'}}"></text>
            <text class='envoy_hint' wx:if='{{item.tab_state}}'>收起</text>
            <text class='envoy_hint' wx:else>展开</text>
          </view>
        </view>
        <view class="envoy_info_box {{!item.tab_state?'expand':''}}">
          <view class='envoy_content' wx:for='{{item.paylog}}' wx:key>
            <view>{{item.time}}</view>
            <view class='envoy_title'>{{item.change}}元</view>
          </view>  
        </view>
      </view>
    </view>
  </block>
  <block wx:if='{{currentTab==1}}'>
    <view class='share_box'>
      <view class='envoy_content_box share'>
        <view class='share_content'>{{postsharedata.sharetext}}</view>
        <view>
          <button class='share_btn' open-type='share' data-share='{{postsharedata.status}}'>
            <text>立即分享</text>
            <text class='iconfont icon-jinru'></text>
          </button>
        </view>
      </view>
    </view>
    <view class='content_box'>
      <view class='item_list' bindtap='sharecode'>
        <view class='list_icon'>
          <text class='iconfont icon-jisuanqi'></text>
        </view>
        <navigator class='list_item_box' 
        url='/pages/index/twoCode/twoCode?imgUrls={{personalinfo.popularize.wechat_code}}'>
          <view>分享二维码</view>
          <view class='iconfont icon-jinru'></view>
        </navigator>
      </view>
    </view>
    <view class='charge_box'>
      <view class='envoy_title_box'>
        <text>邀请名单</text>
        <text>充值记录</text>
      </view>
      <view class='box' wx:for='{{postsharedata.listmessages}}' wx:key>
        <view class='envoy_content_box'>
          <view>
            <view class='envoy_title'>{{item.name}}</view>
          </view>
          <view bindtap='tabExpand1' data-index='{{index}}'>
            <text class="iconfont font_icon  {{item.tab_state?'icon-shang':'icon-xiala'}}"></text>
            <text class='envoy_hint' wx:if='{{item.tab_state}}'>收起</text>
            <text class='envoy_hint' wx:else>展开</text>
          </view>
        </view>
        <view class="envoy_info_box {{!item.tab_state?'expand':''}}">
          <view class='envoy_content' wx:for='{{item.paylog}}' wx:key>
            <view>{{item.time}}</view>
            <view class='envoy_title'>{{item.change}}元</view>
          </view>
        </view>
      </view>
    </view>
  </block>
</view>
<!-- 提现弹窗 -->
<view class='mask_box' bindtap='setmoudelno' wx:if='{{withdraw_state}}'>
  <view class='popup_box' catchtap='funvoid'>
    <view class='popup_title'>提现</view>
    <view class='popup_content'>
      <view class='popup_total'>我的余额:{{personalinfo.popularize.balance}}元</view>
      <view class='popup_input_box'>
        <view>¥</view>
        <view>
          <input type='digit' placeholder='请输入提现金额' bindinput='setTbNum'></input>
        </view>
      </view>
      <view class='popup_btn' catchtap='confirmWithdrawal'>确认提现</view>
    </view>
  </view>
</view>