Forráskód Böngészése

Signed-off-by: yukangzhe <382985154@qq.com>

yukangzhe 3 éve
szülő
commit
880cb0e937
5 módosított fájl, 8 hozzáadás és 5 törlés
  1. 1 1
      app.js
  2. BIN
      images/quan-tip.png
  3. 5 1
      pages/index/index.js
  4. 0 1
      pages/makePiano/makePiano.js
  5. 2 2
      pages/quan/quan.wxml

+ 1 - 1
app.js

@@ -68,7 +68,7 @@ App({
   },
 
   globalData: {
-    ver:'1.1.4',
+    ver:'1.1.5',
     userInfo: null,
     openId: '',
     imageUrl: 'https://app.schoolwisdoms.com/static/wx/images/',

BIN
images/quan-tip.png


+ 5 - 1
pages/index/index.js

@@ -349,8 +349,12 @@ Page({
             'curStu': student
           })
           // 放入 strong中
+          const stu = wx.getStorageSync('student')
+          if(stu && stu.studentId != student.studentId){
+            wx.setStorageSync('indexQuanTip', true)
+          }
+
           wx.setStorageSync('student', student);
-          wx.setStorageSync('indexQuanTip', true)
           this.queryQuan()
         }
         if (this.strLen(u.imageUrl) === 0) {

+ 0 - 1
pages/makePiano/makePiano.js

@@ -452,7 +452,6 @@ Page({
       const month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
       const day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
       const curDate = year + '/' + month + "/" + day
-      console.log(curDate)
       let endDate = this.data.endDate.replace(/-/g, '/')
       if (curDate <= endDate) {
         let newEndDate = year + '年' + this.data.endDate.substring(5, 7) + '月' + this.data.endDate.substring(8, 10) + '日'

+ 2 - 2
pages/quan/quan.wxml

@@ -47,11 +47,11 @@
               {{item.tempRange}}<view style="display:inline-block;width:20rpx"></view>{{item.tempCrowd}}
             </view>
 
-            <!-- <view class="moveCm btnbx" wx:if="{{status == '0' && item.flag == 0}}"> 
+            <view class="moveCm btnbx" wx:if="{{status == '0' && item.flag == 0}}"> 
               <view class="btnw btnBgActive" bindtap="submitCilck" data-index="{{index}}">
                 <view class="btnn">立即领取</view>
               </view>
-            </view> -->
+            </view>
 
             <!-- <view class="btnbx" wx:elif="{{status == '0' && item.flag!= 0}}"> 
               <view class="btnw btnBgActive">