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
33ac9a73
Commit
33ac9a73
authored
Apr 28, 2022
by
fwz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
001d30d0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
30 deletions
+52
-30
getCarCode.vue
pagesA/pages/index/getCarCode.vue
+16
-12
moveCarDetail.vue
pagesB/pages/move-car/moveCarDetail.vue
+8
-1
oneMoveCar.vue
pagesB/pages/move-car/oneMoveCar.vue
+21
-7
detail.vue
pagesC/pages/shop/detail.vue
+7
-10
No files found.
pagesA/pages/index/getCarCode.vue
View file @
33ac9a73
...
...
@@ -47,7 +47,7 @@
<div
class=
"list__title"
>
超低价养车好物
</div>
<u-gap
bgColor=
"transparent"
height=
"
2
0"
></u-gap>
<u-gap
bgColor=
"transparent"
height=
"
4
0"
></u-gap>
<div
class=
"list"
>
<div
class=
"list__item"
v-for=
"(vo,inx) in mallList"
:key=
"inx"
>
<image
:src=
"vo.mainImgUrl"
class=
"list__img"
></image>
...
...
@@ -153,7 +153,7 @@ export default {
//
selectMallList
:
[],
//选择商品的数量
countNum
:
0
,
countNum
:
1
,
//商品变更为零或者1
quantityChange
:
false
,
countMoney
:
0
,
...
...
@@ -304,21 +304,25 @@ export default {
this
.
quantityChange
=
(
num
.
value
==
0
||
num
.
value
==
1
)
},
plusMall
(
vo
){
if
(
!
this
.
mallSelectMap
[
vo
.
id
]
||
this
.
mallSelectMap
[
vo
.
id
]
==
0
){
this
.
countNum
=
this
.
countNum
+
1
this
.
mallSelectMap
[
vo
.
id
]
=
1
}
else
{
this
.
mallSelectMap
[
vo
.
id
]
+=
1
// if(!this.mallSelectMap[vo.id] || this.mallSelectMap[vo.id] == 0){
// this.countNum = this.countNum + 1
// this.mallSelectMap[vo.id] = 1
// }else{
// this.mallSelectMap[vo.id] += 1
// }
if
(
!
this
.
mallSelectMap
[
vo
.
id
]){
this
.
mallSelectMap
[
vo
.
id
]
=
0
}
this
.
mallSelectMap
[
vo
.
id
]
+=
1
this
.
countNum
=
this
.
countNum
+
1
this
.
countMoney
+=
vo
.
currentPrice
//console.log(this.mallSelectMap)
},
minusMall
(
vo
){
if
(
this
.
mallSelectMap
[
vo
.
id
]
&&
this
.
mallSelectMap
[
vo
.
id
]
>
0
){
if
(
this
.
mallSelectMap
[
vo
.
id
]
==
1
){
this
.
countNum
-=
1
}
// if(this.mallSelectMap[vo.id] == 1){
// this.countNum -= 1
// }
this
.
countNum
-=
1
this
.
mallSelectMap
[
vo
.
id
]
-=
1
this
.
countMoney
-=
vo
.
currentPrice
}
...
...
pagesB/pages/move-car/moveCarDetail.vue
View file @
33ac9a73
...
...
@@ -62,7 +62,14 @@ export default {
let
opts
=
{
url
:
'/app/moveCode/'
+
this
.
id
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
items
=
res
.
data
.
rows
let
data
=
res
.
data
.
data
let
list
=
[]
list
.
push
({
title
:
"挪车码编号"
,
value
:
data
.
moveCode
})
list
.
push
({
title
:
"车牌号"
,
value
:
data
.
carNo
})
list
.
push
({
title
:
"品牌"
,
value
:
data
.
brand
})
list
.
push
({
title
:
"车型"
,
value
:
data
.
carModel
})
list
.
push
({
title
:
"绑定手机号"
,
value
:
data
.
userMobile
})
this
.
items
=
list
}
})
}
...
...
pagesB/pages/move-car/oneMoveCar.vue
View file @
33ac9a73
...
...
@@ -37,7 +37,7 @@
</div>
<div
class=
"move-car__wx"
>
<u-checkbox-group
placement=
"row"
>
<u-checkbox
v-model=
"checked
"
></u-checkbox>
<u-checkbox
v-model=
"checked"
@
change=
"changeWechat
"
></u-checkbox>
</u-checkbox-group>
微信通知(上限3次)
</div>
<div
class=
"move-car__more"
>
...
...
@@ -97,6 +97,10 @@ export default {
cityName
:
''
,
//区
countyName
:
''
,
//街道
township
:
''
,
//号数
number
:
''
,
//详细地址
detailInfo
:
''
,
//是否微信通知
...
...
@@ -112,12 +116,18 @@ export default {
}
},
methods
:
{
changeWechat
(){
this
.
appBo
.
wechat
=
!
this
.
appBo
.
wechat
},
call
()
{
if
(
this
.
checked
){
this
.
appBo
.
wechat
=
true
}
else
{
this
.
appBo
.
wechat
=
false
}
// if(this.checked){
// this.appBo.wechat = true
// }else{
// this.appBo.wechat = false
// }
// console.log(this.checked)
// this.appBo.wechat = true
this
.
appBo
.
moveCode
=
this
.
moveCode
let
opts
=
{
url
:
'/app/contact/notice'
,
method
:
'post'
};
this
.
http
.
httpTokenRequest
(
opts
,
this
.
appBo
).
then
(
res
=>
{
...
...
@@ -255,7 +265,7 @@ export default {
latitude
+
'&key=1bba2ab2de600f8b5fafe167e09cd2af&radius=1000&extensions=all'
,
success
(
res
)
{
//
console.log(res);
console
.
log
(
res
);
if
(
res
.
statusCode
===
200
)
{
if
(
res
.
data
.
status
===
'1'
)
{
let
addressInfo
=
res
.
data
...
...
@@ -271,6 +281,10 @@ export default {
}
//区
that
.
appBo
.
countyName
=
addressInfo
.
regeocode
.
addressComponent
.
district
//街道
that
.
appBo
.
township
=
addressInfo
.
regeocode
.
addressComponent
.
township
//号数
that
.
appBo
.
number
=
addressInfo
.
regeocode
.
addressComponent
.
streetNumber
.
number
//console.log("当前位置: " + that.appBo.detailInfo + " " + that.appBo.provinceName + " " + " " + that.appBo.cityName + " " + that.appBo.countyName)
}
...
...
pagesC/pages/shop/detail.vue
View file @
33ac9a73
...
...
@@ -2,13 +2,10 @@
<view
class=
"appCotent"
>
<div
class=
"shop__detail"
>
<div
class=
"top__swiper"
>
<u-swiper
:list=
"list6"
previousMargin=
"30"
nextMargin=
"30"
circular
:autoplay=
"false"
radius=
"5"
bgColor=
"#ffffff"
>
<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>
<div
class=
"shop__title"
>
<div>
{{
mallInfo
.
title
}}
{{
mallInfo
.
description
}}
</div>
...
...
@@ -22,7 +19,8 @@
<div
class=
"content__title"
>
商品详情
</div>
{{
mallInfo
.
detailContent
}}
<u-parse
:content=
"mallInfo.detailContent"
></u-parse>
<!--
{{
mallInfo
.
detailContent
}}
-->
</div>
</div>
<div
class=
"shop__btn view__no__bind"
@
click=
"pay()"
>
立即购买
</div>
...
...
@@ -54,8 +52,7 @@ 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
this
.
list6
=
this
.
mallInfo
.
imageUrls
}
})
},
...
...
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