|
@@ -39,22 +39,14 @@
|
|
|
<view class="tip-text">2. 关闭房间后,面试人员将无法再进入房间,需要重新创建房间。</view>
|
|
<view class="tip-text">2. 关闭房间后,面试人员将无法再进入房间,需要重新创建房间。</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <uni-popup ref="popupShareRef" type="bottom">
|
|
|
|
|
- <view class="share-options">
|
|
|
|
|
- <!-- 微信好友 -->
|
|
|
|
|
- <view class="share-item" @click="selectShare('weixinHaoyou')">
|
|
|
|
|
-
|
|
|
|
|
- <text class="share-text">微信好友1231231231231231231231231</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <!-- 微信朋友圈 -->
|
|
|
|
|
- <view class="share-item" @click="selectShare('pengyouquan')">
|
|
|
|
|
-
|
|
|
|
|
- <text class="share-text">朋友圈</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <text class="share-text" @click="closePopup">取消</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </uni-popup>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <share-popup
|
|
|
|
|
+ ref="sharePopupRef"
|
|
|
|
|
+ title="远程面试邀请"
|
|
|
|
|
+ desc="请点击链接参加面试"
|
|
|
|
|
+ :link=roomUrl
|
|
|
|
|
+ type="0"
|
|
|
|
|
+ @success="onShareSuccess"
|
|
|
|
|
+ />
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -69,42 +61,19 @@
|
|
|
onLoad
|
|
onLoad
|
|
|
} from "@dcloudio/uni-app";
|
|
} from "@dcloudio/uni-app";
|
|
|
import config from "../../../config"
|
|
import config from "../../../config"
|
|
|
-
|
|
|
|
|
|
|
+ import SharePopup from '@/components/sharePopUp/index.vue'
|
|
|
const data = reactive({
|
|
const data = reactive({
|
|
|
room: '',
|
|
room: '',
|
|
|
})
|
|
})
|
|
|
const roomUrl = ref('')
|
|
const roomUrl = ref('')
|
|
|
- const popupShareRef = ref(null)
|
|
|
|
|
|
|
|
|
|
|
|
+ const sharePopupRef = ref(null)
|
|
|
function closePopup() {
|
|
function closePopup() {
|
|
|
- popupShareRef.value.close()
|
|
|
|
|
|
|
+ sharePopupRef.value.close()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- function selectShare(data) {
|
|
|
|
|
- let sceneType
|
|
|
|
|
- if (data == 'weixinhaoyou') {
|
|
|
|
|
- sceneType = 'WXSceneSession'
|
|
|
|
|
- } else {
|
|
|
|
|
- sceneType = 'WXSceneTimeline'
|
|
|
|
|
- }
|
|
|
|
|
- console.log('sceneType', sceneType);
|
|
|
|
|
- uni.share({
|
|
|
|
|
- provider: "weixin",
|
|
|
|
|
- scene: sceneType,
|
|
|
|
|
- type: 0,
|
|
|
|
|
- href: roomUrl.value,
|
|
|
|
|
- title: "uni-app分享",
|
|
|
|
|
- summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",
|
|
|
|
|
- imageUrl: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png",
|
|
|
|
|
- success: function(res) {
|
|
|
|
|
- console.log("success:" + JSON.stringify(res));
|
|
|
|
|
- },
|
|
|
|
|
- fail: function(err) {
|
|
|
|
|
- console.log("fail:" + JSON.stringify(err));
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ function onShareSuccess(e){
|
|
|
|
|
+ console.log('分享成功', e.scene)
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
function goUpPage() {
|
|
function goUpPage() {
|
|
|
uni.redirectTo({
|
|
uni.redirectTo({
|
|
|
url: `/pages/admin/ShouYe/shouye`
|
|
url: `/pages/admin/ShouYe/shouye`
|
|
@@ -136,7 +105,7 @@
|
|
|
|
|
|
|
|
function yqBtn(code) {
|
|
function yqBtn(code) {
|
|
|
roomUrl.value = `${config.mianshiUrl}?roomId=900803&index=${code}`
|
|
roomUrl.value = `${config.mianshiUrl}?roomId=900803&index=${code}`
|
|
|
- popupShareRef.value.open()
|
|
|
|
|
|
|
+ sharePopupRef.value.open()
|
|
|
// 分享地址
|
|
// 分享地址
|
|
|
//const url = `${config.mianshiUrl}?roomId=900803&index=${code}`
|
|
//const url = `${config.mianshiUrl}?roomId=900803&index=${code}`
|
|
|
}
|
|
}
|