|
|
@@ -19,19 +19,19 @@
|
|
|
<view class="room-wcj">未创建</view>
|
|
|
<view class="room-text">房间号</view>
|
|
|
</view>
|
|
|
- <button @click="openUrl" type="default" class="phone-white-btn jr-btn" v-if="data.room">进入房间</button> <!-- 客户uid 4 -->
|
|
|
+ <button @click="openUrl(1)" type="default" class="phone-white-btn jr-btn" v-if="data.room">进入房间</button>
|
|
|
<!-- <button @click="openUrl2">进入房间2</button> -->
|
|
|
</view>
|
|
|
<!-- phone-white-btn -->
|
|
|
- <button @click="yqBtn" type="default" class="phone-green-btn yqkh-btn" v-if="data.room">邀请客户进入面试</button> <!-- 客户uid 1 -->
|
|
|
- <button @click="yqBtn" type="default" class="phone-green-btn yqkh-btn" v-if="data.room">邀请阿姨进入面试</button> <!-- 客户uid 2 -->
|
|
|
- <button @click="yqBtn" type="default" class="phone-green-btn yqkh-btn" v-if="data.room">邀请旁听进入面试</button> <!-- 客户uid 3 -->
|
|
|
+ <button @click="yqBtn(3)" type="default" class="phone-green-btn yqkh-btn" v-if="data.room">邀请阿姨</button>
|
|
|
+ <button @click="yqBtn(2)" type="default" class="phone-green-btn yqkh-btn" v-if="data.room">邀请客户1</button>
|
|
|
+ <button @click="yqBtn(4)" type="default" class="phone-green-btn yqkh-btn" v-if="data.room">邀请客户2</button>
|
|
|
<button @click="handleCreate" type="default" class="phone-green-btn" v-else>创建面试房间</button>
|
|
|
|
|
|
<view class="ycms-tip-box">
|
|
|
<view class="tip-title"><text>小贴士</text><icon></icon></view>
|
|
|
<view class="tip-text">1.创建房间后会生成房间号,生成房间号后,可进入房间,也可以直接分享给客户进入房间。</view>
|
|
|
- <view class="tip-text">2. 结束面试后,房间内的人员会被退出,同时面试房间号会失效;</view>
|
|
|
+ <view class="tip-text">2. 关闭房间后,面试人员将无法再进入房间,需要重新创建房间。</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -44,6 +44,7 @@
|
|
|
import * as httpApi from '@/api/mianshi.js'
|
|
|
import { ref, reactive } from "vue"
|
|
|
import {onLoad} from "@dcloudio/uni-app";
|
|
|
+ import config from "../../../config"
|
|
|
|
|
|
const data = reactive({
|
|
|
room: '',
|
|
|
@@ -70,8 +71,9 @@
|
|
|
uni.showToast({ title: '创建失败,请重试', icon: 'none' });
|
|
|
});
|
|
|
}
|
|
|
- function yqBtn(){
|
|
|
-
|
|
|
+ function yqBtn(code){
|
|
|
+ // 分享地址
|
|
|
+ const url = `${config.mianshiUrl}?roomId=900803&index=${code}`
|
|
|
}
|
|
|
|
|
|
function handleClose() {
|
|
|
@@ -85,10 +87,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
- const url =
|
|
|
- `https://kf2.mtavip.com/aliyunZhibo/index.html?roomId=${data.room}`
|
|
|
|
|
|
- function openUrl() {
|
|
|
+
|
|
|
+ function openUrl(code) {
|
|
|
+ const url = `${config.mianshiUrl}?roomId=${data.room}&index=${code}`
|
|
|
plus.runtime.openURL(url, (err) => {
|
|
|
if (err) {
|
|
|
console.error('打开浏览器失败: ', err);
|