扫描小程序码分享
scroll-view组件用在展示商品页面 安卓手机可以下拉 ios可以拉但是会回弹 不想要回弹的效果 ,怎么处理
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
您好我是做的电商的商品下拉,利用的是swiper,但是高度不够 ,商品不能完整展示,所以选用了scroll-view,可以竖向滚动.但是在ios上出现卡顿 ,回弹的现象,大神帮忙看一下,代码如下
<
view
class
=
'con_top'
></
>
"swiper-tab"
"swiper-tab-list {{currentTab==0 ? 'on' : ''}}"
data-current
"0"
bindtap
"swichNav"
>全部</
</
swiper
current
"{{currentTab}}"
"swiper-box"
duration
"300"
style
"height:{{winHeight + 600}}px"
bindchange
"bindChange"
<!-- 全部订单 -->
swiper-item
scroll-view
scroll-y
'true'
"height: 100%; overflow: auto;"
bindscrolltolower
'bottomtop'
upper-threshold
'20'
<!-- 开始 -->
'detile'
wx:for
"{{tradeInfos}}"
wx:for-index
"index"
'detile_top'
'detile_top_con clearfix'
text
'fl'
>申请单号:{{item.tradeId}}</
'fr'
>{{item.txt}}</
<!-- 内容开始 -->
'con_mid'
'con_mid_con clearfix'
"{{tradeInfos[index].orderInfos}}"
"idx"
wx:for-item
"itemName"
'con_mid_left fl'
image
src
'{{img_url+itemName.cardImage}}'
'con_mid_left_img fl'
'con_mid_right fr'
'con_mid_right_top clearfix'
'con_mid_right_top_txt1 fl'
>{{itemName.commodityName}}</
'con_mid_right_top_txt2 fr'
>¥{{itemName.price}}</
'con_mid_right_bottom clearfix'
'con_mid_right_bottom1 fl'
>库存{{itemName.stockNum}}</
'con_mid_right_bottom2 fr'
> ×{{itemName.commdityNum}} </
'con_mid_right_bottom_bttom clearfix'
'con_mid_right_bottom_bottom1 fr'
> ¥{{itemName.commReceivableFee}} </
<!-- 内容结束 -->
<!-- 结束 -->
大神,还在吗 这个到底是什么问题啊
有大神吗 是ios手机卡顿了,是scroll-view组件对ios手机不兼容吗
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
您好我是做的电商的商品下拉,利用的是swiper,但是高度不够 ,商品不能完整展示,所以选用了scroll-view,可以竖向滚动.但是在ios上出现卡顿 ,回弹的现象,大神帮忙看一下,代码如下
<
view
class
=
'con_top'
></
view
>
<
view
class
=
"swiper-tab"
>
<
view
class
=
"swiper-tab-list {{currentTab==0 ? 'on' : ''}}"
data-current
=
"0"
bindtap
=
"swichNav"
>全部</
view
>
</
view
>
<
view
class
=
'con_top'
></
view
>
<
swiper
current
=
"{{currentTab}}"
class
=
"swiper-box"
duration
=
"300"
style
=
"height:{{winHeight + 600}}px"
bindchange
=
"bindChange"
>
<!-- 全部订单 -->
<
swiper-item
>
<
scroll-view
scroll-y
=
'true'
style
=
"height: 100%; overflow: auto;"
bindscrolltolower
=
'bottomtop'
upper-threshold
=
'20'
>
<!-- 开始 -->
<
view
class
=
'detile'
wx:for
=
"{{tradeInfos}}"
wx:for-index
=
"index"
>
<
view
class
=
'detile_top'
>
<
view
class
=
'detile_top_con clearfix'
>
<
text
class
=
'fl'
>申请单号:{{item.tradeId}}</
text
>
<
text
class
=
'fr'
>{{item.txt}}</
text
>
</
view
>
</
view
>
<!-- 内容开始 -->
<
view
class
=
'con_mid'
>
<
view
class
=
'con_mid_con clearfix'
wx:for
=
"{{tradeInfos[index].orderInfos}}"
wx:for-index
=
"idx"
wx:for-item
=
"itemName"
>
<
view
class
=
'con_mid_left fl'
>
<
image
src
=
'{{img_url+itemName.cardImage}}'
class
=
'con_mid_left_img fl'
></
image
>
</
view
>
<
view
class
=
'con_mid_right fr'
>
<
view
class
=
'con_mid_right_top clearfix'
>
<
view
class
=
'con_mid_right_top_txt1 fl'
>{{itemName.commodityName}}</
view
>
<
view
class
=
'con_mid_right_top_txt2 fr'
>¥{{itemName.price}}</
view
>
</
view
>
<
view
class
=
'con_mid_right_bottom clearfix'
>
<
view
class
=
'con_mid_right_bottom1 fl'
>库存{{itemName.stockNum}}</
view
>
<
view
class
=
'con_mid_right_bottom2 fr'
> ×{{itemName.commdityNum}} </
view
>
</
view
>
<
view
class
=
'con_mid_right_bottom_bttom clearfix'
>
<
view
class
=
'con_mid_right_bottom_bottom1 fr'
> ¥{{itemName.commReceivableFee}} </
view
>
</
view
>
</
view
>
</
view
>
</
view
>
<!-- 内容结束 -->
</
view
>
<!-- 结束 -->
</
scroll-view
>
</
swiper-item
>
</
swiper
>
大神,还在吗 这个到底是什么问题啊
大神,还在吗 这个到底是什么问题啊
有大神吗 是ios手机卡顿了,是scroll-view组件对ios手机不兼容吗