You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
3.3 KiB
61 lines
3.3 KiB
<!--pages/goods/index/index.wxml-->
|
|
<wxs module="formate" src="../../../../pages/formate.wxs"></wxs>
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">采购管理</view>
|
|
</cu-custom>
|
|
|
|
<view class="bg-white" style="top:{{CustomBar}}px;height:90rpx">
|
|
<wux-tabi scroll="{{cateScroll}}" tab-data="{{tabiList}}" tab-index="{{pageIndex}}" bind:change="onCategoryChange"></wux-tabi>
|
|
</view>
|
|
|
|
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchGoodsList">
|
|
<view wx:if="{{!orderList.length}}">
|
|
<view class="list-empty" style="height:{{height}}rpx">
|
|
<view class="load-spinner text-gray" style="margin-bottom:24px" wx:if="{{loading}}" />
|
|
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
|
|
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
|
|
</view>
|
|
</view>
|
|
<view wx:else>
|
|
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex">
|
|
<view wx:for="{{pageItem}}" wx:key="index">
|
|
<wux-divider show-text="{{ false }}" wx:if="{{pageIndex != 0 || index != 0 }}"></wux-divider>
|
|
<view class="flex item-content" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem">
|
|
<wux-image width="{{100}}" height="{{100}}" shape="rounded" lazyLoad="true" src="{{item.coverImgUrl}}" mode="aspectFill">
|
|
<image class="image-load" slot="loading" src="/assets/image/def_image.png"></image>
|
|
<image class="image-load" slot="error" src="/assets/image/def_image.png"></image>
|
|
<image class="image-load" slot="empty" src="/assets/image/def_image.png"></image>
|
|
</wux-image>
|
|
<view style="flex:1;padding-left:20rpx;padding-top:8rpx;height:100px">
|
|
<view class="flex flex-justify" style="height:20px;">
|
|
<view class="page-name">{{item.secondCategoryName}}</view>
|
|
<view class="page-num" wx:if="{{item.locCityName}}">{{item.locProvinceName + item.locCityName}}</view>
|
|
</view>
|
|
<view style="height:50px">
|
|
<view class="page-outline">{{item.description || ''}}</view>
|
|
</view>
|
|
<view class="flex flex-justify">
|
|
<view class="page-price">{{item.unitPrice ? '¥' + formate.formatePrice(item.unitPrice, kg) : '价格面议'}}</view>
|
|
<view class="flex">
|
|
<wux-button outline size="tag" data-page="{{pageIndex}}" data-index="{{index}}" bind:click="editItem" wx:if="{{item.status == 2}}">编辑</wux-button>
|
|
<wux-button outline style="margin-left:9px" size="tag" data-page="{{pageIndex}}" data-index="{{index}}" bind:click="shelvesItem">{{item.status == 2 ? '上架': '下架'}}</wux-button>
|
|
<wux-button style="margin-left:9px" size="tag" type="positive" data-page="{{pageIndex}}" data-index="{{index}}" bind:click="removeItem" wx:if="{{item.status == 2}}">删除</wux-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!--加载更多的UI-->
|
|
<view wx:if="{{form.pageNum>1}}" style="padding:20rpx">
|
|
<wux-divider>
|
|
<view class="loadmore">
|
|
<text class="icon--refresher" wx:if="{{!finished}}"></text>
|
|
<text class="text-sm" style="margin-left:8rpx">{{finished?'到底啦~':'加载中...'}}</text>
|
|
</view>
|
|
</wux-divider>
|
|
</view>
|
|
</view>
|
|
</refresh-view>
|
|
|
|
<wux-dialog id="wux-dialog" />
|