浏览代码

bug 修复

lilei 4 年之前
父节点
当前提交
b4e90a7964

+ 2 - 2
App.vue

@@ -1,7 +1,7 @@
 <script>
 	// const uat_URL = 'http://md.test.zyucgj.com/at-employee/' // 预发布
-	const uat_URL = 'http://192.168.16.107:7300/mock/5f5af637cb0f492ad4ee858f/app/at-employee/' // mock
-	// const uat_URL = 'http://192.168.16.104:8203/at-employee/' // 本地
+	// const uat_URL = 'http://192.168.16.107:7300/mock/5f5af637cb0f492ad4ee858f/app/at-employee/' // mock
+	const uat_URL = 'http://192.168.16.104:8203/at-employee/' // 本地
 	const pro_URL = 'https://car.zyucgj.com/at-employee/'  // 生产
 	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
 	const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url

+ 3 - 6
hybrid/html/video.html

@@ -139,7 +139,7 @@
 		  </div>
       </div>
       <!-- 提交按钮-->
-	  <div class="checkWork-button" v-if="kptj.finishedTargetCount==kptj.totalTargetCount">
+	  <div class="checkWork-button" v-if="kptj&&kptj.finishedTargetCount==kptj.totalTargetCount">
 		  <div v-if="xdType=='video'" @click="submitTask">提交本次巡店</div>
 		  <div v-if="xdType=='scene'" @click="nextStep">下一步</div>
 	  </div>
@@ -185,10 +185,6 @@
 	</div>
   </div>
 <script>
-	window.onload = function(){
-		vm.showLoading = false
-	}
-	
 	// 初始化vm 实例
 	var vm = new Vue({
 	  el: '#app',
@@ -259,7 +255,8 @@
 		  // 获取任务考评项
 		  getTaskItem(data){
 			  this.kpItem = JSON.parse(data)
-			  this.zbItem = this.kpItem.length ? this.kpItem[this.activeIndex].taskTargetVOList : []
+			  this.zbItem = this.kpItem.length ? this.kpItem[this.activeIndex].taskTargetVOList : [],
+			  this.showLoading = false
 		  },
 		  // 选择机位
 		  onVideoListClick({ key }){

+ 2 - 1
pages/shopTour/shopTour.vue

@@ -147,7 +147,7 @@
 				}
 				// 重新开始,要传任务id
 				if(isNew){
-					parms.taskId = this.taskId
+					parms.id = this.taskId
 				}
 				taskStart(parms).then(res => {
 					console.log(res,parms,'taskStart')
@@ -211,6 +211,7 @@
 					title: '提示',
 					content: '确定提交本次巡店?',
 					success: function(res) {
+						console.log(res,'--------')
 						if (res.confirm || res.index == 0) {
 							submitTask({
 								id: _this.taskId

文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/app-plus/app-service.js


文件差异内容过多而无法显示
+ 83 - 118
unpackage/dist/dev/app-plus/app-view.js


+ 3 - 6
unpackage/dist/dev/app-plus/hybrid/html/video.html

@@ -139,7 +139,7 @@
 		  </div>
       </div>
       <!-- 提交按钮-->
-	  <div class="checkWork-button" v-if="kptj.finishedTargetCount==kptj.totalTargetCount">
+	  <div class="checkWork-button" v-if="kptj&&kptj.finishedTargetCount==kptj.totalTargetCount">
 		  <div v-if="xdType=='video'" @click="submitTask">提交本次巡店</div>
 		  <div v-if="xdType=='scene'" @click="nextStep">下一步</div>
 	  </div>
@@ -185,10 +185,6 @@
 	</div>
   </div>
 <script>
-	window.onload = function(){
-		vm.showLoading = false
-	}
-	
 	// 初始化vm 实例
 	var vm = new Vue({
 	  el: '#app',
@@ -259,7 +255,8 @@
 		  // 获取任务考评项
 		  getTaskItem(data){
 			  this.kpItem = JSON.parse(data)
-			  this.zbItem = this.kpItem.length ? this.kpItem[this.activeIndex].taskTargetVOList : []
+			  this.zbItem = this.kpItem.length ? this.kpItem[this.activeIndex].taskTargetVOList : [],
+			  this.showLoading = false
 		  },
 		  // 选择机位
 		  onVideoListClick({ key }){

部分文件因为文件数量过多而无法显示