append.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!--pages/append/append.wxml-->
  2. <!-- title -->
  3. <view class="title">
  4. <!-- 标题 -->
  5. <view style="float: left; font-weight: 700; font-size: 45rpx; margin-top: 10rpx;">发布商品</view>
  6. <!-- 存草稿--缓存 -->
  7. <!-- <view style="float: left; margin-left: 300rpx; margin-top: 20rpx;">存草稿</view> -->
  8. <!-- 发布 -->
  9. <view style="float: right;" bind:tap="upData">
  10. <van-button round type="info">发布</van-button>
  11. </view>
  12. </view>
  13. <!-- 商品描述模块 -->
  14. <view class="discribe">
  15. <view>
  16. <textarea placeholder="标题" style="width: 690rpx; height: 100rpx;" bindinput="titleInput"/>
  17. </view>
  18. <view class="textLine">
  19. <!-- <input type="text" placeholder="描述一下商品..."/> -->
  20. <textarea placeholder="描述一下商品..." style="width: 690rpx;" bindinput="describeInput"/>
  21. </view>
  22. <!-- 选择图片 -->
  23. <view class="upLoad">
  24. <!-- <van-image fit="cover" width="100" height="100" src="{{goodsURL}}" bindtap="chooseImage" style="float: left;"/> -->
  25. <van-uploader file-list="{{ fileList }}" bind:after-read="afterRead" max-count="3" deletable="{{true}}"/>
  26. </view>
  27. </view>
  28. <!-- 商品导航栏 -->
  29. <view class="navigation">
  30. <view class="nav nav_price">
  31. <text style="float: left; font-weight: 600;">价格</text>
  32. <view style="float: left; margin-left: 540rpx; margin-top: -50rpx; position: relative;">
  33. <input type="number" placeholder="¥0.00" bindinput="numInput"/>
  34. </view>
  35. </view>
  36. <view class="nav">
  37. <text style="float: left; font-weight: 600; margin-top: 8rpx;">交易地点</text>
  38. <view style="float: left; margin-left: 310rpx; margin-top: -50rpx; margin-right: -70rpx; position: relative;">
  39. <input type="number" placeholder=" 地点" bindinput="adressInput"/>
  40. </view>
  41. </view>
  42. <view class="nav">
  43. <text style="float: left; font-weight: 600; margin-top: 8rpx;">分类选择</text>
  44. <van-icon name="arrow" style="float: right; margin-top: 20rpx;" bind:tap="popChange"/>
  45. <van-popup show="{{ popShow }}" position="bottom" custom-style="height: 50%;overflow:hidden">
  46. <van-picker value-key="{{valueKeyName}}" id="picker" show-toolbar title="{{label}}" columns="{{ columns }}" bind:cancel="onCancel" bind:confirm="onConfirm" />
  47. </van-popup>
  48. <view style="float: right; margin-top: 10rpx; margin-right: 10rpx;">{{valueKeyName}}</view>
  49. </view>
  50. </view>