index.wxml 2.31 KB
<!-- pages/tab/index/index.wxml -->
<import src="../../template/channel/channel.wxml" />
<import src="../../template/company/company.wxml" />
<import src="../../template/menu/menu.wxml" />
<import src="index.skeleton.wxml"/>
<template is="skeleton" wx:if="true" />
<view class="main-box" wx:if="{{cardInfo}}" >
  <user-info data-skeleton-hide="cardInfo" cardInfo="{{cardInfo}}"></user-info>
  <view class="main-bottom">
    <!-- 面向渠道 -->
    <template is="channel"></template>
    <!-- tab介绍 -->
    <view class="tab-list">
      <block wx:for="{{tabList}}" wx:key="index">
        <view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }} {{index === 3 ? 'tab-apply' : ''}}" data-name="{{item}}" data-index="{{index}}" bindtap="introduce">
          <image wx:if="{{curTabIndex !== index}}" class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon1}}.png?v={{img_version}}"></image>
          <image wx:else class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon}}.png?v={{img_version}}"></image>
          <view class="tab-text">{{item.name}}</view>
          <!-- 合作申请hot -->
          <image wx:if="{{index === 3}}" class="icon-hot" webp src="{{IMGURL}}home/icon-hot.png?v={{img_version}}"></image>
        </view>
      </block>
    </view>
    <!-- 公司介绍 -->
    <block wx:if="{{curTabIndex === 0 }}">
      <template is="company" data="{{IMGURL, banner, current, img_version, awardBanner, awardCurrent}}"></template>
    </block>
    <!-- 方案介绍 -->
    <block wx:if="{{curTabIndex === 1 }}">
      <template is="menu" data="{{menuList, curIntroduceIndex, templateMethods, customerType, hasPhoneNumber, IMGURL, img_version, clueCurrent, clueList}}"></template>
      <!-- <block wx:if="{{curIntroduceIndex === 0}}">
        <template is="cube" data="{{IMGURL}}"></template>
      </block>
      <block wx:elif="{{curIntroduceIndex === 1}}">
        <template is="equity"></template>
      </block>
      <block wx:elif="{{curIntroduceIndex == 2}}">
        <template is="clue"></template>
      </block> -->
    </block>
  </view>
  
<view wx:if="{{!hasUserInfo}}" class="user-profile" bindtap="getUserProfile"></view>
  <!-- 服务咨询 -->
  <view bindtap="goConsult">
    <image class="icon-consult" src="{{IMGURL}}home/custom.png?v={{img_version}}"></image>
  </view>
</view>