File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 =" 占位符字体是红色的" />
3028 </script >
3129
3230<style >
33- </style >
31+ </style >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 ()
7572 }
7673 },
7774 onPageScroll () {
78- console .log (' scroll.............................' );
7975 this .load ()
8076 }
8177 }
You can’t perform that action at this time.
0 commit comments