wxml。
<view class="container">
<block wx:if="{{value==2}}">
<view class="center">
<image src="http://ry36dim1c.hn-bkt.clouddn.com/tuce/1%E4%B8%8D%E9%94%88%E9%92%A2%E5%AD%A6%E7%94%9F%E5%89%AA%E7%B3%BB%E5%88%97.png?e=1690091554&token=3UeH49GcoeUVPBnW_8k4prV2zfn9QE72AuLY-yZ7:eX9cQkvPAALQompD0kgbbiufDjc=" mode="widthFix" style="background-color: white; width: 100%;"></image>
</view>
</block>
</view>
<view class="container">
<block wx:if="{{value==3}}">
<view class="center">
<image src="http://ry36dim1c.hn-bkt.clouddn.com/tuce/2%E4%B8%8D%E9%94%88%E9%92%A2%E5%8A%9E%E5%85%AC%E5%89%AA%E7%B3%BB%E5%88%97.png?e=1690093539&token=3UeH49GcoeUVPBnW_8k4prV2zfn9QE72AuLY-yZ7:EAlJAZ2ozaaAtQG-fhb96oq02kc=" mode="widthFix" style="background-color: white; width: 100%;"></image>
</view>
</block>
</view>
JS。
jump2:function(event){
this.setData({value:2}),
wx.navigateTo({
url: '/pages/pagetuce/pagetuce?value='+this.data.value,
success(){
console.log('页面two跳转成功')
}
})
},
jump3:function(event){
this.setData({value:3}),
wx.navigateTo({
url: '/pages/pagetuce/pagetuce?value='+this.data.value,
success(){
console.log('页面three跳转成功')
}
})
},
测试问题未复现。