Browse Source

优化

和田中职
suyanyan 3 weeks ago
parent
commit
10b039bfa1
4 changed files with 10 additions and 11 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/InternshipResults/list.vue
  2. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/clockIn/list.vue
  3. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue
  4. +7
    -8
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/login.vue

+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/InternshipResults/list.vue View File

@@ -9,7 +9,7 @@
</view> </view>
</view> </view>
<view class="footer"> <view class="footer">
<!-- <img src="../../static/image/bg3.png" alt="" /> -->
<img src="../../static/image/bg3.png" alt="" />
</view> </view>
</view> </view>
</template> </template>


+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/clockIn/list.vue View File

@@ -154,7 +154,7 @@
} }
}); });
} else { } else {
alert('failed' + this.getStatus());
// alert('failed' + this.getStatus());
} }
}); });
}, },


+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue View File

@@ -96,7 +96,7 @@
<!--#endif --> <!--#endif -->
</view> </view>
</view> </view>
<tabBar selectedIndex='/pages/home'></tabBar>
<!-- <tabBar selectedIndex='/pages/home'></tabBar> -->
</view> </view>
</template> </template>




+ 7
- 8
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/login.vue View File

@@ -113,21 +113,20 @@
}, },
methods: { methods: {
async getCasLoginInfo() { async getCasLoginInfo() {
let loginResult=null;
let loginResult = null;
const url = new URL(window.location.href); const url = new URL(window.location.href);
const params = new URLSearchParams(url.search); const params = new URLSearchParams(url.search);
const ticket = params.get('ticket'); const ticket = params.get('ticket');
// const ticket = "1"
if (ticket) { if (ticket) {
console.log("1:",ticket);
let postResult = await this.POST('/api/ht/ticket', { let postResult = await this.POST('/api/ht/ticket', {
ticket, ticket,
}) })
console.log(postResult);
if (postResult[1].data.code == '200') { if (postResult[1].data.code == '200') {
loginResult = postResult[1].data.data; loginResult = postResult[1].data.data;
} else { } else {
this.TOAST(postResult[1].data.info); this.TOAST(postResult[1].data.info);
} }
const { const {
baseinfo, baseinfo,
@@ -141,13 +140,13 @@
role role
} }
const token = baseinfo.token const token = baseinfo.token
this.SET_GLOBAL('token', token) this.SET_GLOBAL('token', token)
this.SET_GLOBAL('loginUser', user) this.SET_GLOBAL('loginUser', user)
this.SET_STORAGE('token', token) this.SET_STORAGE('token', token)
this.HIDE_LOADING() this.HIDE_LOADING()
this.TAB_TO('/pages/home') this.TAB_TO('/pages/home')




Loading…
Cancel
Save