qrCode.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!--StepPage/pages/qrCode/qrCode.wxml-->
  2. <van-overlay show="{{ishow}}" z-index='999'>
  3. <view class="show_box">
  4. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchValue }}" placeholder="请输入搜索关键词" bind:search="onSearch"
  5. />
  6. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancel">取消</view>
  7. </view>
  8. <scroll-view style="height: 88%;" scroll-y="true">
  9. <view wx:for="{{searchList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChoose">
  10. {{item.title}}
  11. </view>
  12. </scroll-view>
  13. </view>
  14. </van-overlay>
  15. <image src="../../../images/head.png" style="width:100%;height: 250rpx;z-index:-1"></image>
  16. <van-popup show="{{ show }}" bind:close="onClose">
  17. <canvas style="width: 400rpx;height: 400rpx;margin: 0;" canvas-id="myQrcode"></canvas>
  18. </van-popup>
  19. <view class="title">授权二维码信息</view>
  20. <van-cell-group style="width: 100%;">
  21. <van-field
  22. label='手机号码'
  23. value="{{ mobile }}"
  24. placeholder="请输入手机号"
  25. required
  26. bind:change='handleChangeMobile'
  27. >
  28. </van-field>
  29. </van-cell-group>
  30. <view wx:for="{{chooseList}}" wx:for-item='item' wx:for-index='index' class="chooseItem" wx:key="index">
  31. <view wx:if="{{set_status!='is_detail'}}" class="btn1 add" data-index="{{index}}" bindtap="handleAdd">+</view>
  32. <view wx:if="{{set_status!='is_detail'}}" class="btn1 delete" data-index="{{index}}" bindtap="handleDelete">X</view>
  33. <van-cell-group>
  34. <van-field
  35. label='4s门店'
  36. value="{{ item.title }}"
  37. placeholder="请选择"
  38. required
  39. readonly
  40. use-button-slot
  41. >
  42. <van-button slot="button" size="small" type="primary" data-index="{{index}}" bindtap="handleSearch">
  43. 选择
  44. </van-button>
  45. </van-field>
  46. <van-field
  47. label='授权时间'
  48. value="{{ item.expires_time }}"
  49. placeholder="请选择"
  50. readonly
  51. use-button-slot
  52. >
  53. <picker mode="date" value="{{item.expires_time}}" start="2015-01-01" end="2040-12-30" bindchange="bindDateChange" slot="button" data-index="{{index}}">
  54. <van-button size="small" type="primary">
  55. 选择
  56. </van-button>
  57. </picker>
  58. </van-field>
  59. </van-cell-group>
  60. </view>
  61. <view class="btn">
  62. <van-button color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleBack"> <text class="font_item">返回</text></van-button>
  63. <van-button color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleNext"> <text class="font_item">生成二维码</text></van-button>
  64. </view>