feat(帮洗服务): 新增帮洗服务页面及功能

新增帮洗服务相关页面和功能,包括页面配置、路由添加、API接口调整和样式实现
更新小程序基础库版本至3.8.8
调整API接口路径统一使用v2版本前缀
This commit is contained in:
2025-06-24 16:56:02 +08:00
parent 336227c4dc
commit a3fcf0eac1
10 changed files with 632 additions and 9 deletions

View File

@@ -38,7 +38,7 @@ Page({
e.globalData.latitude = res.latitude;
e.globalData.longitude = res.longitude;
// 获取网点列表
t.request('/miniprogram/branch/lists', {
t.request('/v2/miniprogram/branch/lists', {
latitude: res.latitude || '',
longitude: res.longitude || ''
}, !0).then(function (res) {
@@ -49,7 +49,7 @@ Page({
},
fail: function () {
// 即使获取位置失败也加载网点列表,只是不传入经纬度参数
t.request('/miniprogram/branch/lists', {}, !0).then(function (res) {
t.request('/v2/miniprogram/branch/lists', {}, !0).then(function (res) {
a.setData({
wangdianList: res.data || []
});
@@ -67,7 +67,7 @@ Page({
});
// 获取首页数据
t.request('/miniprogram/index/home', { method: 'GET' }, !0).then(function (e) {
t.request('/v2/miniprogram/index/home', { method: 'GET' }, !0).then(function (e) {
a.setData({
banner: e.data.banner,
tmplIds: e.data.tmplIds,
@@ -90,7 +90,7 @@ Page({
getData: function () {
var a = this;
// 获取首页数据
t.request('/miniprogram/index/balance', {}, !0).then(function (e) {
t.request('/v2/miniprogram/index/balance', {}, !0).then(function (e) {
a.setData({
user: e.data || [],
});