This commit is contained in:
2024-04-09 08:56:34 +08:00
parent 53aa029391
commit 7cf3af639d
3 changed files with 202 additions and 98 deletions

View File

@@ -17,12 +17,12 @@
<scroll-view v-if="dataList.length" class="list" :scroll-y="true" @scrolltolower="lower">
<view class="item" v-for="item,index in dataList" :key="index">
<view class="header" @click="toDetails(item)">
<view class="header">
<view class="identifying"
:style="{background:identifying[item.productStatus].background,
opacity:identifying[item.productStatus].opacity}">{{item.productStatus =='1'?'已上架':'未上架'}}</view>
</view>
<view class="introduce" @click="toDetails(item)">
<view class="introduce">
<image :src="item.url"></image>
<view>{{item.productName}}</view>
<view>规格默认</view>
@@ -192,11 +192,11 @@
}, '')
return text
},
toDetails(item) {
uni.navigateTo({
url: `../orderDetails/index?orderId=${item.id}`
})
},
// toDetails(item) {
// uni.navigateTo({
// url: `../orderDetails/index?orderId=${item.id}`
// })
// },
getTopInfo(){
serve.getTopInfo(this.paramter).then(res => {
if (res.code === 20000) {
@@ -246,7 +246,7 @@
uni.navigateTo({
url: `../productUpdate/index?id=${item.id}`
})
},
upDownFrame(item) {
this.productData = item
@@ -260,7 +260,7 @@
}else if(this.productData.productStatus ==2){
data.productStatus = 1
}
serve.productStatus(data).then(res=>{
uni.showToast({
title: res.msg,
@@ -489,7 +489,7 @@
width: 160rpx;
}
}
.header{
font-size: 32rpx;
color: #000;