12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <!--pages/goodsbank/goodsbank.wxml-->
- <!-- 导航栏 -->
- <nav-bar navbar-data="{{navbarData}}"></nav-bar>
- <!-- 顶部栏 -->
- <view class="top">
- <view class="search-bar">
- <van-icon name="search" style="font-size: 28rpx;color: #A4A4A4;margin-left: 40rpx;" />
- <input type="text" value="{{goodName}}" bindinput="searchGood" placeholder="搜索" placeholder-style="color:#989898;font-size:28rpx;"></input>
- </view>
- </view>
- <!-- 商品库 -->
- <view class="body" style="margin-bottom: 158rpx;">
- <!-- 左侧 -->
- <view class="lefts">
- <view wx:for="{{sidetabs}}" bindtap="sidetap" style="background-color: {{sideindex == index?'white':''}};color: {{sideindex == index?'#464646':''}};" data-index="{{index}}">
- <text>{{item.classification_name}}</text>
- </view>
- </view>
- <!-- 右侧 -->
- <view class="rights">
- <!-- 右侧顶部分类 -->
- <!-- <view class="category">
- <scroll-view scroll-x="true" class="scroll-category">
- <view wx:for="{{categorys}}" style="background-color: {{index === categoryIndex ? '#FF874E' : '#EFEFEF'}};color: {{index === categoryIndex ? '#FFFFFF' : '#656565'}};" data-index="{{index}}" catchtap="chooseCategory">{{item.name}}</view>
- </scroll-view>
- </view> -->
- <view class="goods" style="width: 92%;">
- <!-- 商品卡片-管理模式-start -->
- <van-checkbox-group value="{{ checkBoxResult }}" bind:change="checkBoxChange">
- <van-checkbox use-icon-slot wx:for="{{goods}}" name="{{item.id}}">
- <view class="goods-info">
- <view class="g-left">
- <van-image width="174rpx" fit="cover" height="174rpx" src="{{item.commodity_img[0]}}" />
- </view>
- <view class="g-right" style="width: 308rpx;height: 100%;">
- <view class="g-title">
- <image src="/images/sell.png" wx:if="{{item.help_sell === 1}}"></image>
- <text>{{item.commodity_name}}</text>
- </view>
- <view class="g-guige" wx:if="{{item.help_sell === 0 && item.specifications !== null}}">
- <p>规格:{{item.specifications[0].title}} </p>
- <p>/份</p>
- </view>
- <view class="g-start" wx:if="{{item.help_sell === 1}}">
- 起购{{item.starting_purchase}}份
- </view>
- <view class="g-price" wx:if="{{item.help_sell === 0}}">
- <view><text>C${{item.scribe_price}}</text></view>
- <view><text>C${{item.price}}</text></view>
- </view>
- <view class="g-price2" wx:if="{{item.help_sell === 1}}">
- <view style="line-height: 32rpx;">
- <text>批发:C${{item.step_price}}\n零售:C${{item.retail_price}}</text>
- </view>
- </view>
- </view>
- </view>
- <image wx:if="{{item.xuan}}" slot="icon" style="width: 34rpx;height: 34rpx;" src="/images/checked.png" />
- <image wx:if="{{!item.xuan}}" slot="icon" style="width: 34rpx;height: 34rpx;" src="/images/unchecked.png" />
- </van-checkbox>
- </van-checkbox-group>
- <!-- 商品卡片-管理模式-end -->
- </view>
- </view>
- </view>
- <!-- 底部栏 -->
- <view class="foot">
- <view class="manage-checkbox">
- <view class="manage-checkbox-inner">
- <!-- 全选 -->
- <view class="manage-checkbox-inner-left" wx:if="{{checkedAll}}" bindtap="cancleAll">
- <image src="/images/checked.png"></image>
- <text>取消</text>
- </view>
- <!-- 取消全选 -->
- <view class="manage-checkbox-inner-left" wx:if="{{!checkedAll}}" bindtap="selectAll">
- <image src="/images/unchecked.png"></image>
- <text>全选</text>
- </view>
- <!-- 按钮组 -->
- <view class="manage-checkbox-inner-right">
- <view class="button-1">
- <text catchtap="addToApplyList">确认添加到申请列表</text>
- </view>
- </view>
- </view>
- </view>
- </view>
|