upload.wxml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <My_card custom-class='box'>
  2. <view class="label">素材标题</view>
  3. <input class="input base" bindinput='titleInput' value="{{content.title}}" placeholder-style='font-size: 28rpx;' placeholder='请输入标题' />
  4. <view class="label">素材备注</view>
  5. <input class="input base" bindinput='notesInput' value="{{content.notes}}" placeholder-style='font-size: 28rpx;' placeholder='请输入备注' />
  6. <view class="label">素材内容</view>
  7. <view class="input base" style="display: flex; justify-content: space-between; color: #999;">
  8. 请输入内容 <text style="color: #3874F6;" catchtap="openEditRichText">编辑/预览</text>
  9. </view>
  10. <!-- 富文本 -->
  11. <My_richText show="{{editRichText}}" bindcallback='getRichText' />
  12. <view class="label">素材分类</view>
  13. <navigator class="category base" url="#">
  14. <view>请选择素材分类</view>
  15. <van-icon name="arrow-down" />
  16. </navigator>
  17. <view class="label">素材<text>已上传2个</text></view>
  18. <view class="file-list">
  19. <view class="file-box"></view>
  20. <My_upload accept='media'>
  21. <view class="file-box"></view>
  22. </My_upload>
  23. </view>
  24. </My_card>
  25. <view style="width: 100%; text-align: center;">
  26. <van-button type="primary" custom-class='upload'>提交</van-button>
  27. </view>