index.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <view style="padding:10px 10px 5px;">
  7. <t-search model:value="{{value}}" placeholder="根据商品名称搜索" bind:submit="search" bind:clear="clear" shape="round" />
  8. </view>
  9. <t-pull-down-refresh value="{{baseRefresh.value}}" loadingProps="{{loadingProps}}" loadingTexts="{{['下拉刷新', '松手刷新', '正在刷新', '刷新完成']}}" bind:refresh="onPullDownRefresh" bind:scrolltolower="onReachBottom">
  10. <view style="padding:10px;">
  11. <t-checkbox-group value="{{selection}}" bind:change="handleGroupChange">
  12. <t-cell wx:for="{{list}}" wx:key="itemid" title="{{item.itemname}}">
  13. <view class="avatar" slot="left-icon">
  14. <image src="{{item.attinfos[0].url}}" style="width: 60px;height: 60px;" mode="aspectFill" />
  15. </view>
  16. <view slot="description">
  17. <view class="small">
  18. 商品编号:{{item.itemno}}
  19. </view>
  20. <view class="small">
  21. 商品型号:{{item.model}}
  22. </view>
  23. </view>
  24. <view class="avatar" slot="right-icon">
  25. <t-checkbox value="{{item.itemid}}" />
  26. </view>
  27. </t-cell>
  28. </t-checkbox-group>
  29. <Yl_Empty wx:if="{{list.length==0}}" />
  30. <view style="height: 180px;"></view>
  31. </view>
  32. </t-pull-down-refresh>
  33. <view class="footer">
  34. <view class="count" />
  35. <view class="but-box">
  36. <van-button disabled='{{selection.length == 0}}' custom-class='but delete' bind:click="refresh">重 置</van-button>
  37. <van-button disabled='{{selection.length == 0}}' custom-class='but' bind:click="onConfirm">添加选中的商品</van-button>
  38. </view>
  39. </view>
  40. <!-- <view wx:if="{{selection.length > 0}}" style="padding:10px 10px 0 10px" class="flex-align-center flex-between">
  41. <t-button size="small" variant="text" bind:tap="refresh">重 置</t-button>
  42. <t-button theme="primary" size="small" variant="text" bind:tap="onConfirm">添加选中的商品</t-button>
  43. </view>
  44. -->