Browse Source

bug提交

twt 2 years ago
parent
commit
9fc46a4cfa
4 changed files with 9 additions and 7 deletions
  1. 3 1
      common/request.js
  2. 1 1
      pages/mobile/group.vue
  3. 3 3
      pages/mobile/modelTwo.vue
  4. 2 2
      pages/mobile/vinDetail.vue

+ 3 - 1
common/request.js

@@ -1,6 +1,8 @@
 import { getHashQuery } from '../utils/index.js'
+var url='http://'+getHashQuery('url')+'/'
+//const baseUrl = url
 const baseUrl = 'http://api.dms.66km.com.cn/'
-const burl2='http://api.dms.66km.com.cn/' 
+const burl2=url 
 import md5 from './MD5.js'
 var token=getHashQuery('token')
 console.log(token)

+ 1 - 1
pages/mobile/group.vue

@@ -126,7 +126,7 @@
 				uni.showLoading({
 					title: '加载中'
 				});
-				this.$http('advancedEpc/getVinGroupPc', {
+				this.$http('advancedEpc/getVinGroup', {
 					vin:this.vin,
 					access_time:this.access_time,
 					param:this.param,

+ 3 - 3
pages/mobile/modelTwo.vue

@@ -116,7 +116,7 @@
 				uni.showLoading({
 					title: '加载中'
 				});
-				this.$http('advancedEpc/getSubgroupPc', {
+				this.$http('advancedEpc/getSubgroup', {
 					vin:this.vin,
 					access_time:this.access_time,
 					param:this.param,
@@ -149,7 +149,7 @@
 				uni.showLoading({
 					title: '加载中'
 				});
-				this.$http('advancedEpc/getSubgroupPc', {
+				this.$http('advancedEpc/getSubgroup', {
 					vin:this.vin,
 					access_time:this.access_time,
 					param:this.param,
@@ -187,7 +187,7 @@
 				uni.showLoading({
 					title: '加载中'
 				});
-				this.$http('advancedEpc/getSubgroupPc', {
+				this.$http('advancedEpc/getSubgroup', {
 					vin:this.vin,
 					access_time:this.zzTime,
 					param:this.param,

+ 2 - 2
pages/mobile/vinDetail.vue

@@ -139,7 +139,7 @@
 				uni.showLoading({
 					title: '加载中'
 				});
-				this.$http('/advancedEpc/getPartsPc', {
+				this.$http('/advancedEpc/getParts', {
 					vin: this.vin,
 					token: this.son_token,
 					param: this.son_param,
@@ -158,7 +158,7 @@
 				uni.showLoading({
 					title: '加载中'
 				});
-				this.$http('/advancedEpc/getPartsPc', {
+				this.$http('/advancedEpc/getParts', {
 					vin: this.vin,
 					token: this.token,
 					param: this.param,