DESKTOP-O04BTUJ\muzen 3 år sedan
förälder
incheckning
cd80fc2d71
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. 2 3
      src/pages/lottery/index.vue

+ 2 - 3
src/pages/lottery/index.vue

@@ -84,6 +84,7 @@ export default {
     getUserInfo.postMessage('获取用户信息')
     getUserInfo.postMessage('获取用户信息')
     // 暴露setUserInfo方法给APP
     // 暴露setUserInfo方法给APP
     window['setUserInfo'] = res => {
     window['setUserInfo'] = res => {
+      console.log(res);
       this.userInfo = res
       this.userInfo = res
       this.setUserInfo()
       this.setUserInfo()
     }
     }
@@ -131,8 +132,8 @@ export default {
     startCallBack() {
     startCallBack() {
       if (this.hasLotteryCount > 0) {
       if (this.hasLotteryCount > 0) {
         if (this.maySignPoint >= this.lotteryConsumePoint) {
         if (this.maySignPoint >= this.lotteryConsumePoint) {
-          this.$refs.lucky.play()
           if (this.disabled) {
           if (this.disabled) {
+            this.$refs.lucky.play()
             this.disabled = false
             this.disabled = false
             result(JSON.parse(this.userInfo)).then(res => {
             result(JSON.parse(this.userInfo)).then(res => {
               if (res.data.code === 0) {
               if (res.data.code === 0) {
@@ -216,8 +217,6 @@ export default {
   background-repeat: no-repeat;
   background-repeat: no-repeat;
   width: 100%;
   width: 100%;
   height: 1880rpx;
   height: 1880rpx;
-  padding-bottom: constant(safe-area-inset-bottom);
-  padding-bottom: env(safe-area-inset-bottom);
 
 
   .nav {
   .nav {
     height: 88rpx;
     height: 88rpx;