JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_fix: 返回导致的退出问题修复
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ ENV = 'development'
|
|||||||
# VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001'
|
# VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001'
|
||||||
|
|
||||||
|
|
||||||
VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7003'
|
VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+16
-1
@@ -14,7 +14,14 @@ function msg(title, duration = 1000) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let isShowConfirm = false
|
||||||
function show(title, msg, showCancel = true, cancelText = '取消', confirmText = '确定') {
|
function show(title, msg, showCancel = true, cancelText = '取消', confirmText = '确定') {
|
||||||
|
if(isShowConfirm) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
reject(res);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
isShowConfirm = true
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// 创建通用参数对象
|
// 创建通用参数对象
|
||||||
const dialogOptions = {
|
const dialogOptions = {
|
||||||
@@ -26,7 +33,9 @@ function show(title, msg, showCancel = true, cancelText = '取消', confirmText
|
|||||||
success: (res) => {
|
success: (res) => {
|
||||||
// 统一处理成功回调,解析为布尔值
|
// 统一处理成功回调,解析为布尔值
|
||||||
resolve(!!res.confirm);
|
resolve(!!res.confirm);
|
||||||
}
|
isShowConfirm = false
|
||||||
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
if (getPhoneEnvBool('AND')) {
|
if (getPhoneEnvBool('AND')) {
|
||||||
@@ -35,6 +44,7 @@ function show(title, msg, showCancel = true, cancelText = '取消', confirmText
|
|||||||
...dialogOptions,
|
...dialogOptions,
|
||||||
cancel: () => {
|
cancel: () => {
|
||||||
console.log('用户点击取消');
|
console.log('用户点击取消');
|
||||||
|
isShowConfirm = false
|
||||||
resolve(false); // 取消时也返回Promise结果
|
resolve(false); // 取消时也返回Promise结果
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -43,6 +53,7 @@ function show(title, msg, showCancel = true, cancelText = '取消', confirmText
|
|||||||
uni.showModal({
|
uni.showModal({
|
||||||
...dialogOptions,
|
...dialogOptions,
|
||||||
fail: (res) => {
|
fail: (res) => {
|
||||||
|
isShowConfirm = false
|
||||||
reject(res);
|
reject(res);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -52,6 +63,7 @@ function show(title, msg, showCancel = true, cancelText = '取消', confirmText
|
|||||||
uni.showModal({
|
uni.showModal({
|
||||||
...dialogOptions,
|
...dialogOptions,
|
||||||
fail: (res) => {
|
fail: (res) => {
|
||||||
|
isShowConfirm = false
|
||||||
reject(res);
|
reject(res);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -59,6 +71,9 @@ function show(title, msg, showCancel = true, cancelText = '取消', confirmText
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const closeStatus = () => {
|
||||||
|
isShowConfirm = false
|
||||||
|
}
|
||||||
const loading = (title = '加载中', mask = true) => uni.showLoading({
|
const loading = (title = '加载中', mask = true) => uni.showLoading({
|
||||||
title: title,
|
title: title,
|
||||||
mask: mask
|
mask: mask
|
||||||
|
|||||||
@@ -290,6 +290,7 @@ const showModelComfirm = ref(false)
|
|||||||
const reconcatNum = ref(0)
|
const reconcatNum = ref(0)
|
||||||
const answerText = ref('')
|
const answerText = ref('')
|
||||||
const touchBtnCallBack = ref(null)
|
const touchBtnCallBack = ref(null)
|
||||||
|
const stopAnswerCallBack = ref(false)
|
||||||
let isLeave = false
|
let isLeave = false
|
||||||
const initsocketTask = () => {
|
const initsocketTask = () => {
|
||||||
let _src = isPreview.value ? '/trapractice/previewsocket/open' : '/trapractice/partnersocket/open'
|
let _src = isPreview.value ? '/trapractice/previewsocket/open' : '/trapractice/partnersocket/open'
|
||||||
@@ -310,7 +311,7 @@ const initsocketTask = () => {
|
|||||||
if (watchFlag.value === 1 || showModelComfirm.value) return
|
if (watchFlag.value === 1 || showModelComfirm.value) return
|
||||||
if (reconcatNum.value === 5) {
|
if (reconcatNum.value === 5) {
|
||||||
common.msg('系统网络异常,请稍后再试!')
|
common.msg('系统网络异常,请稍后再试!')
|
||||||
common.redirectTo(`/pages/index/dialog`)
|
common.reLaunch(`/pages/index/dialog`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
showModelComfirm.value = true
|
showModelComfirm.value = true
|
||||||
@@ -473,6 +474,7 @@ const initsocketTask = () => {
|
|||||||
watchFlag.value += 1
|
watchFlag.value += 1
|
||||||
}
|
}
|
||||||
const goBack = () => {
|
const goBack = () => {
|
||||||
|
console.log(222,detailInfo.value.traInterTyp === '01')
|
||||||
if (detailInfo.value.traInterTyp === '01') {
|
if (detailInfo.value.traInterTyp === '01') {
|
||||||
overTalking()
|
overTalking()
|
||||||
} else {
|
} else {
|
||||||
@@ -585,6 +587,7 @@ onMounted(() => {
|
|||||||
// getDetailInfo()
|
// getDetailInfo()
|
||||||
})
|
})
|
||||||
onBackPress(res => {
|
onBackPress(res => {
|
||||||
|
console.log(1111)
|
||||||
if (res.from === 'backbutton') {
|
if (res.from === 'backbutton') {
|
||||||
goBack()
|
goBack()
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user