jiangping
2024-05-07 529d0b8982cf30f57ba7e366c0f822c1d82c0b69
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
          // }
        });
      }
    },