| 
					
				 | 
			
			
				@@ -22,7 +22,8 @@ Page({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             sys_payinstructions: wx.getStorageSync('siteP').sys_payinstructions, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             sys_payincidence: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            opUsers: options.users ? JSON.parse(options.users) : [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            opUsers: options.users ? JSON.parse(options.users) : [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            today: formatTime(new Date(), '-').split(' ')[0] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         sys_payorderid = options.sys_payorderid; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.getVersions(options.vid || ""); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -196,9 +197,11 @@ Page({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let date = v.enddate[this.data.sys_site_systempartitionid]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (v.userid == wx.getStorageSync('userMsg').userid || v.isleader == 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (date) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    // if (formatTime(new Date(), '-').split(" ")[0] >= date) users.push(v[idname] + ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (formatTime(new Date(), '-').split(" ")[0] >= date) users.push(v[idname] + ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (!users.some(v => v == v[idname])) users.push(v[idname] + ''); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (users.some(id => id == v.userid) && v.isleader == 0) useDiscount += 1 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -220,8 +223,21 @@ Page({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let users = this.data.users, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             useDiscount = this.data.useDiscount; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (users.some(v => v == id)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            users = users.filter(s => s != id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (isleader == 0) useDiscount -= 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (isleader) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let item = this.data.userList.find(v => v.userid == id), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    date = item.enddate[this.data.sys_site_systempartitionid]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (date && this.data.today >= date) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    users = users.filter(s => s != id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (isleader == 0) useDiscount -= 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                users = users.filter(s => s != id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (isleader == 0) useDiscount -= 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             users.push(id + "") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (isleader == 0) useDiscount += 1; 
			 |