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
28abc381
Commit
28abc381
authored
May 23, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程修改
parent
37156ead
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
867 additions
and
583 deletions
+867
-583
api.js
common/api/api.js
+3
-3
pages.json
pages.json
+12
-0
home.vue
pages/home.vue
+49
-28
wv-common.vue
pages/login/wv-common/wv-common.vue
+2
-6
main.vue
pages/main.vue
+232
-178
moveCar.vue
pages/moveCar.vue
+6
-3
personal.vue
pages/personal.vue
+41
-15
getCoupon.vue
pagesA/pages/index/getCoupon.vue
+64
-0
getPrice.vue
pagesA/pages/index/getPrice.vue
+373
-335
loveCar.vue
pagesB/pages/move-car/loveCar.vue
+37
-12
detail.vue
pagesC/pages/shop/detail.vue
+6
-3
myJdOrder.vue
pagesD/pages/personal/myJdOrder.vue
+42
-0
box.png
static/index/box.png
+0
-0
my01.png
static/my/my01.png
+0
-0
No files found.
common/api/api.js
View file @
28abc381
const
baseUrl
=
'https://jduniapp.uzosp.com/test-api'
;
// const baseUrl = 'http://
64qycp
.natappfree.cc';
const
baseUrl
=
'https://jduniapp.uzosp.com/
/
test-api'
;
// const baseUrl = 'http://
nrucci
.natappfree.cc';
const
httpRequest
=
(
opts
,
data
)
=>
{
let
httpDefaultOpts
=
{
url
:
baseUrl
+
opts
.
url
,
...
...
@@ -64,7 +64,7 @@ const httpTokenRequest = (opts, data) => {
if
(
res
[
1
].
data
.
code
==
401
){
uni
.
removeStorageSync
(
'userToken'
)
uni
.
navigateTo
({
url
:
"/pages/
binding
/index?failure=401"
url
:
"/pages/
login/index
/index?failure=401"
})
return
;
}
...
...
pages.json
View file @
28abc381
...
...
@@ -69,6 +69,12 @@
"style"
:
{
"navigationBarTitleText"
:
"获取挪车码"
}
},
{
"path"
:
"pages/index/getCoupon"
,
"style"
:
{
"navigationBarTitleText"
:
"领取优惠券"
}
}
]
},
...
...
@@ -199,6 +205,12 @@
"navigationBarTitleText"
:
"我的订单"
}
},
{
"path"
:
"pages/personal/myJdOrder"
,
"style"
:
{
"navigationBarTitleText"
:
"我的订单"
}
},
{
"path"
:
"pages/personal/orderDetail"
,
"style"
:
{
...
...
pages/home.vue
View file @
28abc381
...
...
@@ -66,6 +66,7 @@
list5
:
[],
//免费挪车码
freeCode
:
{},
carList
:[],
// 爱车列表
};
},
methods
:
{
...
...
@@ -79,11 +80,21 @@
let
that
=
this
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
)
{
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pages/main&index=0'
})
uni
.
showModal
({
title
:
"未绑定账号"
,
content
:
"您没有绑定京东账号,请绑定后再领取"
,
success
:
function
(
res
){
if
(
res
.
confirm
)
{
that
.
goJdLogin
()
}
}
});
// uni.navigateTo({
// url: '/pages/binding/index?url=/pages/main&index=0'
// })
return
;
}
let
opts
=
{
url
:
'/app/user/info'
,
method
:
'get'
...
...
@@ -91,33 +102,25 @@
that
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
let
freeMoveFlag
=
res
.
data
.
data
.
freeMoveFlag
let
bindPin
=
res
.
data
.
data
.
bindPin
if
(
!
bindPin
)
{
uni
.
showModal
({
title
:
"未绑定账号"
,
content
:
"您没有绑定京东账号,请绑定后再领取"
,
success
:
function
(
res
){
if
(
res
.
confirm
)
{
that
.
goJdLogin
()
}
if
(
freeMoveFlag
)
{
uni
.
showToast
({
title
:
"您的免费领取次数已用完"
,
icon
:
'none'
,
duration
:
2000
,
success
:
function
(){
}
});
// if (freeMoveFlag) {
// uni.showToast({
// title: "您的免费领取次数已用完",
// icon: 'none',
// duration: 2000,
// success:function(){
// }
// });
// } else {
// //跳转到领取优惠卷页面
// uni.navigateTo({
// url: '/pagesA/pages/index/getPrice?orderId=' + this.freeCode.id
// });
// }
}
else
{
//跳转到领取优惠卷页面
// uni.navigateTo({
// url: '/pagesA/pages/index/getPrice?orderId=' + this.freeCode.id
// });
uni
.
showLoading
({
title
:
'加载中'
});
this
.
getCarList
()
}
}
})
...
...
@@ -165,7 +168,25 @@
uni
.
navigateTo
({
url
:
link
})
}
},
// 获取爱车列表
getCarList
(){
let
opts
=
{
url
:
'/app/vehicleAdmin/list'
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
statusCode
==
200
)
{
this
.
carList
=
res
.
data
uni
.
hideLoading
()
if
(
res
.
data
.
length
==
0
){
let
url
=
"car.m.jd.com/h5/list.html?source=managerprocedure"
util
.
redirectToH5
({
page
:
url
})
}
else
{
uni
.
navigateTo
({
url
:
'/pagesA/pages/index/getPrice?orderId='
+
this
.
freeCode
.
id
});
}
}
})
},
},
created
()
{
this
.
getMoveCode
()
...
...
pages/login/wv-common/wv-common.vue
View file @
28abc381
...
...
@@ -17,9 +17,7 @@ export default {
onLoad
:
function
(
options
=
{})
{
let
{
h5_url
=
''
}
=
options
;
util
.
h5Init
(
options
);
this
.
setData
({
h5_url
});
this
.
h5_url
=
h5_url
util
.
setCustomNavigation
();
this
.
_genToken
();
...
...
@@ -42,9 +40,7 @@ export default {
let
{
isSuccess
,
err_code
,
url
,
tokenkey
,
err_msg
}
=
res
;
if
(
isSuccess
&&
!
err_code
)
{
this
.
setData
({
url
:
`
${
url
}
?to=
${
h5_url
}
&tokenkey=
${
tokenkey
}
`
});
this
.
url
=
`
${
url
}
?to=
${
h5_url
}
&tokenkey=
${
tokenkey
}
`
}
else
{
uni
.
showModal
({
title
:
'提示'
,
...
...
pages/main.vue
View file @
28abc381
This diff is collapsed.
Click to expand it.
pages/moveCar.vue
View file @
28abc381
...
...
@@ -60,9 +60,12 @@ export default {
goUrl
(
vo
)
{
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
){
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pages/main&index=1'
})
// uni.navigateTo({
// url: '/pages/binding/index?url=/pages/main&index=1'
// })
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
})
return
;
}
const
that
=
this
...
...
pages/personal.vue
View file @
28abc381
...
...
@@ -23,7 +23,7 @@
</div>
</div>
</div>
<div
class=
"ps__shop"
>
<
!--
<
div
class=
"ps__shop"
>
<div
class=
"shop__tab"
>
<div
class=
"tab__top"
>
<span>
商品订单
</span>
...
...
@@ -41,7 +41,7 @@
</div>
</div>
</div>
</div>
</div>
-->
</div>
<div
class=
"ps__list"
>
<div
class=
"list__item"
v-for=
"(vo,inx) in menu"
:key=
"inx"
@
click=
"goUrl(vo)"
>
...
...
@@ -68,6 +68,10 @@ export default {
show
:
false
,
logoutFlag
:
true
,
menu
:
[{
icon
:
require
(
"@/static/my/my01.png"
),
title
:
"我的订单"
,
url
:
"/pagesD/pages/personal/myJdOrder"
},{
icon
:
require
(
"@/static/my/my12.png"
),
title
:
"我的地址"
,
url
:
"/pagesD/pages/personal/myAddress"
...
...
@@ -140,9 +144,12 @@ export default {
goOrder
(
current
)
{
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
){
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pages/main&index=4'
})
// uni.navigateTo({
// url: '/pages/binding/index?url=/pages/main&index=4'
// })
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
})
return
;
}
uni
.
navigateTo
({
...
...
@@ -152,9 +159,12 @@ export default {
goUrl
(
vo
)
{
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
){
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pages/main&index=4'
})
// uni.navigateTo({
// url: '/pages/binding/index?url=/pages/main&index=4'
// })
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
})
return
;
}
if
(
vo
.
title
!=
'微信通知设置'
)
{
...
...
@@ -169,9 +179,12 @@ export default {
editInfo
()
{
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
){
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pages/main&index=4'
})
// uni.navigateTo({
// url: '/pages/binding/index?url=/pages/main&index=4'
// })
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
})
return
;
}
uni
.
navigateTo
({
...
...
@@ -304,6 +317,7 @@ export default {
background
:
url('http://euzhi.com/my15.png')
no-repeat
;
background-size
:
cover
;
z-index
:
999
;
padding-bottom
:
50rpx
;
.ps__title
{
font-size
:
40rpx
;
...
...
@@ -429,7 +443,9 @@ export default {
background
:
#FFFFFF
;
box-shadow
:
0rpx
0rpx
28rpx
1rpx
rgba
(
232
,
232
,
232
,
0
.16
);
border-radius
:
20rpx
;
margin-top
:
20rpx
;
// margin-top: 20rpx;
position
:
relative
;
top
:
-20rpx
;
.list__item
{
position
:
relative
;
...
...
@@ -472,7 +488,7 @@ export default {
background
:
rgba
(
0
,
0
,
0
,
.1
);
}
.list__item
:nth-of-type
(
2
)
{
.list__item
:nth-of-type
(
3
)
{
.list__left
{
image
{
width
:
29rpx
;
...
...
@@ -482,7 +498,7 @@ export default {
}
}
.list__item
:nth-of-type
(
3
)
{
.list__item
:nth-of-type
(
4
)
{
.list__left
{
image
{
width
:
28rpx
;
...
...
@@ -492,7 +508,7 @@ export default {
}
}
.list__item
:nth-of-type
(
4
)
{
.list__item
:nth-of-type
(
5
)
{
.list__left
{
image
{
width
:
28rpx
;
...
...
@@ -501,6 +517,16 @@ export default {
}
}
}
.list__item
:last-child
{
.list__left
{
image
{
width
:
28rpx
;
height
:
28rpx
;
margin-right
:
33rpx
;
}
}
}
.list__item
:nth-last-of-type
(
1
)
::before
{
content
:
''
;
...
...
pagesA/pages/index/getCoupon.vue
0 → 100644
View file @
28abc381
<
template
>
<!-- 我的订单 -->
<view
class=
"get-coupon"
>
<view
class=
"box"
>
<view
class=
"title"
>
订单信息请前往京东查看
</view>
<image
src=
"../../../static/index/box.png"
></image>
<view
class=
"btn"
@
click=
"getCoupon"
>
点击领取优惠券
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
(){
return
{
}
},
methods
:{
getCoupon
(){
uni
.
showToast
({
title
:
"领取成功!"
,
icon
:
'none'
,
});
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.get-coupon
{
width
:
100%
;
height
:
100vh
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.box
{
position
:
relative
;
top
:
-120rpx
;
text-align
:
center
;
.title
{
font-size
:
36rpx
;
font-weight
:
bold
;
}
image
{
width
:
400rpx
;
height
:
300rpx
;
margin-top
:
80rpx
;
}
.btn
{
width
:
660rpx
;
line-height
:
80rpx
;
margin
:
50rpx
auto
0
;
text-align
:
center
;
color
:
#fff
;
font-size
:
32rpx
;
border-radius
:
50rpx
;
background
:
linear-gradient
(
to
right
,
#E2241B
,
#E14A1B
);
}
}
}
</
style
>
\ No newline at end of file
pagesA/pages/index/getPrice.vue
View file @
28abc381
This diff is collapsed.
Click to expand it.
pagesB/pages/move-car/loveCar.vue
View file @
28abc381
...
...
@@ -14,14 +14,22 @@
<image
src=
"@/static/move-car/love-car6.png"
/>
</div>
<div
class=
"item__title"
@
click=
"goGetPrice(vo.id)"
>
{{
vo
.
carNo
}}
<view
class=
"title"
>
{{
vo
.
brand
}}
</view>
<view
class=
"type"
>
{{
vo
.
carModel
}}
</view>
<view
class=
"route"
>
行驶里程
{{
vo
.
mileage
}}
KM
</view>
</div>
<div
class=
"item__edit"
@
click=
"editCar(vo.id)"
>
<
!--
<
div
class=
"item__edit"
@
click=
"editCar(vo.id)"
>
<image
src=
"@/static/move-car/love-car2.png"
/>
</div>
<div
class=
"item__del"
@
click=
"deleteModal(vo.id)"
>
<image
src=
"@/static/move-car/love-car3.png"
/>
</div>
</div>
-->
</div>
</div>
<div>
...
...
@@ -37,6 +45,7 @@
</
template
>
<
script
>
import
util
from
'@/pages/login/util.js'
;
export
default
{
data
()
{
return
{
...
...
@@ -57,9 +66,11 @@ export default {
});
},
addCar
()
{
uni
.
navigateTo
({
url
:
'/pagesB/pages/move-car/addCar'
})
// uni.navigateTo({
// url: '/pagesB/pages/move-car/addCar'
// })
let
url
=
"car.m.jd.com/h5/list.html?source=managerprocedure"
util
.
redirectToH5
({
page
:
url
})
},
editCar
(
id
)
{
uni
.
navigateTo
({
...
...
@@ -94,10 +105,14 @@ export default {
this
.
deleteShow
=
false
},
getCarList
(){
uni
.
showLoading
({
title
:
'加载中'
});
let
opts
=
{
url
:
'/app/vehicleAdmin/list'
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
carList
=
res
.
data
.
rows
if
(
res
.
statusCode
==
200
)
{
uni
.
hideLoading
()
this
.
carList
=
res
.
data
}
})
},
...
...
@@ -155,14 +170,14 @@ export default {
.love__item
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
background
:
#FFFFFF
;
box-shadow
:
0rpx
0rpx
28rpx
1rpx
rgba
(
232
,
232
,
232
,
0
.2
);
border-radius
:
20rpx
;
padding
:
30rpx
;
padding
:
20rpx
30rpx
;
margin-bottom
:
30rpx
;
.itme__img
{
margin-right
:
30rpx
;
image
{
width
:
100rpx
;
height
:
100rpx
;
...
...
@@ -170,12 +185,22 @@ export default {
}
.item__title
{
font-size
:
32rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
48rpx
;
width
:
350rpx
;
// width: 350rpx;
.title
{
font-size
:
34rpx
;
font-weight
:
bold
;
}
.type
{
color
:
#666666
;
font-size
:
28rpx
;
}
.route
{
font-size
:
30rpx
;
}
}
.item__edit
{
...
...
pagesC/pages/shop/detail.vue
View file @
28abc381
...
...
@@ -45,9 +45,12 @@ export default {
pay
(){
let
token
=
uni
.
getStorageSync
(
'userToken'
);
if
(
!
token
){
uni
.
navigateTo
({
url
:
'/pages/binding/index?url=/pagesC/pages/shop/detail&id='
+
this
.
id
})
// uni.navigateTo({
// url: '/pages/binding/index?url=/pagesC/pages/shop/detail&id=' + this.id
// })
uni
.
navigateTo
({
url
:
'/pages/login/index/index'
})
return
;
}
uni
.
navigateTo
({
...
...
pagesD/pages/personal/myJdOrder.vue
0 → 100644
View file @
28abc381
<
template
>
<!-- 我的订单 -->
<view
class=
"my-jd-order"
>
<view
class=
"box"
>
<text>
订单信息请前往京东查看
</text>
<view
class=
"btn"
>
前往京东查看
</view>
</view>
</view>
</
template
>
<
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
.my-jd-order
{
width
:
100%
;
height
:
100vh
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.box
{
position
:
relative
;
top
:
-120rpx
;
text-align
:
center
;
text
{
font-size
:
36rpx
;
font-weight
:
bold
;
}
.btn
{
width
:
660rpx
;
line-height
:
80rpx
;
margin
:
50rpx
auto
0
;
text-align
:
center
;
color
:
#fff
;
font-size
:
32rpx
;
border-radius
:
50rpx
;
background
:
linear-gradient
(
to
right
,
#E2241B
,
#E14A1B
);
}
}
}
</
style
>
\ No newline at end of file
static/index/box.png
0 → 100644
View file @
28abc381
62 KB
static/my/my01.png
0 → 100644
View file @
28abc381
723 Bytes
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