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

@@ -1,4 +1,4 @@
var t = require("../../@babel/runtime/helpers/interopRequireDefault")(require("../../@babel/runtime/regenerator")), a = require("../../@babel/runtime/helpers/toConsumableArray"), e = require("../../@babel/runtime/helpers/slicedToArray"), i = require("../../@babel/runtime/helpers/asyncToGenerator"), s = (getApp(),
var t = require("../../@babel/runtime/helpers/interopRequireDefault")(require("../../@babel/runtime/regenerator")), a = require("../../@babel/runtime/helpers/toConsumableArray"), e = require("../../@babel/runtime/helpers/slicedToArray"), i = require("../../@babel/runtime/helpers/asyncToGenerator"), s = (getApp(),
require("../../utils/login.js"));
Page({
@@ -43,7 +43,7 @@ Page({
page: 1
});
var t = this.data.historyList.indexOf(this.data.kw);
t > -1 && this.data.historyList.splice(t, 1), this.data.historyList.unshift(this.data.kw),
t > -1 && this.data.historyList.splice(t, 1), this.data.historyList.unshift(this.data.kw),
this.setData({
historyList: this.data.historyList
}), this.getData();
@@ -64,12 +64,12 @@ Page({
case 2:
return r.setData({
loading: !0
}), r, t.prev = 4, t.next = 7, s.request(s.baseUrl + "shop/search", {
}), r, t.prev = 4, t.next = 7, s.request("/shop/search", {
keyword: r.data.kw
}, !0);
case 7:
n = t.sent, o = n.data, console.log("data,data", o), o.data.length < o.limit ? r.data.page = 0 : r.data.page += 1,
n = t.sent, o = n.data, console.log("data,data", o), o.data.length < o.limit ? r.data.page = 0 : r.data.page += 1,
o.data.forEach(function(t) {
var a = t.price.split("."), i = e(a, 2);
t.price_buck = i[0], t.price_cent = i[1];