chenrong 11 ماه پیش
والد
کامیت
29363814ff
2فایلهای تغییر یافته به همراه7 افزوده شده و 3 حذف شده
  1. 2 1
      src/views/user/components/invite.vue
  2. 5 2
      src/views/user/components/signIn.vue

+ 2 - 1
src/views/user/components/invite.vue

@@ -53,7 +53,7 @@ import {
 export default {
   data() {
     return {
-      url: 'http://192.168.0.114:8088/#/home?code=',
+      url: '',
       code: '',
       inviteUserBalance: 0,
       userInfo: null,
@@ -76,6 +76,7 @@ export default {
       this.userInfo = res.data
       this.inviteUserBalance = res.data.inviteUserBalance
       this.code = res.data.id
+      this.url = res.data.inviteUserPrefix + '/#/home?code='
     })
     this.queryRecord()
     this.getModelList()

+ 5 - 2
src/views/user/components/signIn.vue

@@ -25,7 +25,7 @@
             <div 
               class=" bg-yellow-400 rounded-full text-white flex justify-center items-center mt-4 cursor-pointer"
               :class="index + 1 > todayNum && 'future'"
-              style="width: 4vw; height: 1.6vw;"
+              style="width: 4vw; height: 1.6vw; font-size: 0.8vw;"
               @click="signIn(item, index)"
               v-if="index >= lastSignDay"
             >
@@ -33,7 +33,7 @@
             </div>
             <div 
               class=" bg-green-400 rounded-full text-white flex justify-center items-center mt-4" 
-              style="width: 4vw; height: 1.6vw;"
+              style="width: 4vw; height: 1.6vw; font-size: 0.8vw;"
               v-if="index < lastSignDay"
             >
               已经签到
@@ -95,6 +95,9 @@ export default {
               this.todayNum = parseInt(res.data.remark) + 1
             }
           }
+        } else {
+          this.todayNum = 1
+          this.lastSignDay = 0
         }
       })
     },