diypreviewing.wxml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <view class="container" wx:if="{{!isShow}}">
  2. <view wx:if="{{!isConfirm}}">
  3. <!-- <view class="item">
  4. <view class="txt">工单号</view>
  5. <input class="input" bindinput="bindBookNo" value="{{bookNo}}" type="number" disabled="{{bookNo.length>0}}"/>
  6. </view> -->
  7. <view class="item">
  8. <view class="txt">客户手机</view>
  9. <input class="input" bindinput="bindMobile" value="{{mobile}}" type="number" maxlength="11" />
  10. </view>
  11. <view class="item">
  12. <view class="txt">客户名称</view>
  13. <input class="input" bindinput="bindName" value="{{userName}}"/>
  14. </view>
  15. <view class="item">
  16. <view class="txt">客户地址</view>
  17. <textarea class="address" bindinput="bindAddress" value="{{address}}"/>
  18. </view>
  19. </view>
  20. <view wx:if="{{isConfirm}}" style="border-bottom:1rpx solid #ccc">
  21. <view class="item">
  22. <view class="confirmTxt">技师名称</view>
  23. <view class="confirmTxt" >{{userInfo.name}}</view>
  24. </view>
  25. <view class="item">
  26. <view class="confirmTxt">客户手机</view>
  27. <view class="confirmTxt" >{{mobile}}</view>
  28. </view>
  29. </view>
  30. <view style="margin-bottom:150rpx">
  31. <view class="view" wx:for="{{pres}}" wx:key='*this'>
  32. <view class="title">{{item.categoryId.name}}</view>
  33. <view class="title" style="font-weight: 300;">
  34. {{item.deviceId.name}}
  35. <span wx:if="{{item.positionId.id}}">(</span>
  36. <span>{{item.positionId.name}}</span>
  37. <span wx:if="{{item.positionId.id}}">)</span>
  38. <view wx:if="{{!isConfirm}}" class="right" data-id="{{item.id}}" bindtap="deletePre">删除设备</view>
  39. </view>
  40. <view class="content">
  41. <view class="span" wx:for="{{item.problem}}" wx:key='*this' wx:for-item='question'>
  42. {{question.name}}
  43. </view>
  44. </view>
  45. <view class="img">
  46. <image class="weui-uploader__img" wx:for="{{item.files}}" wx:key='*this' wx:for-item='img' src="{{img}}" mode="aspectFill" />
  47. </view>
  48. <view class="item" wx:if="{{!isConfirm}}">
  49. <button class="btn" style="width:160rpx; height: 76rpx; line-height: 76rpx;" data-id='{{item.id}}' bindtap="modifyPre">编辑</button>
  50. </view>
  51. </view>
  52. </view>
  53. <view wx:if="{{isConfirm}}">
  54. <view class="form-item">
  55. <input class="captcha" type="number" value="{{captcha}}" bindinput="bindcaptchaInput" placeholder="填写验证码" auto-focus />
  56. <button class="form-item-getPhone" bindtap="getCaptcha">获取验证码</button>
  57. </view>
  58. <!-- <view style="margin:20rpx 0">
  59. <checkbox-group bindchange="bindAgreeChange">
  60. <checkbox value="{{isAgree}}" bind style="width:30rpx;height:30rpx;border:1rpx solid #ccc"/>
  61. <text style="margin-left: 20rpx;">服务条款及声明</text>
  62. </checkbox-group>
  63. </view> -->
  64. <button class="btn" style="width:auto" bindtap="savePre">我已理解上述问题</button>
  65. </view>
  66. <view wx:if="{{!isConfirm}}" class="item-btn">
  67. <button class="btn" bindtap="addPre">添加服务项</button>
  68. <button class="btn" bindtap="confirmPre">下一步用户确认</button>
  69. </view>
  70. </view>
  71. <!-- 预检项目选择 -->
  72. <view class="picker" wx:if="{{isShow}}">
  73. <view class="category">
  74. <view class="title">服务项</view>
  75. <view class="list">
  76. <view class="label" wx:for="{{base.category}}" wx:key='id' data-id='{{item.id}}' data-name='{{item.name}}' bindtap="bindCategory">
  77. <text wx:if="{{categoryId.id==item.id}}" class="action">✔</text>
  78. {{item.name}}
  79. </view>
  80. </view>
  81. </view>
  82. <view class="category" wx:if="{{selected.device.length>0}}">
  83. <view class="title">设备</view>
  84. <view class="list">
  85. <view class="label" wx:for="{{selected.device}}" wx:key='id' data-id='{{item.id}}' data-name='{{item.name}}' bindtap="bindDevice">
  86. <text wx:if="{{deviceId.id==item.id}}" class="action">✔</text>
  87. {{item.name}}
  88. </view>
  89. </view>
  90. </view>
  91. <view class="category" wx:if="{{selected.position.length>0}}">
  92. <view class="title">位置</view>
  93. <view class="list">
  94. <view class="label" wx:for="{{selected.position}}" wx:key='id' data-id='{{item.id}}' data-name='{{item.name}}' bindtap="bindPosition">
  95. <text wx:if="{{positionId.id==item.id}}" class="action">✔</text>
  96. {{item.name}}
  97. </view>
  98. </view>
  99. </view>
  100. <view class="category" wx:if="{{selected.problem.length>0}}">
  101. <view class="title">问题</view>
  102. <view class="list">
  103. <view class="label" wx:for="{{selected.problem}}" wx:key='id' data-id='{{item.id}}' data-name='{{item.problem}}' bindtap="bindQuestion">
  104. <text wx:if="{{item.checked}}" class="action">✔</text>
  105. {{item.problem}}
  106. </view>
  107. </view>
  108. </view>
  109. <view class="weui-uploader">
  110. <view class="weui-uploader__hd">
  111. <view class="weui-uploader__title">图片上传</view>
  112. <view class="weui-uploader__info">{{picUrls.length}}/{{files.length}}</view>
  113. </view>
  114. <view class="weui-uploader__bd">
  115. <view class="weui-uploader__files" id="uploaderFiles">
  116. <block wx:for="{{files}}" wx:key="*this">
  117. <view class="weui-uploader__file" bindtap="previewImage" id="{{item}}">
  118. <image class="weui-uploader__img" src="{{item}}" mode="aspectFill" />
  119. </view>
  120. </block>
  121. <view class="weui-uploader__input-box">
  122. <view class="weui-uploader__input" bindtap="chooseImage"></view>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. <view style="height:120rpx;border:1rpx solid #ccc;margin-top:20rpx;border-radius:10rpx;padding:10rpx">
  128. <textarea maxlength="50" bindinput="bindMemo" value="{{memo}}" style="width:100%;height:100%;color:#ccc" placeholder="如有其他问题,请填写"></textarea>
  129. </view>
  130. <view class="item" style="margin-bottom:20rpx">
  131. <button class="btn" bindtap="confirmAdd">确定添加</button>
  132. <button class="btn" bindtap="cancelAdd">取消</button>
  133. </view>
  134. </view>
  135. <canvas canvas-id='photo_canvas' style='position:fixed;left: 9999px;width:1200px;height:{{ canvasHeight }}px' class='myCanvas'></canvas>