瀏覽代碼

新增公众号进来登录

xuqiaoying 2 年之前
父節點
當前提交
d061f550d8
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages2/dailyPractice/index.vue

+ 4 - 0
pages2/dailyPractice/index.vue

@@ -105,10 +105,14 @@ export default {
         }
     },
     onLoad(option) {
+        console.log('参数option:', option);
         this.goodsId = option.goodsId
         this.orderGoodsId = option.orderGoodsId
     },
     onShow() {
+        if (this.$method.isGoLogin()) { // 从公众号消息进来的没登录需要跳到登录页,登录后返回
+            return
+        }
         this.initCalendar()
         this.getToDayExam()
     },