Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
2a050bb2
Commit
2a050bb2
authored
Jul 07, 2022
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
显示优惠详情
parent
f90f686b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
6 deletions
+35
-6
offer.js
src/api/ecw/offer.js
+9
-0
specialDiscount.vue
src/views/ecw/offer/specialDiscount.vue
+26
-6
No files found.
src/api/ecw/offer.js
View file @
2a050bb2
...
...
@@ -88,3 +88,12 @@ export function createOfferSpecial(data) {
data
:
data
})
}
// 特价详情
export
function
getOfferSpecial
(
offerProdId
)
{
return
request
({
url
:
'
/ecw/offer/special/info/
'
+
offerProdId
+
'
?offerProdId=
'
+
offerProdId
,
method
:
'
get
'
})
}
src/views/ecw/offer/specialDiscount.vue
View file @
2a050bb2
...
...
@@ -6,10 +6,23 @@
<div
slot=
"header"
class=
"clearfix"
>
<span>
优惠申请
</span>
</div>
offerId:
{{
form
.
offerId
}}
<br>
offerProdId:
{{
form
.
offerProdId
}}
<br>
clearanceFreight:
{{
form
.
clearanceFreight
}}
<br>
seaFreight:
{{
form
.
seaFreight
}}
<el-form
ref=
"form"
:model=
"form"
label-width=
"80px"
>
<el-form-item
label=
"offerId"
>
<el-input
v-model=
"form.offerId"
placeholder=
"placeholder"
></el-input>
</el-form-item>
<el-form-item
label=
"offerProdId"
>
<el-input
v-model=
"form.offerProdId"
placeholder=
"placeholder"
></el-input>
</el-form-item>
<el-form-item
label=
"clearanceFreight"
>
<el-input
v-model=
"form.clearanceFreight"
placeholder=
"placeholder"
></el-input>
</el-form-item>
<el-form-item
label=
"seaFreight"
>
<el-input
v-model=
"form.seaFreight"
placeholder=
"placeholder"
></el-input>
</el-form-item>
</el-form>
<h3>
{{
JSON
.
stringify
(
follow
)
}}
</h3>
<div>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
提交
</el-button>
</div>
...
...
@@ -20,7 +33,7 @@
</
template
>
<
script
>
import
{
createOfferSpecial
,
getOffer
}
from
"
@/api/ecw/offer
"
import
{
createOfferSpecial
,
getOffer
,
getOfferSpecial
}
from
"
@/api/ecw/offer
"
export
default
{
name
:
"
specialDiscount
"
,
...
...
@@ -46,6 +59,7 @@ export default {
seaFreight
}
})
this
.
getOfferSpecial
()
},
data
()
{
return
{
...
...
@@ -56,7 +70,8 @@ export default {
"
offerId
"
:
0
,
"
offerProdId
"
:
0
,
"
seaFreight
"
:
0
}
},
follow
:
{}
}
},
methods
:
{
...
...
@@ -64,6 +79,11 @@ export default {
createOfferSpecial
(
this
.
form
).
then
(
r
=>
{
this
.
$message
.
success
(
r
.
msg
||
'
提交成功
'
)
})
},
getOfferSpecial
(){
getOfferSpecial
(
this
.
form
.
offerProdId
).
then
(
r
=>
{
this
.
follow
=
r
.
data
})
}
}
}
...
...
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