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
| <script>
| export default {
| onLaunch: function() {
| var that = this
| console.log('App Launch')
| console.log(this.$dd)
| console.log(this.$dd.env.platform)
| if (this.$dd.env.platform !== 'notInDingTalk') {
| let href = window.location.href;
| this.$dd.requestAuthCode({
| corpId: 'dingulzemj5bynjciapg',
| clientId: 'dingulzemj5bynjciapg',
| onSuccess: function(result) {
| that.$u.api.ddLogin({
| code: '',
| corpId: ''
| })
| },
| onFail: function(err) {
| console.log(err)
| }
| });
| }
| },
| onShow: function() {
| console.log('App Show')
| },
| onHide: function() {
| console.log('App Hide')
| }
| }
| </script>
|
| <style lang="scss">
| @import "uview-ui/index.scss";
| </style>
|
|