twt 7 달 전
부모
커밋
593932ff4e
4개의 변경된 파일15개의 추가작업 그리고 8개의 파일을 삭제
  1. 6 6
      common/request.js
  2. 1 1
      pages/index/auto.vue
  3. 2 1
      pages/index/consumption.vue
  4. 6 0
      pages/index/custom.vue

+ 6 - 6
common/request.js

@@ -1,15 +1,15 @@
 //测试地址
-//const baseUrl = 'http://dms.66km.com.cn/'
+/* const baseUrl = 'http://dms.66km.com.cn/'
 //const baseUrl = 'http://192.168.0.14:20187/'
-//const configUrl='http://qw.66km.com.cn/'
+const configUrl='http://qw.66km.com.cn/' */
 //正式地址
 
 //66 dmsqw.66km.com 
-const baseUrl = 'http://apidms.66km.com/'
-const configUrl='http://dmsqw.66km.com/'
+ const baseUrl = 'http://apidms.66km.com/'
+const configUrl='http://dmsqw.66km.com/' 
 //欧洲维修
-//const baseUrl = 'https://crm.eurorepar.cn/'
-
+/* const baseUrl = 'https://crm.eurorepar.cn/'
+const configUrl='http://dmshf.eurorepar.cn/' */ 
 
 const http = (url = '', date = {}, type = 'POST', header = {
 }) => {

+ 1 - 1
pages/index/auto.vue

@@ -64,7 +64,7 @@
 		  }else{
 			  this.$http('enterpriseWechat/auth/oAuth2', {
 			       corpID:opt.appid,
-			  	   redirectUri:this.this.$configUrl+'pages/index/auto',
+			  	   redirectUri:this.$configUrl+'pages/index/auto',
 			  	   agentId:opt.agentid
 			  }, 'GET').then(res => {
 			  	//console.log(res.data)

+ 2 - 1
pages/index/consumption.vue

@@ -183,9 +183,10 @@
 				uni.showLoading({
 				 	title: '加载中'
 				});
+				var unionID=uni.getStorageSync('unionID')
 				this.$http('enterprise/wechat/listIntegralInfoByCustomerId', {
 				   customerID:this.customerId,
-				   unionID:'EEADACCD-8A19-499D-8AD7-6975D2C93243',
+				   unionID:unionID,
 				   page:1,
 				   limit:50,
 				   plateNumber:this.plateNumber

+ 6 - 0
pages/index/custom.vue

@@ -203,11 +203,17 @@
 					}else{
 						this.customerInfo=res.data.customerInfo
 						this.customerId=this.customerInfo.id
+						var unionID = this.customerInfo.unionID
 						uni.setStorage({
 							key: 'customerId',
 							data: that.customerId,
 							 success: function () {	 }
 						});
+						uni.setStorage({
+							key: 'unionID',
+							data: ,
+							 success: function () {	 }
+						});
 						this.keyongMoney= this.customerInfo.creditMoney - this.customerInfo.stayInMoney
 						this.keyongMoney.toFixed(2)
 					}