quanwei
18 hours ago c441dea81bd86bdfb12dff35821fed51f4cc91c2
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
<template>
  <div class="vip-poster-container">
    <van-nav-bar
        title="推广海报"
        left-arrow
        @click-left="$router.go(-1)"
    />
    
    <div class="poster-content">
      <div class="poster-image">
        <img :src="posterInfo.image_url" alt="推广海报" />
      </div>
      
      <div class="poster-info">
        <h3>{{ posterInfo.title }}</h3>
        <p>{{ posterInfo.description }}</p>
      </div>
      
      <div class="poster-actions">
        <van-button type="primary" block @click="savePoster">保存海报</van-button>
        <van-button plain type="primary" block @click="sharePoster">分享海报</van-button>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  name: "Poster",
  data() {
    return {
      posterInfo: {
        image_url: '', // 海报图片地址
        title: 'VIP推广海报',
        description: '邀请好友成为VIP,赚取丰厚佣金'
      }
    }
  },
  
  methods: {
    savePoster() {
      // 保存海报逻辑
      this.$toast('海报已保存到相册')
    },
    
    sharePoster() {
      // 分享海报逻辑
      this.$toast('分享成功')
    }
  }
}
</script>
 
<style lang="scss" scoped>
.vip-poster-container {
  .poster-content {
    padding: 15px;
    
    .poster-image {
      text-align: center;
      margin-bottom: 20px;
      
      img {
        max-width: 100%;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      }
    }
    
    .poster-info {
      text-align: center;
      margin-bottom: 30px;
      
      h3 {
        font-size: 18px;
        color: #333;
        margin-bottom: 10px;
      }
      
      p {
        font-size: 14px;
        color: #666;
        line-height: 1.5;
      }
    }
    
    .poster-actions {
      .van-button {
        margin-bottom: 15px;
      }
    }
  }
}
</style>