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则上上页 + }) + }, } }