feat: deliver V1.1 dual-client UI fidelity milestone
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const app = getApp<{ globalData: { apiBase: string; token: string } }>();
|
||||
import { request } from '../../utils/requestPromise'
|
||||
const app = getApp<{ globalData: { apiBase: string; uploadBase: string; token: string } }>();
|
||||
|
||||
Page({
|
||||
data: {
|
||||
@@ -14,7 +15,7 @@ Page({
|
||||
|
||||
async loadStatus() {
|
||||
try {
|
||||
const res = await wx.request({
|
||||
const res = await request<any>({
|
||||
url: `${app.globalData.apiBase}/activities/${this.data.activityId}/mutual/status/${this.data.partnerId}`,
|
||||
header: { 'Authorization': `Bearer ${app.globalData.token}` }
|
||||
});
|
||||
@@ -33,7 +34,7 @@ Page({
|
||||
|
||||
async loadPartnerInfo() {
|
||||
try {
|
||||
const res = await wx.request({
|
||||
const res = await request<any>({
|
||||
url: `${app.globalData.apiBase}/profiles/${this.data.partnerId}`,
|
||||
header: { 'Authorization': `Bearer ${app.globalData.token}` }
|
||||
});
|
||||
@@ -46,7 +47,7 @@ Page({
|
||||
|
||||
async onConfirm() {
|
||||
try {
|
||||
const res = await wx.request({
|
||||
const res = await request<any>({
|
||||
url: `${app.globalData.apiBase}/activities/${this.data.activityId}/mutual/confirm`,
|
||||
method: 'POST',
|
||||
header: { 'Authorization': `Bearer ${app.globalData.token}`, 'Content-Type': 'application/json' },
|
||||
@@ -64,7 +65,7 @@ Page({
|
||||
|
||||
async onDecline() {
|
||||
try {
|
||||
await wx.request({
|
||||
await request<any>({
|
||||
url: `${app.globalData.apiBase}/activities/${this.data.activityId}/mutual/decline`,
|
||||
method: 'POST',
|
||||
header: { 'Authorization': `Bearer ${app.globalData.token}`, 'Content-Type': 'application/json' },
|
||||
|
||||
Reference in New Issue
Block a user