feat: 新增多个页面及功能,优化用户体验
在项目中新增了多个页面,包括押金页面、设备详情页面、反馈页面和帮助页面。同时,更新了订单支付和归还成功页面的逻辑,确保用户在支付和归还设备时能够获得清晰的反馈。优化了扫码和订单状态处理逻辑,提升了整体用户体验。
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
const URL = "http://127.0.0.1:8080";
|
||||
const appid = "wx3ae63fb09936b379";
|
||||
const appid = "wxe752f45e7f7aa271";
|
||||
exports.URL = URL;
|
||||
exports.appid = appid;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/config/url.js.map
|
||||
|
||||
+11
-10
@@ -15,6 +15,14 @@ const getMyIndexInfo = (data) => {
|
||||
data
|
||||
});
|
||||
};
|
||||
const withdrawDeposit = (orderId) => {
|
||||
common_vendor.index.__f__("log", "at config/user.js:23", "调用提现API,订单ID:", orderId);
|
||||
return config_http.request({
|
||||
url: `/app/withdraw/add/${orderId}`,
|
||||
method: "get",
|
||||
hideLoading: true
|
||||
});
|
||||
};
|
||||
const getOrderList = (data) => {
|
||||
return config_http.request({
|
||||
url: "/app/order/list",
|
||||
@@ -36,7 +44,7 @@ const getDeviceInfo = (deviceNo) => {
|
||||
});
|
||||
};
|
||||
const queryById = (id) => {
|
||||
common_vendor.index.__f__("log", "at config/user.js:59", `查询订单详情, orderId: ${id}`);
|
||||
common_vendor.index.__f__("log", "at config/user.js:69", `查询订单详情, orderId: ${id}`);
|
||||
return config_http.request({
|
||||
url: `/app/order/${id}`,
|
||||
method: "get",
|
||||
@@ -51,19 +59,12 @@ const rentPowerBank = (deviceNo, phone) => {
|
||||
});
|
||||
};
|
||||
const confirmPaymentAndRent = (orderId) => {
|
||||
common_vendor.index.__f__("log", "at config/user.js:98", `确认支付并弹出充电宝, orderId: ${orderId}`);
|
||||
common_vendor.index.__f__("log", "at config/user.js:108", `确认支付并弹出充电宝, orderId: ${orderId}`);
|
||||
return config_http.request({
|
||||
url: `/app/device/confirmPaymentAndRent?orderId=${orderId}`,
|
||||
method: "post"
|
||||
});
|
||||
};
|
||||
const sendRentCommand = (orderId) => {
|
||||
common_vendor.index.__f__("log", "at config/user.js:107", `直接发送租借指令, orderId: ${orderId}`);
|
||||
return config_http.request({
|
||||
url: `/app/device/sendRentCommand?orderId=${orderId}`,
|
||||
method: "post"
|
||||
});
|
||||
};
|
||||
exports.confirmPaymentAndRent = confirmPaymentAndRent;
|
||||
exports.getDeviceInfo = getDeviceInfo;
|
||||
exports.getMyIndexInfo = getMyIndexInfo;
|
||||
@@ -72,5 +73,5 @@ exports.login = login;
|
||||
exports.queryById = queryById;
|
||||
exports.queryHasOrder = queryHasOrder;
|
||||
exports.rentPowerBank = rentPowerBank;
|
||||
exports.sendRentCommand = sendRentCommand;
|
||||
exports.withdrawDeposit = withdrawDeposit;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/config/user.js.map
|
||||
|
||||
Reference in New Issue
Block a user