From 0cfe50c34659fc30b8e6cdc05d9e4198efa71be9 Mon Sep 17 00:00:00 2001
From: web <candymxq888@outlook.com>
Date: 星期五, 04 七月 2025 16:26:56 +0800
Subject: [PATCH] 支付模块

---
 api/index.js |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/api/index.js b/api/index.js
index 1d996ca..88c26e2 100644
--- a/api/index.js
+++ b/api/index.js
@@ -5,12 +5,37 @@
 	return request('/user/wxLogin',data,'POST')
 }
 
+// 用户信息
+export function getUserInfo(){
+	return request('/api/user/getUser',{},'GET')
+}
+
+// 修改用户信息
+export function setUserInfo(data){
+	return request('/api/user/editUser',data,'POST')
+}
+
 //微信支付
 export function wxPayApi(data){
 	return request('/pay/service/wxPay',data,'POST')
 }
 
-//水卡充值
+//生成订单
 export function rechargeApi(data){
-	return request('/rechargeRecords/fees',data,'POST')
+	return request('/api/user/fees',data,'POST')
+}
+
+// 设备列表
+export function getFacitily(data) {
+	return request('/api/user/searchFacility', data, 'POST')
+}
+
+// 取水记录
+export function getqushuiRecord(data) {
+	return request('/api/user/searchPaymentRecords', data, 'POST')
+}
+
+// 充值记录
+export function getrechargeRecord(data) {
+	return request('/api/user/searchRechargeRecords', data, 'POST')
 }
\ No newline at end of file

--
Gitblit v1.9.3