refactor: 统一API路径前缀并更新静态资源域名

- 将所有API路径从'/v2/miniprogram'统一为'/miniprogram'
- 更新静态资源域名从'http://jm.v0750.com'到'https://jm-static.v0750.com'
- 在utils/login.js中设置统一的baseUrl为'https://t-jm.v0750.com/v3'
- 移除不再使用的initial_url和baseUrl配置项
This commit is contained in:
2025-12-15 23:27:34 +08:00
parent 85ceb86058
commit d098203c87
22 changed files with 71 additions and 69 deletions

View File

@@ -59,7 +59,7 @@ Page({
if (this.isloading) return !1;
wx.showLoading(), this.setData({
loading: !0
}), this.isloading = !0, e.request('/v2/miniprogram/coupons/lists', { devicecode: t.globalData.devicecode }, !0).then(function (t) {
}), this.isloading = !0, e.request('/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("/v2/miniprogram/identify/index", i, !0).then(function (e) {
}), t.globalData.qrcode = i.result, e.request("/miniprogram/identify/index", i, !0).then(function (e) {
if (wx.hideLoading(), 200 != e.code) return wx.showModal({
title: "提示",
content: e.message
@@ -128,7 +128,7 @@ Page({
i.confirm && (a.isSubmit = !0, wx.showLoading({
title: "正在启动"
}), e.request('/v2/miniprogram/' + t.globalData.deviceData.type + '/carwashcodestartup', params, !0).then(function (t) {
}), e.request('/miniprogram/' + t.globalData.deviceData.type + '/carwashcodestartup', params, !0).then(function (t) {
// 成功后返回提示
wx.showToast({ title: t.message || '启动成功', icon: 'success' });
// 成功后跳转