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:
@@ -7,7 +7,7 @@ Page({
|
||||
code: ''
|
||||
},
|
||||
onLoad() {
|
||||
t.request('/v2/miniprogram/coupons/index', {}, !0).then((res) => {
|
||||
t.request('/miniprogram/coupons/index', {}, !0).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.setData({
|
||||
tips: res.data.tips,
|
||||
@@ -23,7 +23,7 @@ Page({
|
||||
success: function (i) {
|
||||
console.log(i), wx.showLoading({
|
||||
title: ""
|
||||
}), e.globalData.qrcode = i.result, t.request("/v2/miniprogram/identify/index", i, !0).then(function (t) {
|
||||
}), e.globalData.qrcode = i.result, t.request("/miniprogram/identify/index", i, !0).then(function (t) {
|
||||
console.log("data", t), wx.hideLoading();
|
||||
// 保存设备编号
|
||||
getApp().globalData.deviceData = t.data || getApp().globalData.deviceData || {};
|
||||
@@ -45,7 +45,7 @@ Page({
|
||||
});
|
||||
|
||||
// 已扫码,启动机器
|
||||
t.request('/v2/miniprogram/' + getApp().globalData.deviceData.type + '/carwashcodestartup', params, !0).then((startRes) => {
|
||||
t.request('/miniprogram/' + getApp().globalData.deviceData.type + '/carwashcodestartup', params, !0).then((startRes) => {
|
||||
if (startRes.code == 200) {
|
||||
wx.showToast({ title: startRes.message || '启动成功', icon: 'success' });
|
||||
// 跳转到洗车券列表页面
|
||||
@@ -81,7 +81,7 @@ Page({
|
||||
wx.showLoading({
|
||||
title: '兑换中...'
|
||||
})
|
||||
t.request('/v2/miniprogram/coupons/importDouyin', { code: code }, !0).then((res) => {
|
||||
t.request('/miniprogram/coupons/importDouyin', { code: code }, !0).then((res) => {
|
||||
wx.hideLoading()
|
||||
if (res.code == 200) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user