|
|
@@ -36,7 +36,7 @@
|
|
|
|
|
|
<div class="bottom">
|
|
|
<block v-if="isStart">
|
|
|
- <button-bg type="warning" @click="getPushUrl(true)">推流地址</button-bg>
|
|
|
+ <button-bg type="warning" @click="showCode = true">进入直播间</button-bg>
|
|
|
<button-bg type="prim" isRight @click="end">结束直播</button-bg>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
@@ -45,7 +45,7 @@
|
|
|
</block>
|
|
|
</div>
|
|
|
|
|
|
- <van-popup :show="showUrl" @close="showUrl = false">
|
|
|
+ <!-- <van-popup :show="showUrl" @close="showUrl = false">
|
|
|
<div class="url-box">
|
|
|
<div class="text1">直播间创建成功</div>
|
|
|
|
|
|
@@ -57,7 +57,38 @@
|
|
|
|
|
|
<van-button size="small" type="primary" @click="copy">一键复制</van-button>
|
|
|
</div>
|
|
|
- </van-popup>
|
|
|
+ </van-popup> -->
|
|
|
+ <van-dialog
|
|
|
+ use-slot
|
|
|
+ :show="showCode"
|
|
|
+ :show-cancel-button="!isStart"
|
|
|
+ cancel-button-text="返回"
|
|
|
+ :confirm-button-text="isStart ? '确认' : '认证成功'"
|
|
|
+ :confirm-button-color="$colors.prim"
|
|
|
+ @cancel="navigateBack"
|
|
|
+ @confirm="showCode = false"
|
|
|
+ >
|
|
|
+ <div class="url-box">
|
|
|
+ <div class="text1" style="text-align:center;max-width:220px">
|
|
|
+ {{
|
|
|
+ isStart ? '直播间创建成功扫描下方二维码进入直播间' : '开启直播前请先扫描下方二维码进行实名认证'
|
|
|
+ }}
|
|
|
+ </div>
|
|
|
+ <img
|
|
|
+ v-if="isStart"
|
|
|
+ src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/wechat/6451622451530_.pic_hd.jpg"
|
|
|
+ alt=""
|
|
|
+ class="code-img"
|
|
|
+ />
|
|
|
+
|
|
|
+ <img
|
|
|
+ v-else
|
|
|
+ class="code-img"
|
|
|
+ src="https://res.wx.qq.com/op_res/9rSix1dhHfK4rR049JL0PHJ7TpOvkuZ3mE0z7Ou_Etvjf-w1J_jVX0rZqeStLfwh"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </van-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -75,6 +106,7 @@ export default {
|
|
|
accessToken: '',
|
|
|
isStart: false,
|
|
|
showUrl: false,
|
|
|
+ showCode: false,
|
|
|
path: 'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=5'
|
|
|
};
|
|
|
},
|
|
|
@@ -88,8 +120,10 @@ export default {
|
|
|
});
|
|
|
this.getData();
|
|
|
// this.createRoom();
|
|
|
- if (this.isStart) {
|
|
|
- this.getPushUrl(needShow);
|
|
|
+ if (this.isStart && !needShow) {
|
|
|
+ this.showCode = false;
|
|
|
+ } else {
|
|
|
+ this.showCode = true;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -280,5 +314,12 @@ export default {
|
|
|
color: @prim;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .code-img {
|
|
|
+ width: 200px;
|
|
|
+ height: 200px;
|
|
|
+ display: block;
|
|
|
+ margin-top: 20px;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|