diff --git a/common/common.js b/common/common.js
index e357820..e47d507 100755
--- a/common/common.js
+++ b/common/common.js
@@ -1,9 +1,9 @@
// const userCenterBaseUrl = 'http://192.168.0.107:7001/usercenter';
-const userCenterBaseUrl = 'http://211.82.137.19:8188/usercenter'; //正式服务器
+const userCenterBaseUrl = 'http://121.36.71.250:58033/usercenter'; //正式服务器
// const evalutaionBaseUrl = 'http://127.0.0.1:7003/evaluation';
// const evalutaionBaseUrl = 'http://192.168.0.110:7003/evaluation';
// const evalutaionBaseUrl = 'http://39.104.74.123:8082/evaluation'; //正式服务器
-const evalutaionBaseUrl = 'http://211.82.137.19:8188/evaluation'; //正式服务器
+const evalutaionBaseUrl = 'http://121.36.71.250:58033/evaluation'; //正式服务器
const missionList = evalutaionBaseUrl + '/app/apptask/listtasktoapp';
function pathArgsHasSameValue(pathArgArray) {
diff --git a/pages/evaluation/doEvaluation.vue b/pages/evaluation/doEvaluation.vue
index 9982bf2..8d20592 100755
--- a/pages/evaluation/doEvaluation.vue
+++ b/pages/evaluation/doEvaluation.vue
@@ -1,8 +1,5 @@
-
-
-
+
@@ -54,8 +51,8 @@
// setTimeout(function() {
// _self.window.document.getElementById('iframe').contentWindow.location.reload(
// true);
- // }, 1000);
-
+ // }, 1000);
+
},
fail(error) {
@@ -71,7 +68,11 @@
key: 'appToken',
success: res => {
_self.token = res.data;
- _self.getHtml(ldRes.taskId, ldRes.rid);
+ _self.webUrl = common.evalutaionBaseUrl +
+ '/app/apptask/getoptiontemplatedefault-release/' +
+ ldRes.taskId + "?token=" + _self.token;
+ console.log(_self.webUrl)
+ // _self.getHtml(ldRes.taskId, ldRes.rid);
// console.log(_self.webviewStyles)
// _self.webviewStyles.additionalHttpHeaders = {
// token: _self.token
diff --git a/pages/evaluation/missionDetail.vue b/pages/evaluation/missionDetail.vue
index 6d1be61..87abd07 100755
--- a/pages/evaluation/missionDetail.vue
+++ b/pages/evaluation/missionDetail.vue
@@ -45,12 +45,9 @@
// _self.createView(ldRes.taskId, ldRes.rid)
// // #endif
// // #ifdef H5
- _self.webUrl = common.evalutaionBaseUrl + '/app/apptask/getoptiontemplatedefaultresult/' +
- ldRes.taskId + '/' + ldRes.rid;
- console.log(_self.webUrl)
- _self.webstyle.additionalHttpHeaders = {
- token: _self.token
- }
+ _self.webUrl = common.evalutaionBaseUrl + '/app/apptask/getoptiontemplatedefaultresult-release/' +
+ ldRes.taskId + '/' + ldRes.rid + "?token=" + _self.token;
+ console.log(_self.webUrl)
// // #endif
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 6e09532..b6d9bba 100755
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,14 +1,16 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
+
+ :data-taskid="evaluation.taskId">
{{index + 1}}.{{evaluation.taskName}}
{{evaluation.evaluationName}}
@@ -16,24 +18,26 @@
{{evaluation.taskStartTime.substring(0, 10)}}至{{evaluation.taskEndTime.substring(0, 10)}}
-
-
-
- {{evaluation.taskTypeContent.split('|')[1]}}
- [被测评部门]
-
-
- {{evaluation.taskTypeContent.split('|')[2]}}
- [被测评人员]
-
+
+
+
+ {{evaluation.taskTypeContent.split('|')[1]}}
+ [被测评部门]
+
+
+ {{evaluation.taskTypeContent.split('|')[2]}}
+ [被测评人员]
+
- {{evaluation.taskRecordSubmitCount.substring(0,evaluation.taskRecordSubmitCount.lastIndexOf('|'))}}
+
+ {{evaluation.taskRecordSubmitCount.substring(0,evaluation.taskRecordSubmitCount.lastIndexOf('|'))}}
{{divider}}
- {{evaluation.taskRecordSubmitCount.substring(evaluation.taskRecordSubmitCount.lastIndexOf('未'),evaluation.taskRecordSubmitCount.length)}}
+ {{evaluation.taskRecordSubmitCount.substring(evaluation.taskRecordSubmitCount.lastIndexOf('未'),evaluation.taskRecordSubmitCount.length)}}
+
@@ -42,7 +46,8 @@
-
+
+
@@ -99,7 +104,10 @@
});
}
_self.token = appToken
+ // #ifdef APP-PLUS
_self.checkAppVersion();
+ // #endif
+
},
onPullDownRefresh() {
var self = this;
@@ -110,7 +118,8 @@
checkAppVersion() {
var versionUrl = common.userCenterBaseUrl +
'/app/appversion/getappversionnumber/240fbf7a-aa32-4cde-9674-5147a7d5eb2f'
- var downloadUrl = common.userCenterBaseUrl + '/app/appversion/downloadapp/240fbf7a-aa32-4cde-9674-5147a7d5eb2f'
+ var downloadUrl = common.userCenterBaseUrl +
+ '/app/appversion/downloadapp/240fbf7a-aa32-4cde-9674-5147a7d5eb2f'
uni.request({
url: versionUrl,
header: {
@@ -209,31 +218,33 @@
position: fixed;
top: 0;
background-color: #FFFFFF;
- }
- .input-box {
- margin-top: 10rpx;
- width: 90%;
- min-height: 50rpx;
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- background-color: #F5F5F5;
- border: #666666 solid #555555;
- border-radius: 20rpx;
- }
-
- .input-font {
- color: #000000;
- width: 90%;
- margin-left: 10rpx;
- padding-left: 10rpx;
- align-self: center;
- font-size: 30rpx;
- min-height: 50rpx;
- border: #666666 solid #555555;
- border-radius: 15rpx;
}
+
+ .input-box {
+ margin-top: 10rpx;
+ width: 90%;
+ min-height: 50rpx;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ background-color: #F5F5F5;
+ border: #666666 solid #555555;
+ border-radius: 20rpx;
+ }
+
+ .input-font {
+ color: #000000;
+ width: 90%;
+ margin-left: 10rpx;
+ padding-left: 10rpx;
+ align-self: center;
+ font-size: 30rpx;
+ min-height: 50rpx;
+ border: #666666 solid #555555;
+ border-radius: 15rpx;
+ }
+
.item-count {
font-size: 15rpx;
display: flex;
@@ -310,7 +321,7 @@
color: #000000;
}
- .item-tag {
+ .item-tag {
color: #888888;
display: flex;
justify-content: center;
diff --git a/pages/index/indexOne.vue b/pages/index/indexOne.vue
index 884d468..f4ecfc0 100644
--- a/pages/index/indexOne.vue
+++ b/pages/index/indexOne.vue
@@ -1,8 +1,9 @@
-
+
+ :data-taskid="evaluation.evaluationId">
{{index + 1}}.{{evaluation.evaluationName}}
@@ -11,7 +12,8 @@
-
+
+
@@ -59,14 +61,17 @@
});
}
_self.token = appToken
+ // #ifdef APP-PLUS
_self.checkAppVersion();
+ // #endif
_self.initData();
},
methods: {
checkAppVersion() {
var versionUrl = common.userCenterBaseUrl +
'/app/appversion/getappversionnumber/240fbf7a-aa32-4cde-9674-5147a7d5eb2f'
- var downloadUrl = common.userCenterBaseUrl + '/app/appversion/downloadapp/240fbf7a-aa32-4cde-9674-5147a7d5eb2f'
+ var downloadUrl = common.userCenterBaseUrl +
+ '/app/appversion/downloadapp/240fbf7a-aa32-4cde-9674-5147a7d5eb2f'
uni.request({
url: versionUrl,
header: {
@@ -117,11 +122,11 @@
}
})
},
- itemClick(e) {
- uni.navigateTo({
- url:'indexTwo?id='+ e.evaluationId,
+ itemClick(e) {
+ uni.navigateTo({
+ url: 'indexTwo?id=' + e.evaluationId,
})
-
+
// uni.navigateTo({
// url: '../evaluation/doEvaluation?taskId=' + e.taskId
// })
diff --git a/pages/index/indexTwo.vue b/pages/index/indexTwo.vue
index 3e0c94d..90abcea 100644
--- a/pages/index/indexTwo.vue
+++ b/pages/index/indexTwo.vue
@@ -1,7 +1,7 @@
-
+
diff --git a/pages/temp/doTempEval.vue b/pages/temp/doTempEval.vue
index 45b75ae..41c2c3b 100755
--- a/pages/temp/doTempEval.vue
+++ b/pages/temp/doTempEval.vue
@@ -1,5 +1,6 @@
+
@@ -11,33 +12,38 @@
data() {
const token = '';
return {
- token: ''
+ token: '',
+ webUrl: "",
};
},
methods: {
- createView(taskid,trid) {
- var url = common.evalutaionBaseUrl + '/app/apptask/getoptiontemplatedefaulttemporary/' + taskid+'/'+trid
- wv = plus.webview.create(url, "custom-webview", {
- top: uni.getSystemInfoSync().statusBarHeight + 44,
- bottom: '0px',
- additionalHttpHeaders: {
- token: _self.token
- }
- })
- // wv.loadURL(url)
- var currentWebview = this.$mp.page.$getAppWebview()
- currentWebview.append(wv);
- setTimeout(function() {}, 1000);
+ createView(taskid, trid) {
+ var url = common.evalutaionBaseUrl + '/app/apptask/getoptiontemplatedefaulttemporary/' + taskid + '/' +
+ trid + "?token="
+ // wv = plus.webview.create(url, "custom-webview", {
+ // top: uni.getSystemInfoSync().statusBarHeight + 44,
+ // bottom: '0px',
+ // additionalHttpHeaders: {
+ // token: _self.token
+ // }
+ // })
+ // // wv.loadURL(url)
+ // var currentWebview = this.$mp.page.$getAppWebview()
+ // currentWebview.append(wv);
+ // setTimeout(function() {}, 1000);
}
},
onLoad(ldRes) {
- _self = this;
+ _self = this;
console.log(ldRes.trid);
uni.getStorage({
key: 'appToken',
success: res => {
_self.token = res.data;
- _self.createView(ldRes.taskId,ldRes.trid)
+ _self.webUrl = common.evalutaionBaseUrl +
+ '/app/apptask/getoptiontemplatedefaulttemporary-release/' +
+ ldRes.taskId + '/' +
+ ldRes.trid + "?token=" + _self.token;
}
});
},