feat: 新增退款和网约车用户管理页面

添加了退款和网约车用户管理相关页面,包括页面配置、样式、逻辑处理等。同时更新了应用配置文件和私有配置文件以支持新页面。
This commit is contained in:
2025-04-14 18:21:46 +08:00
parent 47d847e138
commit 7c8536272c
12 changed files with 454 additions and 8 deletions

View File

@@ -32,15 +32,31 @@ Page({
t.request('/miniprogram/coupons/importDouyin', { code: code }, !0).then((res) => {
wx.hideLoading()
if (res.code == 200) {
wx.showToast({
wx.showModal({
title: '兑换成功',
icon: 'success'
content: '是否立即使用?',
success: (result) => {
if (result.confirm) {
// 判断是否已扫码
if (getApp().globalData.devicecode) {
// 已扫码,启动机器
t.request('/miniprogram/device/start', { devicecode: getApp().globalData.devicecode }, !0).then((startRes) => {
if (startRes.code == 200) {
wx.showToast({ title: '启动成功', icon: 'success' });
} else {
wx.showToast({ title: startRes.message || '启动失败', icon: 'none' });
wx.navigateTo({ url: '/pages/washCodeList/washCodeList' });
}
});
} else {
// 未扫码跳转到washCodeList页面进行扫码
wx.navigateTo({ url: '/pages/washCodeList/washCodeList' });
}
} else {
wx.navigateTo({ url: '/pages/washCodeList/washCodeList' });
}
}
});
setTimeout(() => {
wx.navigateTo({
url: '/pages/washCodeList/washCodeList'
})
})
} else {
wx.showToast({
title: res.message || '兑换失败',