index.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <!--pages/agent/billCanUseProduct/index.vue.wxml-->
  2. <van-tabs title-active-color='var(--assist)' color='var(--assist)' bind:change='tabChange' >
  3. <van-tab title="服务单产品" />
  4. <van-tab title="产品库" />
  5. </van-tabs>
  6. <t-pull-down-refresh value="{{baseRefresh.value}}" loadingProps="{{loadingProps}}" loadingTexts="{{['下拉刷新', '松手刷新', '正在刷新', '刷新完成']}}" bind:refresh="onPullDownRefresh" bind:scrolltolower="onReachBottom">
  7. <view style="padding:10px">
  8. <t-search model:value="{{value}}" placeholder="根据商品名称搜索" bind:submit="search" bind:clear="clear" shape="round" />
  9. <view wx:if="{{selection.length > 0}}" style="padding:10px 10px 0 10px" class="flex-align-center flex-between">
  10. <t-button size="small" variant="text" bind:tap="refresh">重 置</t-button>
  11. <t-button theme="primary" size="small" variant="text" bind:tap="onConfirm">添加选中的商品</t-button>
  12. </view>
  13. <t-checkbox-group value="{{selection}}" bind:change="handleGroupChange">
  14. <t-cell wx:for="{{list}}" wx:key="itemid" title="{{item.itemname}}">
  15. <view class="avatar" slot="left-icon">
  16. <image src="{{item.attinfos[0].url}}" style="width: 60px;height: 60px;" mode="aspectFill" />
  17. </view>
  18. <view slot="description">
  19. <view class="small">
  20. 商品编号:{{item.itemno}}
  21. </view>
  22. <view class="small">
  23. 商品型号:{{item.model}}
  24. </view>
  25. </view>
  26. <view class="avatar" slot="right-icon">
  27. <t-checkbox value="{{item.itemid}}" />
  28. </view>
  29. </t-cell>
  30. </t-checkbox-group>
  31. </view>
  32. </t-pull-down-refresh>