index.js
viewshop:function(c){
var d=c.currentTarget.dataset;
if(d.dist) {
t.setCache("shop",d.id);
wx.switchTab({
url: '/pages/mashanghe/index?merchid='+d.id,
})
}
}
index.wxml
<view bindtap="viewshop" class="fui-list-angle {{item.distance>maxkm?'off':''}}" data-id="{{item.id}}" data-dist="{{item.distance<=maxkm?1:0}}">
<text class="btn"></text>
</view>
index.wxss
.cartlist .btn {
border: solid 1px #fd2d2d;
color: #fd2d2d;
margin-right: 0px;
}
.cartlist .btn:before {content:"立即喝"}
.cartlist .off .btn {
border: solid 1px #999;
color: #999;
margin-right: 0px;
}
.cartlist .off .btn:before {content:"远了点"}
.page.header-sort {padding-top:85rpx}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
在删除 底部导航栏之后,点击按钮无法正常跳转。
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
寻求详细解决方案! 急求!!!!!!!!!!
是tab页面的url不支持queryString, 传值可以临时存放到app的globalData中