GET请求要使用params:
mounted(){
var that = this;
this.$axios.get(this.NM + "/index/mch/orderHexiaoLists",{
params:{
mch_id:3,
page:1,
limit:100
}
})
.then(function(response) {
console.log("获取核销商品列表", response.data);
if(response.data.code == 200){
// that.couponData = response.data.data.data;
}
})
.catch(function(error) {
console.log(error);
});
}
POST请求不需要:
mounted(){
var that = this;
this.$axios.get(this.NM + "/index/mch/orderHexiaoLists",{
mch_id:3,
page:1,
limit:100
})
.then(function(response) {
console.log("获取核销商品列表", response.data);
if(response.data.code == 200){
// that.couponData = response.data.data.data;
}
})
.catch(function(error) {
console.log(error);
});
}