<!-- pages/member/index_v2/index_v2.wxml -->
<block wx:if="{{firstshow&&!loginshow}}">
	<!--<button type="primary" class="clear" bindtap="clearStorage" >清空缓存</button>-->
	<!-- 启用装修的模板 -->
	<view wx:if="{{template === '03'}}" class="template_03">
    <template name="article">
      <article datas="{{remote_data}}" U_tabcontrol="{{U_tabcontrol}}"  component_id="{{id}}"></article>
    </template>
    <template name="backup">
      <backup datas="{{remote_data}}"  component_id="{{id}}"></backup>
    </template>
    <template name="blank">
      <blank datas="{{remote_data}}"  component_id="{{id}}"></blank>
    </template>
    <template name="buttons">
      <buttons datas="{{remote_data}}"  component_id="{{id}}"></buttons>
    </template>
    <template name="community">
      <community datas="{{remote_data}}" U_tabcontrol="{{U_tabcontrol}}" component_id="{{id}}" index="{{index}}" btnFlag="{{btnFlag}}" bottomShowBolIndex="{{bottomShowBolIndex}}"></community>
    </template>
    <template name="coupons">
      <coupons datas="{{remote_data}}"  component_id="{{id}}" page_id="{{page_id}}"></coupons>
    </template>
    <template name="cube">
      <cube datas="{{remote_data}}" component_id="{{id}}"></cube>
    </template>
    <template name="deposit">
      <deposit datas="{{remote_data}}"  component_id="{{id}}"></deposit>
    </template>
    <template name="form">
      <form datas="{{remote_data}}" component_id="{{id}}"></form>
    </template>
    <template name="goods">
      <goods datas="{{remote_data}}"  component_id="{{id}}" U_tabcontrol="{{U_tabcontrol}}" page_id="{{page_id}}" index="{{index}}" bottomShowBolIndex="{{bottomShowBolIndex}}" bottomShowBol="{{bottomShowBol}}"></goods>
    </template>
    <template name="goodsgroup">
      <goodsgroup datas="{{remote_data}}"  component_id="{{id}}" U_tabcontrol="{{U_tabcontrol}}" page_id="{{page_id}}" index="{{index}}" bottomShowBolIndex="{{bottomShowBolIndex}}" bottomShowBol="{{bottomShowBol}}"></goodsgroup>
    </template>
    <template name="goodsrush">
      <goodsrush datas="{{remote_data}}"  component_id="{{id}}" U_tabcontrol="{{U_tabcontrol}}" page_id="{{page_id}}" index="{{index}}" bottomShowBolIndex="{{bottomShowBolIndex}}" bottomShowBol="{{bottomShowBol}}"></goodsrush>
    </template>
    <template name="goodsnearby">
      <goodsnearby datas="{{remote_data}}"  component_id="{{id}}" U_tabcontrol="{{U_tabcontrol}}" page_id="{{page_id}}" index="{{index}}" bottomShowBolIndex="{{bottomShowBolIndex}}" bottomShowBol="{{bottomShowBol}}"></goodsnearby>
    </template>
    <template name="goodstores">
      <goodstores datas="{{remote_data}}" component_id="{{id}}" page_id="{{page_id}}" index="{{index}}" bottomShowBolIndex="{{bottomShowBolIndex}}" bottomShowBol="{{bottomShowBol}}"></goodstores>
    </template>
    <template name="headline">
      <headline datas="{{remote_data}}"  component_id="{{id}}"></headline>
    </template>
    <template name="homedata">
      <homedata datas="{{remote_data}}"  component_id="{{id}}"></homedata>
    </template>
    <template name="line">
      <line datas="{{remote_data}}"  component_id="{{id}}"></line>
    </template>
    <template name="livestreaming">
      <livestreaming datas="{{remote_data}}" U_tabcontrol="{{U_tabcontrol}}" component_id="{{id}}"></livestreaming>
    </template>
    <template name="location">
      <location datas="{{remote_data}}"  component_id="{{id}}" page_id="{{page_id}}"></location>
    </template>
    <template name="lottery">
      <lottery datas="{{remote_data}}"  component_id="{{id}}"></lottery>
    </template>
    <template name="maps">
      <maps datas="{{remote_data}}"  component_id="{{id}}"></maps>
    </template>
    <template name="notice">
      <notice datas="{{remote_data}}"  component_id="{{id}}"></notice>
    </template>
    <template name="richtext">
      <richtext datas="{{remote_data}}" component_id="{{id}}"></richtext>
    </template>
    <template name="search">
      <search datas="{{remote_data}}"  component_id="{{id}}"></search>
    </template>
    <template name="staff">
      <staff datas="{{remote_data}}"  component_id="{{id}}"></staff>
    </template>
    <template name="shopfor">
      <shopfor datas="{{remote_data}}"  component_id="{{id}}" mailInfo="{{mailInfo}}"></shopfor>
    </template>
    <template name="shortvideo">
      <shortvideo datas="{{remote_data}}"  component_id="{{id}}" page_id="{{page_id}}"></shortvideo>
    </template>
    <template name="signin">
      <signin datas="{{remote_data}}"  component_id="{{id}}"></signin>
    </template>
    <template name="simplegraph">
      <simplegraph datas="{{remote_data}}"  component_id="{{id}}"></simplegraph>
    </template>
    <template name="slideshow">
      <slideshow datas="{{remote_data}}"  component_id="{{id}}"></slideshow>
    </template>
    <template name="stores">
      <stores datas="{{remote_data}}" U_tabcontrol="{{U_tabcontrol}}" component_id="{{id}}" index="{{index}}" btnFlag="{{btnFlag}}" bottomShowBolIndex="{{bottomShowBolIndex}}"></stores>
    </template>
    <template name="storesranking">
      <storesranking datas="{{remote_data}}"  component_id="{{id}}" index="{{index}}" bottomShowBolIndex="{{bottomShowBolIndex}}" bottomShowBol="{{bottomShowBol}}"></storesranking>
    </template>
    <template name="suspendbutton">
      <suspendbutton datas="{{remote_data}}"  component_id="{{id}}"></suspendbutton>
    </template>
    <template name="title">
      <title datas="{{remote_data}}"  component_id="{{id}}"></title>
    </template>
    <template name="tabcontrol">
      <tabcontrol datas="{{remote_data}}" btnFlag="{{btnFlag}}" component_id="{{id}}" page_id="{{page_id}}" index="{{index}}" bottomShowBolIndex="{{bottomShowBolIndex}}" bottomShowBol="{{bottomShowBol}}"></tabcontrol>
    </template>
    <template name="videos">
      <videos datas="{{remote_data}}" U_tabcontrol="{{U_tabcontrol}}" component_id="{{id}}"></videos>
    </template>
    <template name="bonusPools">
      <bonusPoolsShow datas="{{remote_data}}" component_id="{{id}}"></bonusPoolsShow>
    </template>
    <template name="membertop">
      <membertop datas="{{remote_data}}"  component_id="{{id}}" member_item="{{member_item}}"
                 member_order="{{member_order}}" isMemberGrade="{{isMemberGrade}}"></membertop>
    </template>
    <template name="memberdata">
      <memberdata datas="{{remote_data}}" component_id="{{id}}" member_item="{{member_item}}"></memberdata>
    </template>
    <template name="memberasset">
      <memberasset datas="{{remote_data}}"  component_id="{{id}}" member_item="{{member_item}}"></memberasset>
    </template>
    <template name="memberorder">
      <memberorder datas="{{remote_data}}"  component_id="{{id}}" member_order="{{member_order}}"></memberorder>
    </template>
    <template name="membertool">
      <membertool datas="{{remote_data}}"  component_id="{{id}}" notShow="{{notShow}}"></membertool>
    </template>
    <template name="membermarket">
      <membermarket datas="{{remote_data}}" bindopenQrCode="openQrCodebtn" member_item="{{member_item}}" component_id="{{id}}" notShow="{{notShow}}"></membermarket>
    </template>
    <template name="membermerchant">
      <membermerchant datas="{{remote_data}}"  component_id="{{id}}" notShow="{{notShow}}"></membermerchant>
    </template>
    <template name="memberrights">
      <memberrights datas="{{remote_data}}"  component_id="{{id}}" notShow="{{notShow}}"></memberrights>
    </template>
    <template name="ys_member">
      <ys_member datas="{{remote_data}}" component_id="{{id}}" notShow="{{notShow}}"></ys_member>
    </template>

		<view wx:if="{{components&&designerReadly}}">
      <block wx:for="{{components}}" wx:key="index">
        <template wx:if="{{item.component_key =='U_article' && member_order.order}}" is="article" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_backup' &&  btnFlag && member_order.order}}" is="backup" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_blank' && member_order.order}}" is="blank" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_button' && member_order.order}}" is="buttons" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_community' && member_order.order}}" is="community" data="{{...item,bottomShowBolIndex,btnFlag,index}}" />
        <template wx:if="{{item.component_key =='U_coupons' && member_order.order}}" is="coupons" data="{{...item,page_id}}" />
        <template wx:if="{{item.component_key =='U_cube' && member_order.order}}" is="cube" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_deposit'}}" is="deposit" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_form' && member_order.order}}" is="form" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_goods' && member_order.order}}" is="goods" data="{{...item,page_id,bottomShowBolIndex,bottomShowBol,index}}" />
        <template wx:if="{{item.component_key =='U_goodsgroup' && member_order.order}}" is="goodsgroup" data="{{...item,page_id,bottomShowBolIndex,bottomShowBol,index}}" />
        <template wx:if="{{item.component_key =='U_goodsrush' && member_order.order}}" is="goodsrush" data="{{...item,page_id,bottomShowBolIndex,bottomShowBol,index}}" />
        <template wx:if="{{item.component_key =='U_goodsnearby' && member_order.order}}" is="goodsnearby" data="{{...item,page_id,bottomShowBolIndex,bottomShowBol,index}}" />
        <template wx:if="{{item.component_key =='U_goodstores' && member_order.order}}" is="goodstores" data="{{...item,page_id,bottomShowBolIndex,bottomShowBol,index}}" />
        <template wx:if="{{item.component_key =='U_headline' && member_order.order}}" is="headline" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_homedata'}}" is="homedata" data="{{...item}}"/>
        <template wx:if="{{item.component_key =='U_line' && member_order.order}}" is="line" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_livestreaming' && member_order.order}}" is="livestreaming" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_location' && member_order.order}}" is="location" data="{{...item,page_id}}" />
        <template wx:if="{{item.component_key =='U_lottery' && member_order.order}}" is="lottery" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_maps' && member_order.order}}" is="maps" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_notice' && member_order.order}}" is="notice" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_richtext' && member_order.order}}" is="richtext" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_search' && member_order.order}}" is="search" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_staff'}}" is="staff" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_shopfor' && member_order.order}}" is="shopfor" data="{{...item,mailInfo}}" />
        <template wx:if="{{item.component_key =='U_shortvideo' && member_order.order}}" is="shortvideo" data="{{...item,page_id}}" />
        <template wx:if="{{item.component_key =='U_signin' && member_order.order}}" is="signin" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_simplegraph' && member_order.order}}" is="simplegraph" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_slideshow' && member_order.order}}" is="slideshow" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_stores' && member_order.order}}" is="stores" data="{{...item,bottomShowBolIndex,btnFlag,index}}" />
        <template wx:if="{{item.component_key =='U_storesranking'}}" is="storesranking" data="{{...item,bottomShowBolIndex,index,bottomShowBol}}"/>
        <template wx:if="{{item.component_key =='U_suspendbutton' && member_order.order}}" is="suspendbutton" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_title' && member_order.order}}" is="title" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_tabcontrol' && member_order.order}}" is="tabcontrol" data="{{...item,page_id,btnFlag,bottomShowBolIndex,bottomShowBol,index}}" />
        <template wx:if="{{item.component_key =='U_video' && member_order.order}}" is="videos" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_bonuspool'}}" is="bonusPools" data="{{...item}}" />
        <template wx:if="{{item.component_key =='U_membertop' && member_order.order}}" is="membertop" data="{{...item,isMemberGrade,member_item,member_order}}" />
        <template wx:if="{{item.component_key =='U_memberasset' && member_order.order}}" is="memberasset" data="{{...item,member_item}}" />
        <template wx:if="{{item.component_key =='U_memberorder' && member_order.order}}" is="memberorder" data="{{...item,member_order}}" />
        <template wx:if="{{item.component_key =='U_membertool' && member_order.order}}" is="membertool" data="{{...item,notShow}}" />
        <template wx:if="{{item.component_key =='U_membermarket' && member_order.order}}" is="membermarket" data="{{...item,notShow,member_item}}" />
        <template wx:if="{{item.component_key =='U_membermerchant' && member_order.order}}" is="membermerchant" data="{{...item,notShow}}" />
        <template wx:if="{{item.component_key =='U_memberrights' && member_order.order}}" is="memberrights" data="{{...item,notShow}}" />
        <template wx:if="{{item.component_key =='U_memberdata' && member_order.order}}" is="memberdata" data="{{...item,member_item}}" />
        <template wx:if="{{item.component_key =='U_memberYs' && member_order.order}}" is="ys_member" data="{{...item,member_item}}"/>
      </block>
      <image wx:if="{{copyrightImg}}" bindload="imageLoad" class="copyrightImg" src="{{copyrightImg}}" style="width:{{ images.width }}px; height:{{ images.height }}px;" mode='widthFix' />
      <view class="copyright">©{{copyright}}</view>
      <view class="copyright">v1.1.170</view>
    </view>
  </view>

  <!--弹窗广告-->
  <view class="cover">
    <view class="mask" wx:if="{{advertising.is_default === 1 && popShow}}">
      <view class="modal-mask" wx:if="{{advertising.datas && advertising.datas.background_over && popShow}}" style="background-color: rgba(0, 0, 0, {{advertising.datas.background_over/100}})"></view>
      <view class="mask-blank" >
        <view class="pop" wx:if="{{popShow}}">
          <image src="{{advertising.image}}" alt="" mode="widthFix" catchtap="turnTo" />
          <view class="icon_close">
            <icon class="iconfont icon-close11" catchtap="closePop"></icon>
          </view>
        </view>
      </view>
    </view>
  </view>

  <!-- 登录了没启用装修的模板 -->
  <view wx:if="{{template !== '03'}}" class="member {{template === '02'?'template_2':'template_1'}}">
    <view class="background-box">
      <view class="member-header">
        <view class="header-avatar">
          <image class="img" src="{{avatar}}" mode='widthFix' />
        </view>
        <view class="user-info">
          <view class="user-name-box">
            <view class="user-name van-ellipsis">{{nickname}}</view>
            <icon catchtap="goinfo" class="iconfont icon-massage_set"></icon>
          </view>
          <view class="user-info-id">
            <view class="user-id" wx:if="{{show_member_id != 1}}">ID:{{ uid }}</view>
            <view class="user-id" wx:if="{{isGeneralize && isshowInvit}}">{{language.member['邀请码']}}：{{ inviteCode }}</view>
            <view class="copy-btn" wx:if="{{isGeneralize && isshowInvit}}" catchtap="copybtn" >复制</view>
          </view>
          <view class="user-level">
            <view class="user-level-name" wx:if="{{level_name}}" catchtap="gotoMemberGrade">
              <image class="level-icon" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/img/level-icon.png" mode='widthFix'/>
              <text>{{ level_name }}</text>
              <van-icon name="arrow" color="#fff" size="28rpx" wx:if="{{isMemberGrade}}" />
            </view>
            <view class="user-level-time" wx:if="{{validity_value}}">{{validity_value}}到期</view>
          </view>
        </view>
      </view>

      <ys_member wx:if="{{pluginsList.is_open && pluginsList.is_open.is_open_ys_system && pluginsList.is_open.is_open_ys_system == 1}}"><!-- 益生的等级进度与账号信息 --></ys_member>

      <view class="CharitableFund" wx:if="{{member_item.charity_total_money && member_item.charity_total_money!=0}}" style="color:red;padding-left:25rpx;">
        慈善基金捐赠总额{{member_item.charity_total_money}}元
      </view>

      <view class="order-list" wx:if="{{order_active_show}}">
        <van-tabs active="{{order_active}}" bind:click='clickOrderTab' swipe-threshold="{{4}}" color="{{'#ffc11e'}}" title-active-color="{{'#ffc11e'}}" sticky="{{true}}">
          <van-tab title="{{order.title}}" wx:for="{{order_list}}" wx:key="index" wx:for-item="order">
            <view class="order_item">
              <view class="order_pub" wx:for="{{order.list}}" wx:key="status" wx:for-item="item" data-item="{{item}}" data-name="{{order.name}}" catchtap="toOrderList">
                <view class="badge" wx:if="{{item.total && item.total!= 0}}">{{item.total && item.total > 99 ? '99+' : item.total}}</view>
                <icon class="iconfont {{item.class}}"></icon>
                <text>{{item.status_name}}</text>
              </view>
            </view>
          </van-tab>
        </van-tabs>
      </view>
    </view>

    <view class="asset-box">
      <view class="asset-left-box">
        <view class="ul">
          <view class="li" wx:if="{{member_item.consume_coupon_show && member_item.consume_coupon_show.is_show == 1}}" catchtap="CardIndexPage">
            <view class="span">
              {{member_item.consume_coupon_show.amount}}
            </view>
            <view class="h3">{{member_item.consume_coupon_show.text}}</view>
          </view>
          <view class="li" wx:if="{{integral_show.is_show==1}}" catchtap="Integral_love">
            <view class="span">
              <text class="small">{{language['money']}}</text> <text>{{integral_show.data}}</text>
            </view>
            <view class="h3">{{integral_show.text}}</view>
          </view>
          <view class="li" wx:if="{{love_obj.unable_love_show==1}}" catchtap="golove_index">
            <view class="span">
              {{love_obj.unable_data}}
            </view>
            <view class="h3">{{love_obj.unable_text}}</view>
          </view>
          <view class="li" wx:if="{{love_obj.usable_love_show==1}}" catchtap="golove_index">
            <view class="span">
              {{love_obj.usable_data}}
            </view>
            <view class="h3">{{love_obj.usable_text}}</view>
          </view>
          <view class="li" wx:if="{{credit.is_show==1}}" catchtap="gobalance">
            <view class="span">
              <text class="small">{{language['money']}}</text> <text>{{credit.data}}</text>
            </view>
            <view class="h3">{{credit.text}}</view>
          </view>
          <view class="li" catchtap="gointegral_v2" wx:if="{{integral.is_show == 1}}">
            <view class="span">{{integral.data}}</view>
            <view class="h3">{{integral.text}}</view>
          </view>
          <view class="li" catchtap="gocoupon" wx:if="{{coupon && coupon.is_show == 1}}">
            <view class="span">
              {{coupon.data}}
            </view>
            <view class="h3">{{coupon.text}}</view>
          </view>
        </view>
      </view>
      <view class="asset-line" wx:if="{{!store_alone_temp}}"></view>
      <view class="asset-right-box" wx:if="{{!store_alone_temp}}" catchtap="goextension">
        <icon class="iconfont icon-fontclass-shouru"></icon>
        <view class="span">我的收入</view>
      </view>
    </view>

    <block wx:if="{{template === '01'}}">
      <view class="plugins-box">
        <view class="plugin-header" wx:if="{{pluginsList.plugin_head && pluginsList.plugin_head.length > 0}}">
          <view class="plugin-header-item" wx:for="{{pluginsList.plugin_head}}" wx:key="index" wx:for-item="item" data-item="{{item}}" catchtap="pluginGoto">
            <text class="iconfont {{item.class}}"></text><text>{{item.title}} {{item.value > 999 ? "999+" : item.value}}</text>
          </view>
        </view>
        <view class="plugin-items">
          <swiper style="width: 95vw;height: {{store_alone_temp == 1 ? '' :'180px'}};" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-active-color="{{'#007aff'}}" indicator-dots="{{plugin_handle_list.length == 1?false:true}}">
            <swiper-item wx:for="{{plugin_handle_list}}" wx:key="index" wx:for-item="page" class="plugin-items-box">
              <view class="plugin-items-icon template_2" wx:for="{{page}}" wx:key="name" wx:for-item="icon" data-item="{{icon}}" catchtap="pluginGoto">
                <icon class="iconfont {{icon.class}}"></icon>
                <view class="span">{{icon.title}}</view>
              </view>
            </swiper-item>
          </swiper>
        </view>
      </view>

      <view class="tabs-box template_2" wx:if="{{plugins_data.nav && plugins_data.nav.length > 0}}">
        <van-tabs active="{{plugin_active}}" nav-class="{{'vanTabClass'}}" custom-class="{{'vanTabClass'}}" tab-class="{{'vanTabClass'}}" swipe-threshold="{{4}}" sticky color="#ffc11e" title-active-color="#ffc11e" bind:click="handlePlugin">
          <van-tab title="{{plugin.name}}" name="{{plugin.code}}" wx:for="{{plugins_data.nav}}" wx:key="index" wx:for-item="plugin">
            <goods id="recommend_goods" wx:if="{{plugin.code==='recommend_goods' && goodsData.list}}" bind:setLoadMore="setLoadMore" datas="{{goodsData}}" component_id="{{'1'}}" U_tabcontrol="{{U_tabcontrol}}" plugin_active="{{plugin_active}}" store_alone_temp="{{store_alone_temp}}"></goods>
            <goodsrush id="limitBuy_goods" wx:if="{{plugin.code==='limitBuy_goods' && limitData.list}}" bind:setLoadMore="setLoadMore" datas="{{limitData}}" component_id="{{'1'}}" U_tabcontrol="{{U_tabcontrol}}" plugin_active="{{plugin_active}}" store_alone_temp="{{store_alone_temp}}"></goodsrush>
            <fight_group wx:if="{{plugin.code==='fight-groups'}}" list="{{groupList}}" store_alone_temp="{{store_alone_temp}}"></fight_group>
            <article id="article_box" wx:if="{{plugin.code==='article' && articleData.list}}" bind:setLoadMore="setLoadMore" datas="{{articleData}}" U_tabcontrol="{{U_tabcontrol}}" component_id="{{'1'}}" plugin_active="{{plugin_active}}"></article>
            <shortvideo id="video_share"  wx:if="{{plugin.code==='video-share' && videoData.list}}" bind:setLoadMore="setLoadMore" datas="{{videoData}}"  component_id="{{'1'}}" plugin_active="{{plugin_active}}" store_alone_temp="{{store_alone_temp}}"></shortvideo>
            <community id="micro_communities" wx:if="{{plugin.code==='micro-communities' && communityData.list}}" bind:setLoadMore="setLoadMore" datas="{{communityData}}" U_tabcontrol="{{U_tabcontrol}}" component_id="{{'1'}}" plugin_active="{{plugin_active}}" store_alone_temp="{{store_alone_temp}}"></community>
            <stores id="store_cashier" wx:if="{{plugin.code==='store-cashier' && plugin_active ==='store-cashier'}}" bind:setLoadMore="setLoadMore" datas="{{storeData}}" U_tabcontrol="{{U_tabcontrol}}" component_id="{{'1'}}" btnFlag="{{btnFlag}}" plugin_active="{{plugin_active}}"></stores>
            <livestreaming wx:if="{{plugin.code==='room' && liveData.list}}" datas="{{liveData}}" U_tabcontrol="{{U_tabcontrol}}" component_id="{{'1'}}"></livestreaming>
          </van-tab>
        </van-tabs>
        <backup wx:if="{{btnFlag}}" datas="{{btnData}}"  component_id="{{1}}"></backup>
        <icon wx:if="{{service}}" class="iconfont icon-member_kefu service-box" style="left: {{(clientWidth-55)}}px" catchtap="openService"></icon>
      </view>

    </block>

    <view class="tool" wx:if="{{template === '02'}}">
      <view class="title">
        <view class="spare"></view>
        <view class="h3">{{language.member['实用工具']}}</view>
      </view>
      <view class="ul tool-box">
        <view class="li" catchtap="gocollection">
          <view class="star img">
            <icon class="iconfont icon-member-tool-a"></icon>
          </view>
          <view>{{language.member['收藏']}}</view>
          <!--  <catchform></catchform> -->
        </view>
        <view class="li" catchtap="gofootprint">
          <view class="img eye">
            <icon class="iconfont icon-member-tool-b"></icon>
          </view>
          <view>{{language.member['足迹']}}</view>
          <!-- <catchform></catchform> -->
        </view>
        <view class="li" catchtap="goaddress">
          <view class="img location">
            <icon class="iconfont icon-member-tool-e"></icon>
          </view>
          <view>{{language.member['地址管理']}}</view>
        </view>
        <view class="li" catchtap="goinfo">
          <view class="img setting">
            <icon class="iconfont icon-member-tool-i"></icon>
          </view>
          <view>{{language.member['设置']}}</view>
        </view>
        <view wx:if="{{pluginsList.tool}}" wx:for="{{pluginsList.tool}}" data-item="{{item}}" class="li"
              wx:key="index" catchtap="pluginGoto">
          <view class="img">
            <icon class="iconfont {{item.class}}"></icon>
          </view>
          <view>{{item.title}}</view>
        </view>
      </view>
    </view>
		<view wx:if="{{template === '02'}}" class="templet_box">
			<view class="extension_plate" wx:if="{{(store_set && store_set.is_open_cashier == 1) ||is_stroeWithdraw ||(pluginsList.merchant && pluginsList.merchant.length > 0)}}">
				<view class="h1">
					<view class="spare"></view>
					<view class="bottom">{{language.member['商家管理']}}</view>
				</view>
				<view class="ul box">
					<view class="li" wx:if="{{store_set && store_set.is_open_cashier == 1}}" catchtap="gocashier">
						<view class="top">
							<icon class="iconfont icon-seller-a"></icon>
						</view>
						<view class="bottom">
							<view class="span">收银台</view>
						</view>
					</view>
					<view class="li" wx:if="{{pluginsList.merchant}}"
					 wx:key="index" wx:for="{{pluginsList.merchant}}" catchtap="pluginGoto" data-item="{{item}}">
						<view class="top">
							<icon class="iconfont  {{item.class}}"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{item.title}}</view>
						</view>
					</view>
				</view>
			</view>
			<view class="extension_plate">
				<view class="h1">
					<view class="spare"></view>
					<view class="bottom">{{language.member['营销互动']}}</view>
				</view>
				<view class="ul box">
					<view class="li" wx:if="{{relation_switch}}" catchtap="openQrCode" data-is="{{dataIs}}">
						<view class="top">
							<icon class="iconfont icon-member-tool-g"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{language.member['二维码']}}</view>
						</view>
						<!-- <catchform></catchform> -->
					</view>
					<view class="li" wx:if="{{signs}}" catchtap="gosign">
						<view class="top">
							<icon class="iconfont icon-member-clock1"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{sign_name}}</view>
						</view>
					<!-- 	<catchform></catchform> -->
					</view>
					<view class="li" catchtap="gomyEvaluation">
						<view class="top">
							<icon class="iconfont icon-member-tool-c"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{language.member['评论']}}</view>
						</view>
						<!-- <catchform></catchform> -->
					</view>
					<view class="li" catchtap="gomyRelationship">
						<view class="top">
							<icon class="iconfont icon-member-tool-d"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{member_agent}}</view>
						</view>
						<!-- <catchform></catchform> -->
					</view>
					<view class="li" catchtap="gocoupon">
						<view class="top">
							<icon class="iconfont icon-member-tool-f"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{language.member['优惠券']}}</view>
						</view>
					</view>
					<view wx:if="{{helps}}" class="li" catchtap="gohelpcenter">
						<view class="top">
							<icon class="iconfont icon-member-help"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{help_name}}</view>
						</view>
					<!-- 	<catchform></catchform> -->
					</view>
					<view class="li" wx:if="{{pluginsList.market}}" wx:key="index" wx:for="{{pluginsList.market}}" catchtap="pluginGoto"
					 data-item="{{item}}">
						<view class="top">
							<icon class="iconfont {{item.class}}"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{item.title}}</view>
						</view>
					</view>
				</view>
			</view>
			<view class="extension_plate">
				<view class="h1">
					<view class="spare"></view>
					<view class="bottom">{{language.member['资产权益']}}</view>
				</view>
				<view class="ul box">
					<view class="li" wx:if="{{pluginsList.asset_equity && item.mini_url}}" wx:key="index" wx:for="{{pluginsList.asset_equity}}"
					 catchtap="pluginGoto" data-item="{{item}}">
						<view class="top">
							<icon class="iconfont  {{item.class}}"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{item.title}}</view>
						</view>
					<!-- 	<catchform></catchform> -->
					</view>
				</view>
			</view>
		</view>

		<image wx:if="{{copyrightImg}}" bindload="imageLoad" class="copyrightImg" src="{{copyrightImg}}" mode='widthFix' style="width:{{ images.width }}px; height:{{ images.height }}px;" />
		<view class="copyright">©{{copyright}}</view>
		<view class="copyright">v1.1.170</view>
	</view>
</block>

<!--海报-->
<qrcode isshow="{{isshow}}" store_alone_temp="{{store_alone_temp}}" showcarrfootBol="{{showcarrfootBol}}" iPnoneBottomBol="{{iPnoneBottomBol}}"></qrcode>

<!-- 没登录的固定模板-->
<view class="zangbudenglu" wx:if="{{loginshow}}">
	<view class="member template_2">
		<view class="header">
			<view class="header-info">
				<view class="left">
					<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/photo-mr.jpg" mode='widthFix' />
				</view>
				<view class="login">
					<view class="loginbtn" catchtap="gotologin">
						登录/注册
					</view>
				</view>
			</view>
		</view>
		<block wx:for="{{showDiy.item.data}}" wx:key="index">
			<template wx:if="{{item.temp =='diyform'}}" is="form" data="{{...item}}" />
		</block>
		<view class="orderlist">
			<view class="ordertltie" catchtap="gotologin">
				<view class="ordername">我的订单</view>
				<view class="right">
					<view class="angle-right">
						<van-icon name="arrow" color="#c9c9c9" size="40rpx" />
					</view>
				</view>
			</view>
			<view class="order_all">
				<view class="order_pub" catchtap="gotologin">
					<view class="top">
						<view class="icon">
							<van-icon name="pending-payment" color="#999" size="52rpx" />
						</view>
					</view>
					<view class="bottom">待付款</view>
				</view>
				<view class="order_pub" catchtap="gotologin">
					<view class="top">
						<view class="icon">
							<van-icon name="tosend" color="#999" size="52rpx" />
						</view>
					</view>
					<view class="bottom">待发货</view>
				</view>
				<view class="order_pub" catchtap="gotologin">
					<view class="top">
						<view class="icon">
							<van-icon name="logistics" color="#999" size="52rpx" />
						</view>
					</view>
					<view class="bottom">待收货</view>
				</view>
				<view class="order_pub" catchtap="gotologin">
					<view class="top">
						<view class="icon">
							<van-icon name="after-sale" color="#999" size="52rpx" />
						</view>
					</view>
					<view class="bottom">售后列表</view>
				</view>
			</view>
		</view>
		<view class="tool">
			<view class="title">
				<view class="spare"></view>
				<view class="h3">实用工具</view>
			</view>
			<view class="ul tool-box">
				<view class="li" catchtap="gocollection">
					<view class="star img">
						<icon class="iconfont icon-member-tool-a"></icon>
					</view>
					<view>{{language.member['收藏']}}</view>
				</view>
				<view class="li" catchtap="gofootprint">
					<view class="img eye">
						<icon class="iconfont icon-member-tool-b"></icon>
					</view>
					<view>{{language.member['足迹']}}</view>
				</view>
				<view class="li" catchtap="goaddress">
					<view class="img location">
						<icon class="iconfont icon-member-tool-e"></icon>
					</view>
					<view>{{language.member['地址管理']}}</view>
				</view>
        <!-- 显示设置 审核不过 -->
				<!-- <view class="li" catchtap="goinfo">
					<view class="img setting">
						<icon class="iconfont icon-member-tool-i"></icon>
					</view>
					<view>{{language.member['设置']}}</view>
				</view> -->
			</view>
		</view>
		<view class="templet_box">
			<view class="extension_plate">
				<view class="h1">
					<view class="spare"></view>
					<view class="bottom">营销互动</view>
				</view>
				<view class="ul box">
					<view class="li" catchtap="gotologin">
						<view class="top">
							<icon class="iconfont icon-member-tool-g" style="width: 56rpx;height: 56rpx;"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{language.member['二维码']}}</view>
						</view>
					</view>
					<view class="li" catchtap="gotologin">
						<view class="top">
							<icon class="iconfont icon-member-tool-c" style="width: 56rpx;height: 56rpx;"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{language.member['评论']}}</view>
						</view>
					</view>
					<view class="li" catchtap="gotologin">
						<view class="top">
							<icon class="iconfont icon-member-tool-f" style="width: 56rpx;height: 56rpx;"></icon>
						</view>
						<view class="bottom">
							<view class="span">{{language.member['优惠券']}}</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</view>

<van-popup show="{{lsgow}}"  bind:close="clicktapshow" custom-style="border-radius: 35rpx;">
  <view class="hint">
    <view class="hintTop">
      <view class="titleOne">{{showinfo.title1}}</view>
      <view class="titleTwo">{{showinfo.title2}}</view>
      <view class="is_PlatformAgreement" wx:if="{{PlatformAgreement}}">
        <van-checkbox value="{{ tapSelectAgreement }}" bind:change="PlatformAgreementOnChange" icon-size="13px" checked-color="#07c160"></van-checkbox>
        <view class="is_PlatformAgreement_txt">我已阅读、理解并接受《<text catchtap="PlatformAgreementTap">{{agreement_name}}</text>》</view>
      </view>
    </view>

    <view class="bomt" >
      <view catchtap="clicktapshow">取消</view>
      <view class="rightLogin" wx:if="{{canIUseGetUserProfile}}">微信授权
        <view class="button_2" catchtap="getUserProfileTap"></view>
      </view>
      <view class="rightLogin" wx:else>微信授权
        <button class="button_2" open-type="getUserInfo" bindgetuserinfo="getUserProfileTap"></button>
      </view>
    </view>

  </view>
</van-popup>
<van-popup show="{{openPlatformAgreement}}"  bind:close="PlatformAgreementClose" custom-style="border-radius: 35rpx;">
  <view style="width:600rpx;height:700rpx;display: flex;flex-direction: column;">
    <van-nav-bar
      title="{{agreement_name}}"
    />
    <view style="flex:1;overflow-y: scroll;padding:0 20rpx;">
      <rich-text nodes="{{PlatformAgreement}}"></rich-text>
    </view>
    <view style="width: 100%;height: 120rpx;display: flex;justify-content: center;align-items: center;">
      <view style="width: 80%;height: 70%;background: red;color: #fff;display: flex;justify-content: center;align-items: center;border-radius: 10rpx;" catchtap="PlatformAgreementClose">确定</view>
    </view>
  </view>
</van-popup>
<!-- 客服 -->
<van-popup custom-style="border-radius: 38rpx;" show="{{showPopup}}" overlay="{{true}}">
  <view class="pop-content">
    <view class="pop-top">
      <view class="left"  wx:if="{{service.customer_open=='1'}}">
        <view class="wrap">
          <view style="position:relative">
            <view class="image">
              <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/kf_online_contect@2x.png"></image>
            </view>
            <view>在线联系</view>
            <button wx:if="{{!service.cservice}}" open-type="contact" bindcontact="handleContact" style="position:absolute;width:100%;height:110rpx;opacity:0;top:15rpx;left:0;"></button>
            <button wx:else catchtap="handleContact" data-url="{{service.cservice}}" style="position:absolute;width:100%;height:110rpx;opacity:0;top:15rpx;left:0;"></button>
          </view>
        </view>
      </view>
      <view style="display:flex;" wx:if="{{service.customer_open=='1' && !service.service_mobile==''}}">
        <view class="line"></view>
      </view>
      <view class="right" wx:if="{{!service.service_mobile==''}}">
        <view class="wrap" bindtap="callPhone">
          <view>
            <view class="image">
              <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/kf_tel_contect@2x.png"></image>
            </view>
            <view>联系电话</view>
            <view style="margin-top:16rpx">{{service.service_mobile}}</view>
          </view>
        </view>
      </view>
    </view>
    <view class="pop-bottom" wx:if="{{!service.service_QRcode==''}}">
      <view class="image">
        <image src="{{service.service_QRcode}}" show-menu-by-longpress></image>
      </view>
    </view>
    <icon class="iconfont icon-close11" catchtap="closeService"></icon>
  </view>
</van-popup>
<!-- 客服end -->

<!--底部导航-->
<block wx:if="{{footshow}}">
  <U_foot bindshowcarrfoot="showcarrfoot" bindshowcarrfoot_ipx="showcarrfoot_ipx"></U_foot>
</block>

<!-- 授权登录自动绑定手机号 (应用-小程序插件-设置开关)-->
<van-dialog
  use-slot
  title="绑定手机号"
	show="{{ showAutoBindPhone }}"
	confirm-button-text='选择授权手机号'
  confirm-button-open-type="getPhoneNumber"
  bind:getphonenumber="getPhoneNumber"
	confirm-button-color='#fff'
	class='autoBindPhone-dialog'
>
</van-dialog>

<van-popup show="{{showChangeID}}" round close-on-click-overlay="{{false}}">
	<view class="changeId_main">
		<icon class="iconfont icon-toast_warn"></icon>
		<view class="changeId_warnTitel">重要提示</view>
		<view class="changeId_warnText">
			当前绑定绑定操作会导致用户ID变更：原会员ID:{{ changidInfo.uid }}，变更后会员ID:{{ changidInfo.change_uid }}；绑定后所有数据记录以变更后会员ID{{ changidInfo.change_uid }}为准，<text style="color:#d53125;">原会员ID{{ changidInfo.uid }}数据将被删除，数据不会进行合并，且不可找回！</text>请谨慎操作！
			<view>绑定后请注意重新生成推广海报、重新发送推广链接！</view>
		</view>
		<view class="changeId_Btn" catchtap="setBindPhone">确认合并</view>
		<!-- <view class="changeId_Btn changeId_Btn_other" catchtap="closeChangeId">取消</view> -->
	</view>
</van-popup>

<van-popup show="{{is_show_user_info_edit_popup}}" round close-on-click-overlay="{{false}}">
    <view class="popup_box">
        <view class="h1">
            完善个人信息
            <icon class="iconfont icon-close11" catchtap="closeNickAvatar"></icon>
        </view>
        <view class="info">
            <button class="userAvatar" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
                <image class="avatar" src="{{avatar_image}}"></image>
            </button>
            <view class="row">
                <view class="text1">昵称：</view>
                <input type="nickname" bind:change="nicknameblur" class="weui-input" border="{{ false }}" value="{{nickname}}" data-nickname="{{nickname}}" placeholder="请输入昵称" />
            </view>
        </view>
        <view class="btn">
            <view class="button" catchtap="updateInfo">保存</view>
        </view>
    </view>
</van-popup>





