Эх сурвалжийг харах

1.大转盘关闭按钮样式修改 2.鸿币支付关闭回调修改 3. 游戏内支付点击模态框背景关闭当前页 4. 鸿币立即支付页面返回按钮 跳转地址修改为选择支付方式页面 5. 鸿币优惠页面点击模态框背景关闭当前页 7.支付回调页面新增 data 函数

gongyan 4 жил өмнө
parent
commit
9736290b13

+ 7 - 1
README.md

@@ -248,4 +248,10 @@ appid
 -   [x] 修复绑定角色不更新 gameInfo bug
 -   [x] 登录成功跳转活动页
 -   [x] 充值鸿币关闭的跳转 => 走登录逻辑
--   [ ] 红包活动展示图片需要更换
+-   [x] 红包活动展示图片更换为 wcfml 的图片
+-   [x] 大转盘样式修改
+-   [x] 鸿币支付关闭回调修改
+-   [x] 游戏内支付点击模态框背景关闭当前页
+-   [x] 鸿币立即支付页面返回按钮 跳转地址修改为选择支付方式页面
+-   [x] 鸿币优惠页面点击模态框背景关闭当前页
+-   [x] 支付回调页面新增 data 函数

+ 1 - 1
config/test.prod.env.js

@@ -4,6 +4,6 @@ const prodEnv = require('./prod.env')
 
 module.exports = merge(prodEnv, {
     NODE_ENV: '"development"',
-    API_ROOT: '"http://42.193.163.133:30000"', // 本地开发测试环境地址
+    API_ROOT: '"https://api.jhfly.cn"', // 本地开发测试环境地址
     API_HB: '"https://api.jhfly.cn"', // 正式环境 红包活动
 })

+ 2 - 1
src/App.vue

@@ -237,9 +237,10 @@ export default {
       const _payUrl = `${this.$CONFIG.redirectUrl}${encodeURIComponent(
         payUrl
       )}`;
+      const savedata = decodeURIComponent(this.$utils.getQueryString("data"));
       window.location.href = `${
         this.$CONFIG.wcfmlPayUrl
-      }?jump=${encodeURIComponent(_payUrl)}`;
+      }?data=${savedata}&jump=${encodeURIComponent(_payUrl)}`;
     },
 
     // 订单查询

BIN
src/assets/image/hb/normal_bg.gif


+ 0 - 1
src/components/Menu/MenuPay/MenuHbPay.vue

@@ -67,7 +67,6 @@ export default {
     // 返回游戏内支付页面
     back() {
       this.showInnerControl("");
-      this.$utils.closePage(this.userInfo.uid);
     },
 
     // 充值鸿币

+ 2 - 1
src/components/Menu/MenuPay/MenuPay.vue

@@ -31,7 +31,7 @@ export default {
   methods: {
     // 返回
     back() {
-      this.showInnerControl("");
+      this.$emit("close");
     },
 
     // 显示哪个组件(工具函数)
@@ -67,6 +67,7 @@ export default {
   .icon-back {
     margin-right: 10 / @rem;
     font-size: 50 / @rem;
+    cursor: pointer;
   }
 
   .title {

+ 3 - 4
src/components/Menu/MenuPay/MenuPayH5.vue

@@ -389,15 +389,13 @@ export default {
         extra,
       }).then((res) => {
         this.canPay = true;
-        this.back();
+        // this.back();
       });
-
-      return;
     },
 
     // 返回
     back() {
-      this.showInnerControl("");
+      this.$emit("close");
     },
 
     /**
@@ -768,6 +766,7 @@ export default {
     background-color: #3faeed;
     color: #fff;
     border-radius: 8 / @rem;
+    cursor: pointer;
   }
 }
 

+ 2 - 2
src/views/Active/Hb/HbDialog/HbDialog.vue

@@ -601,7 +601,6 @@ export default {
             margin-left: 42.5 / @rem;
             border-radius: 15 / @rem;
           }
-
         }
       }
     }
@@ -619,7 +618,8 @@ export default {
         width: 35 / @rem;
         height: 35 / @rem;
         top: 520 / @rem;
-        left: 70 / @rem;
+        left: 50%;
+        margin-left: -17.5 / @rem;
       }
     }
   }

+ 25 - 4
src/views/GamePay/GamePay.vue

@@ -1,17 +1,18 @@
 <template>
   <div class="game">
-    <div class="inner_box" @click="close"></div>
+    <div class="inner_box" @click="closePage"></div>
     <!-- 游戏内充值 -->
     <GamePayBox
       v-if="showGameInner === ''"
       @showInnerControl="showInnerControl"
-      @close="close"
+      @close="closeGamePay"
     />
 
     <!-- 鸿币充值 -->
     <MenuPay
       v-if="showGameInner === 'hb'"
       @showInnerControl="showInnerControl"
+      @close="close"
     />
 
     <!-- 鸿币支付确认 -->
@@ -33,6 +34,7 @@ import GamePayBox from "@/views/GamePay/GamePayBox"; // 游戏内充值
 import MenuPay from "@/components/Menu/MenuPay/MenuPay"; // 鸿币充值
 import MenuHbPay from "@/components/Menu/MenuPay/MenuHbPay"; // 鸿币支付确认
 import MenuHbDetail from "@/components/Menu/MenuPay/MenuHbDetail"; // 鸿币充值优惠明细
+import { mapState } from "vuex";
 export default {
   name: "GamePay",
   components: {
@@ -47,8 +49,16 @@ export default {
       showGameInner: "", // 控制显示哪个组件
     };
   },
-  computed: {},
-  watch: {},
+  computed: {
+    ...mapState(["userInfo"]),
+  },
+  watch: {
+    userInfo: {
+      handler: function () {},
+      deep: true,
+      immediate: true,
+    },
+  },
   created() {},
   mounted() {
     this.getFinance();
@@ -64,6 +74,17 @@ export default {
       // 1. 展示游戏内充值
       this.showInnerControl("");
     },
+
+    // 鸿币的返回回调函数
+    closeGamePay() {
+      this.showInnerControl("");
+      this.$utils.closePage(this.userInfo.uid);
+    },
+
+    // 关闭当前支付
+    closePage() {
+      this.$utils.closePage(this.userInfo.uid);
+    },
   },
 };
 </script>

+ 0 - 1
src/views/GamePay/GamePayBox.vue

@@ -28,7 +28,6 @@ export default {
     // 返回
     back() {
       this.$emit("close");
-      this.$utils.closePage(this.userInfo.uid);
     },
   },
 };

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

@@ -6,6 +6,7 @@
     <MenuPay
       v-if="showGameInner === 'hb'"
       @showInnerControl="showInnerControl"
+      @close="close"
     />
 
     <!-- 鸿币充值优惠明细 -->
@@ -51,7 +52,6 @@ export default {
     showInnerControl(showGameInner) {
       // 如果不存在, 就是关闭
       if (!showGameInner) {
-        this.close();
         return;
       }
       this.showGameInner = showGameInner;