diff --git a/client_mp/common/http.api.js b/client_mp/common/http.api.js
index a9f581b..fdb7fbc 100644
--- a/client_mp/common/http.api.js
+++ b/client_mp/common/http.api.js
@@ -1,7 +1,6 @@
// 如果没有通过拦截器配置域名的话,可以在这里写上完整的URL(加上域名部分)
let hotSearchUrl = '/ebapi/store_api/hot_search';
let indexUrl = '/ebapi/public_api/index';
-
// 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作,更多内容详见uView对拦截器的介绍部分:
// https://uviewui.com/js/http.html#%E4%BD%95%E8%B0%93%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%EF%BC%9F
const install = (Vue, vm) => {
@@ -11,27 +10,17 @@ const install = (Vue, vm) => {
});
// 此处使用了传入的params参数,一切自定义即可
let getUserInfo = (params = {}) => vm.$u.get('/system/user/info/', params);//获取用户信息
-
let getCode = (params = {}) => vm.$u.post('/system/sendmsg/', params); //获取邮箱验证码
-
let codeLogin = (params = {}) => vm.$u.post('/token2/', params); //邮箱验证码登录
-
let login = (params = {}) => vm.$u.post('/token/', params); //账户密码登录
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
-
let wxmplogin = (params = {}) => vm.$u.post('/wxmplogin/', params); //微信登录
-
let bindmp = (params = {}) => vm.$u.post('/system/user/bindwxmp/', params); //微信绑定
-
let unbindmp = (params = {}) => vm.$u.post('/system/user/unbindwxmp/', params); //微信绑定
-
let getMyInspectTaskList = (params = {}) => vm.$u.get('/quality/subinspecttask/self/', params);
-
let getSubinspectTask = (id, params)=> vm.$u.get(`/quality/subinspecttask/${id}/`, params);
-
//获取子任务涉及的单位
let getSubtaskDepts = (id, params)=> vm.$u.get(`/quality/subinspecttask/${id}/depts/`, params);
-
//获取子任务单位的详细信息
let getSubtaskDept = (id, params)=> vm.$u.get(`/quality/inspectdept/${id}/`, params);
let getInspectRecords = (params)=> vm.$u.get('/quality/inspectrecord/', params);
@@ -44,8 +33,6 @@ const install = (Vue, vm) => {
let getVideos = (params={})=>vm.$u.get('/vod/video/', params);//点播视频
let getDickey = (params={})=>vm.$u.get('/system/dict/', params);//查询字典
let putMyVideoView =(id)=>vm.$u.put(`/vod/video/${id}/myview/`);//更新本人观看信息
-
-
//考试有关
let getExamList = (params={})=>vm.$u.get('/exam/exam/', params);//考试列表
let startExam = (id)=>vm.$u.post(`/exam/exam/${id}/start/`);//开始考试
@@ -54,6 +41,7 @@ const install = (Vue, vm) => {
let examRecordDetail = (id,params={})=>vm.$u.get(`/exam/examrecord/${id}/`,params);//我的考试记录
let paperDetail = (id,params={})=>vm.$u.get(`/exam/paper/${id}/`,params);//测试
let questionList = (params={})=>vm.$u.get(`/exam/question/`,params);//题目
+ let certificateList = (params={})=>vm.$u.get(`/edu/certificate/`,params);//证书列表
vm.$u.api = {getUserInfo,
getCode,
@@ -83,7 +71,9 @@ const install = (Vue, vm) => {
examRecord,
paperDetail,
questionList,
- examRecordDetail
+ examRecordDetail,
+
+ certificateList
};
}
diff --git a/client_mp/pages.json b/client_mp/pages.json
index f6925b1..751275d 100644
--- a/client_mp/pages.json
+++ b/client_mp/pages.json
@@ -137,33 +137,33 @@
}
}
- ,{
- "path" : "pages/exam/test",
- "style" :
- {
- "navigationBarTitleText": "练习",
- "enablePullDownRefresh": false
- }
+ // ,{
+ // "path" : "pages/exam/test",
+ // "style" :
+ // {
+ // "navigationBarTitleText": "练习",
+ // "enablePullDownRefresh": false
+ // }
- }
- ,{
- "path" : "pages/exam/question",
- "style" :
- {
- "navigationBarTitleText": "专题练习",
- "enablePullDownRefresh": false
- }
+ // }
+ // ,{
+ // "path" : "pages/exam/question",
+ // "style" :
+ // {
+ // "navigationBarTitleText": "专题练习",
+ // "enablePullDownRefresh": false
+ // }
- }
- ,{
- "path" : "pages/exam/testDetail",
- "style" :
- {
- "navigationBarTitleText": "练习题目",
- "enablePullDownRefresh": false
- }
+ // }
+ // ,{
+ // "path" : "pages/exam/testDetail",
+ // "style" :
+ // {
+ // "navigationBarTitleText": "练习题目",
+ // "enablePullDownRefresh": false
+ // }
- }
+ // }
,{
"path" : "pages/exam/exam",
"style" :
@@ -186,7 +186,7 @@
"path" : "pages/exam/main",
"style" :
{
- "navigationBarTitleText": "答题中",
+ "navigationBarTitleText": "考试中",
"enablePullDownRefresh": false
}
@@ -195,7 +195,7 @@
"path" : "pages/exam/record",
"style" :
{
- "navigationBarTitleText": "答题记录",
+ "navigationBarTitleText": "考试记录",
"enablePullDownRefresh": false
}
@@ -204,7 +204,7 @@
"path" : "pages/exam/result",
"style" :
{
- "navigationBarTitleText": "答题结束",
+ "navigationBarTitleText": "考试结束",
"enablePullDownRefresh": false
}
@@ -212,7 +212,15 @@
"path" : "pages/exam/detail",
"style" :
{
- "navigationBarTitleText": "答题详情",
+ "navigationBarTitleText": "考试详情",
+ "enablePullDownRefresh": false
+ }
+
+ },{
+ "path" : "pages/certificate/index",
+ "style" :
+ {
+ "navigationBarTitleText": "证书查询",
"enablePullDownRefresh": false
}
@@ -239,14 +247,14 @@
"pagePath": "pages/exam/index",
"iconPath": "static/common/dati.png",
"selectedIconPath": "static/common/datic.png",
- "text": "答题"
- },
- {
- "pagePath": "pages/vod/video",
- "iconPath": "static/common/play.png",
- "selectedIconPath": "static/common/playc.png",
- "text": "点播"
+ "text": "考试"
},
+ // {
+ // "pagePath": "pages/vod/video",
+ // "iconPath": "static/common/play.png",
+ // "selectedIconPath": "static/common/playc.png",
+ // "text": "点播"
+ // },
{
"pagePath": "pages/my/my",
"iconPath": "static/common/me.png",
diff --git a/client_mp/pages/certificate/index.vue b/client_mp/pages/certificate/index.vue
new file mode 100644
index 0000000..f646f02
--- /dev/null
+++ b/client_mp/pages/certificate/index.vue
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
diff --git a/client_mp/pages/certificate/index1.vue b/client_mp/pages/certificate/index1.vue
new file mode 100644
index 0000000..c435e78
--- /dev/null
+++ b/client_mp/pages/certificate/index1.vue
@@ -0,0 +1,302 @@
+
+
+
+
+
+
+ 查询
+
+
+
+
+ 证书列表
+
+
+
+ 姓名:姓名
+
+ 证书号:XJ8937264
+
+
+ 发证日期:2024-05-26
+
+
+
+ 通过考核
+
+
+
+
+
+ 姓名:{{item.consumer_name}}
+
+ 证书号:{{item.number}}
+
+
+ 发证日期:{{item.issue_date}}
+
+
+
+ 通过考核
+
+
+
+
+
+
+
+
+
+
+
diff --git a/client_mp/pages/exam/record.vue b/client_mp/pages/exam/record.vue
index ed027df..9facd81 100644
--- a/client_mp/pages/exam/record.vue
+++ b/client_mp/pages/exam/record.vue
@@ -1,32 +1,33 @@
-
+
-
-
-
- {{item.type}}
- (补)
+
+
+
+ {{item.exam_name}}
+ (补)
+
+ 总分:{{item.total_score}}分
-
- 耗时:
- {{item.took_format}}
+
+ 耗时:
+ {{item.took_format}}
- -
- 提交时间:{{item.create_time}}
-
- 总分:{{item.total_score}}分
- -
- 得分:
- {{item.score}}
+
+ 提交时间:{{item.create_time}}
+
+
+ 本次得分:
+ {{item.score}}
分
- {{loadingText}}
+ {{loadingText}}
@@ -48,11 +49,11 @@
that.$u.api.examRecord(that.listQuery).then(res => {
uni.stopPullDownRefresh()
uni.setNavigationBarTitle({
- title: res.data.count + '条答题记录'
+ title: res.data.count + '条考试记录'
})
if (that.listQuery.page == 1) {
if (res.data.results.length == 0) {
- that.loadingText = '暂无答题记录'
+ that.loadingText = '暂无考试记录'
} else {
that.loadingText = ''
that.list = res.data.results
@@ -70,7 +71,7 @@
},
goDetail(id) {
uni.showLoading({
- title:"正在获取答题详情",
+ title:"正在获取考试详情",
})
this.$u.api.examRecordDetail(id).then(res=>{
uni.hideLoading()
@@ -112,4 +113,26 @@
background-color: $u-bg-color;
}
+ .infoHead{
+ display: flex;
+ justify-content: space-between;
+ height: 64upx;
+ line-height: 60upx;
+ }
+ .infoLine{
+ color:gray;
+ font-size: 28upx;
+ height: 40upx;
+ line-height: 40upx;
+ }
+ .scoreClass{
+ color:#2581e4;
+ font-weight: bold;
+ font-size: 34upx;
+ }
+ .loadingText{
+ color:gray;
+ text-align: center;
+ margin-top:20upx
+ }
diff --git a/client_mp/pages/home/home.vue b/client_mp/pages/home/home.vue
index c5b26f7..d00c4bf 100644
--- a/client_mp/pages/home/home.vue
+++ b/client_mp/pages/home/home.vue
@@ -4,13 +4,13 @@
-->
- 欢迎您:{{vuex_user.name}}
+ 欢迎您:{{vuex_user.name}}!
-
+
@@ -88,6 +88,21 @@
name: '手册/资料',
icon: 'file-text',
path: '/pages/document/index',
+ },
+ {
+ name: '考试',
+ icon: 'file-text',
+ path: '/pages/exam/exam',
+ },
+ {
+ name: '考试记录',
+ icon: 'file-text',
+ path: '/pages/exam/record',
+ },
+ {
+ name: '证书查询',
+ icon: 'file-text',
+ path: '/pages/certificate/index',
}
],
headstyle: {
@@ -161,6 +176,15 @@