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:
@@ -20,7 +20,7 @@ Page({
|
||||
var o = this;
|
||||
wx.showLoading({
|
||||
title: ""
|
||||
}), i.request('/v2/miniprogram/coupons/details', {
|
||||
}), i.request('/miniprogram/coupons/details', {
|
||||
id: this.data.id
|
||||
}, !0).then(function (e) {
|
||||
if (wx.hideLoading(), 200 != e.code) return wx.showModal({
|
||||
@@ -40,7 +40,7 @@ Page({
|
||||
received: function () {
|
||||
if (this.isSubmit) return !1;
|
||||
var t = this;
|
||||
this.isSubmit = !0, wx.showLoading(), console.log("received"), i.request('/v2/miniprogram/coupons/receive', {
|
||||
this.isSubmit = !0, wx.showLoading(), console.log("received"), i.request('/miniprogram/coupons/receive', {
|
||||
id: t.data.id,
|
||||
token: t.data.info.token
|
||||
}, !0).then(function (e) {
|
||||
|
||||
Reference in New Issue
Block a user