移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

57 lines
1.2 KiB

<template>
<cs-page title="邀请企业" @goback="goback">
<button open-type="share">邀请企业</button>
</cs-page>
</template>
<script>
import { getQrcode } from '@/api/common/wxApi.js'
export default {
data() {
return {}
},
onLoad(res) {
console.log('invite', res)
getQrcode({
data: {
page: 'pages/login',
scene: `invateId=${this.$store.getters.userId}`
}
}).then(res => {
console.log(res)
})
},
onShareAppMessage() {
return {
title: '邀请企业入驻',
path: `/pages/login?invateId=${this.$store.getters.userId}`,
imageUrl: require('@/static/images/invateImage.png')
}
},
onShareTimeline() {
return {
title: '邀请企业入驻', // 标题
path: `/pages/login?invateId=${this.$store.getters.userId}`,
imageUrl: require('@/static/images/invateImage.png')
}
},
methods: {
goback() {
uni.switchTab({
url: '/pages/owner'
})
}
}
}
</script>
<style lang="scss" scoped>
.invate {
height: 100%;
// background: linear-gradient(180deg, #17c653 0%, #17c653 100%);
display: flex;
justify-content: center;
align-items: center;
}
</style>