<!-- 初始模板 -->
<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>


<!-- 欢乐城模板 -->
<view tt:if="{{mouldType==1}}">
  <view class="container1">
    <!-- 会员信息 -->

    <view class="color_box1">
      <view>
        <!-- navigationBarHeight -->
        <view style="height:{{navigationBarHeight}};overflow: hidden;" class="goSqunar1" bindtap="goSquareList">
          <image class="squareLogo"  src="../assets/imgData/squareLogo.png" style="top: {{navImgHeight}};" ></image>
          
          <view class="title1" style="line-height:{{navLineHeight}}">{{marketName}}</view>
          <view tt:if="{{isShowSqare}}" style="height:{{navLineHeight}};position:relative;margin-right: 80rpx">
            <image  src="{{huanlechengImgurl}}home_ic_xialajt.png"  class="xia">
            </image>
          </view>

        </view>
        <!-- <view class='userinfo1' tt:if="{{ifStoreApp!=1}}">
          <view class='infoLeft' style="{{typeLsit.sy_xxb.styleClass}}">
            <view class="user-avatar1">
              <image tt:if="{{userAvatarUrl!=''}}" class="userAvatarUrl" src="{{userAvatarUrl}}"></image>
            </view>
            <view class="user-data1 fl" style="{{typeLsit.sy_xxb.styleClass}}">
              <view class='nameBox' bindtap="goIntegralmall">

                <p style="font-size: 28rpx;color:#292723;float: left;">{{userName}}</p>

                <view class="vgrade">{{levelName}}</view>
                <view class="integralNum">积分：{{credit}}</view>
              </view>
              <view class="view" bindtap='gotoChengzhangzhi'>
                <progress percent="{{upgradePercent}}" stroke-width="6" activeColor="{{activeColor}}" />
                <view class='remainchengzhangzhi'>还需
                  <span style="color:#4D4941">{{upgradeScore}}成长值</span>
                  可升级
                </view>
              </view>
            </view>
          </view>
          <view class='qrcode1 fr' bindtap='qrcode'>
            <image src="https://formall.oss-accelerate.aliyuncs.com/cimg/lqcbarcode.png" class='qrcodeimg'
              mode='widthFix'></image>
          </view>
        </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='kjBox1' 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>


    <!-- 限时抢购 -->
    <c-mould tt:if="{{topicObj2}}" obj="{{topicObj2}}" isShowCount
      titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_xsqw.png" />
    <!-- 砍价 -->
    <c-mould tt:if="{{topicObj3}}" obj="{{topicObj3}}"
      titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_kj.png" />
    <!-- 拼团 -->
    <c-mould tt:if="{{topicObj4}}" obj="{{topicObj4}}"
      titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_pt.png" />
    <!-- 专题 -->
    <c-mould tt:if="{{specialLsit.length>0}}" tt:for="{{specialLsit}}" tt:key="{{index}}" obj="{{item}}" special />
    <!-- 消费卡 -->
    <c-mould tt:if="{{topicObj5}}" obj="{{topicObj5}}"
      titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_xfk.png" />
    <!-- 积分商城 -->
    <c-mould tt:if="{{topicObj6}}" obj="{{topicObj6}}"
      titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_jfsc.png" />

    <optimization tt:if="{{businessList.length>0}}" businessList="{{businessList}}" businessData="{{businessData}}"
      bind:businessid="getBusineData" />


    <!-- <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="integralBox1" tt:if="{{businessSwitch}}">
    <!--是未授权微信且未授权手机号   -->
    <navigator url="/pages/getuserinfo/index" open-type="navigate" tt:if="{{accreditFlag==1}}">
      <image src='{{huanlechengImgurl}}home_icon_wgjf.png' mode='widthFix' style="width: 100%;height: 100%;"></image>
    </navigator>
    <!-- 授权了微信 没授权手机号 -->
    <navigator url="/pages/getuserinfo/index" open-type="navigate" tt:if="{{accreditFlag==2}}">
      <image src='{{huanlechengImgurl}}home_icon_wgjf.png' mode='widthFix' style="width: 100%;height: 100%;"></image>
    </navigator>
  </view>
</view>
<tabbar />