小程序
小游戏
企业微信
微信支付
扫描小程序码分享
- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
scroll-view组件的enable-back-to-top="true"属性,在安卓手机上,双击标题栏 , 滚动条无法回到顶部。请问各路大佬怎么解决的
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
手机型号:魅蓝6
微信版本号:7.0.4
系统版本号:7.0
<scroll-view class="column-content store-template1" scroll-y="true" bindscrolltolower="scrollEvent" enable-back-to-top="true">
<!-- 卖家 -->
<view class="padding10 border-box bg-white b_bottom_after">
<view class="db-flex">
<view class="flex_left v_middle w50">
<image class="avatarimg1 imgcover" src="{{retailerInfo.avatar}}"></image>
</view>
<view class="flex_left flex_cell shopkeeper_txt">
<view class="clamp1 font16">{{retailerInfo.title}}</view>
<form wx:if="{{userInfo.uid != wid}}" class="flex_center w100" report-submit="true" bindsubmit="favorEvent">
<button wx:if="{{showFavorite}}" class="collect btnfavorite flex_center" :class="{'have': isFavorite}" form-type="submit">
<text class="al al-xing5"></text>
<text class="txt"></text>
</button>
</form>
<form class="flex_center w100" bindsubmit="onShareTap" report-submit="true">
<button class="collect btnShare flex_center" form-type="submit">
<text class="al al-share1"></text>
<!-- 联系 -->
<!-- <view class="flex_center list-box b_bottom_after">
<form class="item chat b_right_after" bindsubmit="toChat" report-submit="true">
<button class="w_100 h_100 flex_center" form-type="submit">
<icon class="al al-zixun"></icon>
<text class="txt">在线咨询</text>
<form class="item wetchat" bindsubmit="wetchatContact" report-submit="true">
<icon class="al al-weixing"></icon>
<text class="txt">微信联系</text>
</view> -->
<block wx:if="{{productCount >= 31 && classData.length >= 5}}">
<view class="search-area flex_center">
<view class="search-outer flex_left">
<view class="flex_cell">
<input class="input" placeholder="你要找的都在这里" placeholder-class="input-placeholder" bindinput="keyupKeyword" bindconfirm="confirmKeyword" confirm-type="search" type="text" value="{{searchvalue}}"/>
<view wx:if="{{searchword != ''}}" class="icon-cell flex_center color-gray font12" bindtap="cancelSearch">取消</view>
<view class="icon-cell flex_center" bindtap="searchProduct"><text class="al al-sousuo"></text></view>
<view class="pt10 bg-page"></view>
<view :class="{'one': classDataArr.length == 1}" class="menu-swiper-outer" wx:if="{{classData.length}}">
<swiper
class="menu-swiper"
indicator-dots="{{classData.length > 1}}"
indicator-color="#d0cdd1"
indicator-active-color="#ff9900"
interval="6000"
circular>
<repeat for="{{classDataArr}}" index="index" item="classitem">
<swiper-item class="swiper-item">
<repeat for="{{classitem}}" index="index1" item="item">
<view class="inner flex_center {{selectedIndex == (index * colCount + index1) ? 'active' : ''}}" data-col="{{index}}" data-index="{{index * colCount + index1}}" data-data="{{item}}" bindtap="clickTab">
<view class="w_100">
<view class="pic-outer">
<view class="pic">
<image src="{{item.photo}}"></image>
<view class="txt">{{item.title}}</view>
</repeat>
</swiper-item>
</swiper>
</block>
<view class="b_top_after"></view>
<view class="productlist squarepic pb10 bg-page {{!products.length ? 'bg-white': ''}}" wx:if="{{disProduct}}">
<view wx:if="{{!products.length}}" class="flex_empty"><block wx:if="{{isSearch}}">暂无搜索结果</block><block wx:else>暂无商品</block></view>
<block wx:else>
<repeat for="{{products}}" key="index" item="item">
<product :wid.sync="wid" :item.sync="item" :userInfo.sync="userInfo" :retailerInfo.sync="retailerInfo">
<image slot="photo" class="imgcover" src="{{item.photo}}" mode="aspectFill"></image>
<text slot="title" style="word-break:break-all;">{{item.title}}</text>
<text slot="price" style="margin-left:2px;">{{item.price}}</text>
<text slot="saled" style="margin-left:2px;">{{item.saled}}</text>
</product>
<block wx:if="{{products.length}}">
<view class="end-area" wx:if="{{loading}}"><text>正在加载中...</text></view>
<!-- 商品加载完毕提示 -->
<view class="end-area" wx:elif="{{endShow}}"><text>--没有更多商品啦--</text></view>
</scroll-view>
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
wepy的问题需要向wepy团队提issuehttps://github.com/Tencent/wepy/issues
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
手机型号:魅蓝6
微信版本号:7.0.4
系统版本号:7.0
<scroll-view class="column-content store-template1" scroll-y="true" bindscrolltolower="scrollEvent" enable-back-to-top="true">
<!-- 卖家 -->
<view class="padding10 border-box bg-white b_bottom_after">
<view class="db-flex">
<view class="flex_left v_middle w50">
<image class="avatarimg1 imgcover" src="{{retailerInfo.avatar}}"></image>
</view>
<view class="flex_left flex_cell shopkeeper_txt">
<view class="clamp1 font16">{{retailerInfo.title}}</view>
</view>
<form wx:if="{{userInfo.uid != wid}}" class="flex_center w100" report-submit="true" bindsubmit="favorEvent">
<button wx:if="{{showFavorite}}" class="collect btnfavorite flex_center" :class="{'have': isFavorite}" form-type="submit">
<text class="al al-xing5"></text>
<text class="txt"></text>
</button>
</form>
<form class="flex_center w100" bindsubmit="onShareTap" report-submit="true">
<button class="collect btnShare flex_center" form-type="submit">
<text class="al al-share1"></text>
<text class="txt"></text>
</button>
</form>
</view>
</view>
<!-- 联系 -->
<!-- <view class="flex_center list-box b_bottom_after">
<form class="item chat b_right_after" bindsubmit="toChat" report-submit="true">
<button class="w_100 h_100 flex_center" form-type="submit">
<icon class="al al-zixun"></icon>
<text class="txt">在线咨询</text>
</button>
</form>
<form class="item wetchat" bindsubmit="wetchatContact" report-submit="true">
<button class="w_100 h_100 flex_center" form-type="submit">
<icon class="al al-weixing"></icon>
<text class="txt">微信联系</text>
</button>
</form>
</view> -->
<block wx:if="{{productCount >= 31 && classData.length >= 5}}">
<view class="search-area flex_center">
<view class="search-outer flex_left">
<view class="flex_cell">
<input class="input" placeholder="你要找的都在这里" placeholder-class="input-placeholder" bindinput="keyupKeyword" bindconfirm="confirmKeyword" confirm-type="search" type="text" value="{{searchvalue}}"/>
</view>
<view wx:if="{{searchword != ''}}" class="icon-cell flex_center color-gray font12" bindtap="cancelSearch">取消</view>
<view class="icon-cell flex_center" bindtap="searchProduct"><text class="al al-sousuo"></text></view>
</view>
</view>
<view class="pt10 bg-page"></view>
<view :class="{'one': classDataArr.length == 1}" class="menu-swiper-outer" wx:if="{{classData.length}}">
<swiper
class="menu-swiper"
indicator-dots="{{classData.length > 1}}"
indicator-color="#d0cdd1"
indicator-active-color="#ff9900"
interval="6000"
circular>
<repeat for="{{classDataArr}}" index="index" item="classitem">
<swiper-item class="swiper-item">
<repeat for="{{classitem}}" index="index1" item="item">
<view class="inner flex_center {{selectedIndex == (index * colCount + index1) ? 'active' : ''}}" data-col="{{index}}" data-index="{{index * colCount + index1}}" data-data="{{item}}" bindtap="clickTab">
<view class="w_100">
<view class="pic-outer">
<view class="pic">
<image src="{{item.photo}}"></image>
</view>
</view>
<view class="txt">{{item.title}}</view>
</view>
</view>
</repeat>
</swiper-item>
</repeat>
</swiper>
</view>
</block>
<view class="b_top_after"></view>
<view class="productlist squarepic pb10 bg-page {{!products.length ? 'bg-white': ''}}" wx:if="{{disProduct}}">
<view wx:if="{{!products.length}}" class="flex_empty"><block wx:if="{{isSearch}}">暂无搜索结果</block><block wx:else>暂无商品</block></view>
<block wx:else>
<repeat for="{{products}}" key="index" item="item">
<product :wid.sync="wid" :item.sync="item" :userInfo.sync="userInfo" :retailerInfo.sync="retailerInfo">
<image slot="photo" class="imgcover" src="{{item.photo}}" mode="aspectFill"></image>
<text slot="title" style="word-break:break-all;">{{item.title}}</text>
<text slot="price" style="margin-left:2px;">{{item.price}}</text>
<text slot="saled" style="margin-left:2px;">{{item.saled}}</text>
</product>
</repeat>
</block>
</view>
<block wx:if="{{products.length}}">
<view class="end-area" wx:if="{{loading}}"><text>正在加载中...</text></view>
<!-- 商品加载完毕提示 -->
<view class="end-area" wx:elif="{{endShow}}"><text>--没有更多商品啦--</text></view>
</block>
</scroll-view>
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
wepy的问题需要向wepy团队提issuehttps://github.com/Tencent/wepy/issues