Merge pull request 'xbx' (#338) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/338
This commit is contained in:
		
						commit
						5780efa878
					
				@ -132,10 +132,8 @@
 | 
			
		||||
 | 
			
		||||
			this.messages = privateMessages.sentMessages;
 | 
			
		||||
			this.pendingMessages = privateMessages.pendingMessages;
 | 
			
		||||
 | 
			
		||||
			uni.setNavigationBarTitle({
 | 
			
		||||
				title : this.friend.name
 | 
			
		||||
			});
 | 
			
		||||
			console.log(this.friend.name)
 | 
			
		||||
			this.setTitle(this.friend.name)
 | 
			
		||||
			setTimeout(() => {
 | 
			
		||||
				uni.setNavigationBarColor({
 | 
			
		||||
					backgroundColor : '#FF780F',
 | 
			
		||||
@ -158,6 +156,18 @@
 | 
			
		||||
			this.imService.uid = 0;
 | 
			
		||||
		},
 | 
			
		||||
		methods: {
 | 
			
		||||
			setTitle(title){
 | 
			
		||||
				let that = this
 | 
			
		||||
				if(title == ""){
 | 
			
		||||
					title = "这是空的"
 | 
			
		||||
				}
 | 
			
		||||
				uni.setNavigationBarTitle({
 | 
			
		||||
					title : title,
 | 
			
		||||
					fail(){
 | 
			
		||||
						that.setTitle(title)
 | 
			
		||||
					}
 | 
			
		||||
				});
 | 
			
		||||
			},
 | 
			
		||||
			bindtapInput(){
 | 
			
		||||
				console.log("222")
 | 
			
		||||
				var _that = this;
 | 
			
		||||
 | 
			
		||||
@ -497,7 +497,7 @@
 | 
			
		||||
				{
 | 
			
		||||
					"path": "privateChat/privateChat",
 | 
			
		||||
					"style": {
 | 
			
		||||
						"navigationBarTitleText": "uni-app",
 | 
			
		||||
						"navigationBarTitleText": "商家",
 | 
			
		||||
						"app-plus": {
 | 
			
		||||
							"titleNView": true 
 | 
			
		||||
						}
 | 
			
		||||
 | 
			
		||||
@ -149,6 +149,7 @@
 | 
			
		||||
			
 | 
			
		||||
			},
 | 
			
		||||
			gochat(id){
 | 
			
		||||
				console.log(id)
 | 
			
		||||
				this.$u.route({
 | 
			
		||||
					url:"/pageD/privateChat/privateChat",
 | 
			
		||||
					params:{
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user