|  |  | @@ -10,7 +10,6 @@ Page({ | 
		
	
		
			
			|  |  |  | couponChannelId: null, | 
		
	
		
			
			|  |  |  | couponId: null, | 
		
	
		
			
			|  |  |  | orderId: "", | 
		
	
		
			
			|  |  |  | day: "", | 
		
	
		
			
			|  |  |  | hour: "", | 
		
	
		
			
			|  |  |  | minute: "", | 
		
	
		
			
			|  |  |  | tempFilePaths: '', | 
		
	
	
		
			
				|  |  | @@ -20,7 +19,7 @@ Page({ | 
		
	
		
			
			|  |  |  | id: '', | 
		
	
		
			
			|  |  |  | result: [], | 
		
	
		
			
			|  |  |  | end_time: '', | 
		
	
		
			
			|  |  |  | clock: '' | 
		
	
		
			
			|  |  |  | clock: "已经截止", | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | phone: function () { | 
		
	
	
		
			
				|  |  | @@ -40,18 +39,23 @@ Page({ | 
		
	
		
			
			|  |  |  | var total_micro_second = EndTime - NowTime || []; | 
		
	
		
			
			|  |  |  | // 渲染倒计时时钟 | 
		
	
		
			
			|  |  |  | let obj = that.dateformat(total_micro_second); | 
		
	
		
			
			|  |  |  | that.setData({ | 
		
	
		
			
			|  |  |  | clock: obj, | 
		
	
		
			
			|  |  |  | day: obj.a1, | 
		
	
		
			
			|  |  |  | hour: obj.b1, | 
		
	
		
			
			|  |  |  | min: obj.c1, | 
		
	
		
			
			|  |  |  | sec: obj.d1, | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | if (total_micro_second <= 0) { | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | if (total_micro_second>0){ | 
		
	
		
			
			|  |  |  | that.setData({ | 
		
	
		
			
			|  |  |  | clock: "已经截止" | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | //return; | 
		
	
		
			
			|  |  |  | clock: obj, | 
		
	
		
			
			|  |  |  | day: obj.a1, | 
		
	
		
			
			|  |  |  | hour: obj.b1, | 
		
	
		
			
			|  |  |  | min: obj.c1, | 
		
	
		
			
			|  |  |  | sec: obj.d1, | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | }else{ | 
		
	
		
			
			|  |  |  | that.setData({ | 
		
	
		
			
			|  |  |  | clock: "00", | 
		
	
		
			
			|  |  |  | day: "00", | 
		
	
		
			
			|  |  |  | hour: "00", | 
		
	
		
			
			|  |  |  | min: "00", | 
		
	
		
			
			|  |  |  | sec: "00", | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | setTimeout(function () { | 
		
	
		
			
			|  |  |  | total_micro_second -= 1000; | 
		
	
	
		
			
				|  |  | @@ -400,6 +404,7 @@ Page({ | 
		
	
		
			
			|  |  |  | console.log(options) | 
		
	
		
			
			|  |  |  | var eData = options.target.dataset.id; | 
		
	
		
			
			|  |  |  | var couponId = options.target.dataset.couponid; | 
		
	
		
			
			|  |  |  | // shareObj.path = `/pages/index/index?couponChannelId=${eData}&couponId=${couponId}`; | 
		
	
		
			
			|  |  |  | shareObj.path = `/pages/index/index?couponChannelId=${eData}&couponId=${couponId}`; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // 返回shareObj | 
		
	
	
		
			
				|  |  | 
 |