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>
<view class="contioner">
<view class="content">
<view class="header">
<view class="headertitle">
<image src="../../static/bcimg/leftxing.png" mode=""></image> <text style="font-size: 32upx;">我的邀请好友</text><image src="../../static/bcimg/rightxing.png" mode=""></image>
</view>
<view class="number">
0
</view>
</view>
<button open-type='share' class="button">
邀请好友
</button>
</view>
</view>
</template>
<script>
import {particularsinvite} from '@/api/user.js'
export default {
data() {
return {
number:0
}
},
onShow:function(){
particularsinvite({}).then(res=>{
console.log(res);
this.number=res.data
})
},
onShareAppMessage(res) {
// #ifdef MP-WEIXIN
console.log(res);
if (res.from === 'button') {// 来自页面内分享按钮
console.log(res.target)
}
let user=uni.getStorageSync('user')
return {
title: '邀请好友',
path: '/pages/loginzc/loginzc?id='+ user.account,
imageUrl:'https://wj-nft.oss-cn-beijing.aliyuncs.com/image/1646894813525.jpg'
}
// #endif
},
methods: {
}
}
</script>
<style lang="scss" scoped>
@import "./invite.scss"
</style>