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
2264a8e9
Commit
2264a8e9
authored
May 24, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逻辑修改
parent
048eb84d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
home.vue
pages/home.vue
+2
-0
main.vue
pages/main.vue
+15
-0
getCoupon.vue
pagesA/pages/index/getCoupon.vue
+0
-1
No files found.
pages/home.vue
View file @
2264a8e9
...
@@ -57,6 +57,7 @@
...
@@ -57,6 +57,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
util
from
'@/pages/login/util.js'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -179,6 +180,7 @@
...
@@ -179,6 +180,7 @@
if
(
res
.
data
.
length
==
0
){
if
(
res
.
data
.
length
==
0
){
let
url
=
"car.m.jd.com/h5/list.html?source=managerprocedure"
let
url
=
"car.m.jd.com/h5/list.html?source=managerprocedure"
util
.
redirectToH5
({
page
:
url
})
util
.
redirectToH5
({
page
:
url
})
uni
.
setStorageSync
(
'firstCoupon'
,
true
)
}
else
{
}
else
{
// uni.navigateTo({
// uni.navigateTo({
// url: '/pagesA/pages/index/getPrice?orderId=' + this.freeCode.id
// url: '/pagesA/pages/index/getPrice?orderId=' + this.freeCode.id
...
...
pages/main.vue
View file @
2264a8e9
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
</view>
</view>
</
template
>
</
template
>
<
script
src=
"https://gias.jd.com/js/td.js"
></
script
>
<
script
>
<
script
>
import
{
import
{
mapState
mapState
...
@@ -50,6 +51,20 @@
...
@@ -50,6 +51,20 @@
if
(
this
.
tab
==
'personal'
)
{
if
(
this
.
tab
==
'personal'
)
{
this
.
$refs
.
personal
.
getUserInfo
();
this
.
$refs
.
personal
.
getUserInfo
();
}
}
// 领券判断
let
firstCoupon
=
uni
.
getStorageSync
(
'firstCoupon'
)
||
false
if
(
firstCoupon
){
let
opts
=
{
url
:
'/app/user/send/coupon'
,
method
:
'post'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
uni
.
removeStorageSync
(
'firstCoupon'
)
uni
.
showToast
({
title
:
"领取成功!"
,
icon
:
'none'
,
});
}
})
}
},
},
onReachBottom
()
{
onReachBottom
()
{
let
refresh
=
uni
.
getStorageSync
(
"refresh"
)
let
refresh
=
uni
.
getStorageSync
(
"refresh"
)
...
...
pagesA/pages/index/getCoupon.vue
View file @
2264a8e9
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
});
});
}
}
})
})
}
}
}
}
}
}
...
...
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