<!-- 初始模板 -->

<view tt:if="{{mouldType==0}}">
  <!-- <navbar color="{{typeLsit.sy_top_f.styleClass}}" background="{{typeLsit.sy_top.styleClass}}" text="首页"></navbar> -->
  <!-- style="padding-top:{{navigationBarHeight}}" -->
  <view class="container">
    <!-- <view style="height:{{navigationBarHeight1}} "></view> -->
    <!-- 会员信息 -->
    <view class="color_box" style="{{typeLsit.sy_bbg.styleClass}}">
      <!-- 所属集团 -->
      <view class="underling" bindtap="goSquareList" tt:if="{{squareName}}">
        <image class="underlingImg" mode="widthFix" src="https://formall.oss-accelerate.aliyuncs.com/cimg/dingwei.png">
        </image>
        <view class="underlingName">{{squareName}} ↓</view>
      </view>
      <view class='userinfo' tt:if="{{ifStoreApp!=1}}">
        <!-- 头像 -->
        <view class='infoLeft' style="{{typeLsit.sy_xxb.styleClass}}">
          <view class="user-avatar">
            <open-data class="open" type="userAvatarUrl"></open-data>
          </view>
          <!-- 成长值 -->
          <view class="user-data fl" bindtap='gotoChengzhangzhi' style="{{typeLsit.sy_xxb.styleClass}}">
            <view class='nameBox'>
              <open-data type="userNickName" style="{{typeLsit.sy_xxb_nf.styleClass}}"></open-data>
              <view class='chengzhangBox' style='background:{{chengzhangBox}}'>
                <text class='chengzhang'>{{levelName}}</text>
              </view>
            </view>
            <view class="view">
              <progress percent="{{upgradePercent}}" stroke-width="6" activeColor="{{activeColor}}" />
              <view class='remainchengzhangzhi' style="{{typeLsit.sy_xxb_cf.styleClass}}">还需{{upgradeScore}}成长值可升级
              </view>
            </view>
          </view>
        </view>

        <!-- 二维码 -->
        <view class='qrcode fr' bindtap='qrcode' style="{{typeLsit.sy_qrc.styleClass}}">
          <image src="{{typeLsit.sy_qrc.icon}}" class='qrcodeimg' mode='widthFix'></image>
        </view>
      </view>
      <!-- banner -->
      <c-banner tt:key="unique" list="{{list}}" />
      <!-- 频道 -->
      <view class="channelBox" tt:if="{{ifStoreApp!=1&&moduleList.length>0}}" style="{{typeLsit.sy_mbg.styleClass}}">
        <view class='kjBox' bindtap='goPage' data-obj="{{item}}" tt:for="{{moduleList}}" tt:key="{{index}}">
          <image src='{{item.icon}}' mode='aspectFill'></image>
          <view class="text">{{item.name}}</view>
        </view>
      </view>

      <view class='channelBox' tt:if="{{ifStoreApp==1}}" style="width:525rpx;">
        <view class='kjBox' bindtap='gotoBargain'>
          <image src='{{kanjia}}' mode='aspectFill'></image>
          <text>砍价</text>
        </view>
        <view class='kjBox' bindtap='gotoSpellGroup'>
          <image src='{{pintuan}}' mode='aspectFill'></image>
          <text>拼团</text>
        </view>
        <view class='kjBox' bindtap='gotoRushBuy'>
          <image src='{{xiaofeika}}' mode='aspectFill'></image>
          <text>限时抢购</text>
        </view>
      </view>

    </view>
    <view class='toutiao1' tt:if="{{showQg&&ifStoreApp!=1}}">
      <view class='xianshi' bindtap='gotoRushBuy'>
        <text>限时专区</text>
        <text>限时惊爆价 轻松拎回家</text>
      </view>
      <view class='xsCon'>
        <view tt:for="{{xslist}}" tt:key="index">
          <view class='igBox' data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}"
            data-targetAd="{{item.targetAd}}" bindtap='gotodetail'>
            <image src='{{xslist[index].coverImg}}' mode='widthFix' class='imageH'></image>
            <view class='imTit'>{{xslist[index].title}}</view>
          </view>
        </view>
        <view>
          <view class='igBox' bindtap='gotoRushBuy'>
            <image src='{{more}}' mode='widthFix' class='more'></image>
            <view class='imTit'>更多...</view>
          </view>
        </view>
      </view>
    </view>

    <!-- 爆款专区 -->
    <c-hot id="hot" />
    <view class='product' tt:if="{{showTopic}}" bindtap='gotoTopic'>
      <image src='{{cover}}' mode='widthFix'></image>
    </view>


    <c-coupons id="lists" bind:myevent="onGetCode" class="business" loadingtext="{{loadingtext}}"
      loading="{{loading}}" />
    <!-- 广告蒙层 -->
    <!-- <c-advertisement id="advertisement" tt:if="{{showGg&&!played&&!havePlayEd1}}" ggdata="{{ggdata}}" /> -->
  </view>
  <!-- 顶部签到成长值 -->
  <view class='signin' tt:if="{{fistLogin}}" animation="{{alphaData}}">
    <open-data class="open" type="userAvatarUrl"></open-data>
    <text class='text'>您今日签到成功,获得{{fistLogin}}成长值</text>
  </view>
  <view class="integralBox" tt:if="{{businessSwitch}}">
    <!--是未授权微信且未授权手机号  -->
    <navigator url="/pages/getuserinfo/index" open-type="navigate" tt:if="{{accreditFlag==1}}">
      <image src='https://formall.oss-accelerate.aliyuncs.com/cimg/self-help-integral.png' mode='widthFix'
        style="width: 100%;height: 100%;"></image>
    </navigator>
    <!-- 授权了微信 没授权手机号 -->
    <navigator url="/pages/getuserinfo/index" open-type="navigate" tt:if="{{accreditFlag==2}}">
      <image src='https://formall.oss-accelerate.aliyuncs.com/cimg/self-help-integral.png' mode='widthFix'
        style="width: 100%;height: 100%;"></image>
    </navigator>
  </view>
</view>