measure-to.wxml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!-- 前台导入wxmlUtil.wxs -->
  2. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  3. <loading wx:if="{{loading}}"></loading>
  4. <dk-form id="{{formName}}" routeObjName="{{routeObjName}}" cardList="{{cardList}}" contentObj="{{contentObj}}" model:value="{{formData}}" bind:chooseData="chooseData">
  5. </dk-form>
  6. <view class="dk-card-outer-class">
  7. <view class="dk-card-class" wx:if="{{measureRoomList.length > 0}}">
  8. <view style="border-width: 1px;margin: 1.5vw;" wx:key="index" wx:for="{{measureRoomList}}">
  9. <van-swipe-cell right-width="{{ 65 }}" >
  10. <view>
  11. <van-field value="{{ item.roomName }}" custom-style="background:#F8F9FD;border-radius:15rpx 15rpx 0 0;" label="{{$t['spaceName']}}" label-class="nomal-label" data-index="{{index}}" placeholder="{{$t['pleaseEnterTheSpaceName']}}" input-align="right" bind:change="onRoomNameChange" errorMessage="{{item.errMsg}}" />
  12. <view style=" width:100%;">
  13. <view style="padding:38rpx;background: #F8F9FD;border-radius:0 0 15rpx 15rpx;">
  14. <!-- <van-uploader prefix="{{prefixUrl}}" preview-size="15vw" accept="image" file-list="{{ item.annexPaths}}" bind:delete="deleteImg" bind:after-read="afterRead" data-index="{{index}}" multiple="true" imageFit="cover">
  15. <view slot="preview-cover">
  16. </view>
  17. <view class="upload-view">
  18. <van-icon name="plus" color="#606EB2" style="font-family: 'PingFang SC';font-size: 20px;font-weight: 600;" />
  19. <view>{{$t['uploadDrawings']}}</view>
  20. </view>
  21. </van-uploader> -->
  22. <van-uploader max-count="5" disabled="{{item.readonly}}" accept="image" style="margin-left: 4%;border-radius: 15rpx;" preview-size="160rpx;" file-list="{{ item.measureAnnex }}" bind:delete="deleteImg" bind:after-read="afterRead" data-index="{{index}}" multiple="true" imageFit="aspectFit" max-size="{{maxSize}}" bind:oversize="overSize" >
  23. <view slot="preview-cover">
  24. </view>
  25. <view class="upload-view">
  26. <van-icon name="plus" color="#606EB2" style="font-family: 'PingFang SC';font-size: 20px;font-weight: 600;" />
  27. <view>{{$t['uploadDrawings']}}</view>
  28. </view>
  29. </van-uploader>
  30. </view>
  31. </view>
  32. </view>
  33. <view slot="right" data-index="{{index}}" bind:tap="deleteItem">{{$t['delete']}}</view>
  34. </van-swipe-cell>
  35. </view>
  36. </view>
  37. <view style="margin-top: 30rpx;" wx:if="{{formType !=='detail'}}">
  38. <van-button size="small" custom-style="font-weight: 400;font-family: 'PingFang SC';font-size: 14px;color:#606EB2;border:0;border-radius:15rpx;box-shadow: 0rpx 10rpx 20rpx rgba(225, 229, 238, 0.6);height:70rpx;" icon="plus" bind:click="addItem" block>
  39. {{$t['addDrawings']}}
  40. </van-button>
  41. </view>
  42. </view>
  43. <view style="height: 200rpx;"></view>
  44. <!-- <view style="position: fixed;bottom: 230rpx;right: 30rpx;" wx:if="{{formType =='detail'}}">
  45. <view bind:tap="toEdit" class="btn-add-class-2">
  46. <van-icon name="edit" color="#FFFFFF" size="60rpx" />
  47. </view>
  48. </view> -->
  49. <!-- 编辑 -->
  50. <view wx:if="{{formType =='detail'}}" style="position: fixed;bottom: 230rpx;right: 30rpx;z-index: 99;" bindtap="toEdit">
  51. <image src="{{imageUrl + 'edit.png'}} " class="edit-class" />
  52. </view>
  53. <dk-save-button wx:if="{{formType !=='detail'}}" model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonSaveList}}" contentList="{{contentSaveList}}" bind:open="save"></dk-save-button>