|
|
|
@ -24,15 +24,18 @@ |
|
|
|
<view v-for="(item, index) in listData" :key="index" > |
|
|
|
<view class="content" @click="detailInfo(item)"> |
|
|
|
<image class="image" :src="item.litPicUrl" mode=""></image> |
|
|
|
<view class=""> |
|
|
|
<view class="" style="width: 100%;"> |
|
|
|
<view class="title"> |
|
|
|
<view class="">{{ item.brandName }}</view> |
|
|
|
<view class=""> |
|
|
|
<image class="icon" :src="item.status === 1 ? '/static/imgs/mall/grounding-icon.png' : '/static/imgs/mall/sold-out-icon.png'" mode=""></image> |
|
|
|
<image class="icon" :src="item.status === 30111 ? '/static/imgs/mall/grounding-icon.png' : '/static/imgs/mall/sold-out-icon.png'" mode=""></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="sub-title">{{ item.categoryName }}/{{ item.name }}/{{ item.manufacturerName }}</view> |
|
|
|
<view class="desc">克重(价格):200(3900) 235(3900) 255(390 0)255(390</view> |
|
|
|
<view class="desc"> |
|
|
|
克重(价格): |
|
|
|
<text v-for="(sku,index) in item.skuList">{{sku.weight}}({{sku.listPrice}})</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="other"> |
|
|
|
@ -40,7 +43,7 @@ |
|
|
|
<view class="btn"> |
|
|
|
<view class="" @click="editPaper(item)">编辑</view> |
|
|
|
<view class="divide"></view> |
|
|
|
<view class="" @click="productStatusChange(item)">{{ item.status === '30111' ? '下架' : '上架' }}</view> |
|
|
|
<view class="" @click="productStatusChange(item)">{{ item.status === 30111 ? '下架' : '上架' }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<uGap></uGap> |
|
|
|
@ -169,7 +172,7 @@ export default { |
|
|
|
productStatusChange(item) { |
|
|
|
var params = { |
|
|
|
id: item.id, |
|
|
|
status: item.status === '30111' ? '30112' : '30111' |
|
|
|
status: item.status === 30111 ? 30112 : 30111 |
|
|
|
} |
|
|
|
productStatus(params).then(res => { |
|
|
|
if (res) { |
|
|
|
@ -177,8 +180,11 @@ export default { |
|
|
|
title: '状态修改成功', |
|
|
|
icon: 'success' |
|
|
|
}) |
|
|
|
this.orderPagination.pageNum = 1 |
|
|
|
this.quertData() |
|
|
|
setTimeout(()=>{ |
|
|
|
this.orderPagination.pageNum = 1 |
|
|
|
this.quertData() |
|
|
|
},500) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
|