bind.wxml 1.16 KB
<view class="layout">
  <view class="input-box flex">
    序列号
    <input type="text" class="input" placeholder="请输入序列号" bindinput="input" maxlength="20" value="{{sn}}"/>
    <view class="clear-box text-center" bindtap="clear" hidden="{{!sn}}" data-attr="sn">
      <image webp src="{{IMGURL}}components/SearchBox/clear.png?v={{img_version}}" class="clear"></image>
    </view>
  </view>
  <view class="sn-tips tips flex" bindtap="showDemo">
    <image webp src="{{IMGURL}}packageIndex/gps/tips.png?v={{img_version}}" class="icon"></image>
    绑定设备序列号查看
  </view>
  <view class="default-btn" bindtap="submit">下一步</view>
  <view class="tips">绑定设备和车辆信息后方可正常使用</view>
</view>

<view class="demo text-center" hidden="{{!demoStatus}}" bindtap="showDemo">
  <view class="demo-bg"></view>
  <view class="demo-content">
    <image webp src="{{IMGURL}}packageIndex/gps/demo.png?v={{img_version}}" mode="widthFix"></image>
  </view>
</view>

<gps-modal show="{{showGpsModal}}" showName="showGpsModal" text="{{modalText}}" icon="{{bindStatus?'success':'error'}}" hideCancel="{{bindStatus}}" bindconfirm="confirm"></gps-modal>