fix: 更新API端点路径至v2版本
将/miniprogram/user/onlineCarHailing和/miniprogram/user等API端点路径更新为/v2/miniprogram/user/onlineCarHailing和/v2/miniprogram/user,以适配后端API的v2版本
This commit is contained in:
@@ -59,7 +59,7 @@ Page({
|
||||
if (this.isloading) return !1;
|
||||
wx.showLoading(), this.setData({
|
||||
loading: !0
|
||||
}), this.isloading = !0, e.request('/miniprogram/coupons/lists', { devicecode: t.globalData.devicecode }, !0).then(function (t) {
|
||||
}), this.isloading = !0, e.request('/v2/miniprogram/coupons/lists', { devicecode: t.globalData.devicecode }, !0).then(function (t) {
|
||||
if (o.isloading = !1, o.setData({
|
||||
loading: !1
|
||||
}), wx.hideLoading(), 200 != t.code) return wx.showModal({
|
||||
@@ -86,7 +86,7 @@ Page({
|
||||
success: function (i) {
|
||||
wx.showLoading({
|
||||
title: ""
|
||||
}), t.globalData.qrcode = i.result, e.request("/miniprogram/identify", i, !0).then(function (e) {
|
||||
}), t.globalData.qrcode = i.result, e.request("/v2/miniprogram/identify", i, !0).then(function (e) {
|
||||
if (wx.hideLoading(), 200 != e.code) return wx.showModal({
|
||||
title: "提示",
|
||||
content: e.message
|
||||
@@ -121,7 +121,7 @@ Page({
|
||||
success: function (i) {
|
||||
i.confirm && (a.isSubmit = !0, wx.showLoading({
|
||||
title: "正在启动"
|
||||
}), e.request('/miniprogram/machine/carwashcodestartup', {
|
||||
}), e.request('/v2/miniprogram/machine/carwashcodestartup', {
|
||||
washcode: a.data.selectID
|
||||
}, !0).then(function (t) {
|
||||
// 成功后返回提示
|
||||
|
||||
Reference in New Issue
Block a user