index.wxml 1.5 KB

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