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:
@@ -19,7 +19,7 @@ Page({
|
||||
*/
|
||||
onLoad(options) {
|
||||
var a = this;
|
||||
e.request('/v2/miniprogram/index/balance', getApp().globalData.deviceData, !0).then(function (res) {
|
||||
e.request('/miniprogram/index/balance', getApp().globalData.deviceData, !0).then(function (res) {
|
||||
if (!res.data || !res.data.progressorder) {
|
||||
wx.showToast({
|
||||
title: '没有进行中的订单',
|
||||
@@ -117,7 +117,7 @@ Page({
|
||||
content: '确定要结算此次洗车订单吗?',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
e.request('/v2/miniprogram/' + getApp().globalData.deviceData.type + '/shutdown', {
|
||||
e.request('/miniprogram/' + getApp().globalData.deviceData.type + '/shutdown', {
|
||||
orderid: this.data.orderid
|
||||
}, true).then((res) => {
|
||||
if (res.code === 200) {
|
||||
|
||||
Reference in New Issue
Block a user