修复些问题

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": {
"baseUrl": "./",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},

View File

@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"build:prod": "vite build",
"preview": "vite preview",
"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 }}
</div>
<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
v-for="itme in topicSelect"
:key="itme.key"
@ -33,46 +33,6 @@
</div>
</div>
</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>
import { onMounted, ref } from "vue";
import { useTopicStore } from "@/stores/topic.js";
@ -124,3 +84,42 @@ onMounted(() => {
});
</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'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',

View File

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

View File

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

View File

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

View File

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

View File

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