gdpao #101

Merged
gyh merged 1 commits from gyh into master 2020-09-15 09:41:25 +00:00
2 changed files with 9 additions and 1 deletions

View File

@ -13,7 +13,7 @@
<view id="content_tosign"> <view id="content_tosign">
<u-form :model="form" ref="uForm"> <u-form :model="form" ref="uForm">
<u-form-item label-position="right"> <u-form-item label-position="right">
<u-input v-model="max" :placeholder="userinfo.rple != 4 ? '优秀的标题可以卖的更好哦~' : '优秀的标题可以吸引更多人观看哦~'" /> <u-input v-model="max" :placeholder="userinfo.role != 4 ? '优秀的标题可以卖的更好哦~' : '优秀的标题可以吸引更多人观看哦~'" />
</u-form-item> </u-form-item>
<view class="values"><text>{{this.titleMaxLength - this.max.length}}</text>/20</view> <view class="values"><text>{{this.titleMaxLength - this.max.length}}</text>/20</view>
<u-form-item label-position="right"> <u-form-item label-position="right">
@ -189,6 +189,7 @@
this.token = uni.getStorageSync('token'); this.token = uni.getStorageSync('token');
this.userinfo = uni.getStorageSync("userinfo") this.userinfo = uni.getStorageSync("userinfo")
console.log(this.userinfo)
var config = { var config = {
appkey: 'mgb7ka1', appkey: 'mgb7ka1',
debug:true debug:true

View File

@ -386,6 +386,12 @@
this.stop() this.stop()
this.startPreview() this.startPreview()
this.start() this.start()
var message = {
senderNickname : this.room.currentUser.nickname ,
type : 1,
content : '重连'
}
this.chatRoomService.sendMessages(this.room.id, message);
}, },
onHide: function() { onHide: function() {
console.log('App Hide'); console.log('App Hide');
@ -489,6 +495,7 @@
that.chatRoomService.warrings = that.jinggao that.chatRoomService.warrings = that.jinggao
//获取当前聊天室数据 //获取当前聊天室数据
that.room = that.chatRoomService.room; that.room = that.chatRoomService.room;
console.log(that.room)
that.chatRoomService.initialWhenOnlineUserChange(that.renqu) that.chatRoomService.initialWhenOnlineUserChange(that.renqu)
} }
}) })