document.getElementById('a').click();
<a href="wanjiamart://" id="a">打开1</a> <hr> <a href="wanjiamart://aa?page=groupBuying&groupRuleId=1" id="a">打开2</a>