lefengyang
2026-08-09 0099d574d6509b03edd885313603cc18e8bb310e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<template>
    <view class="page_bg">
        <uv-navbar title="邀请好友" :autoBack="true" :placeholder="true" leftIconColor="#fff" bgColor="rgba(0,0,0,0)"
            titleStyle="color:#fff"></uv-navbar>
 
        <view class="invite">
            <view class="name">
                app下载链接
            </view>
            <view class="link">
                {{appDown}}
            </view>
            <view class="btn">
                <uv-button type="primary" text="复制" :plain="true" size="small" @click="copyText"></uv-button>
            </view>
        </view>
 
 
    </view>
</template>
 
<script>
    import {
        appDownload
    } from '@/api/api.js'
    export default {
        data() {
            return {
                appDown: ''
            }
        },
        onLoad() {
            this.getAppDownload()
        },
        methods: {
            getAppDownload() {
                appDownload().then(res => {
                    console.log(res)
                    this.appDown = res.msg
                })
            },
            copyText() {
                uni.setClipboardData({
                    data: this.appDown,
                    success: () => {
                        uni.showToast({
                            title: '复制成功',
                            icon: 'none'
                        })
                    }
                })
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .invite {
        margin: 30rpx;
        background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
        box-shadow: 8rpx 8rpx 23rpx 0rpx rgba(67, 147, 248, 0.1), -8rpx -8rpx 23rpx 0rpx rgba(255, 255, 255, 0.4);
        border-radius: 20rpx;
        border: 2rpx solid #FFFFFF;
        box-sizing: border-box;
        padding: 30rpx;
        position: relative;
 
        .name {
            font-weight: 500;
            font-size: 27rpx;
            color: rgba(0, 0, 0, 0.9);
            line-height: 46rpx;
        }
 
        .link {
            font-size: 27rpx;
            color: rgba(0, 0, 0, 0.7);
            line-height: 46rpx;
            width: 500%;
            margin-top: 20rpx;
        }
 
        .btn {
            position: absolute;
            right: 30rpx;
            bottom: 30rpx;
        }
    }
 
    .page_bg {
        width: 100%;
        min-height: calc(100vh - var(--window-bottom));
        background: url('/static/img/bg_2.jpg') no-repeat center top;
        background-size: 100% auto;
    }
</style>