Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
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
new-sing
h5-base
Commits
fe52c99f
Commit
fe52c99f
authored
Feb 28, 2019
by
wangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下线星星兑换活动
parent
8c77eb04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
60 deletions
+54
-60
address.vue
src/components/buy/address.vue
+17
-8
buy.vue
src/components/buy/buy.vue
+37
-52
No files found.
src/components/buy/address.vue
View file @
fe52c99f
<
template
>
<
template
>
<div
class=
"address"
>
<div
class=
"address"
>
<mt-header
title=
"添加地址"
>
<mt-header
style=
"background: #F93021"
title=
"添加地址"
>
<mt-button
icon=
"back"
slot=
"left"
@
click=
"closeAdd();buttonClick('返回')"
>
返回
</mt-button>
<mt-button
icon=
"back"
slot=
"left"
@
click=
"closeAdd();buttonClick('返回')"
>
返回
</mt-button>
</mt-header>
</mt-header>
<mt-field
label=
"收货人"
v-model=
"receiveName"
></mt-field>
<div
style=
"padding: 10px"
>
<mt-field
label=
"手机号"
v-model=
"receiveMobile"
></mt-field>
<mt-field
label=
"收货人"
v-model=
"receiveName"
></mt-field>
<mt-cell
title=
"所在地区"
:value=
"addressArea"
@
click
.
native=
"showPicker"
is-link
></mt-cell>
<mt-field
label=
"手机号"
v-model=
"receiveMobile"
></mt-field>
<mt-field
label=
"详细地址"
v-model=
"address"
></mt-field>
<mt-cell
title=
"所在地区"
:value=
"addressArea"
@
click
.
native=
"showPicker"
is-link
></mt-cell>
<div
@
click=
"onSave();buttonClick('保存地址')"
class=
"btn"
>
保存
</div>
<mt-field
label=
"详细地址"
v-model=
"address"
></mt-field>
<div
@
click=
"onSave();buttonClick('保存地址')"
class=
"btn"
>
保存并使用
</div>
</div>
<my-address
:showAddressPicker=
"showAddressPicker"
@
save-address=
"saveAddress"
@
hide-picker=
"hidePicker"
:init=
"addressArea"
>
<my-address
:showAddressPicker=
"showAddressPicker"
@
save-address=
"saveAddress"
@
hide-picker=
"hidePicker"
:init=
"addressArea"
>
</my-address>
</my-address>
</div>
</div>
...
@@ -115,6 +117,7 @@ export default {
...
@@ -115,6 +117,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
@import "../../util/public";
image[lazy=loading] {
image[lazy=loading] {
width: 140px;
width: 140px;
height: 300px;
height: 300px;
...
@@ -133,14 +136,20 @@ export default {
...
@@ -133,14 +136,20 @@ export default {
height: 11.73333vw;
height: 11.73333vw;
line-height: 11.73333vw;
line-height: 11.73333vw;
color: #fff;
color: #fff;
font-size: 1.4rem;
text-align: center;
text-align: center;
background: #
60ADF0
;
background: #
F93021
;
-webkit-box-shadow: 0 2px 6.66667vw 0 rgba(200, 205, 220, 0.7);
-webkit-box-shadow: 0 2px 6.66667vw 0 rgba(200, 205, 220, 0.7);
box-shadow: 0 2px 6.66667vw 0 rgba(200, 205, 220, 0.7);
box-shadow: 0 2px 6.66667vw 0 rgba(200, 205, 220, 0.7);
border-radius: 20px;
border-radius: 20px;
margin-left: 1rem;
margin-left: 1rem;
margin-right: 1rem;
margin-right: 1rem;
width: 85vw;
font-size:14*@toVw;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,255,255,1);
position: fixed;
bottom: 20*@toVw;
}
}
}
}
...
...
src/components/buy/buy.vue
View file @
fe52c99f
...
@@ -15,41 +15,37 @@
...
@@ -15,41 +15,37 @@
<div
class=
"block-title"
>
订单信息
</div>
<div
class=
"block-title"
>
订单信息
</div>
<div
class=
"shop-block"
v-if=
"groupDetail.goods_desc"
>
<div
class=
"shop-block"
v-if=
"groupDetail.goods_desc"
>
<div
class=
"shop"
>
<div
class=
"shop"
>
<div
class=
"img-block"
>
<img
:src=
"groupDetail.goods_desc.img[0].url"
>
</div>
<div>
<div>
<div
class=
"title"
>
{{
groupDetail
.
name
}}
</div>
<div
class=
"content"
>
{{
groupDetail
.
goods_desc
.
desc
}}
</div>
<div
class=
"price"
v-if=
"!type"
>
<div
class=
"price"
v-if=
"!type"
>
¥
{{
groupDetail
.
current_price
/
100
}}
¥
{{
groupDetail
.
current_price
/
100
}}
</div>
</div>
<div
class=
"price"
v-if=
"type"
>
<div
class=
"price"
v-if=
"type"
>
¥
{{
groupDetail
.
original_price
/
100
}}
¥
{{
groupDetail
.
original_price
/
100
}}
</div>
</div>
<div
class=
"title"
>
{{
groupDetail
.
name
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"you-block"
v-if=
"groupDetail.goods_type !== 4 &&( saleObj || canSale )"
@
click=
"buttonClick('功能','显示优惠券');showSale()"
>
<div
v-if=
"groupDetail.goods_type !== 4 &&( saleObj || canSale )"
>
优惠券
<img
:src=
"youHuiUrl"
>
<div
class=
"block-title"
>
优惠券
</div>
<div
class=
"you-content"
>
<div
class=
"you-block"
@
click=
"buttonClick('功能','显示优惠券');showSale()"
>
<span
v-if=
"!saleObj && !canSale"
>
暂无可用
</span>
优惠券
<img
:src=
"youHuiUrl"
>
<span
v-if=
"!saleObj && canSale"
style=
"color: #F83534"
>
有可用优惠
</span>
<div
class=
"you-content"
>
<span
v-if=
"saleObj"
style=
"color: #F83534"
>
-
{{
saleObj
.
money
|
price
}}
</span>
<span
v-if=
"!saleObj && !canSale"
>
暂无可用
</span>
>
<span
v-if=
"!saleObj && canSale"
style=
"color: #F83534"
>
有可用优惠
</span>
<span
v-if=
"saleObj"
style=
"color: #F83534"
>
-
{{
saleObj
.
money
|
price
}}
</span>
>
</div>
</div>
</div>
</div>
</div>
<footer>
<!--
<div
v-if=
"groupDetail.is_real !== 1"
class=
"phone-block"
>
-->
<!--
<input
placeholder=
"请输入手机号"
class=
"phone-input"
v-model=
"mobile"
/>
-->
<!--
</div>
-->
<footer>
<div
class=
"sub-block"
>
<div
class=
"sub-block"
>
<span>
¥
{{
priceTotal
}}
</span>
<span>
¥
{{
priceTotal
}}
</span>
<span
class=
"tips-price"
v-if=
"groupDetail.goods_desc"
>
{{
groupDetail
.
goods_desc
.
tips
?
groupDetail
.
goods_desc
.
tips
:
''
}}
</span>
<div
class=
"pay-btn"
@
click=
"payOrder(orderFlag)"
>
确认支付
</div>
<div
class=
"pay-btn"
@
click=
"payOrder(orderFlag)"
>
确认支付
</div>
</div>
</div>
</footer>
</footer>
...
@@ -318,7 +314,8 @@
...
@@ -318,7 +314,8 @@
.you-block{
.you-block{
line-height: 40 * @toVw;
line-height: 40 * @toVw;
height: 40 * @toVw;
height: 40 * @toVw;
padding: 0 15 * @toVw;
padding: 5*@toVw 15 * @toVw;
background: white;
img{
img{
width: 16 * @toVw;
width: 16 * @toVw;
vertical-align: middle;
vertical-align: middle;
...
@@ -395,24 +392,10 @@
...
@@ -395,24 +392,10 @@
}
}
.shop-block{
.shop-block{
background: white;
background: white;
padding:5*@toVw 10*@toVw;
.shop{
.shop{
padding: 20/7.5vw;
padding: 20/7.5vw;
border-bottom: 1px solid #d8d8d8;
position: relative;
position: relative;
&:after{
content:'';
display: block;
clear: both;
}
.img-block{
float: left;
margin-right: 20/7.5vw;
img{
width: 250/7.5vw;
}
min-height: 120px;
}
.title{
.title{
font-size: 18px;
font-size: 18px;
overflow: hidden;
overflow: hidden;
...
@@ -421,34 +404,36 @@
...
@@ -421,34 +404,36 @@
color: #333333;
color: #333333;
margin-bottom: 5/7.5vw;
margin-bottom: 5/7.5vw;
}
}
.content{
font-size: 12px;
line-height: 1.4em;
color: #CCCCCC;
height: 4.2em;
overflow: hidden;
}
.price{
.price{
font-size: 18px;
font-size: 18px;
color: #FF001F;
float: right;
position: absolute;
left: 300/7.5vw;
bottom: 20/7.5vw;
}
}
}
}
}
}
footer{
footer{
position: fixed;
position: fixed;
background: white;
bottom: 0;
bottom: 0;
width: 100%;
width: 100%;
.sub-block{
.sub-block{
border-top: 1px solid #d8d8d8;
border-top: 1px solid #d8d8d8;
padding-left: 20/7.5vw;
padding-left: 20/7.5vw;
line-height: 100/7.5vw;
line-height: 100/7.5vw;
.tips-price{
font-size: 16*@toVw;
display: inline-block;
vertical-align: middle;
max-width: 135*@toVw;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,66,88,1);
white-space: nowrap;
text-overflow:ellipsis;
overflow:hidden;
}
}
}
span{
span{
font-size: 2
0px
;
font-size: 2
4*@toVw
;
color: #F83534;
color: #F83534;
}
}
.pay-btn{
.pay-btn{
...
...
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