<scroll-view scroll-y=“true” scroll-into-view=“ocBH60KUY5k5U4LHeNqZTYdi19nQ” scroll-top=“0” style=“height:400rpx;width:99%;;border:1px solid red;”>
<view wx:for="{{cardShowAllArray}}" id="{{item.messaOpenId}}" class=“bloackContainer”>
<navigator class=“cardShowAllImageContainer” id="{{item.messaOpenId}}" url=“cardAllMessa?id={{item.messaOpenId}}&shareOthers={{item.shareOthers}}” bindtap=“navi”>
<view class=“cardShowAllImageContainer”>
<image class=“cardShowAllImage-images” src="{{item.imagesSrc}}" mode=“widthFix”></image>
<text class=“cardShowAllText-name”>{{item.cardShowAllTextName}}</text>
<text class=“cardShowAllText-company”>{{item.cardShowAllTextCompany}}</text>
<text class=“cardShowAllText-job”>{{item.cardShowAllTextJob}}</text>
</view>
</navigator>
</view>
</scroll-view>
这是我使用的scroll-view标签,但是却不跳转到指定的id,这个是什么问题啊??
希望得到解答谢谢!!!
<block wx:for="{{cardShowAllArray}}" >
<view id="{{item.messaOpenId}}" class="bloackContainer">
<navigator class="cardShowAllImageContainer" id="{{item.messaOpenId}}" url="cardAllMessa?id={{item.messaOpenId}}&shareOthers={{item.shareOthers}}" bindtap="navi">
<view class="cardShowAllImageContainer">
<image class="cardShowAllImage-images" src="{{item.imagesSrc}}" mode="widthFix"></image>
<text class="cardShowAllText-name">{{item.cardShowAllTextName}}</text>
<text class="cardShowAllText-company">{{item.cardShowAllTextCompany}}</text>
<text class="cardShowAllText-job">{{item.cardShowAllTextJob}}</text>
</view>
</navigator>
</view>
</block>
用block把子元素包裹起来