feat 同步前端代码

feat 同步PC代码
feat 增加1.9DB
feat 同步逻辑
This commit is contained in:
damonyuan
2024-08-29 00:24:01 +08:00
parent 1e233d1207
commit 7badc8ae0f
352 changed files with 42846 additions and 37408 deletions

View File

@@ -1,30 +1,29 @@
import { getClient } from '~~/utils/env'
// 登录
export function mobileLogin(params: any) {
export function login(params: any) {
return $request.post({
url: '/login/mobileLogin',
params
url: '/login/account',
params: { ...params, terminal: getClient() }
})
}
export function accountLogin(params: any) {
return $request.post({
url: '/login/accountLogin',
params
})
// 登录
export function logout() {
return $request.post({ url: '/login/logout' })
}
//注册
export function register(params: any) {
return $request.post({
url: '/login/register',
params
params: { ...params, channel: getClient() }
})
}
//向微信请求code的链接
export function getWxCodeUrl() {
return $request.get({
url: '/login/scanCodeUrl',
url: '/login/getScanCode',
params: {
url: location.href
}
@@ -34,8 +33,3 @@ export function getWxCodeUrl() {
export function wxLogin(params: any) {
return $request.post({ url: '/login/scanLogin', params })
}
//忘记密码
export function forgotPassword(params: Record<string, any>) {
return $request.post({ url: '/login/forgotPassword', params })
}

View File

@@ -1,11 +1,11 @@
//发送短信
export function smsSend(params: any) {
return $request.post({ url: '/index/sendSms', params })
return $request.post({ url: '/sms/sendCode', params })
}
// 获取配置
export function getConfig() {
return $request.get({ url: '/pc/getConfig' })
return $request.get({ url: '/pc/config' })
}
// 获取协议

View File

@@ -3,7 +3,7 @@
* @return { Promise }
*/
export function getArticleCate() {
return $request.get({ url: '/article/category' })
return $request.get({ url: '/article/cate' })
}
/**
@@ -11,7 +11,7 @@ export function getArticleCate() {
* @return { Promise }
*/
export function getArticleList(params) {
return $request.get({ url: '/article/list', params })
return $request.get({ url: '/article/lists', params })
}
/**
@@ -19,7 +19,7 @@ export function getArticleList(params) {
* @return { Promise }
*/
export function getArticleCenter() {
return $request.get({ url: '/pc/articleCenter' })
return $request.get({ url: '/pc/infoCenter' })
}
/**
@@ -36,7 +36,7 @@ export function getArticleDetail(params) {
* @return { Promise }
*/
export function addCollect(params) {
return $request.post({ url: '/article/collectAdd', params })
return $request.post({ url: '/article/addCollect', params })
}
/**
@@ -45,7 +45,7 @@ export function addCollect(params) {
* @return { Promise }
*/
export function cancelCollect(params) {
return $request.post({ url: '/article/collectCancel', params })
return $request.post({ url: '/article/cancelCollect', params })
}
/**
@@ -53,5 +53,5 @@ export function cancelCollect(params) {
* @return { Promise }
*/
export function getCollect(params) {
return $request.get({ url: '/article/collectList', params })
return $request.get({ url: '/article/collect', params })
}

View File

@@ -9,7 +9,7 @@ export function getUserInfo() {
// 个人编辑
export function userEdit(params: any) {
return $request.post({ url: '/user/edit', params })
return $request.post({ url: '/user/setInfo', params })
}
// 绑定手机
@@ -20,7 +20,17 @@ export function userBindMobile(params: any, headers?: any) {
)
}
// 微信电话
export function userMnpMobile(params: any) {
return $request.post({ url: '/user/getMobileByMnp', params })
}
// 更改密码
export function userChangePwd(params: any) {
return $request.post({ url: '/user/changePwd', params })
return $request.post({ url: '/user/changePassword', params })
}
//忘记密码
export function forgotPassword(params: Record<string, any>) {
return $request.post({ url: '/user/resetPassword', params })
}