Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
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
hooloo
web
soss
Commits
6d04ed6a
Commit
6d04ed6a
authored
Jul 29, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改页面
parent
5cb2c7cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
11 deletions
+40
-11
src/views/coupon/coupon/index.vue
+40
-11
No files found.
src/views/coupon/coupon/index.vue
View file @
6d04ed6a
...
...
@@ -477,30 +477,50 @@ export default {
this
.
form
.
categoryId
=
response
.
data
.
categoryId
;
this
.
type
=
response
.
data
.
type
;
if
(
this
.
type
==
"1"
){
this
.
liJian
=
response
.
data
.
priceDiscount
;
if
(
response
.
data
.
priceLimit
==
0
){
this
.
firstRadioValue
=
1
;
}
else
{
this
.
firstRadioValue
=
1
;
this
.
firstRadioValue
=
2
;
this
.
priceLimit
=
response
.
data
.
priceLimit
;
}
}
else
if
(
this
.
type
==
"2"
){
this
.
jiZhe
=
response
.
data
.
priceDiscount
;
if
(
response
.
data
.
orderLimit
){
this
.
twoRadioValue
=
3
;
}
else
{
this
.
twoRadioValue
=
4
;
}
}
else
if
(
this
.
type
==
"3"
){
this
.
twoRadioValue
=
3
;
if
(
response
.
data
.
priceLimit
==
0
){
this
.
firstRadioValue
=
1
;
}
else
{
this
.
firstRadioValue
=
2
;
this
.
priceLimit
=
response
.
data
.
priceLimit
;
}
}
if
(
response
.
data
.
daysLimit
==
0
){
this
.
form
.
userNumber
=
2
}
else
if
(
response
.
data
.
daysLimit
!=
0
){
this
.
form
.
userNumber
=
1
this
.
form
.
userNumber
=
1
;
this
.
form
.
daysLimit
=
response
.
data
.
daysLimit
;
this
.
form
.
userLimit
=
response
.
data
.
userLimit
;
}
this
.
form
.
times
.
push
(
response
.
data
.
useEndTime
);
this
.
form
.
times
.
push
(
response
.
data
.
useStartTime
);
this
.
form
.
times
=
[
response
.
data
.
useStartTime
,
response
.
data
.
useEndTime
];
this
.
form
.
relativeTime
=
response
.
data
.
relativeTime
;
this
.
form
.
receivableTime
=
response
.
data
.
receivableTime
;
this
.
form
.
weekLimit
=
response
.
data
.
weekLimit
;
if
(
response
.
data
.
categoryIds
.
length
>
0
){
if
(
response
.
data
.
categoryIds
[
0
]
[
0
]
==
'0'
){
if
(
response
.
data
.
categoryIds
[
0
]
==
'0'
){
this
.
shopRange
=
[
0
];
}
else
{
console
.
log
(
"response.data.categoryIds"
,
response
.
data
.
categoryIds
[
0
]);
this
.
shopRange
=
[
1
,
"49"
]
}
}
this
.
form
.
goodsIds
=
goodSList
;
}
...
...
@@ -548,15 +568,13 @@ export default {
if
(
this
.
form
.
userNumber
==
"2"
){
this
.
form
.
daysLimit
=
0
;
this
.
form
.
userLimit
=
0
;
}
else
{
this
.
form
.
daysLimit
=
""
;
this
.
form
.
userLimit
=
""
;
}
if
(
this
.
form
.
times
.
length
>
0
){
this
.
form
.
useStartTime
=
this
.
form
.
times
[
0
];
this
.
form
.
useEndTime
=
this
.
form
.
times
[
1
]
}
//适用下拉商品类范围
console
.
log
(
"this.shopRange"
,
this
.
shopRange
);
if
(
this
.
shopRange
.
length
>
0
){
let
cateList
=
[];
let
goodSList
=
[];
...
...
@@ -667,7 +685,18 @@ export default {
this
.
shopAreaTreeList
=
[{
value
:
"0"
,
label
:
"全国通用"
},{
value
:
"1"
,
label
:
"限定区域"
,
children
:
treeList
}]
}
});
}
},
// reset(){
// this.form.id=null;
// this.form.name=null;
// this.form.categoryId=null;
// this.form.categoryIds=null;
// this.form.userNumber=null,
// this.form.times=null;
// this.form.relativeTime=null;
// this.form.receivableTime=null;
// this.form.weekLimit=null;
// }
},
};
</
script
>
...
...
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