Browse Source

Merge branch 'master' of http://git.ycjcjy.com/honghe/h5-draw-lots into master

张延森 3 years ago
parent
commit
23c972a7f8
1 changed files with 0 additions and 213 deletions
  1. 0
    213
      src/pages/SaveShare.vue

+ 0
- 213
src/pages/SaveShare.vue View File

@@ -1,213 +0,0 @@
1
-<template>
2
-  <div style=" height:100vh; width:100%;">
3
-    <!-- 弹窗 -->
4
-    <ShaerPopup :show="shaerShow" @closeMyself="cancelFrom" />
5
-    <!-- 弹窗 -->
6
-
7
-    <router-link :to="{path:'/'}">
8
-      <div class="backhome" :style="`background:url('${backimg}');background-size: 100% auto;`"></div>
9
-    </router-link>
10
-
11
-    <div>
12
-      <div v-if="item==0">
13
-        <!-- 领取屏保 -->
14
-        <div class="outer3 flex-col">
15
-          <div class="haibao">
16
-            <img class="haibao" src="~@/assets/buttonImg/saveHaibao.png" alt />
17
-          </div>
18
-          <div class="mod2 flex-col">
19
-            <div class="block1 flex-col">
20
-              <div
21
-                class="section1 flex-col"
22
-                @click="()=>{this.shaerShow=true}"
23
-                :style="`background-image: url(${shaerBut});`"
24
-              ></div>
25
-              <span :style="`background-image: url(${pressImage});`" class="info2"></span>
26
-            </div>
27
-          </div>
28
-        </div>
29
-      </div>
30
-      <div v-else>
31
-        <!-- 挂历 -->
32
-        <div class="page flex-col">
33
-          <div class="group1 flex-col">
34
-            <div class="wrap3 flex-col">
35
-              <img src="../assets/buttonImg/saveMonth.png" class="subhaibao" />
36
-            </div>
37
-            <div class="wrap5 flex-col">
38
-              <span class="txt1" :style="`background-image: url(${pressLucky});`"></span>
39
-              <div
40
-                class="main5 flex-col"
41
-                :style="`background-image: url(${shaerButRed});`"
42
-                @click="()=>{this.shaerShow=true}"
43
-              ></div>
44
-            </div>
45
-          </div>
46
-        </div>
47
-      </div>
48
-    </div>
49
-  </div>
50
-</template>
51
-
52
-<script>
53
-import { hideLoading } from '@/utils'
54
-
55
-export default {
56
-  name: 'SaveShare',
57
-  components: {
58
-    ShaerPopup: () => import('@/components/ShaerPopup.vue')
59
-  },
60
-  props: {
61
-    show: {
62
-      type: Boolean,
63
-      default: false,
64
-      required: true
65
-    },
66
-    type: String,
67
-    cancelText: {
68
-      default: '取消',
69
-      required: false
70
-    }
71
-  },
72
-  data() {
73
-    return {
74
-      item: null,
75
-      shaerShow: false,
76
-      backimg: require('../assets/buttonImg/backImg.png'),
77
-      shaerBut: require('../assets/buttonImg/sayFriend.png'),
78
-      pressImage: require('../assets/buttonImg/pressSave.png'),
79
-      shaerButRed: require('../assets/buttonImg/sayFriend.png'),
80
-      pressLucky: require('../assets/buttonImg/happyAccept.png')
81
-    }
82
-  },
83
-  mounted() {
84
-    hideLoading()
85
-  },
86
-
87
-  watch: {
88
-    '$route.query.states': {
89
-      handler(val) {
90
-
91
-        if (val) {
92
-          this.item = val
93
-        } else {
94
-          this.$router.go(-1)
95
-        }
96
-      },
97
-      immediate: true // 页面加载时就启动
98
-    }
99
-  },
100
-  methods: {
101
-    cancelFrom() {
102
-      this.shaerShow = false
103
-    }
104
-  }
105
-}
106
-</script>
107
-
108
-<style lang="less" scoped>
109
-.flex-col {
110
-  display: flex;
111
-  flex-direction: column;
112
-}
113
-.backhome {
114
-  width: 80.5px;
115
-  height: 37.8px;
116
-  position: fixed;
117
-  left: 1rem;
118
-  top: 1rem;
119
-  z-index: 19;
120
-  background-repeat: no-repeat !important;
121
-}
122
-.outer3 {
123
-  width: 100vw;
124
-  height: 100vh;
125
-  justify-content: flex-end;
126
-  .haibao {
127
-    width: 100vw;
128
-    position: absolute;
129
-    left: 0;
130
-    top: 0;
131
-  }
132
-  .mod2 {
133
-    z-index: 35;
134
-    height: 210px;
135
-    background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
136
-    width: 100vw;
137
-    justify-content: flex-end;
138
-    padding-bottom: 33px;
139
-    align-items: center;
140
-    .block1 {
141
-      height: 113px;
142
-      .section1 {
143
-        height: 43.2px;
144
-        border-radius: 8px;
145
-        background-size: 100% auto;
146
-        background-color: #fff;
147
-        width: 162px;
148
-        justify-content: center;
149
-        align-items: center;
150
-        border: 0;
151
-      }
152
-      .info2 {
153
-        width: 136.8px;
154
-        height: 48.6px;
155
-        display: block;
156
-        color: #fff;
157
-        text-align: center;
158
-        align-self: center;
159
-        margin-top: 12px;
160
-        background-size: 100% auto;
161
-        background-repeat: no-repeat;
162
-      }
163
-    }
164
-  }
165
-}
166
-
167
-// 第二个页面
168
-.page {
169
-  .group1 {
170
-    .wrap3 {
171
-      z-index: 13;
172
-      width: 98vw;
173
-      overflow: hidden;
174
-      align-self: center;
175
-      margin-left: 0;
176
-      .subhaibao {
177
-        width: 100%;
178
-        left: 0;
179
-        top: 0;
180
-      }
181
-    }
182
-    .wrap5 {
183
-      height: 137px;
184
-      background-color: #efe9e0;
185
-      width: 100vw;
186
-      justify-content: center;
187
-      align-items: center;
188
-      display: flex;
189
-      .txt1 {
190
-        background-size: 100% auto;
191
-        background-repeat: no-repeat;
192
-        width: 112px;
193
-        height: 18px;
194
-        margin-bottom: 80px;
195
-      }
196
-    }
197
-
198
-    .main5 {
199
-      background-size: 100% auto;
200
-      background-repeat: no-repeat;
201
-      height: 48px;
202
-      border-radius: 8px;
203
-      margin-top: 11px;
204
-      width: 343px;
205
-      background-color: #b12b32;
206
-      border: 0;
207
-      position: fixed;
208
-      z-index: 15;
209
-      bottom: 5vh;
210
-    }
211
-  }
212
-}
213
-</style>