Procházet zdrojové kódy

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

李志伟 před 3 roky
rodič
revize
8877a6b0ae

+ 2
- 2
src/components/CalendarPoster.vue Zobrazit soubor

@@ -272,7 +272,7 @@ export default {
272 272
         }
273 273
       }
274 274
       .wrap5 {
275
-        height: 137px;
275
+        height: 190px;
276 276
         background-color: #efe9e0;
277 277
         width: 100vw;
278 278
         justify-content: center;
@@ -299,7 +299,7 @@ export default {
299 299
         border: 0;
300 300
         position: fixed;
301 301
         z-index: 15;
302
-        bottom: 5vh;
302
+        bottom: 4vh;
303 303
       }
304 304
     }
305 305
   }

+ 1
- 1
src/components/Popup.vue Zobrazit soubor

@@ -285,7 +285,7 @@ export default {
285 285
         left: -0;
286 286
         opacity: 2;
287 287
         transform: scale(1);
288
-        transform: rotateY(180deg);
288
+        transform: rotateY(-180deg); //iPhone异常
289 289
       }
290 290
     }
291 291
     //底部按钮

+ 17
- 1
src/pages/Honghe.vue Zobrazit soubor

@@ -35,6 +35,7 @@ import { useModel } from '@/store'
35 35
 import { drawLottery, getPrizeList } from '@/services/person'
36 36
 import { rand, shuffle } from '@/utils/math'
37 37
 import { hideLoading } from '@/utils'
38
+import { share } from '@/utils/wx'
38 39
 
39 40
 /**
40 41
  * 月份信息
@@ -142,7 +143,7 @@ const monthList = [
142 143
     popImg: require('../assets/luckyImg/11.jpg'),
143 144
     shareImg: require('../assets/sharePagesImg/11.jpg'),
144 145
     screenImg: require('../assets/screenImg/11.jpg'),
145
-    calendarImg: require('../assets/monthImg/November11.jpg'),
146
+    calendarImg: require('../assets/monthImg/December12.jpg'),
146 147
     mode: 1
147 148
   },
148 149
   {
@@ -198,6 +199,21 @@ export default {
198 199
   },
199 200
   created() {
200 201
     this.getPrizes()
202
+
203
+    // 设置微信分享
204
+    share({ title: '抽取幸运签,解锁隐藏福利', desc: '每月都有欢乐发生' })
205
+  },
206
+  watch: {
207
+    showMyWinning(newValue, oldValue) {
208
+      // 微信分享
209
+      // 1、正常情况下, 分享主题是 抽取幸运签,解锁隐藏福利
210
+      // 2、中奖弹出情况下, 分享主题是 我中奖啦! 来试试你的运气吧
211
+      if (newValue && !oldValue) {
212
+        share({ title: '我中奖啦! 来试试你的运气吧', desc: '抽取幸运签,解锁隐藏福利' })
213
+      } else if (newValue !== oldValue) {
214
+        share({ title: '抽取幸运签,解锁隐藏福利', desc: '每月都有欢乐发生' })
215
+      }
216
+    }
201 217
   },
202 218
   methods: {
203 219
     //关闭