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
3d6f41ba
Commit
3d6f41ba
authored
Apr 25, 2022
by
fwz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
99025b29
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
21 deletions
+52
-21
custom-tarbar.vue
common/wxcomponents/custom-tarbar/custom-tarbar.vue
+3
-2
index.vue
pagesA/pages/index/index.vue
+18
-6
detail.vue
pagesC/pages/shop/detail.vue
+10
-8
index.vue
pagesC/pages/shop/index.vue
+17
-1
pay.vue
pagesC/pages/shop/pay.vue
+3
-3
userInfo.vue
pagesD/pages/personal/userInfo.vue
+1
-1
No files found.
common/wxcomponents/custom-tarbar/custom-tarbar.vue
View file @
3d6f41ba
...
...
@@ -82,7 +82,7 @@ export default {
if
(
index
!=
2
)
{
uni
.
navigateTo
({
url
:
this
.
tabBar
.
list
[
index
].
pagePath
,
})
;
})
}
else
{
//扫码
// 允许从相机和相册扫码
...
...
@@ -95,13 +95,14 @@ export default {
let
path
=
res
.
path
if
(
path
)
{
let
xcxIndexPath
=
uni
.
getStorageSync
(
'xcxIndexPath'
)
console
.
info
(
xcxIndexPath
);
if
(
xcxIndexPath
)
{
xcxIndexPath
=
path
.
replace
(
xcxIndexPath
,
''
).
replace
(
"?"
,
''
)
if
(
xcxIndexPath
.
indexOf
(
'scene'
)
>=
0
)
{
let
scene
=
xcxIndexPath
.
replace
(
'scene='
,
''
)
let
param
=
{
code
:
scene
}
let
opts
=
{
url
:
'/app/index/check/move/code'
,
method
:
'post'
}
console
.
log
(
param
);
that
.
http
.
httpTokenRequest
(
opts
,
param
).
then
(
res
=>
{
console
.
info
(
res
)
if
(
res
.
data
.
code
==
200
)
{
...
...
pagesA/pages/index/index.vue
View file @
3d6f41ba
...
...
@@ -2,7 +2,7 @@
<view
class=
"appCotent"
>
<view
class=
"index-content"
>
<custom-tarbar
:selected=
"0"
></custom-tarbar>
<u-swiper
:radius=
"0"
:height=
"210"
:list=
"list5"
@
change=
"(e) => (current = e.current)"
:autoplay=
"false"
>
<u-swiper
:radius=
"0"
:height=
"210"
:list=
"list5"
circular
:autoplay=
"false"
>
<view
slot=
"indicator"
class=
"indicator"
>
<view
class=
"indicator__dot"
v-for=
"(item, index) in list5"
:key=
"index"
:class=
"[index === current && 'indicator__dot--active']"
>
</view>
...
...
@@ -65,11 +65,7 @@ export default {
return
{
current
:
0
,
balance
:
"0.00"
,
list5
:
[
"https://cdn.uviewui.com/uview/swiper/swiper3.png"
,
"https://cdn.uviewui.com/uview/swiper/swiper2.png"
,
"https://cdn.uviewui.com/uview/swiper/swiper1.png"
,
],
list5
:
[],
//免费挪车码
freeCode
:
{},
};
...
...
@@ -94,9 +90,25 @@ export default {
}
})
},
getRotationList
(){
let
opts
=
{
url
:
'/app/index/carouse/1'
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
let
data
=
[]
data
=
res
.
data
.
data
let
imgList
=
[]
data
.
forEach
(
e
=>
{
imgList
.
push
(
e
.
imageUrl
)
})
this
.
list5
=
imgList
}
})
},
},
created
()
{
this
.
getMoveCode
()
this
.
getRotationList
()
},
};
</
script
>
...
...
pagesC/pages/shop/detail.vue
View file @
3d6f41ba
...
...
@@ -2,10 +2,13 @@
<view
class=
"appCotent"
>
<div
class=
"shop__detail"
>
<div
class=
"top__swiper"
>
<u-swiper
radius=
'0'
:list=
"list6"
@
change=
"e => currentNum = e.current"
:autoplay=
"false"
height=
'358'
indicatorStyle=
"right: 20px"
>
<view
slot=
"indicator"
class=
"indicator-num"
>
<text
class=
"indicator-num__text"
>
{{
currentNum
+
1
}}
/
{{
list6
.
length
}}
</text>
</view>
<u-swiper
:list=
"list6"
previousMargin=
"30"
nextMargin=
"30"
circular
:autoplay=
"false"
radius=
"5"
bgColor=
"#ffffff"
>
</u-swiper>
<div
class=
"shop__title"
>
<div>
{{
mallInfo
.
title
}}
{{
mallInfo
.
description
}}
</div>
...
...
@@ -33,10 +36,7 @@ export default {
data
()
{
return
{
currentNum
:
0
,
list6
:
[
require
(
'@/static/shop/item.jpg'
),
require
(
'@/static/shop/item.jpg'
),
require
(
'@/static/shop/item.jpg'
),
],
list6
:
[],
//商品id
id
:
''
,
//商品详情
...
...
@@ -54,6 +54,8 @@ export default {
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
mallInfo
=
res
.
data
.
data
let
imgUrlList
=
this
.
mallInfo
.
otherImgUrl
.
split
(
','
)
this
.
list6
=
imgUrlList
}
})
},
...
...
pagesC/pages/shop/index.vue
View file @
3d6f41ba
...
...
@@ -123,10 +123,26 @@ export default {
getImage
(
imageUrl
){
return
imageUrl
;
},
getRotationList
(){
let
opts
=
{
url
:
'/app/index/carouse/2'
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
let
data
=
[]
data
=
res
.
data
.
data
let
imgList
=
[]
data
.
forEach
(
e
=>
{
imgList
.
push
(
e
.
imageUrl
)
})
this
.
list3
=
imgList
}
})
},
},
onShow
()
{
this
.
getMallList
()
this
.
getBoutiqueMallList
()
this
.
getRotationList
()
//this.getBoutiqueMallList()
}
};
</
script
>
...
...
pagesC/pages/shop/pay.vue
View file @
3d6f41ba
...
...
@@ -28,7 +28,7 @@
<div
class=
"item"
>
<div
class=
"item__top"
>
<div
class=
"top__img"
>
<img
src=
"
"
alt=
""
srcset=
""
>
<img
:src=
"mallInfo.mainImgUrl"
class=
"top__img
"
alt=
""
srcset=
""
>
</div>
<div
class=
"top__right"
>
<div
class=
"right__one one__text"
>
...
...
@@ -332,7 +332,7 @@ export default {
display
:
flex
;
align-items
:
center
;
span
:nth-of-type
(
1
)
{
span
:nth-of-type
(
3
)
{
font-size
:
24rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
...
...
@@ -349,7 +349,7 @@ export default {
padding
:
0
14rpx
;
}
span
:nth-of-type
(
3
)
{
span
:nth-of-type
(
1
)
{
font-size
:
28rpx
;
font-family
:
DIN
;
font-weight
:
500
;
...
...
pagesD/pages/personal/userInfo.vue
View file @
3d6f41ba
...
...
@@ -285,7 +285,7 @@ export default {
element
.
rules
.
value
=
this
.
userInfo
.
mobile
}
if
(
element
.
label
===
'昵称'
)
{
//
element.rules.value = this.userInfo.nickName
element
.
rules
.
value
=
this
.
userInfo
.
nickName
}
if
(
element
.
label
===
'性别'
)
{
element
.
rules
.
label
=
this
.
userInfo
.
sex
==
"0"
?
"男"
:
"女"
...
...
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