This commit is contained in:
2025-11-11 19:20:22 +08:00
parent b94eed3c9f
commit 97c56e74e4
3 changed files with 450 additions and 10 deletions

View File

@@ -111,7 +111,7 @@
<script setup>
import { inject, ref, reactive,watch } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import { onLoad, onShow } from '@dcloudio/uni-app';
const { $api, navTo, navBack,urls } = inject('globalFunction');
import config from "@/config.js"
const userInfo = ref({});
@@ -131,7 +131,7 @@ const checkeds = ref(false);
const selectedItems = ref([]);
const current = ref("");
const handleScrollToLower = () => {
getDataList('add');
};
function selects(){
checkeds.value=!checkeds.value;
@@ -151,9 +151,13 @@ onLoad(() => {
// month=month>9?month:'0'+month
// day=day>9?day:'0'+day
// dates.value=year+'-'+month+'-'+day
// Authorization.value=uni.getStorageSync('Padmin-Token')||''
// getHeart();
});
onShow(()=>{
Authorization.value=uni.getStorageSync('Padmin-Token')||''
getHeart();
});
})
function getHeart() {
const raw =Authorization.value;
const token = typeof raw === "string" ? raw.trim() : "";
@@ -236,7 +240,7 @@ function getDataList(type = 'add') {
}
function handleDetail(row){
navTo(`/packageB/train/wrongAnswer/wrongDetail?examPaperId=${row.examPaperId}`);
navTo(`/packageB/train/wrongAnswer/wrongDetail?questionId=${row.questionId}`);
}
function startPractice(row){
navTo('/packageB/train/wrongAnswer/questionPractice');