商家列表,商家主页,我的团队
This commit is contained in:
@@ -137,6 +137,8 @@ const errToast = (code) => {
|
||||
// 更新token
|
||||
const updateToken = (token) => {
|
||||
store.commit('setToken', token)
|
||||
// 清除退出登录标识
|
||||
uni.removeStorageSync('isnew')
|
||||
}
|
||||
|
||||
// 处理登录提示
|
||||
|
||||
@@ -15,7 +15,6 @@ const life = () =>{
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export {
|
||||
life
|
||||
}
|
||||
|
||||
@@ -21,16 +21,33 @@ const goods = id => {
|
||||
})
|
||||
}
|
||||
|
||||
// 套餐列表
|
||||
const meals = (id, categoryId) => {
|
||||
// 店铺列表
|
||||
const shops = (categoryId) => {
|
||||
return request({
|
||||
url: 'mall/meals/' + id,
|
||||
url: 'mall/shops',
|
||||
data: {
|
||||
category_id: categoryId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 店铺详情
|
||||
const shopsDetail = (shopId) => {
|
||||
return request({
|
||||
url: 'mall/shops/' + shopId,
|
||||
})
|
||||
}
|
||||
|
||||
// 店铺商品
|
||||
const shopsGoods = (shop_id) => {
|
||||
return request({
|
||||
url: 'mall/goods',
|
||||
data: {
|
||||
shop_id
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 商品列表
|
||||
const lists = data => {
|
||||
return request({
|
||||
@@ -66,7 +83,9 @@ const classify = id => {
|
||||
export {
|
||||
mall,
|
||||
goods,
|
||||
meals,
|
||||
shops,
|
||||
shopsDetail,
|
||||
shopsGoods,
|
||||
lists,
|
||||
buy,
|
||||
verify,
|
||||
|
||||
21
apis/interfaces/team.js
Normal file
21
apis/interfaces/team.js
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
/**
|
||||
* Web唐明明
|
||||
* 匆匆数载恍如梦,岁月迢迢华发增。
|
||||
* 碌碌无为枉半生,一朝惊醒万事空。
|
||||
* moduleName: 团队
|
||||
*/
|
||||
|
||||
import { request } from '../index'
|
||||
|
||||
// 团队
|
||||
const relations = (data) => {
|
||||
return request({
|
||||
url: 'user/relations',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
relations
|
||||
}
|
||||
@@ -14,7 +14,14 @@ const info = () =>{
|
||||
})
|
||||
}
|
||||
|
||||
// 导出助记词
|
||||
const chainSeed = () => {
|
||||
return request({
|
||||
url: 'chain/safe/seed'
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
info
|
||||
info,
|
||||
chainSeed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user