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
54ea60d2
Commit
54ea60d2
authored
May 12, 2022
by
fwz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_cd' into dev_cd
parents
0afadf95
ead7a42b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
16 deletions
+50
-16
index.vue
pages/binding/index.vue
+11
-6
home.vue
pages/home.vue
+18
-3
shop.vue
pages/shop.vue
+19
-4
getPrice.vue
pagesA/pages/index/getPrice.vue
+2
-3
No files found.
pages/binding/index.vue
View file @
54ea60d2
...
@@ -121,12 +121,17 @@ export default {
...
@@ -121,12 +121,17 @@ export default {
},
},
//解析手机号
//解析手机号
getPhoneNumber
(
e
)
{
getPhoneNumber
(
e
)
{
let
that
=
this
uni
.
showLoading
({
if
(
e
.
detail
.
errMsg
==
"getPhoneNumber:ok"
)
{
title
:
'加载中'
,
that
.
decodePhoneLogin
(
e
.
detail
)
mask
:
true
}
else
{
});
//console.log("用户点击了拒绝")
let
that
=
this
}
if
(
e
.
detail
.
errMsg
==
"getPhoneNumber:ok"
)
{
// uni.hideLoading()
that
.
decodePhoneLogin
(
e
.
detail
)
}
else
{
console
.
log
(
"用户点击了拒绝"
)
}
},
},
//解密手机号码
//解密手机号码
async
decodePhoneLogin
(
detail
)
{
async
decodePhoneLogin
(
detail
)
{
...
...
pages/home.vue
View file @
54ea60d2
<
template
>
<
template
>
<view
class=
"appCotent"
v-if=
"show"
>
<view
class=
"appCotent"
v-if=
"show"
>
<view
class=
"index-content"
>
<view
class=
"index-content"
>
<u-swiper
radius=
"0 0 0 30px"
:height=
"210"
:list=
"list5"
circular
@
change=
"e => current = e.current"
:autoplay=
"true"
>
<u-swiper
radius=
"0 0 0 30px"
:height=
"210"
:list=
"list5"
circular
@
change=
"e => current = e.current"
:autoplay=
"true"
keyName=
"imageUrl"
@
click=
"goOtherLink"
>
<view
slot=
"indicator"
class=
"indicator"
>
<view
slot=
"indicator"
class=
"indicator"
>
<view
class=
"indicator__dot"
v-for=
"(item, index) in list5"
:key=
"index"
:class=
"[index === current && 'indicator__dot--active']"
>
<view
class=
"indicator__dot"
v-for=
"(item, index) in list5"
:key=
"index"
:class=
"[index === current && 'indicator__dot--active']"
>
</view>
</view>
...
@@ -119,13 +119,28 @@ export default {
...
@@ -119,13 +119,28 @@ export default {
data
=
res
.
data
.
data
data
=
res
.
data
.
data
let
imgList
=
[]
let
imgList
=
[]
data
.
forEach
(
e
=>
{
data
.
forEach
(
e
=>
{
imgList
.
push
(
e
.
imageUrl
)
imgList
.
push
(
e
)
})
})
this
.
list5
=
imgList
this
.
list5
=
imgList
}
}
})
})
},
},
// 轮播跳转其他页面
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
)
{
uni
.
navigateTo
({
url
:
'/pages/webview/webview?url='
+
link
})
return
}
uni
.
navigateTo
({
url
:
link
})
}
},
},
created
()
{
created
()
{
this
.
getMoveCode
()
this
.
getMoveCode
()
...
...
pages/shop.vue
View file @
54ea60d2
...
@@ -8,13 +8,13 @@
...
@@ -8,13 +8,13 @@
</div>
</div>
<div
class=
"shop__swiper"
>
<div
class=
"shop__swiper"
>
<view
class=
"u-demo-block"
>
<view
class=
"u-demo-block"
>
<u-swiper
:list=
"list3"
previousMargin=
"30"
nextMargin=
"30"
circular
:autoplay=
"true"
height=
'150'
radius=
"5"
bgColor=
"#ffffff"
></u-swiper>
<u-swiper
:list=
"list3"
previousMargin=
"30"
nextMargin=
"30"
circular
:autoplay=
"true"
keyName=
"imageUrl"
@
click=
"goOtherLink"
height=
'150'
radius=
"5"
bgColor=
"#ffffff"
></u-swiper>
</view>
</view>
</div>
</div>
<div
class=
"view__content"
>
<div
class=
"view__content"
>
<div
class=
"view__title"
>
超低价养车好物
</div>
<div
class=
"view__title"
>
超低价养车好物
</div>
<div
class=
"shop__list2"
>
<div
class=
"shop__list2"
>
<div
class=
"shop__item2"
v-for=
"(vo,inx) in mallList"
:key=
"inx"
@
click=
"goDetail(vo.id)"
>
<div
class=
"shop__item2"
v-for=
"(vo,inx) in mallList"
:key=
"inx"
@
click=
"goDetail(vo.id
,vo.link
)"
>
<div
class=
"item2__img"
>
<div
class=
"item2__img"
>
<image
:src=
"getImage(vo.mainImgUrl)"
/>
<image
:src=
"getImage(vo.mainImgUrl)"
/>
</div>
</div>
...
@@ -217,13 +217,28 @@ export default {
...
@@ -217,13 +217,28 @@ export default {
data
=
res
.
data
.
data
data
=
res
.
data
.
data
let
imgList
=
[]
let
imgList
=
[]
data
.
forEach
(
e
=>
{
data
.
forEach
(
e
=>
{
imgList
.
push
(
e
.
imageUrl
)
imgList
.
push
(
e
)
})
})
this
.
list3
=
imgList
this
.
list3
=
imgList
}
}
})
})
},
},
// 轮播跳转其他页面
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
)
{
uni
.
navigateTo
({
url
:
'/pages/webview/webview?url='
+
link
})
return
}
uni
.
navigateTo
({
url
:
link
})
}
},
},
onReady
:
function
()
{
onReady
:
function
()
{
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
...
...
pagesA/pages/index/getPrice.vue
View file @
54ea60d2
...
@@ -236,7 +236,6 @@ export default {
...
@@ -236,7 +236,6 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.getPrice
{
.getPrice
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
/
deep
/
.uni-input-input
,
/
deep
/
.uni-input-input
,
.uni-input-placeholder
{
.uni-input-placeholder
{
...
@@ -336,7 +335,7 @@ export default {
...
@@ -336,7 +335,7 @@ export default {
}
}
.car_info
{
.car_info
{
padding
:
40rpx
;
padding
:
40rpx
40rpx
220rpx
;
background
:
#fff
;
background
:
#fff
;
.car_info__title
{
.car_info__title
{
...
@@ -355,7 +354,7 @@ export default {
...
@@ -355,7 +354,7 @@ export default {
color
:
#f1251b
;
color
:
#f1251b
;
text-align
:
right
;
text-align
:
right
;
margin-top
:
40rpx
;
margin-top
:
40rpx
;
margin-bottom
:
20
0
rpx
;
margin-bottom
:
20rpx
;
image
{
image
{
width
:
10rpx
;
width
:
10rpx
;
...
...
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