方法一:
wxml 代码
<view class="jsle-item" bindtap="maogu16">
<image src="/pages/img/tabs/gj.png"></image>
<text>16G钢筋锚固</text>
</view>
JS代码
maogu16: function () {
wx.navigateTo({
url: '/pages/gangjin/maogu/maogu'
})
},
方法二:
<navigator class="item" url="/pages/me2/me2">自己写登录注册修改头像功能</navigator>
<navigator class="jsgz" url="/pages/gczl/gczl-detail/gczl-detail?id=3fa9b31265fffff004290677754d8780"><image class="urlico" src="/pages/img/tabs/lianjie.png"></image>测试连接 CMS</navigator>
<navigator class="jsgz" url="/pages/webview/webview?url=https://mp.weixin.qq.com/s/CFj5uzP2MEaUcydHS83XyQ"><image class="urlico" src="/pages/img/tabs/lianjie.png"></image>测试连接 公众号</navigator>
navigator https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html