|  |  | @@ -14,9 +14,9 @@ Page({ | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | onLoad(options) { | 
		
	
		
			
			|  |  |  | let that = this; | 
		
	
		
			
			|  |  |  | console.log(options.id); | 
		
	
		
			
			|  |  |  | console.log(options.couponChannelId); | 
		
	
		
			
			|  |  |  | that.setData({ | 
		
	
		
			
			|  |  |  | couponChannelId: options.id, | 
		
	
		
			
			|  |  |  | couponChannelId: options.couponChannelId, | 
		
	
		
			
			|  |  |  | couponId: options.couponId | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | wx.showLoading({ | 
		
	
	
		
			
				|  |  | @@ -29,7 +29,7 @@ Page({ | 
		
	
		
			
			|  |  |  | Http.get({ | 
		
	
		
			
			|  |  |  | url: config.api.couponDetail, | 
		
	
		
			
			|  |  |  | data: { | 
		
	
		
			
			|  |  |  | id: options.id, | 
		
	
		
			
			|  |  |  | id: options.couponChannelId, | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }).then(res => { | 
		
	
		
			
			|  |  |  | console.log(res); | 
		
	
	
		
			
				|  |  | @@ -143,7 +143,7 @@ Page({ | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }).then(res => { | 
		
	
		
			
			|  |  |  | console.log(res); | 
		
	
		
			
			|  |  |  | /* | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | /// Begin payment ---- | 
		
	
		
			
			|  |  |  | var payOrderId = "" + res.data.payOrderId; | 
		
	
		
			
			|  |  |  | wx.hideLoading(); | 
		
	
	
		
			
				|  |  | @@ -202,10 +202,10 @@ Page({ | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | /// End payment  -------- | 
		
	
		
			
			|  |  |  | */ | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | ///// virtual pay | 
		
	
		
			
			|  |  |  | var payOrderId = "" + res.data.out_trade_no; | 
		
	
		
			
			|  |  |  | that.payOrderUpdate(that.data.orderId, payOrderId, 1); // 支付成功 | 
		
	
		
			
			|  |  |  | //var payOrderId = "" + res.data.out_trade_no; | 
		
	
		
			
			|  |  |  | //that.payOrderUpdate(that.data.orderId, payOrderId, 1); // 支付成功 | 
		
	
		
			
			|  |  |  | ///// end virtual pay | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | } else { | 
		
	
	
		
			
				|  |  | 
 |