This commit is contained in:
唐明明
2021-09-24 16:46:02 +08:00
53 changed files with 4990 additions and 4338 deletions

View File

@@ -1,33 +1,33 @@
/**
* Web-zdx
* moduleName:核销相关操作
*/
import {
request
} from '../index'
// 扫码前置条件 get 核销前置 post 表示核销
const scanInfo = (apiUrl, data, method) => {
return request({
url: apiUrl,
method: method,
data: data
})
}
// 核销记录
const scanList = (apiUrl, data) => {
return request({
url: apiUrl,
method: 'GET',
data: data
})
}
export {
scanInfo,
scanList
/**
* Web-zdx
* moduleName:核销相关操作
*/
import {
request
} from '../index'
// 扫码前置条件 get 核销前置 post 表示核销
const scanInfo = (apiUrl, data, method) => {
return request({
url: apiUrl,
method: method,
data: data
})
}
// 核销记录
const scanList = (apiUrl, data) => {
return request({
url: apiUrl,
method: 'GET',
data: data
})
}
export {
scanInfo,
scanList
}

View File

@@ -0,0 +1,84 @@
/**
* Web-zdx
* moduleName: 登录(手机号)
*/
import { request } from '../index'
// 手机号登陆接口
const login = (data) => {
return request({
url: 'user/socialite/login/wechat/mini',
method: 'POST',
data: data
})
}
// 修改用户信息
const wechatbind = (data) => {
return request({
url: 'user/socialite/wechatbind',
method: 'PUT',
data: data
})
}
// 修改用户头像或昵称
const resetUserInfo = (data) => {
return request({
url: 'user/' + data.key,
method: 'PUT',
data: {
value: data.value
}
})
}
// 获取用户的Openid
const getOpenid = (code) => {
return request({
url: 'user/socialite/login/wechat/openid',
method: 'GET',
data: {
code: code
}
})
}
// 隐私条款
const agreementSecret = (data) => {
return request({
url: 'articles/agreement/secret'
})
}
// 注册协议
const agreementLogin = (data) => {
return request({
url: 'articles/agreement/login'
})
}
// 获取用户设置中心的信息
const getUserSettingInfo = () => {
return request({
url: 'user/setting'
})
}
// 关于我们
const aboutUs = () => {
return request({
url: 'articles/about'
})
}
export {
login,
wechatbind,
getOpenid,
agreementSecret,
agreementLogin,
resetUserInfo,
getUserSettingInfo,
aboutUs
}