| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <template>
- <view class="content">
-
- </view>
- </template>
- <script>
- import { getDicts } from '@/api/common'
- export default {
- data() {
- return {
-
- };
- },
- onShow() {
- //this.getDicts()
- this.navigatHandler();
- },
- methods: {
- navigatHandler: function() {
- if (!this.$isLogin()) {
- setTimeout(()=>{
- uni.reLaunch({
- url: '../auth/loginIndex',
- animationType: 'none',
- animationDuration: 2000
- })
- },200);
-
- // #ifdef APP-PLUS
- plus.navigator.closeSplashscreen();
- // #endif
-
- } else {
- if(uni.getStorageSync("openUrl")) {
- return
- }
- uni.reLaunch({
- url: '/pages_im/pages/conversation/conversationList/index',
- //url: '../course/video/living-app',
- animationType: 'none',
- animationDuration: 2000
- })
- }
- },
- getDicts:function(){
- getDicts().then(
- res => {
- if(res.code==200){
- uni.setStorageSync('dicts',JSON.stringify(res.data));
- }
- },
- rej => {}
- );
- },
- },
-
- };
-
- </script>
- <style>
- page{
- background-color: #fff;
- }
- .content {
- background-color: #fff;
- height: 100%;
- width: 100%;
- position: relative;
- padding-top: 0;
- }
- </style>
|