From 4fabfe4dbd2eb28d07a4350597d314958cc1c281 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 09 十月 2025 11:16:43 +0800
Subject: [PATCH] 优化

---
 bicycle/utils/http.api.js |   36 +++++++++++++++++++++++++++++++++++-
 1 files changed, 35 insertions(+), 1 deletions(-)

diff --git a/bicycle/utils/http.api.js b/bicycle/utils/http.api.js
index 75da124..f38f652 100644
--- a/bicycle/utils/http.api.js
+++ b/bicycle/utils/http.api.js
@@ -23,6 +23,24 @@
 	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 })	// 鐢佃溅鎵归噺寮�鍏抽攣
+
+
 	vm.$u.api = {
 		getUserInfo,
 		wxLogin,
@@ -39,7 +57,23 @@
 		onlineBike,
 		transactionsPage,
 		goodsOrderSettlement,
-		getSysDict
+		getSysDict,
+		discountPage,
+		discountDetail,
+		createDiscountOrderPay,
+		eleBikeList,
+		eleSiteList,
+		getEleBusinessArea,
+		getBikeChargingRule,
+		openElecBike,
+		backElecBike,
+		pauseElecBike,
+		pauseOpenElecBike,
+		login,
+		logout,
+		pageBikes,
+		updateBikeStatus,
+		updateLockStatus
 	};
 }
 

--
Gitblit v1.9.3