| | |
| | | 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) { |
| | |
| | | // |
| | | // |
| | | // |
| | | // |
| | | // |
| | | // |
| | | // |
| | | // |
| | | // |
| | | // |
| | | // |
| | | // |
| | | // |
| | | 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({ |
| | |
| | | title: '请输入密码', |
| | | icon: 'none' |
| | | }); |
| | | if (!that.from.readed) return uni.showToast({ |
| | | title: '请先阅读和同意用户服务隐私协议', |
| | | icon: 'none' |
| | | }); |
| | | uni.login({ |
| | | provider: 'weixin', |
| | | success: function () { |