File tree 4 files changed +7
-4
lines changed
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 19
19
const safeHeight = safeArea . bottom - safeArea . height ;
20
20
this . _safeHeight = safeArea . bottom - safeArea . height ;
21
21
const isIOS = platform === 'ios'
22
- console . log ( safeArea )
23
22
this . setData ( { isIOS, safeHeight, toolBarHeight : isIOS ? safeHeight + 50 : 50 } )
24
23
const that = this
25
24
this . updatePosition ( 0 )
46
45
const toolbarHeight = 50
47
46
const { windowHeight, platform } = wx . getSystemInfoSync ( )
48
47
let editorHeight = keyboardHeight > 0 ? ( windowHeight - keyboardHeight - toolbarHeight ) : windowHeight
49
- console . log ( editorHeight ) ;
50
48
if ( keyboardHeight === 0 ) {
51
49
this . setData ( {
52
50
editorHeight, keyboardHeight,
Original file line number Diff line number Diff line change 11
11
// })
12
12
} ,
13
13
data : {
14
- src : 'https://developers.weixin.qq.com'
14
+ src : 'https://developers.weixin.qq.com/community/business '
15
15
} ,
16
16
17
17
/**
Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ Page({
48
48
onChange ( e ) {
49
49
const index = e . detail . index
50
50
console . log ( 'change' , index )
51
+ } ,
52
+ handleClick ( ) {
53
+ wx . navigateTo ( {
54
+ url : '../tabs/webview' ,
55
+ } )
51
56
}
52
57
53
58
} )
Original file line number Diff line number Diff line change 7
7
>
8
8
<block wx:for="{{vtabs}}" wx:key="title" >
9
9
<mp-vtabs-content tabIndex="{{index}}">
10
- <view class="vtabs-content-item" style="margin-bottom: {{vtabs.length - 1 === index ? 600 : 0}}px">
10
+ <view class="vtabs-content-item" style="margin-bottom: {{vtabs.length - 1 === index ? 600 : 0}}px" bindtap="handleClick" >
11
11
<image src="{{item.img}}" mode="widthFix"></image>
12
12
<view class="item-title">
13
13
{{item.title2}}
You can’t perform that action at this time.
0 commit comments