Pārlūkot izejas kodu

1. 充值鸿币关闭的跳转 => 走登录逻辑

gongyan 4 gadi atpakaļ
vecāks
revīzija
b5d40a3fc1
3 mainītis faili ar 15 papildinājumiem un 10 dzēšanām
  1. 3 0
      README.md
  2. 1 1
      src/views/HbRecharge/HbRecharge.vue
  3. 11 9
      src/views/Login/LoginBox.vue

+ 3 - 0
README.md

@@ -246,3 +246,6 @@ appid
 
 -   [x] 新增鸿币充值页面
 -   [x] 修复绑定角色不更新 gameInfo bug
+-   [x] 登录成功跳转活动页
+-   [x] 充值鸿币关闭的跳转 => 走登录逻辑
+-   [ ] 红包活动展示图片需要更换

+ 1 - 1
src/views/HbRecharge/HbRecharge.vue

@@ -59,7 +59,7 @@ export default {
 
     // 关闭当前窗口 打开游戏
     close() {
-      this.$utils.closePage(this.userInfo.uid);
+      this.$utils.wcfmlLoginUtils(this.userInfo);
     },
   },
 };

+ 11 - 9
src/views/Login/LoginBox.vue

@@ -113,16 +113,18 @@ export default {
 
     // wcfml 忘川伏魔录登录工具函数
     wcfmlLogin(data) {
-      // 记住密码 todo
-      const savedata = decodeURIComponent(this.$utils.getQueryString("data"));
+      // 跳转红包页面
+      this.routeLink("ActivityHb");
 
-      // 跳转对应登录链接
-      const query = this.$utils.queryStringUtil({
-        uid: data.uid,
-        data: encodeURIComponent(savedata),
-      });
-      // window.open(`${this.$CONFIG.wcfmlLoginUrl}?${query}`);  这个没法
-      window.location.href = `${this.$CONFIG.wcfmlLoginUrl}?${query}`;
+      //   // 需要保存的数据
+      //   const savedata = decodeURIComponent(this.$utils.getQueryString("data"));
+      //   // 跳转对应登录链接
+      //   const query = this.$utils.queryStringUtil({
+      //     uid: data.uid,
+      //     data: encodeURIComponent(savedata),
+      //   });
+      //   // window.open(`${this.$CONFIG.wcfmlLoginUrl}?${query}`);  这个没法
+      //   window.location.href = `${this.$CONFIG.wcfmlLoginUrl}?${query}`;
     },
   },
 };