Skip to content

Commit

Permalink
feat(quizset): add quiz set (#202)
Browse files Browse the repository at this point in the history
* feat(quizpaper):add feat quizpaper(thers's no real paper in database now)

* feat(question):fix some style problems.

* build: update yarn.lock

* fix: fix spaces before rpx

* refactor: remove unused console

* fix: fix my articles button

* refactor: rename quizset

* feat(paper):add record detail and question list(just init)

* fix(question):try to fix color change problem

* feat(question):card color change and submit paper,fix some error

* feat(pronunciation):fix upload error

* feat(question):fix name of quizzes and back urls

* Update src/const/urls.js

* feat(question):fix const urls

* feat(question):fix const urls

* feat(question):add records length check

* feat(question):fix request my records error

* feat(question):add identify check before get into quizset

---------

Co-authored-by: sheeplin <[email protected]>
Co-authored-by: sheeplin <[email protected]>
  • Loading branch information
3 people authored Jul 15, 2024
1 parent 7ab2aba commit fffb0af
Show file tree
Hide file tree
Showing 12 changed files with 1,888 additions and 9 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@dcloudio/uni-ui": "^1.4.24",
"@rollup/plugin-alias": "^4.0.3",
"core-js": "^3.6.5",
"element-plus": "^2.3.12",
"marked": "^4.0.18",
"postcss": "^8.1.0",
"vue": "^3.2.45",
Expand All @@ -72,12 +73,15 @@
"eslint": "^8.31.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.27.4",
"eslint-plugin-vue": "^9.9.0",
"mini-types": "*",
"miniprogram-api-typings": "*",
"sass": "^1.57.1",
"sass-loader": "^13.2.0",
"unplugin-auto-import": "^0.16.6",
"unplugin-vue-components": "^0.25.1",
"vite": "3.2.4"
}
}
23 changes: 22 additions & 1 deletion src/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,28 @@
"path": "pages/quizzes/tests/answer",
"style": {}
},
// lists区
{
"path": "pages/quizzes/quizset/index",
"style": {}
},
{
"path": "pages/quizzes/quizset/detail",
"style": {}
},
{
"path": "pages/quizzes/quizset/records/index",
"style": {}
},
{
"path": "pages/quizzes/quizset/records/detail",
"style": {}
},
{
"path": "pages/quizzes/quizset/questionCard",
"style": {
"enablePullDownRefresh": true
}
},
{
"path": "pages/lists/index",
"style": {}
Expand Down
49 changes: 44 additions & 5 deletions src/pages/quizzes/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
</view>
</view>
<!--试卷-->
<view
<!-- <view
class="cu-item padding"
style="background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%)"
>
Expand All @@ -104,16 +104,49 @@
style="max-width: 60vw"
>
一个小小的能力测验~快看看你能拿多少分数吧!
</text> -->
<!--开始答题按钮-->
<!-- <view class="quiz-btn">
<button
style="height: 80upx;width: 160upx"
class="cu-btn bg-blue shadow"
@tap="toTestPage()"
>
<text class="text-sm">
开始测验
</text>
</button>
</view>
</view>
</view> -->
<view
class="cu-item padding"
style="background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%)"
>
<view class="cu-bar">
<view class="action">
<text class="text-xl text-bold text-blue">
方言能力小测验!
</text>
</view>
</view>
<!--组卷测试,3.0增加-->
<view class="flex">
<text
class="text-content padding-left"
style="max-width: 60vw"
>
组卷答题测试~快来看看你能答对多少题吧!
</text>
<!--开始答题按钮-->
<view class="quiz-btn">
<button
style="height: 80upx;width: 160upx"
class="cu-btn bg-blue shadow"
@tap="toTestPage()"
@tap="toPaperPage(id)"
>
<text class="text-sm">
开始测验
组卷答题
</text>
</button>
</view>
Expand Down Expand Up @@ -143,15 +176,20 @@
</template>

<script>
import { toRandomQuizPage, toSearchQuizPage, toTestPage } from '@/routers/quiz';
import {
toRandomQuizPage, toSearchQuizPage, toTestPage, toPaperPage,
} from '@/routers/quiz';
import { defaultMessage } from '@/services/shareMessages';
const app = getApp();
export default {
data() {
return {
id: app.globalData.id,
toRandomQuizPage,
toTestPage,
toSearchQuizPage,
toPaperPage,
};
},
Expand All @@ -169,10 +207,11 @@ export default {
</script>

<style>
.indent{
.indent {
text-indent: 2em;
display: block;
}
.quiz-btn {
margin: 30rpx 0;
display: flex;
Expand Down
Loading

0 comments on commit fffb0af

Please sign in to comment.