Commit 21b3b089 by cpa

商家端

parent c3e8b019
......@@ -380,18 +380,32 @@
this.clearData()
}
this.loading = true
let userInfo= JSON.parse(sessionStorage.getItem("linshenxs-userInfo"))
let account=userInfo.content.username
this.$axios.get("/admin/merchantMallGoods/merchantDropDownBox",{
params:{merchantId:userInfo.content.username},
}).then(response => {
console.log(JSON.stringify(response) )
return response.data
}, error => {
console.log('错误', error.message)
})
getClassifyDropDown()
.then(r => {
this.classOptions = this.zmRes(r)
if(DBG) {
this.refill(mock)
} else {
if(id != undefined) {
this.flags=true
return getGoodsDetails({id: id})
}
}
return Promise.resolve()
})
.then(r => {
this.loading = false
if(r) {
let z = this.zmRes(r)
if(z) {
this.refill(z)
}
}
})
.catch(e => {
this.loading = false
})
},
//清除数据
clearData() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment