fix: 更新API端点路径至v2版本

将/miniprogram/user/onlineCarHailing和/miniprogram/user等API端点路径更新为/v2/miniprogram/user/onlineCarHailing和/v2/miniprogram/user,以适配后端API的v2版本
This commit is contained in:
2025-06-24 17:46:29 +08:00
parent a3fcf0eac1
commit 678d35042a
9 changed files with 39 additions and 39 deletions

View File

@@ -20,7 +20,7 @@ Page({
var o = this;
wx.showLoading({
title: ""
}), i.request('/miniprogram/coupons/details', {
}), i.request('/v2/miniprogram/coupons/details', {
id: this.data.id
}, !0).then(function (e) {
if (wx.hideLoading(), 200 != e.code) return wx.showModal({
@@ -40,7 +40,7 @@ Page({
received: function () {
if (this.isSubmit) return !1;
var t = this;
this.isSubmit = !0, wx.showLoading(), console.log("received"), i.request('/miniprogram/coupons/receive', {
this.isSubmit = !0, wx.showLoading(), console.log("received"), i.request('/v2/miniprogram/coupons/receive', {
id: t.data.id,
token: t.data.info.token
}, !0).then(function (e) {