bayi 1 год назад
Родитель
Сommit
d5ef789bbc
2 измененных файлов с 8 добавлено и 10 удалено
  1. 6 8
      pages/invite/index.js
  2. 2 2
      pages/my/index.wxml

+ 6 - 8
pages/invite/index.js

@@ -295,14 +295,6 @@ Page({
             text2: ''
         }
     },
-    async onLoad() {
-        if (this.data.count > 2) {
-            wx.pageScrollTo({
-                selector: `#p${this.data.count<60?this.data.count:60}`,
-                duration: 800
-            })
-        }
-    },
     async onShow() {
         let {
             list
@@ -312,6 +304,12 @@ Page({
         this.setData({
             count: list.length
         })
+        if (this.data.count > 2) {
+            wx.pageScrollTo({
+                selector: `#p${this.data.count<60?this.data.count-1:60}`,
+                duration: 800
+            })
+        }
     },
     openTips({
         currentTarget

+ 2 - 2
pages/my/index.wxml

@@ -13,8 +13,8 @@
                     <view class="uRtopleft">
                         <view class="nickName textOver">{{userInfo.user.nickName||'请输入昵称' }}</view>
                         <view class="gradeText textOver" catchtap="clipboar">学号:{{userInfo.user.eid}}</view>
-                        <view class="validity" wx:if="{{vipTime}}">
-                            会员使用至:{{vipTiem=='1'?'终身使用':filters.formatDate(vipTime,5)}}
+                        <view class="validity" wx:if="{{isPreferential}}">
+                            {{vipTiem=='1'?'会员使用至:终身使用':!vipTiem?'会员已过期':'会员使用至:'+filters.formatDate(vipTime,5)}}
                         </view>
                     </view>
                     <view class="uRtopRight">