Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
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
xulili
ybf
Commits
b6352574
Commit
b6352574
authored
Apr 24, 2020
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建优惠券开始时间与结束时间
parent
9e9cc8e2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
activeDetail.vue
wx_application/src/views/active/activeDetail.vue
+7
-4
addCoupon.vue
wx_application/src/views/coupon/addCoupon.vue
+4
-5
No files found.
wx_application/src/views/active/activeDetail.vue
View file @
b6352574
...
...
@@ -97,13 +97,13 @@
<div
class=
"award-coupon"
>
<img
class=
"bg_img"
src=
"/img/coupon.png"
alt=
"coupon"
/>
<div
class=
"other"
>
<
!-- <p>{{ awardGood.coupon.type }}</p> --
>
<
p>
代金券
</p
>
<
p>
{{ awardGood.coupon.type }}
</p
>
<
!-- <p>代金券</p> --
>
<div
class=
"split"
>
<img
src=
"../../../public/img/split.png"
alt=
"split"
/>
</div>
<
!-- <p>{{ awardGood.coupon.unit }}元</p> --
>
<
p>
2000元
</p
>
<
p>
{{ awardGood.coupon.unit }}元
</p
>
<
!-- <p>2000元</p> --
>
</div>
</div>
<p
style=
"font-size: 20px;font-weight: bold;"
>
OLAY全场通用抵扣券
</p>
...
...
@@ -384,6 +384,9 @@ export default {
setOffStep
(
len
)
{
let
offset
=
0
;
switch
(
len
)
{
case
2
:
offset
=
0.5
;
break
;
case
4
:
offset
=
0.75
;
break
;
...
...
wx_application/src/views/coupon/addCoupon.vue
View file @
b6352574
...
...
@@ -351,11 +351,10 @@ export default {
this
.
$toast
(
"请输入结束时间"
);
return
false
;
}
// if (!this.addForm.couponIds) {
// this.$toast("请输入优惠券ID");
// return false;
// }
if
(
new
Date
(
this
.
beginDate
)
>=
new
Date
(
this
.
endDate
))
{
this
.
$toast
(
"开始时间不能大于等于结束时间!"
);
return
false
;
}
if
(
!
this
.
addForm
.
limitOfUse
)
{
this
.
$toast
(
"请输入总限制次数"
);
return
false
;
...
...
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