邀请关系

This commit is contained in:
唐明明
2021-10-29 14:27:37 +08:00
parent 7ec26ffa3a
commit 2a0d37dff6
3 changed files with 5462 additions and 30061 deletions

46
App.vue
View File

@@ -2,27 +2,43 @@
export default {
onLaunch() {
//#ifdef H5
if (typeof WeixinJSBridge == 'object' && typeof WeixinJSBridge.invoke == 'function') {
handleFontSize()
} else {
document.addEventListener('WeixinJSBridgeReady', handleFontSize, false);
}
function handleFontSize() {
// 设置网页字体为默认大小
if (typeof WeixinJSBridge == 'object' && typeof WeixinJSBridge.invoke == 'function') {
handleFontSize()
} else {
document.addEventListener('WeixinJSBridgeReady', handleFontSize, false);
}
function handleFontSize() {
// 设置网页字体为默认大小
WeixinJSBridge.invoke('setFontSizeCallback', {
fontSize: 0
})
// 重写设置网页字体大小的事件
WeixinJSBridge.on('menu:setfont', function() {
WeixinJSBridge.invoke('setFontSizeCallback', {
fontSize: 0
})
// 重写设置网页字体大小的事件
WeixinJSBridge.on('menu:setfont', function() {
WeixinJSBridge.invoke('setFontSizeCallback', {
fontSize: 0
})
})
}
})
}
//#endif
//#ifdef APP-PLUS
console.log('检查更新')
//#endif
},
onShow() {
console.log('App Show');
uni.getClipboardData({
success: res=> {
if(res.data.indexOf('$InviTaTiOn$CoDe/$-?') === 2){
this.globalData.parentId = res.data.replace('$InviTaTiOn$CoDe/$-?', '')
}
},
fail(err) {
console.log(err)
}
})
},
onHide() {
console.log('App Hide');

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long