商品权证管理新增数据统计

This commit is contained in:
唐明明
2021-11-05 18:07:10 +08:00
parent 786419212f
commit 33098708f2
5 changed files with 318 additions and 224 deletions

View File

@@ -2,10 +2,10 @@
<view class="content">
<!-- 分类 -->
<view class="tabs">
<view class="item" :class="{'show': status == '0'}" @click="onTabs('0')">已发布</view>
<view class="item" :class="{'show': status == '1'}" @click="onTabs('1')">待认证</view>
<view class="item" :class="{'show': status == '2'}" @click="onTabs('2')">审核中</view>
<view class="item" :class="{'show': status == '3'}" @click="onTabs('3')">已驳回</view>
<view class="item" :class="{'show': status == '0'}" @click="onTabs('0')">已发布({{count[0]}})</view>
<view class="item" :class="{'show': status == '1'}" @click="onTabs('1')">待认证({{count[1]}})</view>
<view class="item" :class="{'show': status == '2'}" @click="onTabs('2')">审核中({{count[2]}})</view>
<view class="item" :class="{'show': status == '3'}" @click="onTabs('3')">已驳回({{count[3]}})</view>
</view>
<!-- 优选商品 -->
<goodsList :list="goods" priceType="CNY" :status='status' toast="暂无产品权证" notag='has'>
@@ -59,14 +59,15 @@
},
data() {
return {
count : [],
status : 0,
goods : [],
pages : {},
itemGoods : {},
stock : 1,
stockType : '',
page:1,
has_more :true,
page :1,
has_more :true,
};
},
onLoad() {
@@ -107,9 +108,14 @@
status: this.status,
page:this.page
}).then(res => {
this.goods = this.goods.concat(res.data)
this.pages = res.page
this.has_more = res.page.has_more
let countArr = new Array
for(let key in res.count){
countArr.push(key)
}
this.count = res.count
this.goods = this.goods.concat(res.list.data)
this.pages = res.list.page
this.has_more = res.list.page.has_more
uni.setStorageSync('refresh',false)
}).catch(err => {
uni.showToast({

View File

@@ -183,6 +183,14 @@
<image class="tool-label-img" src="/static/user/userTool-01.png" mode=""></image>
<view class="tool-label-name">优惠券管理</view>
</view>
<view class="tool-label" v-if="permission.manageCoupons" @click="$Router.push({name: ''})">
<image class="tool-label-img" src="/static/user/userTool-07.png" mode=""></image>
<view class="tool-label-name">退换货管理</view>
</view>
<view class="tool-label" v-if="permission.manageCoupons" @click="$Router.push({name: ''})">
<image class="tool-label-img" src="/static/user/userTool-08.png" mode=""></image>
<view class="tool-label-name">发货单管理</view>
</view>
<view class="tool-label" @click="$Router.push({name: 'instrumentSpread'})">
<image class="tool-label-img" src="/static/user/userTool-02.png" mode=""></image>
<view class="tool-label-name">营销推广码</view>

BIN
static/user/userTool-07.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/user/userTool-08.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 975 B

File diff suppressed because one or more lines are too long