Compare commits

..

No commits in common. "c4e545d92d8604995f57e64dff0ab45d56011cbf" and "1d63aad673cdc4270087229f1146e9fdbb10a75f" have entirely different histories.

2 changed files with 4 additions and 30 deletions

View File

@ -844,9 +844,7 @@
},
async onLoad() {
// #ifdef APP
this.subNVue = uni.getSubNVueById('concat')
// #endif
this.Fheight = uni.getSystemInfoSync().windowHeight + 'px';
await this.$onLaunched;
this.list1();

View File

@ -49,12 +49,12 @@
v-if='where.type==6||where.type==5||where.type==7||where.type==2'>
删除
</view>
<view v-if="where.type==2 && where.type != 5"
<view v-if="where.type==2"
style="border-right: 1px solid #CECECE;flex: 1;text-align: center;"
@click="Fline(item)">
修改库存
</view>
<view v-if="where.type!=2 && where.type != 5" style="border-right: 1px solid #CECECE;flex: 1;text-align: center;"
<view v-else style="border-right: 1px solid #CECECE;flex: 1;text-align: center;"
@click="Fline(item)">
修改库存
</view>
@ -68,12 +68,9 @@
@click="handleShelves(item,1)">
上架
</view>
<view v-if="where.type != 5" style="flex: 1;text-align: center;" @click="editGoods(item)">
<view style="flex: 1;text-align: center;" @click="editGoods(item)">
编辑商品
</view>
<view v-if="where.type == 5" style="flex: 1;text-align: center;" @click="handleRestore(item)">
恢复
</view>
</view>
<view class="card-footer" v-if='where.type==1'>
<view class="card-footer-li" style="flex: 1.5;">
@ -217,8 +214,7 @@
productRecommendApi,
productUpdateFree,
productTitle,
productDestory,
productRestore
productDestory
} from "@/api/product";
import {
labelLst
@ -855,26 +851,6 @@
})
this.showOverly = false
},
handleRestore(item) {
let index = this.productList.findIndex(items => items.product_id == item.product_id)
let that = this
productRestore(that.mer_id, item.product_id)
.then(res => {
that.$util.Tips({
title: res.message,
icon: 'success'
});
that.getList(this.mer_id, true)
// this.$set(this, 'num', -1);
})
.catch(rej => {
this.$set(this, 'num', -1);
Toast(`${rej}, 删除失败`);
})
this.showOverly = false
},
// 0