修复bug
This commit is contained in:
parent
e3e2cf0613
commit
580ea81154
|
@ -237,6 +237,7 @@
|
|||
editGoodsStore: '',
|
||||
editGoodsShow: false, // 扫码修改商品信息
|
||||
mer_id: 0,
|
||||
userInfo: {},
|
||||
searchGoodsShow: false,
|
||||
searchGoodsName: '',
|
||||
showModel: false,
|
||||
|
@ -283,6 +284,8 @@
|
|||
},
|
||||
onLoad(e) {
|
||||
this.mer_id = e.mer_id
|
||||
this.userInfo = this.$store.state.app.userInfo;
|
||||
if(typeof this.userInfo == 'string') this.userInfo = JSON.parse(this.userInfo);
|
||||
},
|
||||
onShow() {
|
||||
|
||||
|
@ -343,7 +346,7 @@
|
|||
delete item.stock;
|
||||
console.log({...item});
|
||||
uni.navigateTo({
|
||||
url: '/pages/product/addGood/addGood?mer_id=42&import=1',
|
||||
url: `/pages/product/addGood/addGood?mer_id=${this.userInfo.service.mer_id}&import=1`,
|
||||
success: (e) => {
|
||||
e.eventChannel.emit('importAttrValue', item);
|
||||
uni.$once('importAttrValueOK', (e)=>{
|
||||
|
|
Loading…
Reference in New Issue