Browse Source

历史消费车辆优化

twt 2 months ago
parent
commit
609a609e5e
1 changed files with 6 additions and 4 deletions
  1. 6 4
      pages/user/historySpend.vue

+ 6 - 4
pages/user/historySpend.vue

@@ -172,7 +172,7 @@
 				appraise:false,
 				appraise:false,
 				ReceiptsMoney:false,//支付金额
 				ReceiptsMoney:false,//支付金额
 				iStatusBarHeight:'',
 				iStatusBarHeight:'',
-				array: [],
+				array: ['全部'],
 				index: 0,
 				index: 0,
 				wxOpenData: '',
 				wxOpenData: '',
 				plateNumber:'',
 				plateNumber:'',
@@ -252,9 +252,11 @@
 				this.$http('openweiXinCardInfoController/plateNumber-by-customerId', {
 				this.$http('openweiXinCardInfoController/plateNumber-by-customerId', {
 				    customerId:this.wxOpenData.loginInfo.uid
 				    customerId:this.wxOpenData.loginInfo.uid
 				}, 'GET').then(res => {
 				}, 'GET').then(res => {
-					this.array=res.data.split(',')
-					this.array.unshift('全部')
-				})
+					//res.data='黑A036M7,黑A1BQ82,黑AF17330'
+					var arr = res.data.split(',')
+					this.array=this.array.concat(arr)
+					//this.array.unshift('全部')
+				}) 
 			},
 			},
 			//显示权限
 			//显示权限
 			showPower() {
 			showPower() {