商家列表,商家主页,我的团队

This commit is contained in:
唐明明
2022-06-09 16:55:32 +08:00
parent 0a5e711eec
commit e1602d0a2f
29 changed files with 6232 additions and 4382 deletions

View File

@@ -137,6 +137,8 @@ const errToast = (code) => {
// 更新token
const updateToken = (token) => {
store.commit('setToken', token)
// 清除退出登录标识
uni.removeStorageSync('isnew')
}
// 处理登录提示

View File

@@ -15,7 +15,6 @@ const life = () =>{
})
}
export {
life
}

View File

@@ -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
View File

@@ -0,0 +1,21 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 团队
*/
import { request } from '../index'
// 团队
const relations = (data) => {
return request({
url: 'user/relations',
data
})
}
export {
relations
}

View File

@@ -14,7 +14,14 @@ const info = () =>{
})
}
// 导出助记词
const chainSeed = () => {
return request({
url: 'chain/safe/seed'
})
}
export {
info
info,
chainSeed
}