sixth.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <view wx:if="{{showCamera?true:false}}" style="width: 100%; height: 100%;" class="cation">
  2. <camera device-position="back" flash="auto" binderror="error" style="width: 100%; height: 70%;margin:40rpx auto"></camera>
  3. <view class="take_content">
  4. <view class="take" bindtap="takePhoto">
  5. <image src="../../../images/take.png" mode="widthFix" style="width: 40pt;"/>
  6. </view>
  7. </view>
  8. </view>
  9. <view wx:else>
  10. <cover-image src="../../../images/head.png"></cover-image>
  11. <view class="title">6.店方派工单</view>
  12. <van-cell-group style="width: 100%;">
  13. <van-field
  14. label='备注'
  15. value="{{ mark }}"
  16. placeholder="请输入"
  17. readonly="{{set_status=='is_detail'?true:false}}"
  18. bind:change='handleChangeMark'
  19. >
  20. </van-field>
  21. </van-cell-group>
  22. <Button style="width:90%" bind:tap="chooseImg" wx:if="{{img_state&&set_status!=='is_detail'}}">上传图片</Button>
  23. <view class="img">
  24. <view wx:for="{{imgList}}" wx:key="index" class="image_item" bindtap="handleOpenCamera" data-index='{{index}}'>
  25. <view style="width: 100%;height: 100%;" class="item1" wx:if="{{item.src||set_status!='is_detail'?true:false}}">
  26. <view wx:if="{{item.src?true:false}}" style="width: 100%;height: 100%;overflow: hidden;position: relative;">
  27. <image style="width: 100%;height: 100%;" src="{{set_status?item.show_url:item.src}}"></image>
  28. <view class="del" catchtap="handleDel" data-index="{{index}}" wx:if="{{set_status!=='is_detail'}}"><view class="del_x">x</view></view>
  29. </view>
  30. <image wx:else style="width: 100%;height: 100%;" src="https://zh.qingyaokeji.com/1.jpg"></image>
  31. </view></view>
  32. </view>
  33. </view>
  34. <view class="btn">
  35. <van-button color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleReturn"><text class="font_item">上一步</text></van-button>
  36. <van-button color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleNext" wx:if="{{set_status!=='is_detail'}}"> <text class="font_item">提交</text></van-button>
  37. <van-button color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleBack" wx:else=""> <text class="font_item">返回列表</text></van-button>
  38. </view>