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
b8b99f63
Commit
b8b99f63
authored
Jul 05, 2019
by
huangyuanyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加兑换码
parent
215acca5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
newHead.vue
src/components/global/newHead.vue
+1
-0
indexTwo.vue
src/components/trade/order/indexTwo.vue
+17
-1
No files found.
src/components/global/newHead.vue
View file @
b8b99f63
...
...
@@ -483,6 +483,7 @@ export default {
if
(
result
&&
result
.
city
&&
result
.
bounds
)
{
var
citybounds
=
result
.
bounds
;
_this
.
cityText
=
result
.
city
;
console
.
log
(
" _this.cityText"
,
_this
.
cityText
)
// document.getElementById('info').innerHTML = '您当前所在城市:'+cityinfo;
// //地图显示当前城市
// map.setBounds(citybounds);
...
...
src/components/trade/order/indexTwo.vue
View file @
b8b99f63
...
...
@@ -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