<!-- 欢乐城模板 -->
<view>
  <view class="container1">
    <!-- 会员信息 -->
    <view class="color_box1">
      <view style="height:{{navigationBarHeight}};overflow: hidden;" class="goSqunar1" bindtap="goSquareList">
        <view class="title1" style="line-height:{{navLineHeight}}">{{marketName}}</view>
        <view style="height:{{navLineHeight}};position:relative;margin-right: 80rpx">
          <image wx:if="{{isShowSqare}}" src="{{huanlechengImgurl}}home_ic_xialajt.png" mode='widthFix' class="xia"></image>
        </view>

      </view>
      <view class='userinfo1' wx:if="{{ifStoreApp!=1}}">
        <!-- 头像  -->
        <view class='infoLeft' style="{{typeLsit.sy_xxb.styleClass}}">
          <view class="user-avatar1">
            <!-- <open-data class="open" type="userAvatarUrl"></open-data> -->
            <image wx:if="{{userAvatarUrl.length>1}}" class="userAvatarUrl" bindtap="goSetAvatar" src="{{userAvatarUrl }}"></image>
            <image wx:else class="userAvatarUrl" bindtap="goSetAvatar" src="https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0"></image>
          </view>
          <!-- 成长值-->
          <view class="user-data1 fl" style="{{typeLsit.sy_xxb.styleClass}}">
            <view class='nameBox' bindtap="goIntegralmall">
              <!-- <open-data type="userNickName" style="{{typeLsit.sy_xxb_nf.styleClass}}"></open-data> -->
              <!-- <open-data type="userNickName" style="font-size: 26rpx;color:#292723;"></open-data> -->
              <p class="userName">{{userName}}</p>
              <!-- <image src="{{huanlechengImgurl+'home_ic_vip.png'}}"  mode='widthFix'></image> -->
              <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' style="{{typeLsit.sy_xxb_cf.styleClass}}">还需{{upgradeScore}}成长值可升级</view> -->
              <view class='remainchengzhangzhi'>还需
                <p style="color:#4D4941">{{upgradeScore}}成长值</p>可升级
              </view>
            </view>
          </view>
        </view>

        <!-- 二维码 style="{{typeLsit.sy_qrc.styleClass}}" -->
        <view class='qrcode1 fr' bindtap='qrcode'>
          <!-- <image src="{{typeLsit.sy_qrc.icon}}" class='qrcodeimg' mode='widthFix'></image> -->
          <image src="https://formall.oss-accelerate.aliyuncs.com/cimg/lqcbarcode.png" class='qrcodeimg' mode='widthFix'></image>
        </view>
      </view>
      <!-- banner -->
      <c-banner wx:key="unique" list="{{list}}" />
      <!-- 频道 -->
      <view class="channelBox" wx:if="{{ifStoreApp!=1&&moduleList.length>0}}" style="{{typeLsit.sy_mbg.styleClass}}">
        <view class='kjBox1' bindtap='goPage' data-obj="{{item}}" wx:for="{{moduleList}}" wx:key="index">
          <image src='{{item.icon}}' mode='aspectFill'></image>
          <view class="text">{{item.name}}</view>
        </view>
      </view>
      <!-- 频道 -->
      <view class='channelBox' wx: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' wx:if="{{showQg&&ifStoreApp!=1}}">
      <view class='xianshi' bindtap='gotoRushBuy'>
        <text>限时专区</text>
        <text>限时惊爆价 轻松拎回家</text>
      </view>
      <view class='xsCon'>
        <view wx:for="{{xslist}}" wx: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-mould wx:if="{{topicObj2}}" obj="{{topicObj2}}" isShowCount titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_xsqw.png" />
    <!-- 砍价 -->
    <c-mould wx:if="{{topicObj3}}" obj="{{topicObj3}}" titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_kj.png" />
    <!-- 拼团 -->
    <c-mould wx:if="{{topicObj4}}" obj="{{topicObj4}}" titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_pt.png" />
    <!-- 专题 -->
    <c-mould wx:if="{{specialLsit.length>0}}" wx:for="{{specialLsit}}" wx:key="index" obj="{{item}}" special />
    <!-- 消费卡 -->
    <c-mould wx:if="{{topicObj5}}" obj="{{topicObj5}}" titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_xfk.png" />
    <!-- 积分商城 -->
    <c-mould wx:if="{{topicObj6}}" obj="{{topicObj6}}" titleImgUrl="https://formall.oss-accelerate.aliyuncs.com/cimg/v20211214/home_txt_jfsc.png" />

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


    <!-- <c-coupons id="lists" bind:myevent="onGetCode" class="business" loadingtext="{{loadingtext}}" loading="{{loading}}" /> -->


    <!-- 游戏蒙层 -->
    <g-entry id="listss" wx:if="{{showGame&&!played&&!havePlayEd}}" gamedata="{{gamedata}}" bind:myevent="" />
    <!-- 广告蒙层 -->
    <c-advertisement id="advertisement" wx:if="{{showGg&&!played&&!havePlayEd1}}" ggdata="{{ggdata}}" />
  </view>
  <!-- 顶部签到成长值 -->
  <view class='signin' wx:if="{{fistLogin}}" animation="{{alphaData}}">
    <image class="userAvatarUrl" src="{{userAvatarUrl}}"></image>
    <text class='text'>您今日签到成功,获得{{fistLogin}}成长值</text>
  </view>

  <view class="integralBox1" wx:if="{{businessSwitch}}">
    <!--   是未授权微信且未授权手机号   -->
    <navigator url="/pages/getuserinfo/index" open-type="navigate" wx: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" wx:if="{{accreditFlag==2}}">
      <image src='{{huanlechengImgurl}}home_icon_wgjf.png' mode='widthFix' style="width: 100%;height: 100%;"></image>
    </navigator>
    <!-- 微信和手机号都授权了 跳转到商圈-->
    <navigator url="{{goUrl}}" wx:if="{{accreditFlag==3}}">
      <image src='{{huanlechengImgurl}}home_icon_wgjf.png' mode='widthFix' style="width: 100%;height: 100%;"></image>
    </navigator>
  </view>
</view>