newAndChange.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <My_GeneralTemplate padBot="20rpx">
  2. <view class="store_message">
  3. <My_GreyRectangleForm title="通告标题" required>
  4. <van-field value="{{ ftitle }}" bind:input='eliminate' data-name="ftitle" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.ftitle}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
  5. </My_GreyRectangleForm>
  6. <My_GreyRectangleForm title="概述" required>
  7. <van-field value="{{ fsummary }}" bind:input='eliminate' data-name="fsummary" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fsummary}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
  8. </My_GreyRectangleForm>
  9. <My_GreyRectangleForm title="通告内容" required>
  10. <view style="width: 400rpx; text-align: right; color:{{errTips.fcontent?'#EF2855':'#4BBECF'}} ; text-decoration: underline;" catchtap="toRichText">
  11. 编辑/预览
  12. </view>
  13. </My_GreyRectangleForm>
  14. <My_GreyRectangleForm title="通告封面">
  15. <My_UploadFiles id="UploadFiles" fileList="{{coverFiles}}" upType="annunciate" UploadShow="2" previewSize="60px" maxCount="1" previewSize="63px" bindimageChange="imageChange"></My_UploadFiles>
  16. </My_GreyRectangleForm>
  17. <My_GreyRectangleForm title="上传附件">
  18. <view style="width: 430rpx; display: flex; justify-content: flex-end;">
  19. <My_UploadFiles filesType='file' id="UpFiles" fileList="{{defaultFiles}}" upType="annunciate" UploadShow="2" previewSize="60px" maxCount="99" previewSize="63px" bindimageChange="filesChange"></My_UploadFiles>
  20. </view>
  21. </My_GreyRectangleForm>
  22. <My_GreyRectangleForm title="发布类型" required>
  23. <view class="clickPop {{ftype==''?'':'selected'}}" style="color: {{errTips.ftype?'#EF2C48':'#000'}};opacity:{{errTips.ftype?'1':'0.3'}} ;" bindtap="showPop">{{ftype?ftype:"点击选择"}}</view>
  24. </My_GreyRectangleForm>
  25. <My_GreyRectangleForm wx:if="{{ftype=='合作商通告'}}" title="发布范围">
  26. <view class="clickPop" style="color: #000; opacity: 1;" bindtap="checkboxShowPop">{{fisspecifiedrange==0?"全部":"指定范围"}}</view>
  27. </My_GreyRectangleForm>
  28. </view>
  29. </My_GeneralTemplate>
  30. <!-- 发布类型弹出层 -->
  31. <van-action-sheet show="{{ popups }}" bind:close="showPop">
  32. <My_MultipleChoice type='annunciate' title="发布类型" pitchOnItem="{{ftype}}" bind:optionChange="radioChange" />
  33. </van-action-sheet>
  34. <!-- 发布范围弹出层 -->
  35. <van-action-sheet show="{{ checkboxShow }}" bind:close="checkboxShowPop">
  36. <My_Checkbox type='annunciate' title="合作商" saleprodclass='{{include}}' isAll="{{fisspecifiedrange}}" isRequest='{{false}}' bind:saleprodChange='scopeCallBack' />
  37. </van-action-sheet>
  38. <!-- 提交按钮 -->
  39. <view class="submit_but">
  40. <van-button bindtap="submit" custom-class="custom-class" round color="linear-gradient(180deg, #82E0E9 0%, #4BBECF 100%);">发 布</van-button>
  41. </view>