修复些问题

This commit is contained in:
Strange 2024-07-20 12:36:41 +08:00
parent d73e1f95f1
commit a8e8fc26ed
14 changed files with 62 additions and 59 deletions

1
.env.development Normal file
View File

@ -0,0 +1 @@
VITE_APP_BASE_API = 'http://127.0.0.1:8088'

View File

@ -1,6 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"baseUrl": "./", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"]
}, },

View File

@ -5,7 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build:prod": "vite build",
"preview": "vite preview", "preview": "vite preview",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore" "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 659 KiB

BIN
src/assets/image/mimi.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 809 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 KiB

View File

@ -10,7 +10,7 @@
{{ props.topicTitle }} {{ props.topicTitle }}
</div> </div>
<div class="introduce"> <div class="introduce">
<el-radio-group v-if="props.type=='select'" v-model="radio"> <el-radio-group v-if="props.type!='fill_topic'" v-model="radio">
<el-radio <el-radio
v-for="itme in topicSelect" v-for="itme in topicSelect"
:key="itme.key" :key="itme.key"
@ -33,46 +33,6 @@
</div> </div>
</div> </div>
</template> </template>
<style lang="scss" scoped>
.topicInfoBox {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
font-family: "KaiTi"
}
.introduce {
margin: 10px auto;
width: 90%;
word-break: normal;
word-wrap: break-word;
}
.title{
font-size: 17px;
line-height: 17px;
margin-top:30px;
}
.tag{
margin-top: 10px;
}
.jg{
width: 100%;
height: 17vw;
box-sizing:border-box;
padding-top: 19%;
padding-left: 23%;
font-family: "黑体";
font-size: 17px;
line-height: 17px;
// background-color: aqua;
background-image: url("@/assets/image/bltt.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
</style>
<script setup> <script setup>
import { onMounted, ref } from "vue"; import { onMounted, ref } from "vue";
import { useTopicStore } from "@/stores/topic.js"; import { useTopicStore } from "@/stores/topic.js";
@ -124,3 +84,42 @@ onMounted(() => {
}); });
</script> </script>
<style lang="scss" scoped>
.topicInfoBox {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
font-family: "KaiTi"
}
.introduce {
margin: 10px auto;
width: 90%;
word-break: normal;
word-wrap: break-word;
}
.title{
font-size: 17px;
line-height: 17px;
margin-top:30px;
}
.tag{
margin-top: 10px;
}
.jg{
width: 100%;
height: 17vw;
box-sizing:border-box;
padding-top: 19%;
padding-left: 23%;
font-family: "黑体";
font-size: 17px;
line-height: 17px;
// background-color: aqua;
background-image: url("@/assets/image/bltt.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
</style>

View File

@ -1,8 +1,8 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'
import TokenService from '@/utils/token' import TokenService from '@/utils/token'
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [ routes: [
{ {
path: '/', path: '/',

View File

@ -84,11 +84,13 @@ export const useTopicStore = defineStore('useTopicStore', () => {
//提交答案 //提交答案
const submitAnswer=async(answer)=>{ const submitAnswer=async(answer)=>{
//先判断是否已经答过 //先判断是否已经答过
if(Topic.value.isAnswer){ // if(Topic.value.isAnswer){
ElMessage({ message: "已经做过了", type: "warning" }); // ElMessage({ message: "已经做过了", type: "warning" });
return; // return;
} // }
// console.log(Topic.value)
let res=await validationAnswer({questionId:Topic.value.id,answer}); let res=await validationAnswer({questionId:Topic.value.id,answer});
console.log(res);
if(res.code==200){ if(res.code==200){
setAnswer({ setAnswer({
isAnswer:true, isAnswer:true,

View File

@ -168,7 +168,10 @@ onMounted(() => {
height: 100vh; height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-image: url("@/assets/image/loginback.jpg");
background-size: cover; //
// background-position: center; //
background-repeat: no-repeat; //
.main { .main {
width: 100%; width: 100%;
// //
@ -230,7 +233,7 @@ onMounted(() => {
box-sizing: border-box; box-sizing: border-box;
padding: 20px; padding: 20px;
// background-color: #f0f9cc; // background-color: #f0f9cc;
background-image: url("@/assets/image/tibg.jpg"); background-image: url("@/assets/image/videoBack.jpg");
background-size: cover; // background-size: cover; //
background-position: center; // background-position: center; //
background-repeat: no-repeat; // background-repeat: no-repeat; //

View File

@ -78,7 +78,7 @@
.loginBox { .loginBox {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
background-image: url("@/assets/image/loginbg.jpg"); background-image: url("@/assets/image/loginback.jpg");
background-size: cover; background-size: cover;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;

View File

@ -150,7 +150,7 @@
width: 100vw; width: 100vw;
flex: 1; flex: 1;
// height: 100vh; // height: 100vh;
background-image: url("@/assets/image/userbg.jpg"); background-image: url("@/assets/image/mimi.jpg");
background-size: cover; // background-size: cover; //
background-position: center; // background-position: center; //
background-repeat: no-repeat; // background-repeat: no-repeat; //
@ -208,11 +208,7 @@
/* Firefox */ /* Firefox */
-ms-overflow-style: none; -ms-overflow-style: none;
/* IE 10+ */
::-webkit-scrollbar {
display: none;
/* Chrome Safari */
}
flex: 1; flex: 1;
width: 90%; width: 90%;

View File

@ -8,6 +8,7 @@ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
base: './',
plugins: [ plugins: [
vue(), vue(),
AutoImport({ AutoImport({
@ -15,7 +16,8 @@ export default defineConfig({
}), }),
Components({ Components({
resolvers: [ElementPlusResolver()], resolvers: [ElementPlusResolver()],
}), })
], ],
resolve: { resolve: {
alias: { alias: {