Ver Fonte

fix: 更新支付成功跳转链接和登录提示文案

将支付成功后的跳转链接从 /pay 更新为 /wechatpay,以匹配后端路由变更。
同时将搜索页面的登录提示文案从“钻石充值”修正为“金币充值”,保持术语一致性。
Shirley há 1 semana atrás
pai
commit
252def8d89
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 1 1
      src/views/Recharge.vue
  2. 2 2
      src/views/Search.vue

+ 1 - 1
src/views/Recharge.vue

@@ -532,7 +532,7 @@ export default {
     handlePaymentSuccess() {
       console.log("支付成功");
       this.$toast.success("支付成功");
-      window.location.href = "https://mewkeji.com/pay";
+      window.location.href = "https://mewkeji.com/wechatpay";
     },
 
     // 处理支付失败

+ 2 - 2
src/views/Search.vue

@@ -25,7 +25,7 @@
     <!-- 未登录提示 -->
     <div v-if="!isLoggedIn" class="login-prompt-section">
       <div class="login-prompt-card">
-        <div class="prompt-text">请先完成登录后,即可进行钻石充值~</div>
+        <div class="prompt-text">请先完成登录后,即可进行金币充值~</div>
       </div>
     </div>
 
@@ -197,7 +197,7 @@ export default {
       const strictCode = strictMatch ? strictMatch[1] : null;
       if (!strictCode) {
         // 记录当前页面URL作为重定向目标
-        const redirectUrl = `https%3A%2F%2Fmewkeji.com%2Fpay`
+        const redirectUrl = `https%3A%2F%2Fmewkeji.com%2Fwechatpay`
 
         // 构建微信授权URL
         const authUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2a1c96c7e81f98f2&redirect_uri=${redirectUrl}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`