Bläddra i källkod

Merge branch 'develop/3.2.8'

332777428@qq.com 2 månader sedan
förälder
incheckning
f4b308dd2b
2 ändrade filer med 13 tillägg och 5 borttagningar
  1. 6 5
      src/pages/explain/index.vue
  2. 7 0
      src/pages/pay/index.vue

+ 6 - 5
src/pages/explain/index.vue

@@ -69,9 +69,9 @@ export default {
       currentPage: 1,
       numPages: 0,
       scale: 1,
-      loadedPages: 1,
+      loadedPages: 0,
 
-      isLoading: true,
+      isLoading: false,
       text: "拼命加载中...",
       zIndex: 9999,
     };
@@ -139,11 +139,12 @@ export default {
 
         that.numPages = numPages;
         that.fileUrl = fileUrl;
-        await that.sleep(500);
+        // await that.sleep(600);
         that.loadAll = true;
         that.loadedPages = numPages;
-        await that.sleep(2000);
-        that.isLoading = false;
+        // that.isLoading = false;
+        // await that.sleep(2000);
+        // that.isLoading = false;
       } catch (e) {
         console.error("PDF加载失败:", e);
       }

+ 7 - 0
src/pages/pay/index.vue

@@ -291,6 +291,13 @@ export default {
           this.info = res.data;
           this.rateplan = res.data.rateplan;
           this.percent = (this.rateplan.used / this.rateplan.total) * 100;
+        } else if (res.code == 1017) {
+          uni.showToast({
+            title: res.message,
+            icon: "none",
+            mask: true,
+            duration: 2000,
+          });
         }
       });
     },