<template name="footer">
  <view 
    class="page_footer"
    style="height:{{footerheight}}rpx;"
    >
    <view class="page_footer_item">
      <navigator 
        class='page_footer_navs'
        open-type="reLaunch"
        url="{{local==0?'':'../../pages/index/index'}}"
      >
        <image
          src="../../img/footer_home{{local==0?'_active':''}}.png"
        />
        <view
          class='page_footer_w'
        >
          首页
        </view>
      </navigator>
    </view>
    <view class="page_footer_item">
      <navigator 
        class='page_footer_navs'
        open-type="reLaunch"
        url="../../pages/buy/buy"
      >
        <image
          src="../../img/footer_buy{{local==1?'_active':''}}.png"
        />
        <view
          class='page_footer_w'
        >
          买车
        </view>
      </navigator>
    </view>
    <view class="page_footer_item">
      <navigator 
        class='page_footer_navs'
        open-type="reLaunch"
        url="../../pages/sell/sell"
      >
        <image
          src="../../img/footer_sell{{local==2?'_active':''}}.png"
        />
        <view
          class='page_footer_w'
        >
          卖车
        </view>
      </navigator>
    </view>
    <view class="page_footer_item">
      <navigator 
        class='page_footer_navs'
        open-type="reLaunch"
        url="../../pages/usercenter/usercenter"
      >
        <image
          src="../../img/footer_my{{local==3?'_active':''}}.png"
        />
        <view
          class='page_footer_w'
        >
          我的
        </view>
      </navigator>
    </view>
  </view>
</template>