修改练习退出时候断网无法退出
This commit is contained in:
+3
-3
@@ -26,14 +26,14 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
|
||||
# dev
|
||||
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
|
||||
# sit
|
||||
VITE_APP_BASE_H5_API_Url = 'http://25.18.122.92:9786'
|
||||
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.92:9786'
|
||||
|
||||
# UAT
|
||||
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786'
|
||||
|
||||
# 任东
|
||||
VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601'
|
||||
VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
|
||||
# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601'
|
||||
# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
|
||||
|
||||
# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.140:9604'
|
||||
# 张建成
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script>
|
||||
|
||||
export default {
|
||||
onLaunch: function () {
|
||||
uni.onTabBarMidButtonTap(() => {
|
||||
@@ -7,6 +8,7 @@
|
||||
animationType: 'slide-in-bottom'
|
||||
});
|
||||
});
|
||||
|
||||
// console.log('预加载');
|
||||
},
|
||||
onShow: function () {
|
||||
|
||||
+2
-2
@@ -20,11 +20,11 @@ export const practiceAnswer = (data) => {
|
||||
};
|
||||
|
||||
// 3.课程练习状态变更
|
||||
export const practiceCommit = (data, suppressErrors=true) => {
|
||||
export const practiceCommit = (data) => {
|
||||
return request({
|
||||
url: base_url + '/traCrsPractice/practiceCommit',
|
||||
method: 'post',
|
||||
suppressErrors: suppressErrors,
|
||||
suppressErrors:true,
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
@@ -83,7 +83,6 @@ export default function request({
|
||||
}
|
||||
let that = this
|
||||
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.request({
|
||||
url: `${baseUrl || base_url}${url}`,
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="copyRightBox">
|
||||
<view class="font" ref="sy" v-for="(item, index) in 30" :key="index">
|
||||
{{ sytext }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
props: {
|
||||
//载入的标签数据
|
||||
sytext: {
|
||||
type: String,
|
||||
default: '吉AI学'
|
||||
}
|
||||
},
|
||||
mounted() {}
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
.copyRightBox {
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
height: 700px;
|
||||
pointer-events: none;
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
z-index: 99999;
|
||||
}
|
||||
.font {
|
||||
float: left;
|
||||
transform: rotate(-30deg);
|
||||
margin-top: 220upx;
|
||||
margin-left: 100upx;
|
||||
font-size: 34upx;
|
||||
color: rgba(100, 0, 0, 0.2);
|
||||
letter-spacing: 4px;
|
||||
}
|
||||
</style>
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<view class="main_div max_page">
|
||||
|
||||
<nav-bar :is_seat="false"></nav-bar>
|
||||
<view class="bg_div">
|
||||
<image src="/static/images/me/bg.png" class="bg_img"></image>
|
||||
@@ -144,6 +145,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
import { ref, computed, reactive, nextTick } from 'vue';
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||
import common from '@/common/common';
|
||||
|
||||
@@ -259,7 +259,7 @@
|
||||
})
|
||||
.catch(() => {
|
||||
// 单选和判断需要清除已点击的按钮
|
||||
if(['JD', 'SN'].includes(topic.value.qnsTyp)) {
|
||||
if (['JD', 'SN'].includes(topic.value.qnsTyp)) {
|
||||
topic.value.my_answer = [];
|
||||
}
|
||||
common.hideLoading();
|
||||
@@ -303,10 +303,10 @@
|
||||
|
||||
// 录音组件提交
|
||||
const touchBtnSubmit = (type, submitObj) => {
|
||||
const topic = topicList[questionNumber.value]
|
||||
const topic = topicList[questionNumber.value];
|
||||
touchBtnRef.value?.clearinputText(); // 清除发送框数据
|
||||
if (type === 'voice') {
|
||||
if(topic.es_status == '00') return;
|
||||
if (topic.es_status == '00') return;
|
||||
topic.es_status = '00'; // 00转圈
|
||||
const voicePath = submitObj;
|
||||
commonUploadVoiceFile(voicePath, '/traask/traAskchat/voiceTrans', {})
|
||||
@@ -383,8 +383,8 @@
|
||||
common.loading();
|
||||
try {
|
||||
await practiceCommit({ exrId: paperData.exrId, examLenTm: practiceTime.value, stat: 'U' });
|
||||
common.navigateBack();
|
||||
} catch (e) {}
|
||||
common.navigateBack();
|
||||
common.hideLoading();
|
||||
} else if (key === 'revert') {
|
||||
// 返回
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<watermark></watermark>
|
||||
<view class="max_page detail-main">
|
||||
<nav-bar :is_seat="false"></nav-bar>
|
||||
<view class="fixed_search_div">
|
||||
@@ -21,6 +22,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import watermark from '@/components/jm-watermark/jm-watermark.vue'
|
||||
import common from '@/common/common';
|
||||
import {
|
||||
get_base_url
|
||||
|
||||
Reference in New Issue
Block a user