Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
jd-vx-app
Commits
9a136742
Commit
9a136742
authored
Jun 02, 2022
by
肖健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
轮播图没有链接不跳转
parent
6883092b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
25 deletions
+31
-25
home-new.vue
pages/home-new.vue
+10
-8
home.vue
pages/home.vue
+10
-8
shop.vue
pages/shop.vue
+11
-9
No files found.
pages/home-new.vue
View file @
9a136742
...
...
@@ -252,17 +252,19 @@
goOtherLink
(
index
)
{
let
item
=
this
.
list5
[
index
]
let
link
=
item
.
link
;
var
newStr
=
link
.
indexOf
(
"http"
);
var
newStr2
=
link
.
indexOf
(
"https"
);
if
(
newStr
==
0
||
newStr2
==
0
)
{
if
(
link
)
{
var
newStr
=
link
.
indexOf
(
"http"
);
var
newStr2
=
link
.
indexOf
(
"https"
);
if
(
newStr
==
0
||
newStr2
==
0
)
{
uni
.
navigateTo
({
url
:
'/pages/webview/webview?url='
+
link
})
return
}
uni
.
navigateTo
({
url
:
'/pages/webview/webview?url='
+
link
url
:
link
})
return
}
uni
.
navigateTo
({
url
:
link
})
},
// 获取爱车列表
getCarList
(){
...
...
pages/home.vue
View file @
9a136742
...
...
@@ -249,17 +249,19 @@
goOtherLink
(
index
)
{
let
item
=
this
.
list5
[
index
]
let
link
=
item
.
link
;
var
newStr
=
link
.
indexOf
(
"http"
);
var
newStr2
=
link
.
indexOf
(
"https"
);
if
(
newStr
==
0
||
newStr2
==
0
)
{
if
(
link
)
{
var
newStr
=
link
.
indexOf
(
"http"
);
var
newStr2
=
link
.
indexOf
(
"https"
);
if
(
newStr
==
0
||
newStr2
==
0
)
{
uni
.
navigateTo
({
url
:
'/pages/webview/webview?url='
+
link
})
return
}
uni
.
navigateTo
({
url
:
'/pages/webview/webview?url='
+
link
url
:
link
})
return
}
uni
.
navigateTo
({
url
:
link
})
},
// 获取爱车列表
getCarList
(){
...
...
pages/shop.vue
View file @
9a136742
...
...
@@ -249,17 +249,19 @@ export default {
goOtherLink
(
index
){
let
item
=
this
.
list3
[
index
]
let
link
=
item
.
link
;
var
newStr
=
link
.
indexOf
(
"http"
);
var
newStr2
=
link
.
indexOf
(
"https"
);
if
(
newStr
==
0
||
newStr2
==
0
)
{
if
(
link
)
{
var
newStr
=
link
.
indexOf
(
"http"
);
var
newStr2
=
link
.
indexOf
(
"https"
);
if
(
newStr
==
0
||
newStr2
==
0
)
{
uni
.
navigateTo
({
url
:
'/pages/webview/webview?url='
+
link
})
return
}
uni
.
navigateTo
({
url
:
'/pages/webview/webview?url='
+
link
url
:
link
})
return
}
uni
.
navigateTo
({
url
:
link
})
}
}
},
onReady
:
function
()
{
...
...
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