Commit 689cb4ae authored by chenqikuai's avatar chenqikuai

zhibo brideg

parent 5c200d41
...@@ -521,5 +521,15 @@ jsBridge.prototype.bridge_getGps = function (params, success) { ...@@ -521,5 +521,15 @@ jsBridge.prototype.bridge_getGps = function (params, success) {
} }
} }
/* 去直播 */
jsBridge.prototype.bridge_live = function (params, success) {
if (this.curApp == ANDROID) {
dsBridge.call('bridge_live', params, success)
}
else if (this.curApp == IOS) {
this.callHandler('bridge_live', params, success)
}
}
export default jsBridge; export default jsBridge;
...@@ -4,20 +4,9 @@ ...@@ -4,20 +4,9 @@
v-for="app in appList" v-for="app in appList"
:key="app.name" :key="app.name"
class="w-1/4 mb-5 text-center" class="w-1/4 mb-5 text-center"
@click="$router.push({ name: app.routerName })" @click="app.cb && app.cb() || $router.push({ name: app.routerName })"
> >
<div <div class="w-16 h-16 bg-white app-container mx-auto flex items-center justify-center">
class="
w-16
h-16
bg-white
app-container
mx-auto
flex
items-center
justify-center
"
>
<Icon :name="app.icon" :color="app.color" size="25" /> <Icon :name="app.icon" :color="app.color" size="25" />
</div> </div>
<div class="mt-2.5 app-name">{{ app.name }}</div> <div class="mt-2.5 app-name">{{ app.name }}</div>
......
import Bridge from "@/utils/jsBridge2"
export default [ export default [
{ {
name: '贷款服务', name: '贷款服务',
...@@ -38,6 +40,9 @@ export default [ ...@@ -38,6 +40,9 @@ export default [
name: '精彩直播', name: '精彩直播',
icon: 'icon-jingcaizhibo', icon: 'icon-jingcaizhibo',
color: '#0FCBA5', color: '#0FCBA5',
cb(){
new Bridge().bridge_live()
},
}, },
{ {
name: '消息中心', name: '消息中心',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment