|
@@ -123,8 +123,9 @@ export default class livePage extends Component {
|
123
|
123
|
let { qrcodeParams, queryInfo } = this.state
|
124
|
124
|
const consultant = this.$router.params.consultant || qrcodeParams.consultant || Taro.getStorageSync('consultantId') || ''
|
125
|
125
|
const recommender = this.$router.params.recommender || qrcodeParams.recommender || Taro.getStorageSync('recommender') || ''
|
126
|
|
-
|
127
|
|
- if (consultant) {
|
|
126
|
+ const { userInfo: { person: { personId } } } = this.props
|
|
127
|
+ const notSelf = personId != consultant
|
|
128
|
+ if (notSelf && consultant) {
|
128
|
129
|
getCardDetail(consultant).then(res => {
|
129
|
130
|
this.setState({
|
130
|
131
|
consultData: res,
|
|
@@ -234,7 +235,7 @@ export default class livePage extends Component {
|
234
|
235
|
this.setState({ showShareMenu: false })
|
235
|
236
|
const id = this.$router.params.id || this.state.liveDetail.liveActivityId
|
236
|
237
|
const { userInfo: { person: { personId, personType, userId } } } = this.props
|
237
|
|
- const { liveDetail: { shareContents, buildingId },qrcodeParams } = this.state
|
|
238
|
+ const { liveDetail: { shareContents, buildingId }, qrcodeParams } = this.state
|
238
|
239
|
const consultantId1 = this.$router.params.consultantId || qrcodeParams.consultantId || ''
|
239
|
240
|
const consultantId = personType == ROLE_CODE['CONSULTANT'] ? userId : consultantId1
|
240
|
241
|
const shareData = shareContents && shareContents.length ? shareContents[0] : { shareContentTitle: '精彩直播', shareContentImg: null };
|