doum
4 天以前 7a4b8764b68e0dbaeb90e292a8a4bd47cb379e68
small-program/unpackage/dist/dev/mp-weixin/shop/pages/login/login.js
@@ -101,7 +101,7 @@
try {
  components = {
    uIcon: function () {
      return Promise.all(/*! import() | node-modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-icon/u-icon.vue */ 467))
      return Promise.all(/*! import() | node-modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-icon/u-icon.vue */ 475))
    },
  }
} catch (e) {
@@ -198,7 +198,7 @@
      try {
        console.log(this.userType, "============================================");
        this.$u.api.shopSilentLogin({}).then(function (res) {
          if (res.code === 200) {
          if (res.code === 200 && res.data) {
            _this.$store.commit('setUserType', 1);
            _this.$store.commit('setShopToken', res.data.token);
            // 获取门店信息
@@ -214,6 +214,8 @@
              // }, 1000)
            });
          }
          uni.hideLoading();
        });
      } catch (e) {
        uni.hideLoading();
@@ -232,18 +234,8 @@
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                if (_this2.agreed) {
                  _context.next = 3;
                  break;
                }
                uni.showToast({
                  title: '请先阅读并同意协议',
                  icon: 'none'
                });
                return _context.abrupt("return");
              case 3:
                if (_this2.form.telephone) {
                  _context.next = 6;
                  _context.next = 3;
                  break;
                }
                uni.showToast({
@@ -251,13 +243,23 @@
                  icon: 'none'
                });
                return _context.abrupt("return");
              case 6:
              case 3:
                if (_this2.form.password) {
                  _context.next = 9;
                  _context.next = 6;
                  break;
                }
                uni.showToast({
                  title: '请输入密码',
                  icon: 'none'
                });
                return _context.abrupt("return");
              case 6:
                if (_this2.agreed) {
                  _context.next = 9;
                  break;
                }
                uni.showToast({
                  title: '请先阅读并同意协议',
                  icon: 'none'
                });
                return _context.abrupt("return");
@@ -325,14 +327,9 @@
        }, _callee, null, [[10, 29]]);
      }))();
    },
    goToService: function goToService() {
    goToService: function goToService(type) {
      uni.navigateTo({
        url: '/pages/rich-text/rich-text?type=userAgreement'
      });
    },
    goToPrivacy: function goToPrivacy() {
      uni.navigateTo({
        url: '/pages/rich-text/rich-text?type=privacyPolicy'
        url: '/pages/rich-text/rich-text?type=' + type
      });
    }
  }