From 9607e7e25475d7533944f2218eb0a40189c343f2 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 03 五月 2024 22:07:01 +0800
Subject: [PATCH] mrshi

---
 wx/unpackage/dist/dev/mp-weixin/pages/policyDetails/policyDetails.js |   65 +++++++++++++++++++-------------
 1 files changed, 38 insertions(+), 27 deletions(-)

diff --git a/wx/unpackage/dist/dev/mp-weixin/pages/policyDetails/policyDetails.js b/wx/unpackage/dist/dev/mp-weixin/pages/policyDetails/policyDetails.js
index 1cff12b..a4178c8 100644
--- a/wx/unpackage/dist/dev/mp-weixin/pages/policyDetails/policyDetails.js
+++ b/wx/unpackage/dist/dev/mp-weixin/pages/policyDetails/policyDetails.js
@@ -229,7 +229,8 @@
       code: '',
       num: 0,
       error: false,
-      timer: null
+      timer: null,
+      loading: false
     };
   },
   computed: _objectSpread({}, (0, _vuex.mapState)(['userInfo'])),
@@ -266,13 +267,14 @@
     },
     // 鎵撳紑鍙戦�侀獙璇佺爜寮圭獥
     openmessage: function openmessage(type) {
-      this.code = '';
-      clearInterval(this.timer);
-      this.error = '';
-      this.timer = null;
-      this.num = 0;
+      // this.code = ''
+      // clearInterval(this.timer)
+      // this.error = ''
+      // this.timer = null
+      // this.num = 0
       this.type = type;
-      this.show1 = true;
+      // this.show1 = true
+      this.confirm1();
     },
     signApplication: function signApplication() {
       uni.navigateTo({
@@ -354,25 +356,28 @@
     },
     confirm1: function confirm1() {
       var _this6 = this;
-      if (!this.code) {
-        this.error = 1;
-        return;
-      }
+      // if (!this.code) {
+      // 	this.error = 1
+      // 	return
+      // }
       // 绛剧讲鎶曚繚鍗�
+      this.loading = true;
       if (this.type === 1) {
         this.$u.api.getSignWTBTBDLink({
           code: this.code,
           businessId: this.info.id
         }).then(function (res) {
+          _this6.loading = false;
           if (res.code === 200) {
-            _this6.error = '';
-            _this6.show1 = false;
+            // this.error = ''
+            // this.show1 = false
             uni.navigateTo({
               url: "/pages/webView/webView?url=".concat(encodeURIComponent(res.data))
             });
-          } else {
-            _this6.error = 2;
           }
+          //  else {
+          // 	this.error = 2
+          // }
         });
         // 纭涔�
       } else if (this.type === 2) {
@@ -381,14 +386,16 @@
           code: this.code
         }).then(function (res) {
           if (res.code === 200) {
-            _this6.error = '';
-            _this6.show1 = false;
+            _this6.loading = false;
+            // this.error = ''
+            // this.show1 = false
             uni.navigateTo({
               url: "/pages/webView/webView?url=".concat(encodeURIComponent(res.data))
             });
-          } else {
-            _this6.error = 2;
           }
+          //  else {
+          // 	this.error = 2
+          // }
         });
         // 绛剧讲鐢宠鍗� --- 濮旀墭
       } else if (this.type === 3) {
@@ -397,14 +404,16 @@
           code: this.code
         }).then(function (res) {
           if (res.code === 200) {
-            _this6.error = '';
-            _this6.show1 = false;
+            _this6.loading = false;
+            // this.error = ''
+            // this.show1 = false
             uni.navigateTo({
               url: "/pages/webView/webView?url=".concat(encodeURIComponent(res.data))
             });
-          } else {
-            _this6.error = 2;
           }
+          //  else {
+          // 	this.error = 2
+          // }
         });
         // 绛剧讲鐢宠鍗� --- 鐩翠繚
       } else if (this.type === 4) {
@@ -413,17 +422,19 @@
         }).then(function (res) {
           if (res.code === 200) {
             _this6.$u.api.getSignLink(_this6.info.id).then(function (data) {
+              _this6.loading = false;
               if (data.code === 200) {
-                _this6.error = '';
-                _this6.show1 = false;
+                // this.error = ''
+                // this.show1 = false
                 uni.navigateTo({
                   url: "/pages/webView/webView?url=".concat(encodeURIComponent(data.data))
                 });
               }
             });
-          } else {
-            _this6.error = 2;
           }
+          //  else {
+          // 	this.error = 2
+          // }
         });
       }
     },

--
Gitblit v1.9.3