wfansh 1 month ago
parent
commit
6d68c43d2c
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/views/adweb/payments/AdwebPayments.vue

+ 5 - 4
src/views/adweb/payments/AdwebPayments.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="tools-wrap">
     <a-row :gutter="[20, 20]">
-      <a-col :span="10">
+      <a-col :span="12">
         <div class="wrap new">
           <img src="../../../assets/payments/pingpong.png" />
           <div class="content">
@@ -25,8 +25,8 @@ export default {
       const screenWidth = window.screen.width;
       const screenHeight = window.screen.height;
 
-      // 设置窗口宽度为屏幕的一半,高度为屏幕的完整高度
-      const windowWidth = screenWidth / 2;
+      // 设置窗口宽度为屏幕的2/3,高度为屏幕的完整高度
+      const windowWidth = screenWidth * 2 / 3;
       const windowHeight = screenHeight;
 
       // 计算窗口的位置,使其居中显示
@@ -34,7 +34,7 @@ export default {
       const top = 0;
 
       // 设置窗口特性
-      const windowFeatures = `width=${windowWidth},height=${windowHeight},left=100,top=${top},menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=yes,status=no`;
+      const windowFeatures = `width=${windowWidth},height=${windowHeight},left=${left},top=${top},menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=yes,status=no`;
 
       // 打开新窗口
       window.open(url, '_blank', windowFeatures);
@@ -49,6 +49,7 @@ export default {
     background: #fff;
     border-radius: 10px;
     padding: 30px;
+    margin: 10px;
     display: flex;
     align-items: start;
     img {