Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
viitto
mallapp
Commits
696d32dc
Commit
696d32dc
authored
Sep 01, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券跳转修改
parent
ac83def6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
details.vue
pages/coupon/details/details.vue
+12
-8
list.vue
pages/goods/list.vue
+9
-2
No files found.
pages/coupon/details/details.vue
View file @
696d32dc
...
...
@@ -59,7 +59,7 @@ export default {
loading
:
false
,
coupon_id
:
0
,
isreceive
:
false
,
type
:
0
type
:
0
,
//type 1是优惠券列表来的 2 是领券中心来的
};
},
...
...
@@ -113,14 +113,18 @@ export default {
);
},
gouseUrl
(
g
){
let
id
if
(
this
.
type
==
1
){
id
=
g
.
ID
}
else
if
(
this
.
type
==
2
){
id
=
g
.
CouponId
let
data
=
[]
if
(
g
.
UseType
==
1
||
g
.
UseType
==
2
){
g
.
ProductList
.
forEach
(
x
=>
{
data
.
push
(
x
.
ProductId
)
})
let
id
=
data
.
toString
()
uni
.
redirectTo
({
url
:
'/pages/goods/list?coupon_id='
+
id
+
'&UseType='
+
g
.
UseType
});
}
else
{
uni
.
redirectTo
({
url
:
'/pages/goods/list'
});
}
uni
.
redirectTo
({
url
:
'/pages/goods/list?coupon_id='
+
id
});
}
},
...
...
pages/goods/list.vue
View file @
696d32dc
...
...
@@ -93,8 +93,15 @@
onLoad
(
option
)
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
catId
=
option
.
cat_id
;
if
(
option
.
coupon_id
!=
undefined
)
{
this
.
coupon_id
=
option
.
coupon_id
//优惠券带过来的参数
if
(
option
&&
option
.
coupon_id
&&
option
.
UseType
)
{
//优惠券带过来的参数
console
.
log
(
option
.
coupon_id
)
if
(
option
.
UseType
==
1
){
this
.
msg
.
CategoryIds
=
option
.
coupon_id
}
else
if
(
option
.
UseType
==
2
){
this
.
msg
.
GoodsIds
=
option
.
coupon_id
}
}
if
(
option
.
CategoryIds
)
{
this
.
msg
.
CategoryIds
=
option
.
CategoryIds
;
...
...
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