12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <template>
- <view>
- <view class="content"><u-button @click="jumpBank">前往题库</u-button></view>
- </view>
- </template>
- <script>
- import { mapGetters } from 'vuex';
- export default {
- components: {},
- data() {
- return {};
- },
- onPullDownRefresh() {},
- onLoad(option) {},
- onShow() {
- /* if(this.current === 2 && this.$method.isLogin()){
- this.$refs.refMy.init();
- } */
- },
- onShareAppMessage(res) {
- var self = this;
- return {
- title: '中正',
- path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
- };
- },
- methods: {
- jumpBank() {
- this.$navTo.togo('/pages2/bank/questionBank');
- },
- getDict() {
-
- },
- updateHomePlan() {
- this.$refs.home.init();
- },
- beforeSwitch(index) {
- let that = this;
- if (index == 1) {
- this.isClick1 = true;
- }
- if (index == this.current) {
- return false;
- }
- if (!this.$method.isLogin()) {
- if (index == 0 || index == 1) {
- return true;
- } else {
- this.$navTo.togo('/pages/login/login');
- return false;
- }
- } else {
- if (index == 2) {
- this.$refs.refMy.init();
- }
- return true;
- }
- }
- },
- onReachBottom() {},
- // computed: { ...mapGetters(['userInfo']) }
- };
- </script>
- <style scoped>
- .content {
- height: 80vh;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- </style>
|