<ul>
<form bindsubmit=“newtask” report-submit=‘true’ >
<li>
<span class=“icon1 pr”>
<block wx:if="{{IsspGuide}}">
<text wx:if="{{NewRouteCount!=0}}">{{NewRouteCount}}</text>
</block>
</span>
<button form-type=“submit” class=‘new_button’>新任务</button>
</li>
</form>
<form bindsubmit=“taskcalender” report-submit=‘true’>
<li><span class=“icon2”></span>
<button form-type=“submit” class=‘new_button’>任务日历</button>
</li>
</form>
<li bindtap=‘gotourList’><span class=“icon3”></span>
<b>带团记录</b>
</li>
</ul>
//--------------js代码
taskcalender: function () {
let IsSpecialGuide = wx.getStorageSync(‘scanCode’).IsSpecialGuide;
if (IsSpecialGuide) {
app.authoritymanagement(IsSpecialGuide);
return
}
app.WriteTrace(‘首页’, ‘首页’, ‘查看’, ‘’, ‘任务’) //埋点
wx.navigateTo({
url: ‘…/taskcalender/taskcalender’,
})
},
gotourList:function(){
let IsSpecialGuide = wx.getStorageSync(‘scanCode’).IsSpecialGuide;
if (IsSpecialGuide) {
app.authoritymanagement(IsSpecialGuide);
return
}
app.WriteTrace(‘首页’, ‘首页’, ‘查看’, ‘’, ‘记录’) //埋点
wx.navigateTo({
url: ‘…/tourList/tourList’,
})
},
点击每个按钮都会执行taskcalender()这个函数