feat: 对接完接口
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<route lang="json5">
|
||||
<route lang="json5" type="page">
|
||||
{
|
||||
style: {
|
||||
navigationBarTitleText: '邀请好友',
|
||||
@@ -8,9 +8,13 @@
|
||||
</route>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useUserStore } from '@/store'
|
||||
import VueQrcode from '@chenfengyuan/vue-qrcode'
|
||||
|
||||
const qrcodeValue = '/pages/register/index?invite=888888'
|
||||
const userStore = useUserStore()
|
||||
|
||||
const qrcodeValue =
|
||||
location.origin + '/#/pages/register/index?invite=' + userStore.userInfo?.invitation_code
|
||||
|
||||
const onCopy = (code: string) => {
|
||||
uni.setClipboardData({
|
||||
@@ -27,11 +31,11 @@ const onCopy = (code: string) => {
|
||||
>
|
||||
<view>
|
||||
邀请码
|
||||
<text class="font-bold">9999999</text>
|
||||
<text class="font-bold">{{ userStore.userInfo.invitation_code }}</text>
|
||||
</view>
|
||||
<view
|
||||
class="btn-gradient text-white rounded-full px-15 py-4 text-12 ml-10"
|
||||
@click="onCopy('99999')"
|
||||
@click="onCopy(userStore.userInfo.invitation_code)"
|
||||
>
|
||||
复制
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user