1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
| <template>
| <view>
| <view>ds</view>
| </view>
| </template>
|
| <script>
| import {
| mapGetters
| } from "vuex";
| import { toLogin } from "../../../libs/login";
| export default {
| //computed: mapGetters(['chatUrl']),
| data() {
| return {
| windowH: 0,
| windowW: 0,
| url: '',
| paramUrl:'',
| shareObj:null,
| isShare:'0',
| needLogin:false,
| }
| },
| onShow(option) {
| let that=this;
| if (that.$store.getters.isLogin) {
| uni.navigateBack();
| }else{
| toLogin(that);
| that.loginBackFn = function() {
| uni.navigateBack();
| }
| uni.$once('loginFlSuccess', that.registerFn);
| }
| },
| onHide() {
| let that = this;
| uni.$off('loginFlSuccess', that.registerFn);
| },
| methods:{
| registerFn() {
| console.log('registerFn');
| let that = this;
| if (that.loginBackFn) {
| that.loginBackFn();
| }
| that.loginBackFn = null;
| },
| },
| }
| </script>
| <style>
| uni-page-head {
| display: none;
| }
| </style>
|
|