商品管理更新
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
<view class="u-m-t-24">
|
||||
<template v-if="data.skuList.length>=2">
|
||||
<view class="u-flex u-flex-wrap w-full gap-10 u-col-top">
|
||||
<view class="u-font-24 info-p-l u-m-t-14">规格:</view>
|
||||
<view class="u-font-24 info-p-l u-m-t-6">规格:</view>
|
||||
<view class="skd" v-for="(item,index) in data.skuList" :key="index"
|
||||
@click="guigeClick(index)">
|
||||
<text>{{item.specSnap||item.name}}</text>
|
||||
@@ -325,7 +325,7 @@
|
||||
}
|
||||
|
||||
.skd {
|
||||
padding: 20rpx 20rpx 14rpx 20rpx;
|
||||
padding: 10rpx 38rpx 8rpx 40rpx;
|
||||
background: #F0F2F5;
|
||||
border-radius: 4rpx;
|
||||
position: relative;
|
||||
@@ -339,9 +339,10 @@
|
||||
right: 0;
|
||||
top: 0;
|
||||
font-size: 12rpx;
|
||||
height: 18rpx;
|
||||
line-height: 18rpx;
|
||||
right: 0;
|
||||
padding: 2rpx 4rpx;
|
||||
border-radius: 0rpx 4rpx 4rpx 4rpx;
|
||||
border-radius: 0rpx 2rpx 2rpx 8rpx;
|
||||
}
|
||||
|
||||
.tag-primary {
|
||||
|
||||
@@ -50,8 +50,11 @@
|
||||
<template v-if="pageData.hasAjax&&!pageData.goodsList.length">
|
||||
<my-img-empty tips="未找到相关商品"></my-img-empty>
|
||||
</template>
|
||||
<my-pagination :totalElements="pageData.totalElements" :size="pageData.query.size"
|
||||
@change="pageChange"></my-pagination>
|
||||
<template v-if="pageData.goodsList.length">
|
||||
<my-pagination :totalElements="pageData.totalElements" :size="pageData.query.size"
|
||||
@change="pageChange"></my-pagination>
|
||||
</template>
|
||||
|
||||
<view style="height: 100rpx;"></view>
|
||||
</view>
|
||||
|
||||
@@ -476,11 +479,15 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function resetQuery(){
|
||||
pageData.totalElements=0;
|
||||
pageData.query.page=0;
|
||||
}
|
||||
|
||||
function statesTableClick(index) {
|
||||
|
||||
pageData.stateCurrent = index
|
||||
pageData.stateCurrent = index;
|
||||
resetQuery()
|
||||
console.log(index);
|
||||
if(index==0){
|
||||
pageData.query.isPauseSale=''
|
||||
@@ -540,6 +547,7 @@
|
||||
|
||||
function searchFunc() {
|
||||
console.log('searchFunc');
|
||||
resetQuery()
|
||||
getGoodsList()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user