ソースを参照

视频巡店接口调试

lilei 4 年 前
コミット
abd996f191

+ 4 - 4
App.vue

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

+ 1 - 1
hybrid/html/video.html

@@ -259,7 +259,7 @@
 		  // 获取任务考评项
 		  getTaskItem(data){
 			  this.kpItem = JSON.parse(data)
-			  this.zbItem = this.kpItem[this.activeIndex].taskTargetVOList
+			  this.zbItem = this.kpItem.length ? this.kpItem[this.activeIndex].taskTargetVOList : []
 		  },
 		  // 选择机位
 		  onVideoListClick({ key }){

+ 1 - 0
pages/login/login.vue

@@ -125,6 +125,7 @@ export default {
 		},
 		//  表单提交
 		formSubmit() {
+			this.toMain();
 			const _this = this;
 			//  表单校验
 			if (_this.form.username == '') {

+ 7 - 1
pages/shopTour/shopTour.vue

@@ -140,14 +140,17 @@
 			creatTask(isNew){
 				// 新建任务,只传门店id
 				let parms = {
-					storeId:this.storeId
+					storeId:this.storeId,
+					type: this.types == 'video' ? 'VIDEO_INSPECTION' : 'SPOT_INSPECTION'
 				}
 				// 重新开始,要传任务id
 				if(isNew){
 					parms.taskId = this.taskId
 				}
 				taskStart(parms).then(res => {
+					console.log(res,parms,'taskStart')
 					if(res.status == 200){
+						this.taskId = res.data.id
 						// 创建成功,查询任务明细
 						this.getTaskDetail()
 						this.getTaskItem()
@@ -162,6 +165,7 @@
 			// 查询任务明细
 			getTaskDetail(){
 				getTaskDetail({id:this.taskId}).then(res => {
+					console.log(res,'getTaskDetail')
 					this.assessSchemeId = res.data.assessSchemeId // 方案id
 					this.wv.evalJS("vm.getTaskDetail('"+JSON.stringify(res.data)+"')")
 				})
@@ -169,6 +173,7 @@
 			// 任务考评项目明细
 			getTaskItem(){
 				getTaskItem({id:this.taskId}).then(res => {
+					console.log(res,this.taskId,'getTaskItem')
 					this.wv.evalJS("vm.getTaskItem('"+JSON.stringify(res.data)+"')")
 				})
 			},
@@ -235,6 +240,7 @@
 			}
 		},
 		onLoad(options) {
+			console.log(options,'options')
 			// 巡店类型,视频还时现场
 			this.types = options.types
 			this.taskId = options.taskId

ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/dev/app-plus/app-config-service.js


ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/dev/app-plus/app-service.js


ファイルの差分が大きいため隠しています
+ 28 - 28
unpackage/dist/dev/app-plus/app-view.js


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

@@ -259,7 +259,7 @@
 		  // 获取任务考评项
 		  getTaskItem(data){
 			  this.kpItem = JSON.parse(data)
-			  this.zbItem = this.kpItem[this.activeIndex].taskTargetVOList
+			  this.zbItem = this.kpItem.length ? this.kpItem[this.activeIndex].taskTargetVOList : []
 		  },
 		  // 选择机位
 		  onVideoListClick({ key }){

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません