ソースを参照

bugfix:修复已知bug

leo 1 年間 前
コミット
d336543f3a

+ 2 - 0
.env.production

@@ -27,3 +27,5 @@ QIYUKF_TEMPLATE_ID = "6635862"
 
 IMG_URL = "https://www.androidscloud.com:9001/cloud/picture/assist"
 
+H5_URL = "https://client.phone.androidscloud.com"
+

+ 2 - 0
.env.test

@@ -26,3 +26,5 @@ SZX_APP_ANDROID_SCHEME = "opengeminiapp"
 QIYUKF_TEMPLATE_ID = "6635862"
 
 IMG_URL = "http://gntest.phone.androidscloud.com:9002/cloud/picture/assist"
+
+H5_URL = "http://gntest.phone.androidscloud.com:1280"

+ 3 - 0
.env.uat

@@ -27,3 +27,6 @@ SZX_APP_ANDROID_SCHEME = "opengeminiapp"
 QIYUKF_TEMPLATE_ID = "6635862"
 
 IMG_URL = "https://gntest.phone.androidscloud.com:9001/clouduat/picture/assist"
+
+H5_URL = "https://prese.phone.androidscloud.com"
+

BIN
assets/image/claimCloudPhone/Invitee-to-claim.png


BIN
assets/image/claimCloudPhone/first-reward-2.png


BIN
assets/image/claimCloudPhone/first-reward-3.png


BIN
assets/image/claimCloudPhone/first-reward-container-privilege.png


BIN
assets/image/claimCloudPhone/first-reward-img.png


BIN
assets/image/claimCloudPhone/purchase-img.png


BIN
assets/image/claimCloudPhone/second-reward-img.png


+ 2 - 2
pages/claimCloudPhone/confirmation.vue

@@ -64,6 +64,7 @@ export default {
       },
       currentStatus: '',
       index: 1,
+      H5_URL: process.env.H5_URL,
     };
   },
   mounted() {
@@ -118,8 +119,7 @@ export default {
         : 'https://www.androidscloud.com';
     },
     toH5() {
-      location.href =
-        'http://gntest.phone.androidscloud.com:1280/cloud/phone/web/#/';
+      location.href = this.H5_URL + '/cloud/phone/web/#/';
     },
   },
 };

+ 9 - 10
plugins/plugins.js

@@ -17,17 +17,17 @@ export function timeStamp(StatusMinute, userCardType, nextSendTime) {
 
 
 // 封装对剪贴板的访问为异步函数
-export async function writeToClipboard(text) {
+export function writeToClipboard(text) {
     // 如果navigator.clipboard存在,直接使用复制功能
     if (navigator.clipboard) {
         try {
-            alert(1)
-            alert(text)
-            await navigator.clipboard.writeText(text);
+            navigator.clipboard.writeText(text).then(() => {
+                return Promise.resolve()
+            }).catch((err) => {
+                return Promise.reject(err)
+            });
         } catch (err) {
-            alert(2)
-            alert(err)
-            throw err
+            return Promise.reject(err)
         }
     } else {
         // 否则使用传统的document.execCommand('copy')方法
@@ -38,13 +38,12 @@ export async function writeToClipboard(text) {
         try {
             const successful = document.execCommand('copy');
             if (successful) {
-                alert(3)
+                return Promise.resolve()
             } else {
-                alert(4)
                 throw '复制失败'
             }
         } catch (err) {
-            throw err
+            return Promise.reject(err)
         }
         document.body.removeChild(textArea);
     }