index.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <My_GeneralTemplate padBot="20rpx">
  2. <view class="store_message">
  3. <My_GreyRectangleForm title="需求分类" required>
  4. <view class="clickPop {{ftype==''?'':'selected'}} {{errTips.ftype?'selected':''}}" style="color: {{errTips.ftype?'#EF2C48':'#000'}};" bindtap="showPop">{{ftype?ftype:"点击选择"}}</view>
  5. </My_GreyRectangleForm>
  6. <My_GreyRectangleForm title="需求标题" required>
  7. <van-field model:value="{{ ftitle }}" data-name="ftitle" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.ftitle}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
  8. </My_GreyRectangleForm>
  9. <My_GreyRectangleForm title="需求内容" required>
  10. <van-field model:value="{{ fcontent }}" data-name="fcontent" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fcontent}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
  11. </My_GreyRectangleForm>
  12. <My_GreyRectangleForm title="图片">
  13. <My_UploadFiles id="UploadFiles" fileList="{{attinfos}}" upType="SupplyAndDemand" UploadShow="2" previewSize="60px" maxCount="3" tsupplyanddemand="{{tsupplyanddemand}}" previewSize="65px" bindimageChange="imageChange"></My_UploadFiles>
  14. </My_GreyRectangleForm>
  15. <My_GreyRectangleForm title="下架日期">
  16. <!-- 时间选择器 -->
  17. <picker mode="date" start="{{dateStart}}" end="{{dateEnd}}" bindchange="dateChange">
  18. <view class="picker {{optionDate!='选择日期'?'selected':''}}">
  19. {{optionDate}}
  20. </view>
  21. </picker>
  22. </My_GreyRectangleForm>
  23. <My_GreyRectangleForm title="是否上架">
  24. <van-switch checked="{{ checked }}" size="24px" active-color="#4CBECF" bind:change="checkedOnChange" />
  25. </My_GreyRectangleForm>
  26. </view>
  27. </My_GeneralTemplate>
  28. <!-- 弹出层 -->
  29. <van-action-sheet show="{{ popups }}" bind:close="showPop">
  30. <My_MultipleChoice title="需求分类" dataList="{{ftypeList}}" pitchOnItem="{{ftype}}" bind:optionChange="radioChange"></My_MultipleChoice>
  31. </van-action-sheet>
  32. <!-- 提交按钮 -->
  33. <view class="submit_but">
  34. <van-button bindtap="submit" custom-class="custom-class" round color="linear-gradient(180deg, #82E0E9 0%, #4BBECF 100%);">发 布</van-button>
  35. </view>