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:
@@ -100,7 +100,7 @@ Page({
|
||||
},
|
||||
// 获取网点详情信息
|
||||
getBranchDetail() {
|
||||
t.request('/v2/miniprogram/branch/detail', {
|
||||
t.request('/miniprogram/branch/detail', {
|
||||
number: this.data.number,
|
||||
latitude: wx.getStorageSync('latitude'),
|
||||
longitude: wx.getStorageSync('longitude'),
|
||||
@@ -118,7 +118,7 @@ Page({
|
||||
// 获取机器列表
|
||||
getMachineList() {
|
||||
|
||||
t.request('/v2/miniprogram/branch/machine', {
|
||||
t.request('/miniprogram/branch/machine', {
|
||||
number: this.data.number,
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
|
||||
Reference in New Issue
Block a user