|
|
|
|
@ -16,34 +16,6 @@ const $store = useStore();
|
|
|
|
|
|
|
|
|
|
let topicList = ref([]); // 题目列表
|
|
|
|
|
let topicIndex = ref(0); // 题目索引
|
|
|
|
|
let words = ref([
|
|
|
|
|
"A",
|
|
|
|
|
"B",
|
|
|
|
|
"C",
|
|
|
|
|
"D",
|
|
|
|
|
"E",
|
|
|
|
|
"F",
|
|
|
|
|
"G",
|
|
|
|
|
"H",
|
|
|
|
|
"I",
|
|
|
|
|
"J",
|
|
|
|
|
"K",
|
|
|
|
|
"L",
|
|
|
|
|
"M",
|
|
|
|
|
"N",
|
|
|
|
|
"O",
|
|
|
|
|
"P",
|
|
|
|
|
"Q",
|
|
|
|
|
"R",
|
|
|
|
|
"S",
|
|
|
|
|
"T",
|
|
|
|
|
"U",
|
|
|
|
|
"V",
|
|
|
|
|
"W",
|
|
|
|
|
"X",
|
|
|
|
|
"Y",
|
|
|
|
|
"Z",
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const tabPatients = () => {
|
|
|
|
|
@ -155,7 +127,7 @@ const next = () => {
|
|
|
|
|
let val = topicList.value[topicIndex.value];
|
|
|
|
|
if (!val?.answer.length) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "不能为空",
|
|
|
|
|
title: "请完成当前问题",
|
|
|
|
|
icon: "none",
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
@ -164,7 +136,7 @@ const next = () => {
|
|
|
|
|
let indexItem = val.index[i];
|
|
|
|
|
if (!val.more[indexItem] && val.isInputList[indexItem]) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "不能为空",
|
|
|
|
|
title: "请完成当前问题",
|
|
|
|
|
icon: "none",
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
@ -208,7 +180,7 @@ const sumbilt = async () => {
|
|
|
|
|
if (!val.answer.length) {
|
|
|
|
|
// 第一层拦截
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "不能为空",
|
|
|
|
|
title: "请完成当前问题",
|
|
|
|
|
icon: "none",
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
@ -218,7 +190,7 @@ const sumbilt = async () => {
|
|
|
|
|
let indexItem = val.index[j];
|
|
|
|
|
if (!val.more[indexItem] && val.isInputList[indexItem]) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "不能为空",
|
|
|
|
|
title: "请完成当前问题",
|
|
|
|
|
icon: "none",
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
@ -309,7 +281,7 @@ onShow(() => {
|
|
|
|
|
class="bg-#fff shadow-[0rpx_0rpx_10rpx_0rpx_rgba(0,0,0,0.04)] px-45rpx py40rpx box-border rounded-15rpx"
|
|
|
|
|
>
|
|
|
|
|
<view class="text-#000000 text-30rpx"
|
|
|
|
|
>{{ words[topicIndex] }}. {{ topicList[topicIndex]?.question }}</view
|
|
|
|
|
>{{ topicList[topicIndex]?.question }}</view
|
|
|
|
|
>
|
|
|
|
|
<view class="my-35rpx pb-120rpx b-0 b-b-1 b-solid b-#DEDEDF">
|
|
|
|
|
<uni-easyinput
|
|
|
|
|
|