|  | @@ -88,8 +88,8 @@ class user_path(Load):
 | 
	
		
			
				|  |  |  			,width = '600'
 | 
	
		
			
				|  |  |  			,height = '400'
 | 
	
		
			
				|  |  |  			,search = (('label-1','cdate-time-start','cdate-time-end','farm_id-select-','name-input-mlike'), (u'日期范围',u'开始时间',u'截止时间','选择农场',u'用户名称'))
 | 
	
		
			
				|  |  | -			,thead = (u'所属农场', u'用户名称', u'微信openid', u'用户手机号', u'更新时间')
 | 
	
		
			
				|  |  | -			,tbody = ('farm','username','openid', 'mobile', 'cdate')
 | 
	
		
			
				|  |  | +			,thead = (u'所属农场', u'用户名称', u'绑定列表', u'用户手机号', u'更新时间')
 | 
	
		
			
				|  |  | +			,tbody = ('farm','username','wechat', 'mobile', 'cdate')
 | 
	
		
			
				|  |  |  			,state = True
 | 
	
		
			
				|  |  |  		)
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -100,6 +100,8 @@ class user_path(Load):
 | 
	
		
			
				|  |  |  			for key, value in enumerate(self.data['list']):
 | 
	
		
			
				|  |  |  				farm = self.service('common').one('farm', id=value['farm_id'])
 | 
	
		
			
				|  |  |  				self.data['list'][key]['farm'] = farm['name']
 | 
	
		
			
				|  |  | +				param = '?farm=' + id + '&search_uid-input-=' + value['id']
 | 
	
		
			
				|  |  | +				self.data['list'][key]['wechat'] = '<a href="/farm/user_wechat'+param+'">点此查看</a>'
 | 
	
		
			
				|  |  |  		self.commonView('list')
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  class user_update_path(Load):
 | 
	
	
		
			
				|  | @@ -121,4 +123,30 @@ class user_update_path(Load):
 | 
	
		
			
				|  |  |  	@Web.auth
 | 
	
		
			
				|  |  |  	@Web.setting
 | 
	
		
			
				|  |  |  	def delete(self):
 | 
	
		
			
				|  |  | -		self.commonDelete('farm_user')
 | 
	
		
			
				|  |  | +		self.commonDelete('farm_user')
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +class user_wechat_path(Load):
 | 
	
		
			
				|  |  | +	@Web.auth
 | 
	
		
			
				|  |  | +	@Web.setting
 | 
	
		
			
				|  |  | +	def get(self):
 | 
	
		
			
				|  |  | +		self.common(
 | 
	
		
			
				|  |  | +			name = u'微信绑定列表'
 | 
	
		
			
				|  |  | +			,path = '/farm/user_wechat'
 | 
	
		
			
				|  |  | +			,width = '600'
 | 
	
		
			
				|  |  | +			,height = '400'
 | 
	
		
			
				|  |  | +			,add = False,
 | 
	
		
			
				|  |  | +			,edit = False,
 | 
	
		
			
				|  |  | +			,search = (('label-1','cdate-time-start','cdate-time-end','farm_id-select-','uid-input-'), (u'日期范围',u'开始时间',u'截止时间','选择农场',u'用户id'))
 | 
	
		
			
				|  |  | +			,thead = (u'所属农场', u'用户id', u'微信openid', u'更新时间')
 | 
	
		
			
				|  |  | +			,tbody = ('farm','uid','openid', 'cdate')
 | 
	
		
			
				|  |  | +			,state = True
 | 
	
		
			
				|  |  | +		)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		self.data['common']['search_farm_id-select-'] = Demeter.config['setting']['farmList']
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		self.commonList('farm_user_wechat')
 | 
	
		
			
				|  |  | +		if self.data['list']:
 | 
	
		
			
				|  |  | +			for key, value in enumerate(self.data['list']):
 | 
	
		
			
				|  |  | +				farm = self.service('common').one('farm', id=value['farm_id'])
 | 
	
		
			
				|  |  | +				self.data['list'][key]['farm'] = farm['name']
 | 
	
		
			
				|  |  | +		self.commonView('list')
 |