|
@@ -1,35 +1,36 @@
|
|
|
<view class="head" />
|
|
|
<Yl_ListBox id='ListBox' bind:getlist='getList'>
|
|
|
- <view url="#" wx:for="{{list}}" wx:key="itemid" class="item-box">
|
|
|
- <view class="top" bindtap="changeResults" data-item="{{item}}">
|
|
|
- <view class="image">
|
|
|
- <van-image width="100%" height="100%" fit="cover" src="{{item.attinfos[0].subfiles[0].url||item.attinfos[0].url||item.cover}}" use-loading-slot use-error-slot lazy-load>
|
|
|
- <van-loading slot="loading" type="spinner" size="20" vertical />
|
|
|
- <text slot="error">加载失败</text>
|
|
|
- </van-image>
|
|
|
- </view>
|
|
|
- <view class="content">
|
|
|
- <view class="title">
|
|
|
- <text class="line-1">{{item.itemname}}</text>
|
|
|
- <text class="iconfont icon-guanlian-shanchu" catchtap="deteleItem" data-item="{{item}}" />
|
|
|
+ <van-swipe-cell wx:for="{{list}}" wx:key="itemid" id="swipe-cell" right-width="{{ 65 }}" async-close data-item="{{item}}" bind:close="deteleItem">
|
|
|
+ <view url="#" class="item-box">
|
|
|
+ <view class="top" bindtap="changeResults" data-item="{{item}}">
|
|
|
+ <view class="image">
|
|
|
+ <van-image width="100%" height="100%" fit="cover" src="{{item.attinfos[0].subfiles[0].url||item.attinfos[0].url||item.cover}}" use-loading-slot use-error-slot lazy-load>
|
|
|
+ <van-loading slot="loading" type="spinner" size="20" vertical />
|
|
|
+ <text slot="error">加载失败</text>
|
|
|
+ </van-image>
|
|
|
+ </view>
|
|
|
+ <view class="content">
|
|
|
+ <view class="title">
|
|
|
+ <text class="line-1">{{item.itemname}}</text>
|
|
|
+ <van-checkbox shape='square' disabled="{{sa_brandid && sa_brandid!=item.sa_brandid}}" icon-size='24rpx' value="{{ decide.checked(item.sa_shoppingcartid,results) }}" />
|
|
|
+ </view>
|
|
|
+ <view class="exp">编号:{{item.itemno}}</view>
|
|
|
+ <view class="exp">规格:{{item.spec ||" --"}}</view>
|
|
|
+ <view class="exp">型号:{{item.model ||" --"}}</view>
|
|
|
+ <view class="exp">品牌:{{item.brandname ||" --"}}</view>
|
|
|
+ <view class="exp">领域:{{item.tradefield_shoppingcart ||" --"}}</view>
|
|
|
+ <view class="price">{{item.showPrice}}/{{item.unitname}}</view>
|
|
|
</view>
|
|
|
- <view class="exp">编号:{{item.itemno}}</view>
|
|
|
- <view class="exp">规格:{{item.spec ||" --"}}</view>
|
|
|
- <view class="exp">型号:{{item.model ||" --"}}</view>
|
|
|
- <view class="exp">品牌:{{item.brandname ||" --"}}</view>
|
|
|
- <view class="exp">领域:{{item.tradefield_shoppingcart ||" --"}}</view>
|
|
|
- <view class="price">{{item.showPrice}}/{{item.unitname}}</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="bottom">
|
|
|
- <view class="check" bindtap="changeResults" data-item="{{item}}">
|
|
|
- <van-checkbox shape='square' disabled="{{sa_brandid && sa_brandid!=item.sa_brandid}}" icon-size='24rpx' label-class='label-class' value="{{ decide.checked(item.sa_shoppingcartid,results) }}" bind:change="onChange">
|
|
|
+ <view class="bottom">
|
|
|
+ <view class="check label-class">
|
|
|
起订量:{{item.orderminqty}},增减量:{{item.orderaddqty}}
|
|
|
- </van-checkbox>
|
|
|
+ </view>
|
|
|
+ <van-stepper value="{{ item.qty }}" min="{{item.orderminqty}}" step="{{item.orderaddqty}}" input-class='input-class' data-index="{{index}}" bind:minus='stepperChange' bind:plus='stepperChange' bind:blur='inputBlur' />
|
|
|
</view>
|
|
|
- <van-stepper value="{{ item.qty }}" min="{{item.orderminqty}}" step="{{item.orderaddqty}}" input-class='input-class' data-index="{{index}}" bind:minus='stepperChange' bind:plus='stepperChange' bind:blur='inputBlur' />
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ <view slot="right" class="cell-right">删 除</view>
|
|
|
+ </van-swipe-cell>
|
|
|
<Yl_Empty wx:if="{{list.length === 0}}" />
|
|
|
<view style="height: 200px;" />
|
|
|
</Yl_ListBox>
|