Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
689cb4ae
Commit
689cb4ae
authored
Sep 28, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zhibo brideg
parent
5c200d41
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
jsBridge2.js
src/utils/jsBridge2.js
+10
-0
index.vue
src/views/withMenu/Home/AppList/index.vue
+2
-13
appList.ts
src/views/withMenu/Home/appList.ts
+5
-0
No files found.
src/utils/jsBridge2.js
View file @
689cb4ae
...
@@ -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
;
src/views/withMenu/Home/AppList/index.vue
View file @
689cb4ae
...
@@ -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>
...
...
src/views/withMenu/Home/appList.ts
View file @
689cb4ae
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
:
'消息中心'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment