星级厨房:点击跳转用户主页无效修改

This commit is contained in:
qf
2022-12-10 10:46:06 +08:00
committed by Dragon
parent 2db5fd90c7
commit d2f0970bda

View File

@@ -32,7 +32,7 @@ const toastMsg = (content = '操作完成', time = 2) => {
})
}
if (false) { //!browser.app
if (!browser.app) { //false
toastMsg('請在app內打開');
} else {
$('.wrap').removeClass('no-in-app')
@@ -478,12 +478,6 @@ const renderDrawInfo = () => {
})
}
// 点击跳转个人主页
$('.draw-time .top-three .top-three-list .on').off()
$('.draw-time .top-three .top-three-list .on').click(function () {
let uid = $(this).find('.tx').attr('uid');
openPerson(uid)
})
}
// 獲取每一輪抽獎的相關配置
@@ -641,17 +635,6 @@ const sendUserDrawInfo = (itemId, num) => {
})
}
//跳转个人主页
function openPerson(uid) {
if (!browser.app) return
if (browser.ios) {
window.webkit.messageHandlers.openPersonPage.postMessage(uid);
} else if (browser.android) {
if (androidJsObj && typeof androidJsObj === 'object') {
window.androidJsObj.openPersonPage(uid);
}
}
}
/******************************************** 今日排名相關 ********************************************/
@@ -1070,6 +1053,24 @@ $(function () {
// player1.setVideoItem(videoItem);
// player1.startAnimation();
// })
// 点击跳转个人主页
// $('.draw-time .top-three .top-three-list .no').off()
$('.draw-time .top-three .top-three-list .no').click(function () {
let uid = $(this).find('.tx').attr('uid');
console.log('uid', uid);
openPerson(uid)
})
//跳转个人主页
function openPerson(uid) {
if (!browser.app) return
if (browser.ios) {
window.webkit.messageHandlers.openPersonPage.postMessage(uid);
} else if (browser.android) {
if (androidJsObj && typeof androidJsObj === 'object') {
window.androidJsObj.openPersonPage(uid);
}
}
}
// 關閉碎片不足提示彈窗
$('.cancel-btn').on('click', function () {