diff --git a/api/http.js b/api/http.js
index 6c3da63..4a77b07 100644
--- a/api/http.js
+++ b/api/http.js
@@ -35,12 +35,10 @@ function http(uri, data, callback, method = 'GET', showLoading, title) {
if(res.statusCode == 401 ||
res.data.message == '操作失败,token非法无效!' ||
res.data.message == '操作失败,用户不存在!'){
- store.commit('logout')
console.error('登录过期');
+ store.commit('clearUserInfo')
utils.toLogin()
- }
-
- if(res.statusCode == 200 && res.data.code != 200
+ } else if(res.statusCode == 200 && res.data.code != 200
&& res.data.code != 902){
uni.showToast({
mask: true,
diff --git a/api/model/exam.js b/api/model/exam.js
index 2354d3f..abec89c 100644
--- a/api/model/exam.js
+++ b/api/model/exam.js
@@ -1,6 +1,11 @@
// 测评相关接口
const api = {
+ // 测评-查询答题列表
+ queryCategoryList: {
+ url: '/exam/queryCategoryList',
+ method: 'GET',
+ },
// 测评-查询答题列表
queryQuestionList: {
url: '/exam/queryQuestionList',
diff --git a/api/model/report.js b/api/model/report.js
index 176d4ee..6c51a62 100644
--- a/api/model/report.js
+++ b/api/model/report.js
@@ -11,6 +11,14 @@ const api = {
url: '/report/queryReportById',
method: 'GET',
},
+ // 测评-新增测评报告基本信息
+ addReport: {
+ url: '/report/addReport',
+ method: 'POST',
+ auth: true,
+ limit : 500,
+ showLoading : true,
+ },
}
export default api
\ No newline at end of file
diff --git a/components/home/unfinishTestPopup.vue b/components/home/unfinishTestPopup.vue
index 2e652ce..7d367b0 100644
--- a/components/home/unfinishTestPopup.vue
+++ b/components/home/unfinishTestPopup.vue
@@ -10,7 +10,7 @@
- {{ `您还有${detail.unfinishCount}道题未完成` }}
+ {{ `您还有${unfinishCount}道题未完成` }}
diff --git a/pages_order/service/index.vue b/pages_order/service/index.vue
index 55814cf..cf8a97f 100644
--- a/pages_order/service/index.vue
+++ b/pages_order/service/index.vue
@@ -3,20 +3,19 @@
-
-
-
+
+
@@ -99,44 +98,44 @@
}
.bg {
- // width: 100%;
- // height: auto;
- // min-height: 501rpx;
width: 100%;
- height: 501rpx;
- background: linear-gradient(160deg, #014FA2 36%, #4C8FD6);
- padding: 0 104rpx 90rpx 65rpx;
- box-sizing: border-box;
- align-items: flex-end;
-
- &-content {
- width: 100%;
- justify-content: space-between;
- }
-
- .text {
- padding: 26rpx 0 34rpx 0;
- color: #FFFFFF;
-
- .title {
- font-size: 36rpx;
- font-weight: 600;
- }
-
- .desc {
- margin-top: 13rpx;
- font-size: 22rpx;
-
- .line + .line {
- margin-top: 11rpx;
- }
- }
- }
-
- .icon {
- width: 168rpx;
- height: auto;
- }
+ height: auto;
+ min-height: 501rpx;
+ // width: 100%;
+ // height: 501rpx;
+ // background: linear-gradient(160deg, #014FA2 36%, #4C8FD6);
+ // padding: 0 104rpx 90rpx 65rpx;
+ // box-sizing: border-box;
+ // align-items: flex-end;
+
+ // &-content {
+ // width: 100%;
+ // justify-content: space-between;
+ // }
+
+ // .text {
+ // padding: 26rpx 0 34rpx 0;
+ // color: #FFFFFF;
+
+ // .title {
+ // font-size: 36rpx;
+ // font-weight: 600;
+ // }
+
+ // .desc {
+ // margin-top: 13rpx;
+ // font-size: 22rpx;
+
+ // .line + .line {
+ // margin-top: 11rpx;
+ // }
+ // }
+ // }
+
+ // .icon {
+ // width: 168rpx;
+ // height: auto;
+ // }
}
.main {
diff --git a/pages_order/service/popupPhone.vue b/pages_order/service/popupPhone.vue
index ae95d53..846af6c 100644
--- a/pages_order/service/popupPhone.vue
+++ b/pages_order/service/popupPhone.vue
@@ -10,14 +10,12 @@
电话咨询
-
-
+
-
- 13256541235
+ {{ phone }}
-
+
@@ -29,14 +27,9 @@
import utils from '@/utils/utils.js'
export default {
- props: {
- src: {
- type: String,
- default: null
- }
- },
data() {
return {
+ phone: '',
}
},
computed : {
@@ -44,14 +37,15 @@
},
methods: {
open() {
+ this.phone = this.configList.customer_service_phone
this.$refs.popup.open();
},
close() {
this.$refs.popup.close();
},
- onCall(phoneNumber) {
+ onCall() {
uni.makePhoneCall({
- phoneNumber,
+ phoneNumber: this.phone,
success() {
console.log('安卓拨打成功');
},
@@ -60,8 +54,8 @@
}
})
},
- onCopy(phone) {
- utils.copyText(phone)
+ onCopy() {
+ utils.copyText(this.phone)
},
},
}
diff --git a/pages_order/service/popupQrCode.vue b/pages_order/service/popupQrCode.vue
index a42b276..186667b 100644
--- a/pages_order/service/popupQrCode.vue
+++ b/pages_order/service/popupQrCode.vue
@@ -9,8 +9,7 @@
扫码添加微信
-
-
+
@@ -21,12 +20,6 @@
import { mapState } from 'vuex'
export default {
- props: {
- src: {
- type: String,
- default: null
- }
- },
data() {
return {
}
diff --git a/pages_order/static/feedback/icon-camera.png b/pages_order/static/feedback/icon-camera.png
new file mode 100644
index 0000000..fede8e8
Binary files /dev/null and b/pages_order/static/feedback/icon-camera.png differ
diff --git a/pages_order/static/feedback/icon-star.png b/pages_order/static/feedback/icon-star.png
new file mode 100644
index 0000000..cd2096e
Binary files /dev/null and b/pages_order/static/feedback/icon-star.png differ
diff --git a/pages_order/test/answer.vue b/pages_order/test/answer.vue
index fab3448..96e0a88 100644
--- a/pages_order/test/answer.vue
+++ b/pages_order/test/answer.vue
@@ -3,7 +3,7 @@
-
+
@@ -42,30 +42,16 @@
{{ currentQuestion.question }}
-
-
-
- {{ item.content }}
-
+
+
+ {{ item.content }}
-
-
-
-
- {{ item.content }}
-
-
-
+
@@ -82,8 +68,6 @@