Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
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
华国豪
Athena
Commits
336ece16
Commit
336ece16
authored
Jul 05, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Plain Diff
1
parents
e63140dd
c9306c56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
indexTwo.vue
src/components/trade/order/indexTwo.vue
+17
-1
No files found.
src/components/trade/order/indexTwo.vue
View file @
336ece16
...
...
@@ -283,6 +283,11 @@
<div>
<el-input
v-model=
"Remarks"
placeholder=
"你可以在此处输入需要备注的信息"
rows=
"3"
type=
'textarea'
:autosize=
'{minRows:3,maxRows:30}'
></el-input>
</div>
<p>
兑换码
</p>
<div>
<el-input
size=
"small"
v-model=
"ActivateCode"
placeholder=
"请输入兑换码"
style=
"width:200px"
></el-input>
<el-button
@
click=
"GetCode"
size=
"small"
style=
"margin-left:10px"
>
兑换
</el-button>
</div>
</el-col>
<el-col
class=
"_trip_xiangqing _coupon_box"
>
<p
style=
"width:100%"
>
优惠券
</p>
...
...
@@ -416,6 +421,7 @@ export default {
data
()
{
let
that
=
this
return
{
ActivateCode
:
''
,
value
:
"1"
,
input10
:
""
,
radio
:
"1"
,
...
...
@@ -552,6 +558,17 @@ export default {
},
err
=>
{});
},
methods
:
{
GetCode
(){
this
.
apiJavaPost
(
'/api/b2b/user/updateUseCouponBycode'
,{
ActivateCode
:
this
.
ActivateCode
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
Success
(
"兑换码激活成功!"
);
this
.
getUserCanUseCouponList
();
}
else
{
this
.
Error
(
"该兑换码无效!"
);
}
},
null
)
},
goShenqing
:
function
()
{
let
dom
=
document
.
querySelector
(
"#blankLink"
)
dom
.
href
=
`http://
${
window
.
location
.
host
}
/#/PsSystem/
${
1
}
`
...
...
@@ -889,7 +906,6 @@ export default {
CouponsUseScope
:
2
,
}
this
.
apiJavaPost
(
'/api/b2b/user/getUserCanUseCouponList'
,
msg
,
res
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
resultCode
==
1
){
let
data
=
res
.
data
.
data
;
data
.
forEach
(
x
=>
{
...
...
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