商品管理更新
This commit is contained in:
parent
74c6237037
commit
8229afcc8e
|
|
@ -1,9 +1,10 @@
|
|||
<template>
|
||||
<view class="u-p-30 safe-page">
|
||||
<view class="u-p-30 safe-page min-page">
|
||||
<up-sticky v-if="option.type==='edit'" offset-top="20" zIndex="99">
|
||||
<myTabs :list="tabsList" v-model="tabsCurrent"></myTabs>
|
||||
</up-sticky>
|
||||
<view class="box">
|
||||
|
||||
<template v-if="tabsCurrent===0">
|
||||
<view class="basic">
|
||||
<uni-forms :model="FormData" :rules="rules" :border="true" label-position="top"
|
||||
|
|
|
|||
|
|
@ -109,9 +109,9 @@
|
|||
}
|
||||
function blur() {
|
||||
console.log('blur');
|
||||
setTimeout(()=>{
|
||||
popShow.value = false
|
||||
},100)
|
||||
// setTimeout(()=>{
|
||||
// popShow.value = false
|
||||
// },100)
|
||||
}
|
||||
onMounted(() => {
|
||||
setText()
|
||||
|
|
|
|||
|
|
@ -99,9 +99,9 @@
|
|||
}
|
||||
|
||||
function blur() {
|
||||
setTimeout(()=>{
|
||||
popShow.value = false
|
||||
},100)
|
||||
// setTimeout(()=>{
|
||||
// popShow.value = false
|
||||
// },100)
|
||||
}
|
||||
onMounted(() => {
|
||||
setText()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
</view>
|
||||
|
||||
<my-model :showBtn="modelData.showBtn" ref="model" @confirm="modelConfirm" :title="modelData.title" :desc="modelData.desc">
|
||||
<template #desc>
|
||||
<template #desc>
|
||||
<view class="u-p-30 u-m-t-40 u-p-b-60" v-if="specificationsData">
|
||||
<view class="u-flex u-row-between">
|
||||
<view>当前状态</view>
|
||||
|
|
@ -135,7 +135,7 @@
|
|||
specificationsData.sellOut=false
|
||||
specificationsData.index=arr[0]
|
||||
specificationsData.optionIndex=arr[1]
|
||||
modelOpen()
|
||||
// modelOpen()
|
||||
}
|
||||
function pageChange(page) {
|
||||
pageData.query.page=page-1
|
||||
|
|
|
|||
Loading…
Reference in New Issue