石广澎
2024-07-16 52a4d16ecb99697a698ce1eda151a5b16c8230d1
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<script>
import {
  config,
} from 'common/config.js';
import {
  getPlat
} from 'common/util.js';
    export default {
        onLaunch: function(opt) {
      /*console.log(opt)
      let platform = 2
      const redirect_uri = encodeURIComponent(`${config.webURL}/pay/scanpay?cid=${opt.query.cid}`)
      console.log('OPENID'+platform,!!uni.getStorageSync('OPENID'+platform))
      if(!!uni.getStorageSync('OPENID'+platform)){
        window.location.href = redirect_uri
        return
      }
      return
      if(!opt.query.code && !opt.query.auth_code){
        console.log('auth',platform, !opt.query.code && !opt.query.auth_code)
        if (platform == 2) {
          window.location.href =redirect_uri+'&code=sadfkhnadsmuk'
              //`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${config.wx_appid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
        } else if (platform == 5) {
          window.location.href =redirect_uri
              //`https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=${config.ali_appid}&scope=auth_base&redirect_uri=${redirect_uri}&state=STATE`
        }
      }*/
        },
        onShow: function() {
            console.log('App Show')
        },
        onHide: function() {
            console.log('App Hide')
        }
    }
</script>
 
<style lang="scss">
    @import '@/uni_modules/uview-ui/index.scss';
 
    page {
        background-color: #f5f5f5;
    }
 
    .bg-fff {
        background-color: #ffffff;
    }
 
    .flex-1 {
        flex-grow: 1;
    }
 
    .color-fff {
        color: #ffffff;
    }
 
    .color-333 {
        color: #333333;
    }
 
    .color-666 {
        color: #666666;
    }
 
    .color-999 {
        color: #999999;
    }
 
    .color-red {
        color: #DE2D35;
    }
 
    .color-green {
        color: #3fde2d;
    }
 
    .font-bold {
        font-weight: bolder;
    }
 
    .u-border-bottom {
        border-color: #eee !important;
    }
</style>