新增JS零卡分期
This commit is contained in:
@@ -336,7 +336,7 @@ public class JsBridgeActivity extends BaseActivity {
|
|||||||
isText = getIntent().getBooleanExtra("isText", false);
|
isText = getIntent().getBooleanExtra("isText", false);
|
||||||
isV = getIntent().getBooleanExtra("isV", true);
|
isV = getIntent().getBooleanExtra("isV", true);
|
||||||
if (!isText) {
|
if (!isText) {
|
||||||
url = getIntent().getStringExtra("url") + (isV?"?v=" + System.currentTimeMillis() : "");
|
url = getIntent().getStringExtra("url") + (isV ? "?v=" + System.currentTimeMillis() : "");
|
||||||
} else {
|
} else {
|
||||||
newsBean = (NewsBean) getIntent().getSerializableExtra("url");
|
newsBean = (NewsBean) getIntent().getSerializableExtra("url");
|
||||||
}
|
}
|
||||||
@@ -422,7 +422,19 @@ public class JsBridgeActivity extends BaseActivity {
|
|||||||
// downZip(gameDownBean);
|
// downZip(gameDownBean);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
viewBinding.jsbridgeBridgewebview.addHandlerLocal("ZeroCard", new BridgeHandler() {
|
||||||
|
@Override
|
||||||
|
public void handler(Context context, String s, CallBackFunction callBackFunction) {
|
||||||
|
try {
|
||||||
|
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||||
|
intent.setData(Uri.parse(s));
|
||||||
|
startActivity(intent);
|
||||||
|
}catch (Exception e){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
viewBinding.jsbridgeBridgewebview.addHandlerLocal("getAuthorizeCode", new BridgeHandler() {
|
viewBinding.jsbridgeBridgewebview.addHandlerLocal("getAuthorizeCode", new BridgeHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handler(Context context, String data, CallBackFunction callBackFunction) {
|
public void handler(Context context, String data, CallBackFunction callBackFunction) {
|
||||||
|
|||||||
Reference in New Issue
Block a user