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 @@ @@ -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 @@ @@ -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 @@