fix: 增加查询状态接口
This commit is contained in:
parent
2cd0d16304
commit
26e45866e5
|
@ -244,7 +244,6 @@
|
||||||
let wxauth_url = "https://openapi.1688sup.com/wechat/oauth";
|
let wxauth_url = "https://openapi.1688sup.com/wechat/oauth";
|
||||||
|
|
||||||
let pageV2 = await this.isPageV2(data, type); // 新页面,无须授权
|
let pageV2 = await this.isPageV2(data, type); // 新页面,无须授权
|
||||||
debugger
|
|
||||||
if (pageV2) {
|
if (pageV2) {
|
||||||
wxauth_url = "/goods-v2/ysf-reduce.html";
|
wxauth_url = "/goods-v2/ysf-reduce.html";
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -158,7 +158,12 @@
|
||||||
token: localStorage.getItem("token")
|
token: localStorage.getItem("token")
|
||||||
}
|
}
|
||||||
req.axiosGet(`/key/order/orderCashInfoByGoodsId/${this.goodsInfo.entity.goods_id}`, params).then(res => {
|
req.axiosGet(`/key/order/orderCashInfoByGoodsId/${this.goodsInfo.entity.goods_id}`, params).then(res => {
|
||||||
console.log("状态 =>", res)
|
if (res.code === 200) {
|
||||||
|
if (res.data.receive_status === 1 || res.data.receive_status === 2) {
|
||||||
|
this.goodsInfo.available = 9;
|
||||||
|
localStorage.setItem('goodsInfo', JSON.stringify(this.goodsInfo));
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue