12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <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)
- } else {
- if(uni.getStorageSync("openUrl")) {
- return
- }
- uni.reLaunch({
- url: '../course/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>
|