axios.get(this.apiUrl+'good/info',{params:{'goodsid':'sp441153'}})
.then(function(response){
console.log(response);
_this.pics=response.data.data.pics;
_this.message=response.data.data;
_this.goodsAttr=response.data.data.goods_attr;
_this.colorList=response.data.data.color_list;
_this.sizeList=response.data.data.size_list;
})
.catch(function(response) {
console.log(response);
})
相关文章
- Axios使用get/post的请求、封装、发起跨域请求、
- axios发送get、post请求的几种方式
- axios的get请求和post请求的传参方式、拦截器
- ajax的get和post请求 -- 基于flask 简单示例
- 【vue】创建项目之vue init 和 vue create的区别
- Vue项目中proxyTable解决axios的baseURL跨域问题
- vue axios 怎么也获取不了后台传过来的session 求大神指教
- vue填坑指南之模板的使用
- socket 错误之:OSError: [WinError 10057] 由于套接字没有连接并且(当使用一个 sendto 调用发送数据报套接字时)没有提供地址,发送或接收数据的请求没有被接受。...
- Vue的学习总结之---Vue项目 前后端分离模式解决开发环境的跨域问题