discovery.wxml 3.31 KB
<view class="container">
  <image webp wx:if="{{sceneCodeList.length>0 && showPage}}" style="height: {{headerHeight+45}}px;"  src="{{IMGURL}}discovery_center_bg.png" class="bg-img"></image>
  <navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="发现">
    <text class="bar-text">发现</text>
  </navigation-bar>

  <block wx:if="{{sceneCodeList.length>0  && showPage}}">
    <view style="padding-top: {{headerHeight}}px;">
      <view class="header">
        <swiper bindchange="changeSwiper" current="{{currentId}}"  class="scene-wrap" previousMargin="40rpx" nextMargin="40rpx">
          <block wx:for="{{senceData}}" wx:key="index">
            <swiper-item item-id="{{index}}" wx:if="{{item.show}}">
                <image mode="widthFix" webp class="scene-img" src="{{IMGURL}}{{item.img}}?v={{img_version}}"></image>
            </swiper-item>
          </block>
        </swiper>
      </view>
      <product senceData="{{senceData}}" actNum="{{actNum}}" headerHeight="{{headerHeight}}"></product>
    </view>

    <!-- 申请活动 -->
    <image class="applyAct" src="{{IMGURL}}application_activity.png" bindtap="applyActivity" />

    <!-- 测算按钮 -->
    <view class="calculate" bindtap="showCalculate">
      <image class="icon-calculate" webp src="{{IMGURL}}calc.png"></image>
    </view>
    <!-- 测算弹窗 -->
    <view class="dialog-wrapper" bindtap="clickDialog" hidden="{{!visible}}">
      <view class="dialog-box">
        <form bindsubmit="submit">
          <view class="dialog-header">
            <view wx:if="{{!isReset}}" class="header-btn btn-gray" bindtap="showCalculate">取消</view>
            <view  wx:if="{{isReset}}" class="header-btn btn-gray" bindtap="reset">重置</view>
            <button class="header-btn btn-primary" form-type="submit">确定</button>
          </view>
          <view class="dialog-content">
            <view class="dialog-title">输入您门店的基本情况</view>
            <view class="dialog-form">
              <view class="form-item">
                <view class="form-label">门店月平均新车销量</view>
                <input class="form-input" bindfocus="focus" maxlength="8" name="sales" value="{{formData.sales}}" type="number" />
                <!-- <view class="form-unit">台</view> -->
              </view>
              <view class="form-item">
                <view class="form-label">3年内售后存量用户</view>
                <input class="form-input" bindfocus="focus" maxlength="8" name="flow" type="number" value="{{formData.flow}}" />
                <!-- <view class="form-unit">人</view> -->
              </view>
              <button class="dialog-btn" form-type="submit">提交测算</button>
            </view>
          </view>
        </form>
      </view>
    </view>
  </block>
  <block wx:if="{{sceneCodeList.length<=0 && showPage}}">
    <view class="emptyData" style="margin-top: {{headerHeight+32}}px;">
      <image webp src="{{IMGURL}}toLink.png" style="height: 400rpx;width: 400rpx;"></image>
      <view class="tip">
        <view>您的门店尚未开通业务场景,</view>
        <view>请联系在线客服进行咨询,谢谢。</view>
      </view>
    </view>
  </block>
</view>

 <!-- 在线客服 -->
 <image mode="aspectFit" wx:if="{{showPage}}" class="chat" src="{{IMGURL}}kefu.png" bindtap="goConsult" />