背景图设置
This commit is contained in:
@@ -22,6 +22,8 @@ const API = {
|
||||
// 百科
|
||||
getArticleList:data => net.GET("/article/list",data),// 百科列表
|
||||
getArticleDetail:(data,userId) => net.GET("/article/"+data.id,null,true,{"userId":userId}),// 文章详情
|
||||
getArticleFavorite:(data,userId) => net.POST("/favorite",data,true,{"userId":userId}),// 收藏文章
|
||||
delArticleFavorite:(data,userId) => net.DELETE("/favorite",data,true,{"userId":userId}),// 取消收藏文章
|
||||
// 我的
|
||||
getStarList:data => net.GET("/favorite/list",data),// 收藏列表
|
||||
/*
|
||||
@@ -40,6 +42,7 @@ const API = {
|
||||
getCategoryList:data => net.GET('/api/goods_category/lists'), // 获取商品分类
|
||||
getCategory:data => net.GET('/api/goods/category',data), // 根据分类Id获取分类商品
|
||||
getCartList:data => net.GET('/api/cart/lists',data), // 获取购物车列表
|
||||
getBgList:data => net.GET('/poster/list',data), // 获取测试结果背景图列表
|
||||
addCart:data => net.POST('/api/cart/add',data), // 加入购物车
|
||||
delCart:data => net.POST('/api/cart/delete',data), // 删除购物车
|
||||
updateCart:data => net.POST('/api/cart/edit',data), // 更新购物车
|
||||
|
@@ -1,7 +1,8 @@
|
||||
import config from '../config'
|
||||
|
||||
// import store from '../store'
|
||||
|
||||
// import {useStore} from '@/store/index.js'
|
||||
// console.log(useStore)
|
||||
// const store = useStore()
|
||||
const loginUrl = 'pages/user/login';
|
||||
// function JSON_to_URLEncoded(element,key,list){
|
||||
// var list = list || [];
|
||||
@@ -75,6 +76,20 @@ export default {
|
||||
});
|
||||
}
|
||||
}
|
||||
// if(res.data.code === 7) { // 登录失败
|
||||
// uni.showToast({
|
||||
// title:res.msg,
|
||||
// icon:"error",
|
||||
// duration:2000,
|
||||
// mask:true,
|
||||
// success() {
|
||||
// if(res.code === 7) // 登录失败
|
||||
// {
|
||||
// store.afterFailLogin(2000)
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
return res.data;
|
||||
} else {
|
||||
const reg = /abort/;
|
||||
|
Reference in New Issue
Block a user