|
@@ -134,20 +134,25 @@ export default class livePage extends Component {
|
134
|
134
|
}
|
135
|
135
|
|
136
|
136
|
handleLiveBtn = e => {
|
137
|
|
- const id = this.$router.params.id || this.state.liveDetail.liveActivityId
|
138
|
|
- addLiveNum(id).then(res => { })
|
139
|
|
- const { liveDetail: { liveAppAppId, liveRoomParam } } = this.state
|
140
|
|
-
|
141
|
|
- Taro.navigateToMiniProgram({
|
142
|
|
- appId: liveAppAppId,
|
143
|
|
- path: liveRoomParam,
|
144
|
|
- extraData: {
|
145
|
|
- foo: 'bar'
|
146
|
|
- },
|
147
|
|
- success(res) {
|
148
|
|
- console.log(res, "navigateToMiniProgram")
|
149
|
|
- }
|
150
|
|
- })
|
|
137
|
+ const { liveDetail: { liveAppAppId, liveAppPath } } = this.state
|
|
138
|
+ if (liveAppAppId && liveAppPath) {
|
|
139
|
+ const id = this.$router.params.id || this.state.liveDetail.liveActivityId
|
|
140
|
+ addLiveNum(id).then(res => { })
|
|
141
|
+
|
|
142
|
+ Taro.navigateToMiniProgram({
|
|
143
|
+ appId: liveAppAppId,
|
|
144
|
+ path: liveAppPath,
|
|
145
|
+ extraData: {
|
|
146
|
+ foo: 'bar'
|
|
147
|
+ },
|
|
148
|
+ success(res) {
|
|
149
|
+ console.log(res, "navigateToMiniProgram")
|
|
150
|
+ }
|
|
151
|
+ })
|
|
152
|
+
|
|
153
|
+ } else {
|
|
154
|
+ Taro.showToast({ title: '后台未配置跳转链接', icon: 'none', duration: 2000 })
|
|
155
|
+ }
|
151
|
156
|
|
152
|
157
|
}
|
153
|
158
|
currentPageAndParams() {
|
|
@@ -295,6 +300,7 @@ export default class livePage extends Component {
|
295
|
300
|
|
296
|
301
|
const { userInfo: { person } } = this.props
|
297
|
302
|
const showCircleBtn = posterData && posterData.qrcode
|
|
303
|
+ console.log('==============>', posterData, showPoster, posterConfig)
|
298
|
304
|
return (
|
299
|
305
|
<Block>
|
300
|
306
|
{/* 授权电话与头像 */}
|