@@ -312,11 +312,11 @@ export default {
// 置顶
sticktop(id) {
console.log(id);
- this.$http.put('/goods/changeSort',{
- id: id,
- sort: -1
- }).then(res=>{
+ this.$http.PUT("/goods/changeSort?id="+id+'&sort=-1').then(res=>{
console.log(res);
+ if (res.code === 200) {
+ this.getTicketShopList()
+ }
})
},
// 跳转详情
@@ -211,6 +211,15 @@ export default class Request {
}
+ PUT (url,data,options={}){
+ return this.request({
+ url,
+ data,
+ method: 'PUT',
+ ...options
+ })
+
// #ifndef MP-ALIPAY
put (url, data, options = {}) {
return this.request({