|
@@ -37,16 +37,17 @@ Page({
|
|
|
console.log('auth', auth)
|
|
|
let roomInfo: RoomDetailType
|
|
|
|
|
|
-
|
|
|
if (options.role) {
|
|
|
this.setData({ role: options.role })
|
|
|
}
|
|
|
if (options.roomId) {
|
|
|
roomInfo = await fetchRoom(options.roomId);
|
|
|
- console.log('data', roomInfo)
|
|
|
+
|
|
|
this.setData({ roomDetail: roomInfo, roomId: options.roomId, m: roomInfo.sceneData[0].num })
|
|
|
if (roomInfo && roomInfo.isHost === 1) {
|
|
|
this.setData({ role: 'leader' })
|
|
|
+ }else{
|
|
|
+ this.setData({ role: 'cusomter' })
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -225,12 +226,12 @@ Page({
|
|
|
})
|
|
|
return {
|
|
|
...base,
|
|
|
- title: '【好友邀请】一起来逛店吧!',
|
|
|
+ title: '【好友邀请】一起来带看吧!',
|
|
|
}
|
|
|
} else {
|
|
|
return {
|
|
|
...base,
|
|
|
- title: '【好友邀请】一起来逛店吧!',
|
|
|
+ title: '【好友邀请】一起来带看吧!',
|
|
|
}
|
|
|
}
|
|
|
},
|