index.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <My_GeneralTemplate padBot="20rpx">
  2. <view class="store_message">
  3. <My_GreyRectangleForm title="需求分类" required>
  4. <view class="clickPop" bindtap="showPop">{{ftype?ftype:"点击选择"}}</view>
  5. </My_GreyRectangleForm>
  6. <My_GreyRectangleForm title="需求标题" required>
  7. <van-field autosize type="textarea" 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 autosize type="textarea" 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">
  19. {{optionDate}}
  20. </view>
  21. </picker>
  22. <!-- 时间选择器 -->
  23. <picker mode="time" start="{{tiemStart}}" end="{{tiemEnd}}" bindchange="timeChange">
  24. <view wx:if="{{optionDate!='选择日期'}}" class="picker" style="margin-left: 8rpx;">
  25. {{opitonTime}}
  26. </view>
  27. </picker>
  28. </My_GreyRectangleForm>
  29. </view>
  30. </My_GeneralTemplate>
  31. <!-- 弹出层 -->
  32. <van-action-sheet show="{{ popups }}" bind:close="showPop">
  33. <My_MultipleChoice title="需求分类" dataList="{{ftypeList}}" pitchOnItem="{{ftype}}" bind:optionChange="radioChange"></My_MultipleChoice>
  34. </van-action-sheet>
  35. <!-- 提交按钮 -->
  36. <view class="submit_but">
  37. <van-button bindtap="submit" custom-class="custom-class" round color="linear-gradient(180deg, #82E0E9 0%, #4BBECF 100%);">发 布</van-button>
  38. </view>