The interface is used to customize the color of the thin line at the bottom of the navigation bar. You can hide it by setting the line to the same color as the navigation bar.
Usee setBarBottomLineColor interface
AlipayJSBridge.call("setBarBottomLineColor", {color: 16711688});
Code sample
<div style="padding-top:80px;"><a href="javascript:void(0)" class="btn title">Set the color of the thin line at the bottom of the navigation bar</a><br></div><script>function ready(callback) {// Call directly if JSBridge has been injectedif (window.AlipayJSBridge) {callback && callback();} else {// Monitor the injected events if JSBridge hasn't been injecteddocument.addEventListener('AlipayJSBridgeReady', callback, false);}}ready(function(){document.querySelector('.title').addEventListener('click', function() {AlipayJSBridge.call("setBarBottomLineColor", {color: parseInt('ff0000', 16)});}, false);},false);</script>
API
AlipayJSBridge.call('setBarBottomLineColor',{color}, fn)
Input parameter
| Name | Type | Description | Required | Default value | Version |
|---|---|---|---|---|---|
| color | int | Color value, decimal | Y |