From 4f4538356403d620b9bd510fd45729a251291942 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期五, 03 七月 2026 18:27:36 +0800
Subject: [PATCH] 功能开发
---
bicycle/utils/http.api.js | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 57 insertions(+), 1 deletions(-)
diff --git a/bicycle/utils/http.api.js b/bicycle/utils/http.api.js
index 75da124..77f68a8 100644
--- a/bicycle/utils/http.api.js
+++ b/bicycle/utils/http.api.js
@@ -23,6 +23,35 @@
let goodsOrderSettlement = (params = {}) => uni.$u.http.get('web/business/goodsOrderSettlement', { params }) // 璁㈠崟缁撶畻
let getSysDict = (params = {}) => uni.$u.http.get('web/business/getSysDict', { params }) // 鑾峰彇瀛楀吀鍊间俊鎭�
+ let discountPage = (data = {}) => uni.$u.http.post('web/business/discountPage', data) // 鐑攢濂楅
+ let discountDetail = (params = {}) => uni.$u.http.get('web/business/discountDetail', { params }) // 濂楅璇︽儏
+ let createDiscountOrderPay = (params = {}) => uni.$u.http.get('web/business/createDiscountOrderPay', { params }) // 濂楅璐拱
+ let eleBikeList = (params = {}) => uni.$u.http.get('web/business/eleBikeList', { params }) // 鏌ヨ鎵�鏈夌數鍔ㄨ溅淇℃伅
+ let eleSiteList = (params = {}) => uni.$u.http.get('web/business/eleSiteList', { params }) // 鐢靛姩杞︾珯鐐瑰垪琛�
+ let getEleBusinessArea = (params = {}) => uni.$u.http.get('web/business/getEleBusinessArea', { params }) // 鑾峰彇鐢靛姩杞﹁繍钀ュ尯鍩�
+ let getBikeChargingRule = (params = {}) => uni.$u.http.get('web/business/getBikeChargingRule', { params }) // 鎵爜鑾峰彇杞﹁締淇℃伅
+ let openElecBike = (data = {}) => uni.$u.http.post('web/business/openElecBike', data) // 鐢佃溅寮�閿�
+ let backElecBike = (data = {}) => uni.$u.http.post('web/business/backElecBike', data) // 鐢佃溅绔欑偣杩樿溅
+ let pauseElecBike = (data = {}) => uni.$u.http.post('web/business/pauseElecBike', data) // 鐢佃溅涓存椂鍋滆溅
+ let pauseOpenElecBike = (data = {}) => uni.$u.http.post('web/business/pauseOpenElecBike', data) // 鐢佃溅涓村仠寮�閿�
+ let login = (data = {}) => uni.$u.http.post('web/manger/login', data) // 鐧诲綍绠$悊鍛樿处鍙�
+ let logout = (data = {}) => uni.$u.http.post('web/manger/logout', data) // 閫�鍑虹鐞嗗憳璐﹀彿
+ let pageBikes = (data = {}) => uni.$u.http.post('web/manger/pageBikes', data) // 鍒嗛〉鏌ヨ鐢佃溅鍒楄〃
+ let updateBikeStatus = (params = {}) => uni.$u.http.get('web/manger/updateBikeStatus/batch', { params }) // 鐢佃溅鎵归噺涓婁笅鏋�
+ let updateLockStatus = (params = {}) => uni.$u.http.get('web/manger/updateLockStatus/batch', { params }) // 鐢佃溅鎵归噺寮�鍏抽攣
+
+ let scanVerify = (data = {}) => uni.$u.http.post('web/douyin/scanVerify', data) // 鎵爜鏍搁攢
+ let operationCenter = (params = {}) => uni.$u.http.get('web/report/operationCenter', { params }) // 杩愯惀涓績鏁版嵁
+ let operationOrderPage = (data = {}) => uni.$u.http.post('web/report/operationOrderPage', data) // 璁㈠崟鍒楄〃
+ let forceBack = (data = {}) => uni.$u.http.post('web/business/forceBack', data) // 寮哄埗杩樿溅
+ let getGoodsorderCanBanlanceDTO = (params = {}) => uni.$u.http.get('web/manger/getGoodsorderCanBanlanceDTO', { params }) // 鑾峰彇鍙��娆句俊鎭�
+ let backGoodsorder = (data = {}) => uni.$u.http.post('web/manger/backGoodsorder', data) // 閫�娆�
+ let overview = (params = {}) => uni.$u.http.get('web/report/overview', { params }) // 姒傝缁熻:鎬绘敞鍐岀敤鎴�-浠婃棩鏂板-鑷杞�-鐢靛姩杞︽暟閲�
+ let incomeStat = (data = {}) => uni.$u.http.post('web/report/incomeStat', data) // 鏀跺叆缁熻
+ let bikeIncome = (data = {}) => uni.$u.http.post('web/report/bikeIncome', data) // 鏀跺叆杞﹀瀷鍒嗘瀽
+ let accountLogout = (data = {}) => uni.$u.http.post('web/account/logout', data) // 浼氬憳閫�鍑虹櫥褰�
+ let orderRides = (params = {}) => uni.$u.http.get('web/report/orderRides', { params }) // 璁㈠崟楠戣璁板綍
+
vm.$u.api = {
getUserInfo,
wxLogin,
@@ -39,7 +68,34 @@
onlineBike,
transactionsPage,
goodsOrderSettlement,
- getSysDict
+ getSysDict,
+ discountPage,
+ discountDetail,
+ createDiscountOrderPay,
+ eleBikeList,
+ eleSiteList,
+ getEleBusinessArea,
+ getBikeChargingRule,
+ openElecBike,
+ backElecBike,
+ pauseElecBike,
+ pauseOpenElecBike,
+ login,
+ logout,
+ pageBikes,
+ updateBikeStatus,
+ updateLockStatus,
+ scanVerify,
+ operationCenter,
+ operationOrderPage,
+ forceBack,
+ getGoodsorderCanBanlanceDTO,
+ backGoodsorder,
+ overview,
+ incomeStat,
+ bikeIncome,
+ accountLogout,
+ orderRides
};
}
--
Gitblit v1.9.3