2023-09-28 16:55:50 +08:00
|
|
|
import request from "../../request.js"
|
2023-09-26 11:09:18 +08:00
|
|
|
|
|
|
|
|
// 获取OpenId
|
|
|
|
|
export function getOpenId(code) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/applet/register/getOpenId/${code}`,
|
2023-10-10 13:21:23 +08:00
|
|
|
method: 'GET',
|
|
|
|
|
header: {
|
|
|
|
|
// Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
|
|
|
|
},
|
2023-09-26 11:09:18 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取当前注册居民
|
2023-10-10 13:21:23 +08:00
|
|
|
export function getCurrentUser(openid, cityCode) {
|
2023-09-26 11:09:18 +08:00
|
|
|
return request({
|
2023-10-10 13:21:23 +08:00
|
|
|
url: `/applet/register/getCurrentResident/${openid}/${cityCode}`,
|
|
|
|
|
method: 'GET',
|
|
|
|
|
header: {
|
|
|
|
|
// Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 获取签约信息
|
2023-10-16 11:28:16 +08:00
|
|
|
export function detail(identity) {
|
2023-10-10 13:21:23 +08:00
|
|
|
return request({
|
|
|
|
|
url: `/applet/signinfo/detail/${identity}`,
|
|
|
|
|
method: 'GET',
|
|
|
|
|
header: {
|
2023-10-16 10:08:17 +08:00
|
|
|
region: uni.getStorageSync('region'),
|
2023-10-10 13:21:23 +08:00
|
|
|
// Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
|
|
|
|
},
|
2023-09-26 11:09:18 +08:00
|
|
|
})
|
2023-10-12 10:40:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//是否注册
|
2023-10-16 11:28:16 +08:00
|
|
|
export function checkSignApply(identity) {
|
2023-10-12 10:40:40 +08:00
|
|
|
return request({
|
|
|
|
|
url: `/applet/sign/apply/checkSignApply/${identity}`,
|
|
|
|
|
method: 'GET',
|
|
|
|
|
header: {
|
2023-10-16 10:08:17 +08:00
|
|
|
region: uni.getStorageSync('region'),
|
2023-10-12 10:40:40 +08:00
|
|
|
},
|
|
|
|
|
})
|
2023-09-26 11:09:18 +08:00
|
|
|
}
|