jiangping
2024-05-16 a4945c89ee72aa8b6f2c0a75653a3256a2b30b4f
wx/unpackage/dist/dev/mp-weixin/pages/login/login.js
@@ -101,7 +101,7 @@
try {
  components = {
    uButton: function () {
      return Promise.all(/*! import() | node-modules/uview-ui/components/u-button/u-button */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-button/u-button")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-button/u-button.vue */ 406))
      return Promise.all(/*! import() | node-modules/uview-ui/components/u-button/u-button */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-button/u-button")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-button/u-button.vue */ 414))
    },
  }
} catch (e) {
@@ -200,17 +200,42 @@
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = {
  data: function data() {
    return {
      backgroundImg: __webpack_require__(/*! @/static/background/login_bg@2x.png */ 186),
      from: {
        username: '',
        password: ''
        password: '',
        readed: false
      }
    };
  },
  methods: {
    onCheckboxChange: function onCheckboxChange(e) {
      var val = e.detail.value;
      if (val.length > 0) {
        this.from.readed = true;
      } else {
        this.from.readed = false;
      }
      console.log(this.from.readed);
    },
    goAgreement: function goAgreement(type) {
      uni.navigateTo({
        url: "/pages/login/agreement?type=".concat(type)
      });
    },
    login: function login() {
      var that = this;
      if (!that.from.username) return uni.showToast({
@@ -221,6 +246,10 @@
        title: '请输入密码',
        icon: 'none'
      });
      if (!that.from.readed) return uni.showToast({
        title: '请先阅读和同意用户服务隐私协议',
        icon: 'none'
      });
      uni.login({
        provider: 'weixin',
        success: function () {