From 8c0d9eb67c4d44cdedc3f30cbeb77a322ccf61a7 Mon Sep 17 00:00:00 2001 From: kylin L <452061493@qq.com> Date: Tue, 6 Feb 2024 16:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=AD=94=E9=A2=98=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E5=8A=9F=E8=83=BD=E6=95=88=E6=9E=9C+=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E7=AB=96=E5=85=A8=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/question.js | 18 ++++++++++++ components/s-video/s-video.vue | 47 ++++++++++++++++++++++++++---- pages.json | 3 +- subpkg/list/list.vue | 52 +++++++++++++++++++++++++++++----- subpkg/practice/practice.vue | 4 ++- subpkg/role/role.vue | 11 +++++-- 6 files changed, 118 insertions(+), 17 deletions(-) diff --git a/api/question.js b/api/question.js index bf09d72..eb3126c 100755 --- a/api/question.js +++ b/api/question.js @@ -7,4 +7,22 @@ export const getBindJson = (data) => { url: 'small/project/question/getBindJsonApp', data }) +} + +/** 答题次 */ +export const addQuestionFre = (data) => { + return $http({ + method: 'POST', + url: 'small/questionFre/add', + data + }) +} + +/** 答题 */ +export const addAnswer = (data) => { + return $http({ + method: 'POST', + url: 'small/questionAnswer/add', + data + }) } \ No newline at end of file diff --git a/components/s-video/s-video.vue b/components/s-video/s-video.vue index 5624f03..be16001 100644 --- a/components/s-video/s-video.vue +++ b/components/s-video/s-video.vue @@ -1,18 +1,18 @@ @@ -94,14 +96,41 @@ this.name = e this.getSceneList() }, 500) - } + }, + back(){ + uni.navigateBack({ + delta:1,//返回层数,2则上上页 + }) + }, } }