index.wxml 1.6 KB

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