[体验官活动]

This commit is contained in:
2023-07-12 17:56:36 +08:00
parent f870682e25
commit a9588815b8
29 changed files with 1599 additions and 217 deletions

View File

@@ -12,8 +12,9 @@ const index = data => req({
})
// 申请前置接口
const Enroll = (experience_id) => req({
url : "experiences/enroll/" + experience_id
const Enroll = (experience_id, data) => req({
url : "experiences/enroll/" + experience_id,
data: data
})
// 申请前置接口
@@ -23,8 +24,45 @@ const recruitAdd = (data) => req({
data: data
})
//小程序入库用户数据(微信授权)
const wechatMini = (data) => req({
url : "user/socialite/login/wechat/mini/add",
method: "POST",
data: data
})
// 活动打卡日历
const signCalendar = (data) => req({
url : "experiences/sign_calendar",
data: data
})
// 活动打卡操作
const signLabor = (data) => req({
url : "experiences/signs",
method: "POST",
data: data
})
// 打卡记录
const signList = (data) => req({
url : "experiences/signs",
data: data
})
// 体验官第一次和第二次比对
const skinDiff = (data) => req({
url : "ai/skin/diff",
data: data
})
export default ({
index,
Enroll,
recruitAdd
recruitAdd,
wechatMini,
signCalendar,
signLabor,
signList,
skinDiff
})

View File

@@ -9,8 +9,9 @@ import {updToken} from './updateToken'
// 请求方式配置
// https://api.shui.shuiganying.com/api //正式地址
// https://shuitest.shuiganying.com/api //测试地址
// wx6bd4fcc040bfa025 正式appid
// wx3056ec23196eaf02 测试appid
// wx6bd4fcc040bfa025 水感应 正式appid
// wx9ae0c63d0c58caeb 测试appid 三猿
// wx3056ec23196eaf02 水感应 测试
// const api = "https://api.shui.shuiganying.com/api/" // 正式环境
const api = "https://shuitest.shuiganying.com/api/" // 测试环境
const header = {
@@ -91,6 +92,9 @@ const req = (obj, noToken) => {
*/
const upload = (obj) => {
console.log(obj)
// header
header.Authorization = wx.getStorageSync("token") || ""
// 处理上传信息