更改部分接口传参方式

This commit is contained in:
gyq
2025-07-16 09:38:30 +08:00
parent d1621e78f1
commit 4306ba1900
8 changed files with 698 additions and 690 deletions

View File

@@ -5,6 +5,9 @@ export async function init() {
//热搜词
http.request({
url: 'common/type/249',
data: {
type: 249
}
}).then(res => {
if (res.code == 0) {
uni.setStorageSync('moreSearch', res.data.value)
@@ -18,6 +21,9 @@ export async function init() {
export const commonType = (num) => {
return http.request({
url: `/common/type/${num}`,
data:{
type: num
}
})
}

View File

@@ -14,9 +14,13 @@ export const login = (data) => {
/**
* 发送验证码
*/
export const setSendMsg = (mobile,type) => {
export const setSendMsg = (mobile, type) => {
return http.request({
url: '/Login/sendMsg/' + mobile + '/'+type
url: '/Login/sendMsg/' + mobile + '/' + type,
data: {
phone: mobile,
event: type
}
})
}
@@ -72,4 +76,4 @@ export const $bindStatus = (data) => {
method: 'GET',
data: data
})
}
}

View File

@@ -17,7 +17,10 @@ export const selectByUserId = (data) => {
export const commonType = (type) => {
return http.request({
url: `/common/type/${type}`,
method: 'GET'
method: 'GET',
data: {
type: type
}
})
}

View File

@@ -56,7 +56,10 @@ export function insertHistory(data) {
export function getJinbiBili(data) {
return http.request({
url: 'common/type/914',
data
data: {
...data,
type: 914
}
})
}
@@ -140,11 +143,11 @@ export function playStatus(data) {
}
// 获取支付次数提示
export function getPayTips(data){
export function getPayTips(data) {
return http.request({
url: 'course/getRedEnvelopeTips',
method: 'GET',
data
})
}
}