邀请关系

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

48
App.vue
View File

@@ -2,27 +2,43 @@
export default { export default {
onLaunch() { onLaunch() {
//#ifdef H5 //#ifdef H5
if (typeof WeixinJSBridge == 'object' && typeof WeixinJSBridge.invoke == 'function') { if (typeof WeixinJSBridge == 'object' && typeof WeixinJSBridge.invoke == 'function') {
handleFontSize() handleFontSize()
} else { } else {
document.addEventListener('WeixinJSBridgeReady', handleFontSize, false); document.addEventListener('WeixinJSBridgeReady', handleFontSize, false);
} }
function handleFontSize() { function handleFontSize() {
// 设置网页字体为默认大小 // 设置网页字体为默认大小
WeixinJSBridge.invoke('setFontSizeCallback', {
fontSize: 0
})
// 重写设置网页字体大小的事件
WeixinJSBridge.on('menu:setfont', function() {
WeixinJSBridge.invoke('setFontSizeCallback', { WeixinJSBridge.invoke('setFontSizeCallback', {
fontSize: 0 fontSize: 0
}) })
// 重写设置网页字体大小的事件 })
WeixinJSBridge.on('menu:setfont', function() { }
WeixinJSBridge.invoke('setFontSizeCallback', { //#endif
fontSize: 0
}) //#ifdef APP-PLUS
})
}
//#endif
console.log('检查更新')
//#endif
}, },
onShow() { 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() { onHide() {
console.log('App Hide'); 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