锶源昆仑会员+体验官

This commit is contained in:
2023-07-22 19:04:56 +08:00
commit 5a6b3517e6
439 changed files with 20654 additions and 0 deletions

149
api/interfaces/user.js Normal file
View File

@@ -0,0 +1,149 @@
/*
* 手太欠
* 愿这世界都如故事里一样 美好而动人~
*/
import {req} from "../request"
//首页
const userIndex = () => req({url: "user"})
//订单
const orders = (data) => req({url: "mall/orders", data: data})
//订单详情
const goodsDet = (order_no) => req({url: "mall/orders/" + order_no})
//订单签收
const goodsSign = (order_no) => req({url: "mall/orders/" + order_no + "/sign", method: 'PUT'})
//我的抵值券
const coupon = (data) => req({url: "coupons/user/coupons", data: data})
//我的抵值券列表
const couponList = (coupon_id, data) => req({url: "coupons/user/coupons/" + coupon_id + "/list", data: data})
//现金账户
const account = (data) => req({url: "user/account/balance", data: data})
//我的提现记录
const bankList = (data) => req({url: "withdraws/index", data: data})
//提现前置
const createUser = () => req({url: "withdraws/index/create"})
//提现提交
const bankCash = (data) => req({url: "withdraws/index",method: 'POST', data: data})
//添加账户前置
const create = () => req({url: "withdraws/accounts/create"})
//添加账户
const createAdd = (data) => req({url: "withdraws/accounts", method: 'POST', data: data})
//账户编辑提交
const bankPut = (bank_account_id,data) => req({url: "withdraws/accounts/" + bank_account_id, method: 'PUT', data: data})
//我的银行卡列表
const createList = (data) => req({url: "withdraws/accounts", data: data})
//我的银行卡账户编辑
const bankEdit = (bank_account_id) => req({url: "withdraws/accounts/" + bank_account_id + "/edit"})
//删除银行卡
const bankDel = (bank_account_id) => req({url: "withdraws/accounts/" + bank_account_id, method: 'DELETE'})
//我的伙伴
const relations = (data) => req({url: "user/relations", data: data})
//消息
const notice = () => req({url: "notifications"})
//消息列表
const noticeList = (type,data) => req({url: "notifications/" + type + "/list", data: data})
//消息详情
const noticeShow = (notification_id) => req({url: "notifications/" + notification_id})
//上传头像
const setting = (key,data) => req({url: "user/setting/" + key, method: 'PUT', data: data})
//我的推广码
const invite = () => req({url: "user/invite"})
//水滴账户
const score = (data) => req({url: "user/account/score", data: data})
//激活码管理
const invites = (data) => req({url: "user/invites", data: data})
//微信授权
const authFollow = (data) => req({url: "user/auth/get_auth_url", data: data})
//小程序入库用户数据(微信授权)
const wechatMini = (data) => req({url: "user/socialite/login/wechat/mini/add", method: 'POST', data: data})
//我的推广码
const invitesCode = () => req({url: "user/invite"})
//小开通前置
const identitiesee = (identity_id) => req({url: "user/identities/create/" + identity_id})
//小程序码
const miniShare = (data) => req({url: "user/mini_share", data: data})
//我的收藏
const favorites = (data) => req({url: "user/favorites", data: data})
//产品中心-分类
const mallCategories = (data) => req({url: "mall/categories", data: data})
//产品中心-列表
const mallGoods = (data) => req({url: "mall/goods", data: data})
//任务分类
const taskIndex = () => req({url: "tasks/categories"})
//任务列表
const taskList = (data) => req({url: "tasks", data: data})
//微信运动
const wechatStep = (data) => req({url: "tasks/wechat_step", data: data})
export default({
userIndex,
orders,
goodsDet,
goodsSign,
coupon,
couponList,
account,
bankList,
createUser,
bankCash,
create,
createAdd,
bankPut,
createList,
bankEdit,
bankDel,
relations,
notice,
noticeList,
noticeShow,
setting,
invite,
score,
invites,
authFollow,
wechatMini,
invitesCode,
identitiesee,
miniShare,
favorites,
mallCategories,
mallGoods,
taskIndex,
taskList,
wechatStep
})