index.wxml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <view class="container">
  2. <!-- 导航栏 -->
  3. <van-nav-bar custom-style="background-color: #407DB8">
  4. <van-icon slot="left" name="arrow-left" size="25px" color="#fff" bind:click="backToParent"/>
  5. <text slot="title" style="color: #fff;">求购信息</text>
  6. </van-nav-bar>
  7. <!-- 我的仓单 -->
  8. <view class="wrPostionList">
  9. <!-- 数据 -->
  10. <van-swipe-cell>
  11. <view class="item-view">
  12. <view class="item-view-up">
  13. <text wx:for="{{ orderValue.up }}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{ data }}</text>
  14. </view>
  15. <view class="item-view-dwn">
  16. <text wx:for="{{ orderValue.dwn }}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{ data }}</text>
  17. </view>
  18. <view class="item-view__step">
  19. <view class="item-view__step__item" wx:for="{{ tmp.LstStep }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">
  20. <text style="color: white; background-color: {{ colors[idx] }};">{{ itm.stepinfo }}</text>
  21. <text>{{ itm.stepdate }}</text>
  22. </view>
  23. </view>
  24. </view>
  25. </van-swipe-cell>
  26. <text class="mydiamon">我的钻石</text>
  27. <!-- 列头 -->
  28. <view class="title-view">
  29. <view class="title-view-up">
  30. <text wx:for="{{ titles[0] }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">{{ itm }}</text>
  31. </view>
  32. <view class="title-view-dwn">
  33. <text wx:for="{{ titles[1] }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">{{ itm }}</text>
  34. </view>
  35. </view>
  36. <!-- 数据 -->
  37. <van-swipe-cell wx:for="{{ values }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx" bind:click="onSelectItem" id="{{ idx }}">
  38. <view class="item-view {{ values[idx].isChecked ? 'active' : '' }}">
  39. <view class="item-view-up">
  40. <text wx:for="{{ itm.up }}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{ data }}</text>
  41. </view>
  42. <view class="item-view-dwn">
  43. <text wx:for="{{ itm.dwn }}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{ data }}</text>
  44. </view>
  45. </view>
  46. </van-swipe-cell>
  47. <!-- empty -->
  48. <van-empty wx:if="{{ isEmpty }}" class="custom-image" description="无数据"/>
  49. </view>
  50. <!-- 操作视图 -->
  51. <view class="container__operator">
  52. <van-cell-group in>
  53. <van-field label="汇率:" readonly value="{{ rate }}" />
  54. <van-field label="价格(¥)" type="digit" clearable required adjust-position placeholder="请输入价格" model:value="{{ applyPrice }}" bind:input="getInputNum"/>
  55. <van-field label="备注:" clearable adjust-position placeholder="请输入备注信息" model:value="{{ remark }}" />
  56. </van-cell-group>
  57. </view>
  58. <!-- 提交按钮视图 -->
  59. <view class="button-view" style="padding-bottom: {{ safeBottom }}px;">
  60. <van-button id="close" block round color="#407DB8" bind:click="doDelistingBuy">确认摘牌</van-button>
  61. </view>
  62. </view>