k94314517
2025-05-28 a43f9d75a9e0ba2720b3c438a0c5ece7be0eb110
wx/unpackage/dist/dev/mp-weixin/pages/login/login.js
@@ -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 () {