Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
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
front-end-dev
techbook
Commits
55c0c9f2
Commit
55c0c9f2
authored
Sep 29, 2019
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上架下架详情防连点
parent
1dd78223
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
16 deletions
+34
-16
requireDetail.vue
src/views/saleManage/requireManage/pages/requireDetail.vue
+34
-16
No files found.
src/views/saleManage/requireManage/pages/requireDetail.vue
View file @
55c0c9f2
...
...
@@ -79,7 +79,7 @@
<li
style=
"padding-bottom: 0;"
>
<p
style=
"width: 100%;"
>
<span
style=
"vertical-align: top;padding-top:5px;"
>
{{
$t
(
"bigBusiness.detailInfo.cooperationFlag"
)
}}
:
</span>
<span
style=
"display: inline-block;width: calc(100% - 140px);line-height: 30px;"
v-if=
"detailInfo.targetLabel"
><el-tag
size=
"small"
effect=
"plain"
style=
"margin-right: 5px;font-size: 14px;margin-bottom: 10px;"
v-for=
"
item in detailInfo.targetList
"
>
{{
item
}}
</el-tag></span>
<span
style=
"display: inline-block;width: calc(100% - 140px);line-height: 30px;"
v-if=
"detailInfo.targetLabel"
><el-tag
size=
"small"
effect=
"plain"
style=
"margin-right: 5px;font-size: 14px;margin-bottom: 10px;"
v-for=
"
(item,index) in detailInfo.targetList"
:key=
"index
"
>
{{
item
}}
</el-tag></span>
<span
v-if=
"!detailInfo.targetLabel"
>
暂无
</span>
</p>
</li>
...
...
@@ -213,8 +213,8 @@
</div>
<div
class=
"buttonWrapper"
>
<el-button
type=
"primary"
style=
"width: 180px;"
@
click=
"handleEdit"
v-if=
"isEditVisible"
>
{{$t("saleManage.editRequire")}}
</el-button>
<el-button
type=
"primary"
style=
"width: 100px;"
plain
@
click=
"handleSold(2)"
v-loading
.
fullscreen=
"fullscreenLoading"
v-if=
"isSoldOut"
>
{{$t("bigBusiness.detailInfo.soldOut")}}
</el-button>
<el-button
type=
"primary"
style=
"width: 100px;"
plain
@
click=
"handleSold(1)"
v-loading
.
fullscreen=
"fullscreenLoading"
v-if=
"isSoldOn"
>
{{$t("bigBusiness.detailInfo.soldOn")}}
</el-button>
<el-button
type=
"primary"
style=
"width: 100px;"
plain
@
click=
"handleSold(2)"
:disabled=
"disabledFlag>0"
v-loading
.
fullscreen=
"fullscreenLoading"
v-if=
"isSoldOut"
>
{{$t("bigBusiness.detailInfo.soldOut")}}
</el-button>
<el-button
type=
"primary"
style=
"width: 100px;"
plain
@
click=
"handleSold(1)"
:disabled=
"disabledFlag>0"
v-loading
.
fullscreen=
"fullscreenLoading"
v-if=
"isSoldOn"
>
{{$t("bigBusiness.detailInfo.soldOn")}}
</el-button>
<el-button
type=
"primary"
style=
"width: 150px;"
plain
@
click=
"handleOpreation"
v-loading
.
fullscreen=
"fullscreenLoading"
v-if=
"isShare"
><i
class=
"iconfont icon-wechat"
></i>
{{$t("bigBusiness.detailInfo.shareRequire")}}
</el-button>
<el-button
type=
"primary"
style=
"width: 100px;"
plain
@
click=
"handleGoBack"
>
返回
</el-button>
</div>
...
...
@@ -273,7 +273,8 @@
fullscreenLoading
:
false
,
hasDetailPermission
:
false
,
vueQrVisible
:
false
,
url
:
""
url
:
""
,
disabledFlag
:
0
}
},
components
:{
...
...
@@ -405,18 +406,35 @@
type
:
''
,
customClass
:
'deleteConfirm'
}).
then
(()
=>
{
that
.
fullscreenLoading
=
true
;
api
.
soldAxios
(
params
).
then
((
res
)
=>
{
that
.
fullscreenLoading
=
false
;
if
(
res
.
code
==
0
){
that
.
$message
.
success
(
"操作成功"
);
that
.
getRequireDetail
();
}
else
{
that
.
$message
.
error
(
res
.
msg
);
}
}).
catch
((
err
)
=>
{
that
.
$message
.
error
(
err
);
})
if
(
that
.
disabledFlag
==
0
){
that
.
disabledFlag
++
;
that
.
fullscreenLoading
=
true
;
api
.
soldAxios
(
params
).
then
((
res
)
=>
{
that
.
fullscreenLoading
=
false
;
if
(
res
.
code
==
0
){
that
.
$message
.
success
(
"操作成功"
);
that
.
getRequireDetail
();
}
else
{
that
.
$message
.
error
(
res
.
msg
);
}
setTimeout
(
function
(){
that
.
disabledFlag
=
0
;
return
false
;
},
500
);
}).
catch
((
err
)
=>
{
that
.
$message
.
error
(
err
);
setTimeout
(
function
(){
that
.
disabledFlag
=
0
;
return
false
;
},
500
);
})
}
else
{
setTimeout
(
function
(){
that
.
disabledFlag
=
0
;
return
false
;
},
500
);
}
}).
catch
(()
=>
{
});
...
...
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