Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
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
ui
group-buy-ui
Commits
74a12b6a
Commit
74a12b6a
authored
Sep 08, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理地址行高问题
parent
8d87f9a9
Pipeline
#1136
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
0 deletions
+67
-0
bottomNav.vue
src/views/goodsDetail/components/bottomNav.vue
+67
-0
No files found.
src/views/goodsDetail/components/bottomNav.vue
0 → 100644
View file @
74a12b6a
<
template
>
<div
class=
"goods-bottom"
>
<cr-button
shape=
"circle"
:disabled=
"disabled"
type=
"primary"
block
@
click=
"buy"
>
{{
shopBtnName
}}
</cr-button>
<cr-button
shape=
"circle"
:disabled=
"disabled"
type=
"primary"
block
@
click=
"buy"
>
{{
shopBtnName
}}
</cr-button>
</div>
</
template
>
<
script
>
export
default
{
name
:
'
BottomNav
'
,
props
:
{
type
:
{
type
:
String
,
default
:
'
shopCar
'
// shoppingCar 购物车;settlement 结算;submitOrder 确认订单
},
shopBtnName
:
{
type
:
String
,
default
:
'
立即购买
'
// shoppingCar 购物车;settlement 结算;submitOrder 确认订单
},
info
:
{
type
:
Object
,
default
()
{
return
{};
}
},
disabled
:
{
type
:
Boolean
,
default
:
false
},
goodsId
:
{
type
:
String
,
default
:
''
}
},
methods
:
{
buy
()
{
this
.
$emit
(
'
buy
'
);
},
goHome
()
{
setTimeout
(()
=>
{
this
.
$router
.
push
({
name
:
'
home
'
});
},
500
);
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.goods-bottom {
position: fixed;
left: 0;
bottom: 0;
display: flex;
justify-content: space-evenly;
align-items: center;
width: 100%;
background: @white;
border-top: 2px solid #f7f7f7;
padding: 10px 12px;
box-sizing: border-box;
button {
margin: 0 10px;
}
}
</
style
>
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