fix
13404089107
8 天以前 2e90f57e7d28d6a949247ef39b487d3e75b56683
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
97
98
99
100
101
102
103
104
105
106
107
108
<template>
  <view class="content">
    <image class="background-image" src="https://rekandian.obs.cn-east-3.myhuaweicloud.com/admin/4b3c1bdd99054da28bcd75ece88ef04b.png" mode="widthFix"></image>
    <image class="logo-image" src="/static/icon/logo.png" mode="widthFix"></image>
    <button class="button button-submit" open-type="share">邀请好友</button>
    <view class="details-link" @click="$navTo('/pages/user/share/record')">邀请明细</view>
  </view>
</template>
 
<script>
  import {
    mapState,
  } from 'vuex'
  export default {
    data() {
      return {
      };
    },
    onLoad() {
      uni.showShareMenu({
        withShareTicket: true,
        menus: ['shareAppMessage', 'shareTimeline'] ,// 必须同时开启分享给朋友和朋友圈
      });
    },
    computed:{
      ...mapState({
        userInfo: state=>state.userInfo
      })
    },
    onShareAppMessage() {
      return {
        title: '加入看点',
        path: '/pages/user/share/share?uid=' + this.userInfo.id,
      };
    },
    onShareTimeline() {
      return {
        title: '加入看点',
        path: '/pages/user/share/share?uid=' + this.userInfo.id,
        imageUrl: '/static/icon/logo.png',
      };
    },
    methods:{
    }
  }
</script>
 
<style lang="scss" scoped>
.content{
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  // justify-content: center;
  align-items: center;
  flex-direction: column;
  .background-image{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
  .logo-image{
    width: 132rpx;
    position: relative;
    z-index: 1;
    margin-top: 117rpx;
  }
  .button-submit{
    margin: 0 auto;
    margin-top: 794rpx;
    width: 635rpx;
    height: 96rpx;
    background: linear-gradient( 180deg, #FFE100 0%, #FFBF00 100%);
    border-radius: 58rpx;
    font-weight: 700;
    font-size: 35rpx;
    color: #FF2729;
    line-height: 35rpx;
  }
  .details-link{
    font-weight: 600;
    font-size: 31rpx;
    color: #FFFFFF;
    line-height: 42rpx;
    margin-top: 48rpx;
    position: relative;
  }
  .share-buttons{
    display: flex;
    align-items: center;
    padding: 47rpx 40rpx 40rpx;
    .button{
      flex-direction: column;
      padding: 10rpx 40rpx;
      .button-image{
        width: 80rpx;
      }
      .button-text{
        margin-top: 20rpx;
        font-size: 23rpx;
        color: rgba(0, 0, 0, .6);
        line-height: 33rpx;
      }
    }
  }
}
</style>