personalCenter.wxml 9.2 KB
<!--pages/personalCenter/personalCenter.wxml-->
<!-- <image src='/images/bg.jpg'></image> -->
<view class='banner_box'>
  <view class='head_img'>
    <image src='{{user_info.avatar}}'></image>
  </view>
  <view class='head_info_box'>
    <view class='user_name'>{{user_info.name}}
      <image wx:if='{{user_info.approve==1}}' src='/images/verify.png'></image>
    </view>
    <view>{{user_info.mobile}}</view>
    <view>{{user_info.work}}</view>
    <view>{{user_info.work_post}}</view>
  </view>
  <view class='edit_box' bindtap='editInfo' wx:if='{{user_type!=2}}'>
    <view class='iconfont icon-xiugai'></view>
    <view>修改个人资料</view>
  </view>
  <view class='edit_box edit2' bindtap='charge' wx:if='{{user_type==4}}'>
    <view>身份切换</view>
  </view>
</view>
<!-- 顾问个人中心 -->
<view class='content_box' wx:if='{{user_type==3||temp_UserType==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='list_info'>
        <text>{{counselor.end_time}}{{counselor.end_time!=''?'到期':''}}</text>
        <text class='iconfont icon-jinru'></text>
      </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>
  <view class='item_list' bindtap='twoCode' data-imgurl='{{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>
  </view>
  <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'>{{popularize.balance}}元</view>
        <view class='envoy_info'>正在提现中{{popularize.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='{{paylist}}' 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.pg}}' wx:key=''>
            <view>{{item.time}}</view>
            <view class='envoy_title'>{{item.parent_change==null?'0':item.parent_change}}元</view>
          </view>
        </view>
      </view>
    </view>
  </block>
  <block wx:if='{{currentTab==1}}'>
    <view class='share_box'>
      <view class='envoy_content_box share'>
        <textarea class='share_content' value='{{sharetext}}' bindinput='shareText'></textarea>
        <view>
          <button class='share_btn' open-type='share' data-status='{{status}}' data-sharetext='{{sharetext}}'>
            <text>立即分享</text>
            <text class='iconfont icon-jinru'></text>
          </button>
        </view>
      </view>
    </view>
    <view class='content_box'>
      <view class='item_list' bindtap='twoCode' data-imgurl='{{popularize.wechat_code}}'>
        <view class='list_icon'>
          <text class='iconfont icon-jisuanqi'></text>
        </view>
        <view class='list_item_box'>
          <view>分享二维码</view>
          <view class='iconfont icon-jinru'></view>
        </view>
      </view>
    </view>
    <view class='charge_box'>
      <view class='envoy_title_box'>
        <text>邀请名单</text>
        <text>充值记录</text>
      </view>
      <view class='box' wx:for='{{listmessages}}' wx:for-item='items' wx:for-index='indexs' wx:key>
        <view class='envoy_content_box'>
          <view>
            <view class='envoy_title'>{{items.name}}</view>
          </view>
          <view bindtap='tabExpand2' data-indexs='{{indexs}}'>
            <text class="iconfont font_icon  {{items.tab_state?'icon-shang':'icon-xiala'}}"></text>
            <text class='envoy_hint' wx:if='{{items.tab_state}}'>收起</text>
            <text class='envoy_hint' wx:else>展开</text>
          </view>
        </view>
        <view class="envoy_info_box {{!items.tab_state?'expand':''}}">
          <view class='envoy_content' wx:for='{{items.pg}}' wx:for-item='item' wx:for-index='index' wx:key>
            <view>{{item.time}} </view>
            <view class='envoy_title'>{{item.description}}</view>
          </view>
        </view>
      </view>
    </view>
  </block>
</view>

<!-- 提现弹窗 -->
<view class='mask_box' bindtap='cancleMask' wx:if='{{withdraw_state}}'>
  <view class='popup_box' catchtap='funvoid'>
    <view class='popup_title'>提现</view>
    <view class='popup_content'>
      <view class='popup_total'>我的余额:{{popularize.balance}}元</view>
      <view class='popup_input_box'>
        <view>¥</view>
        <view>
          <input type='number' placeholder='请输入提现金额' bindinput='setTbNum'></input>
        </view>
      </view>
      <view class='popup_btn' catchtap='confirmWithdrawal'>确认提现</view>
      <view class='popup_info'>提示:提现到微信零钱包</view>
    </view>
  </view>
</view>