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
33d2e36c
Commit
33d2e36c
authored
Aug 19, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优惠券券价值显示
parent
75b43306
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
src/views/coupon/coupon/index.vue
+18
-3
No files found.
src/views/coupon/coupon/index.vue
View file @
33d2e36c
...
@@ -108,9 +108,9 @@
...
@@ -108,9 +108,9 @@
<div
style=
"margin-left: 73px;"
>
<div
style=
"margin-left: 73px;"
>
<div
class=
"marginLeft10"
>
<div
class=
"marginLeft10"
>
<span>
立减
</span><el-input
v-model=
"liJian"
class=
"inputCalss"
:disabled=
"type=='2' || type=='3'"
/><span
class=
"spanClass"
>
元
</span>
<span>
立减
</span><el-input
v-model=
"liJian"
class=
"inputCalss"
:disabled=
"type=='2' || type=='3'"
/><span
class=
"spanClass"
>
元
</span>
<el-radio-group
v-model=
"firstRadioValue"
class=
"marginLeft10"
>
<el-radio-group
v-model=
"firstRadioValue"
class=
"marginLeft10"
@
change=
"changeFirstRadioValue"
>
<el-radio
:label=
"1"
class=
"marginLeft10"
:disabled=
"type=='2'"
>
无门槛
</el-radio>
<el-radio
:label=
"1"
class=
"marginLeft10"
:disabled=
"type=='2'"
>
无门槛
</el-radio>
<el-radio
:label=
"2"
:disabled=
"type=='2'"
>
满
<el-input
v-model=
"priceLimit"
class=
"inputCalss"
:disabled=
"
type=='2'
"
/><span
class=
"spanClass"
>
元
</span></el-radio>
<el-radio
:label=
"2"
:disabled=
"type=='2'"
>
满
<el-input
v-model=
"priceLimit"
class=
"inputCalss"
:disabled=
"
priceLimitDisable
"
/><span
class=
"spanClass"
>
元
</span></el-radio>
</el-radio-group>
</el-radio-group>
</div>
</div>
<div
style=
"margin-left: 36px;margin-top: 10px;"
>
<div
style=
"margin-left: 36px;margin-top: 10px;"
>
...
@@ -304,7 +304,8 @@ export default {
...
@@ -304,7 +304,8 @@ export default {
storesRange
:[],
storesRange
:[],
selectMess
:
true
,
selectMess
:
true
,
shopAreaTreeList
:[],
shopAreaTreeList
:[],
messageMoudleList
:[]
messageMoudleList
:[],
priceLimitDisable
:
false
};
};
},
},
created
()
{
created
()
{
...
@@ -416,11 +417,13 @@ export default {
...
@@ -416,11 +417,13 @@ export default {
this
.
type
=
this
.
couCategoryList
[
i
].
type
;
this
.
type
=
this
.
couCategoryList
[
i
].
type
;
if
(
this
.
type
==
"1"
){
if
(
this
.
type
==
"1"
){
this
.
firstRadioValue
=
1
;
this
.
firstRadioValue
=
1
;
this
.
priceLimitDisable
=
true
}
else
if
(
this
.
type
==
"2"
){
}
else
if
(
this
.
type
==
"2"
){
this
.
twoRadioValue
=
3
;
this
.
twoRadioValue
=
3
;
}
else
if
(
this
.
type
==
"3"
){
}
else
if
(
this
.
type
==
"3"
){
this
.
firstRadioValue
=
1
;
this
.
firstRadioValue
=
1
;
this
.
twoRadioValue
=
3
;
this
.
twoRadioValue
=
3
;
this
.
priceLimitDisable
=
true
}
}
}
}
}
}
...
@@ -515,9 +518,11 @@ export default {
...
@@ -515,9 +518,11 @@ export default {
this
.
liJian
=
response
.
data
.
priceDiscount
;
this
.
liJian
=
response
.
data
.
priceDiscount
;
if
(
response
.
data
.
priceLimit
==
0
){
if
(
response
.
data
.
priceLimit
==
0
){
this
.
firstRadioValue
=
1
;
this
.
firstRadioValue
=
1
;
this
.
priceLimitDisable
=
true
}
else
{
}
else
{
this
.
firstRadioValue
=
2
;
this
.
firstRadioValue
=
2
;
this
.
priceLimit
=
response
.
data
.
priceLimit
;
this
.
priceLimit
=
response
.
data
.
priceLimit
;
this
.
priceLimitDisable
=
false
}
}
}
else
if
(
this
.
type
==
2
){
}
else
if
(
this
.
type
==
2
){
this
.
jiZhe
=
response
.
data
.
priceDiscount
;
this
.
jiZhe
=
response
.
data
.
priceDiscount
;
...
@@ -530,9 +535,11 @@ export default {
...
@@ -530,9 +535,11 @@ export default {
this
.
twoRadioValue
=
3
;
this
.
twoRadioValue
=
3
;
if
(
response
.
data
.
priceLimit
==
0
){
if
(
response
.
data
.
priceLimit
==
0
){
this
.
firstRadioValue
=
1
;
this
.
firstRadioValue
=
1
;
this
.
priceLimitDisable
=
true
}
else
{
}
else
{
this
.
firstRadioValue
=
2
;
this
.
firstRadioValue
=
2
;
this
.
priceLimit
=
response
.
data
.
priceLimit
;
this
.
priceLimit
=
response
.
data
.
priceLimit
;
this
.
priceLimitDisable
=
false
}
}
}
}
if
(
response
.
data
.
daysLimit
==
0
&&
response
.
data
.
userLimit
==
0
){
if
(
response
.
data
.
daysLimit
==
0
&&
response
.
data
.
userLimit
==
0
){
...
@@ -889,6 +896,14 @@ export default {
...
@@ -889,6 +896,14 @@ export default {
this
.
messageMoudleList
=
response
.
data
;
this
.
messageMoudleList
=
response
.
data
;
}
}
})
})
},
changeFirstRadioValue
(
val
){
if
(
val
==
2
){
this
.
priceLimitDisable
=
false
}
else
if
(
val
==
1
){
this
.
priceLimitDisable
=
true
this
.
priceLimit
=
""
}
}
}
},
},
};
};
...
...
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