Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f93b46bf
authored
Feb 23, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
befb265f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
src/assets/css/gift-detail.scss
src/views/gift/create.vue
src/assets/css/gift-detail.scss
View file @
f93b46b
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
.detail
{
.detail
{
border-bottom
:
1px
solid
rgba
(
195
,
195
,
195
,
0
.3
);
border-bottom
:
1px
solid
rgba
(
195
,
195
,
195
,
0
.3
);
position
:
relative
;
&
:last-of-type
{
&
:last-of-type
{
border-bottom
:
none
;
border-bottom
:
none
;
}
}
...
@@ -98,9 +98,12 @@
...
@@ -98,9 +98,12 @@
padding
:
0
12px
;
padding
:
0
12px
;
display
:
inline-flex
;
display
:
inline-flex
;
}
}
.del
{
position
:
absolute
;
top
:
8px
;
right
:
0
;
}
.coupon-disabled
{
.coupon-disabled
{
position
:
relative
;
.detail-list
{
.detail-list
{
color
:
#999999
;
color
:
#999999
;
...
@@ -112,11 +115,6 @@
...
@@ -112,11 +115,6 @@
color
:
#999999
;
color
:
#999999
;
}
}
}
}
.del
{
position
:
absolute
;
top
:
8px
;
right
:
0
;
}
}
}
}
}
}
}
...
...
src/views/gift/create.vue
View file @
f93b46b
...
@@ -57,9 +57,7 @@
...
@@ -57,9 +57,7 @@
<
div
class
=
"price"
>
¥
{{
centsToyuan
(
i
.
couponAnticipatedCost
*
i
.
couponAmount
)
}}
<
/div
>
<
div
class
=
"price"
>
¥
{{
centsToyuan
(
i
.
couponAnticipatedCost
*
i
.
couponAmount
)
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
template
v
-
if
=
"i.status != 2"
>
<
div
class
=
"del sprite-icon icon-gift-del"
@
click
=
"delCoupon(index)"
><
/div
>
<
div
class
=
"del sprite-icon icon-gift-del"
@
click
=
"delCoupon(index)"
><
/div
>
<
/template
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
/div
>
<
/div
>
...
@@ -233,11 +231,12 @@ export default {
...
@@ -233,11 +231,12 @@ export default {
if
(
i
.
status
==
2
)
total
+=
i
.
couponAnticipatedCost
*
i
.
couponAmount
if
(
i
.
status
==
2
)
total
+=
i
.
couponAnticipatedCost
*
i
.
couponAmount
}
)
}
)
this
.
total
=
total
this
.
total
=
total
this
.
checkData
()
}
,
}
,
submit
()
{
submit
()
{
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]
{9
}
$/
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]
{9
}
$/
if
(
disabled
)
return
let
{
obj
,
disabled
,
id
}
=
this
let
{
obj
,
disabled
,
id
}
=
this
if
(
disabled
)
return
if
(
obj
.
receiveWay
==
1
)
{
if
(
obj
.
receiveWay
==
1
)
{
if
(
!
phoneRex
.
test
(
obj
.
phone
))
{
if
(
!
phoneRex
.
test
(
obj
.
phone
))
{
this
.
showToast
(
'请输入正确的手机号'
)
this
.
showToast
(
'请输入正确的手机号'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment