Skip to content

Commit 102eb63

Browse files
committed
feat: mp-alipay drawer
1 parent e510143 commit 102eb63

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

‎pages/component/textarea/textarea.vue‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<template>
22
<view>
33
<page-head :title="title"></page-head>
4-
5-
<view class="uni-title uni-common-pl">输入区域高度自适应,不会出现滚动条</view>
6-
<view class="uni-textarea">
7-
<textarea @blur="bindTextAreaBlur" auto-height />
4+
<view class="uni-title uni-common-pl">输入区域高度自适应,不会出现滚动条</view>
5+
<view class="uni-textarea">
6+
<textarea @blur="bindTextAreaBlur" auto-height />
87
</view>
9-
108
<view class="uni-title uni-common-pl">占位符字体是红色的textarea</view>
119
<view class="uni-textarea">
1210
<textarea placeholder-style="color:#F76260" placeholder="占位符字体是红色的"/>
@@ -30,4 +28,4 @@
3028
</script>
3129

3230
<style>
33-
</style>
31+
</style>

‎pages/template/drawer/drawer.vue‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@
77
</view>
88
<!-- #ifdef MP-WEIXIN -->
99
<view class="icon" @click="showRightDrawer">
10-
<uni-icon type="bars" color="#666666" size="22"></uni-icon>
10+
<uni-icon type="bars" color="#666666" :size="22"></uni-icon>
1111
</view>
1212
<!-- #endif -->
1313
<!-- #ifdef MP-BAIDU -->
1414
<view class="icon" @click="showRightDrawer">
15-
<uni-icon type="bars" color="#666666" size="22"></uni-icon>
15+
<uni-icon type="bars" color="#666666" :size="22"></uni-icon>
16+
</view>
17+
<!-- #endif -->
18+
<!-- #ifdef MP-ALIPAY -->
19+
<view class="icon" @click="showRightDrawer">
20+
<uni-icon type="bars" color="#666666" :size="22"></uni-icon>
1621
</view>
1722
<!-- #endif -->
1823
</view>

‎pages/template/lazy-load-custom/lazy-load-custom.vue‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,10 @@
4848
},
4949
methods: {
5050
load() {
51-
console.log('load..............................');
52-
console.log(uni.createSelectorQuery().selectAll('.lazy'));
5351
uni.createSelectorQuery().selectAll('.lazy').boundingClientRect((images) => {
54-
console.log('boundingClientRect...........');
5552
images.forEach((image, index) => {
5653
if (image.top <= this.windowHeight) {
57-
this.list[image.dataset.index].show = true
54+
this.list[image.dataset.index].show = true;
5855
}
5956
})
6057
}).exec()
@@ -75,7 +72,6 @@
7572
}
7673
},
7774
onPageScroll() {
78-
console.log('scroll.............................');
7975
this.load()
8076
}
8177
}

0 commit comments

Comments
 (0)