Commit 73c6ea18 authored by Facius's avatar Facius
parents 93fc0119 53e4ec29
;
(function() {
let NODE_ENV = 'dev'; // dev:开发环境 | test:测试环境
let NODE_ENV = 'test'; // dev:开发环境 | test:测试环境
let ENV_VAR = null;
if (process.env.NODE_ENV === "development") {
if (NODE_ENV === 'dev') {
......
......@@ -160,7 +160,7 @@
url: systemApiUrl +
'/wxh-worker-rest/rest/exam' +
'/serviceRule/userExamInfo/' +
getApp().globalData.token +
that.vuex_token +
'?examId=' + this.examId,
method: 'POST',
data: {
......@@ -231,7 +231,7 @@
url: systemApiUrl +
'/wxh-worker-rest/rest/exam' +
'/serviceRule/' +
getApp().globalData.token +
that.vuex_token +
'?examId=' + this.examId,
method: 'POST',
data: {
......@@ -297,7 +297,7 @@
url: systemApiUrl +
'/wxh-worker-rest/rest/exam' +
'/serviceRule/next/' +
getApp().globalData.token +
that.vuex_token +
'?userExamId=' + this.userExamId +
'&questionId=' + questionId +
'&userAnswerIds=' + this.userAnswerIds,
......@@ -468,7 +468,7 @@
let that = this
uni.request({
url: ucenterApiUrl + '/v1/settled/update-settled-exam-score' +
'?access-token=' + getApp().globalData.token,
'?access-token=' + that.vuex_token,
method: 'POST',
data: {
score: this.examScore || 0,
......
......@@ -176,10 +176,12 @@ export default {
},
onShow() {
// 每次进入页面都刷新入驻状态
if (!this.vuex_token) {
// 初始化订单数据
this.loadOrderList();
}
if (this.vuex_token) {
this.initSettleInfo();
} else {
// 初始化订单数据
this.loadOrderList();
}
},
methods: {
async initSettleInfo() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment