discovery.wxml 2.53 KB
<view style="background:#fff;" class="container">
  <image style="height: {{headerHeight+45}}px;"  src="{{IMGURL}}discovery_center_bg.png" class="bg-img"></image>
  <navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="发现">
    <text>发现</text>
  </navigation-bar>

  <view style="padding-top: {{headerHeight}}px;">
    <view class="header">
      <swiper bindchange="changeSwiper"  class="scene-wrap" circular="{{true}}" previousMargin="40rpx" nextMargin="40rpx">
        <block wx:for="{{senceData}}" wx:key="index">
          <swiper-item>
              <image class="scene-img" src="{{IMGURL}}{{item.img}}"></image>
          </swiper-item>
        </block>
      </swiper>
    </view>
    <product senceData="{{senceData}}" actNum="{{actNum}}" headerHeight="{{headerHeight}}"></product>
  </view>
</view>

<!-- 在线客服 -->
<image class="chat" src="{{IMGURL}}customer_service.png" bindtap="goConsult" />

<!-- 在线客服 -->
<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 hidden="{{isReset}}" class="header-btn btn-gray" bindtap="showCalculate">取消</view>
        <view hidden="{{!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>