feat: 新增退款和网约车用户管理页面
添加了退款和网约车用户管理相关页面,包括页面配置、样式、逻辑处理等。同时更新了应用配置文件和私有配置文件以支持新页面。
This commit is contained in:
@@ -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 || '兑换失败',
|
||||
|
||||
Reference in New Issue
Block a user