1234567891011121314151617181920212223242526272829303132333435363738 |
- <template>
- <view>
- <web-view :src="src"></web-view>
- </view>
- </template>
- <script>
- import $api from '@/static/js/api.js'
- export default {
- data() {
- return {
- src: '',
- }
- },
- onShow() {
- $api.req({
- url: '/data/api.auth.Center/get',
- method: 'POST',
- }, function(res) {
- if(res.code == 1) {
- console.log(res);
- var user = res.data
- if(user.is_auth == 1) {
- $api.jump('/pages/tabbar/mine/mine',3)
- }
- }
- })
- },
- onLoad(options) {
- this.src = decodeURIComponent(options.url)
- },
- methods: {
- }
- }
- </script>
- <style>
- </style>
|