无商户信息时直接关闭应用
This commit is contained in:
parent
1d1f6498e9
commit
c6a082d1d7
|
@ -121,7 +121,15 @@
|
|||
getUserInfo().then(res => {
|
||||
if (res.data.mer_info.length == 0) {
|
||||
return uni.showModal({
|
||||
title: '暂无商户信息'
|
||||
title: '暂无商户信息',
|
||||
complete(res) {
|
||||
// #ifdef APP-PLUS
|
||||
uni.sendHostEvent('closeApp', (ret) => {
|
||||
//发送消息成功回调
|
||||
console.log('关闭应用' + JSON.stringify(ret));
|
||||
});
|
||||
// #endif
|
||||
}
|
||||
})
|
||||
}
|
||||
this.mer_id = res.data.service.mer_id;
|
||||
|
|
|
@ -960,7 +960,15 @@
|
|||
}
|
||||
if (res.data.mer_info.length == 0) {
|
||||
uni.showModal({
|
||||
title: '暂无商户信息'
|
||||
title: '暂无商户信息',
|
||||
complete(res) {
|
||||
// #ifdef APP-PLUS
|
||||
uni.sendHostEvent('closeApp', (ret) => {
|
||||
//发送消息成功回调
|
||||
console.log('关闭应用' + JSON.stringify(ret));
|
||||
});
|
||||
// #endif
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.getindex()
|
||||
|
|
Loading…
Reference in New Issue