| | |
| | | userName: '123' |
| | | }; |
| | | }, |
| | | onLoad() { |
| | | onLoad(obj) { |
| | | console.log(obj.name) |
| | | this.userName = uni.getStorageSync('userData') |
| | | }, |
| | | methods: {} |
| | |
| | | </view> |
| | | </view> |
| | | <view class="itemView"> |
| | | <button class="loadingButton" @click="onLogin()" :loading="loading">{{btnText}}</button> |
| | | <u-button class="loadingButton" @click="onLogin()" :loading="loading">{{btnText}}</u-button> |
| | | </view> |
| | | </view> |
| | | <u-toast ref="uToast"></u-toast> |
| | |
| | | |
| | | }); |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: '../index/index' |
| | | }); |
| | | uni.$u.route({ |
| | | url: 'pages/index/index', |
| | | params: { |
| | | name: 'lisa' |
| | | } |
| | | }) |
| | | |
| | | }, 300) |
| | | }, 700) |
| | | }, |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | <style lang="scss" scoped> |
| | | .helloText { |
| | | font-family: a2; |
| | | font-size: 20px; |