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
e7f9e58b
Commit
e7f9e58b
authored
Oct 12, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
轮播图跳转修改
parent
82e460ce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
home-new.vue
pages/home-new.vue
+1
-3
shop.vue
pages/shop.vue
+7
-11
No files found.
pages/home-new.vue
View file @
e7f9e58b
...
@@ -291,9 +291,7 @@
...
@@ -291,9 +291,7 @@
let
item
=
this
.
list5
[
index
]
let
item
=
this
.
list5
[
index
]
let
link
=
item
.
link
;
let
link
=
item
.
link
;
if
(
link
)
{
if
(
link
)
{
var
newStr
=
link
.
indexOf
(
"http"
);
if
(
item
.
remark
==
'jdh5'
)
{
var
newStr2
=
link
.
indexOf
(
"https"
);
if
(
newStr
==
0
||
newStr2
==
0
)
{
// uni.navigateTo({
// uni.navigateTo({
// url: '/pages/webview/webview?url=' + link
// url: '/pages/webview/webview?url=' + link
// })
// })
...
...
pages/shop.vue
View file @
e7f9e58b
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
util
from
'@/pages/login/util.js'
export
default
{
export
default
{
props
:[
"page"
],
props
:[
"page"
],
data
()
{
data
()
{
...
@@ -63,11 +64,7 @@ export default {
...
@@ -63,11 +64,7 @@ export default {
auto
:
true
auto
:
true
},
},
keyword
:
''
,
keyword
:
''
,
list3
:
[
list3
:
[],
'https://cdn.uviewui.com/uview/swiper/swiper3.png'
,
'https://cdn.uviewui.com/uview/swiper/swiper2.png'
,
'https://cdn.uviewui.com/uview/swiper/swiper1.png'
,
],
//普通商品列表
//普通商品列表
mallList
:
[],
mallList
:
[],
//精品商品
//精品商品
...
@@ -279,12 +276,11 @@ export default {
...
@@ -279,12 +276,11 @@ export default {
let
item
=
this
.
list3
[
index
]
let
item
=
this
.
list3
[
index
]
let
link
=
item
.
link
;
let
link
=
item
.
link
;
if
(
link
)
{
if
(
link
)
{
var
newStr
=
link
.
indexOf
(
"http"
);
if
(
item
.
remark
==
'jdh5'
)
{
var
newStr2
=
link
.
indexOf
(
"https"
);
// uni.navigateTo({
if
(
newStr
==
0
||
newStr2
==
0
)
{
// url: '/pages/webview/webview?url=' + link
uni
.
navigateTo
({
// })
url
:
'/pages/webview/webview?url='
+
link
util
.
redirectToH5
({
page
:
link
})
})
return
return
}
}
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
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