Commit 1ead5209 authored by usgeek's avatar usgeek Committed by linlinjava
Browse files

分享样式调整

parent 1890f867
...@@ -5,10 +5,27 @@ ...@@ -5,10 +5,27 @@
</swiper-item> </swiper-item>
</swiper> </swiper>
<!-- 分享 --> <!-- 分享 -->
<view class="service-policy" wx:if="{{!isGroupon}}"> <view class='goods_name'>
<button class="savesharebtn" bindtap="saveShare">分享朋友圈</button> <view class='goods_name_left'>{{goods.name}}</view>
<button class="sharebtn" open-type="share">分享给朋友</button> <view class="goods_name_right" bindtap="shareFriendOrCircle">分享</view>
</view> </view>
<view class="share-pop-box" hidden="{{!openShare}}">
<view class="share-pop">
<view class="close" bindtap="closeShare">
<image class="icon" src="/static/images/icon_close.png"></image>
</view>
<view class='share-info'>
<button class="sharebtn" open-type="share" wx:if="{{!isGroupon}}">
<image class='sharebtn_image' src='/static/images/wechat.png'></image>
<view class='sharebtn_text'>分享给好友</view>
</button>
<button class="savesharebtn" bindtap="saveShare" wx:if="{{!isGroupon}}">
<image class='sharebtn_image' src='/static/images/friend.png'></image>
<view class='sharebtn_text'>发朋友圈</view>
</button>
</view>
</view>
</view>
<view class="goods-info"> <view class="goods-info">
<view class="c"> <view class="c">
<text class="name">{{goods.name}}</text> <text class="name">{{goods.name}}</text>
......
...@@ -790,51 +790,154 @@ ...@@ -790,51 +790,154 @@
background-size: 55rpx auto; background-size: 55rpx auto;
} }
.contact .name {
/*分享样式*/
.goods_name {
/* border: 1px solid black; */
height: 86rpx;
line-height: 86rpx;
border-bottom: 1px solid #fafafa;
}
.goods_name_left {
/* border: 1px solid #757575; */
float: left;
height: 86rpx;
font-weight: 550;
line-height: 86rpx;
margin-left: 35rpx;
font-size: 38rpx;
letter-spacing: 1rpx;
}
.goods_name_right {
float: right;
font-weight: 550;
margin-top: 28rpx;
width: 140rpx;
height: 80rpx;
line-height: 82rpx;
padding: 0;
margin: 0;
margin-right: 0rpx;
text-align: center;
font-size: 25rpx;
color: #f4f4f4;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-top-right-radius: 0rpx;
border-bottom-right-radius: 0rpx;
letter-spacing: 3rpx;
/* background-image: linear-gradient(to right, #ff7701 100%); */
background-image: linear-gradient(to right, #9a9ba1 0%, #9a9ba1 100%);
}
.share-pop-box {
width: 100%;
height: 100%;
position: fixed;
background: rgba(0, 0, 0, 0.5);
z-index: 8;
bottom: 0;
/* display: none; */
}
.share-pop {
width: 100%;
height: auto;
max-height: 780rpx;
padding: 31.25rpx;
background: #fff;
position: fixed;
z-index: 9;
bottom: 100rpx;
}
.share-pop .close {
position: absolute;
width: 48rpx;
height: 48rpx;
right: 31.25rpx;
top: 31.25rpx;
}
.share-pop .close .icon {
width: 48rpx;
height: 48rpx;
}
.share-pop .share-info {
width: 100%;
height: 225rpx;
overflow: hidden;
margin-bottom: 41.5rpx;
}
.sharebtn {
top: 75rpx;
background: none !important;
font-size: 32rpx; font-size: 32rpx;
max-width: 80rpx; color: #fff !important;
color: #fff; border-radius: 0%;
width: 175rpx;
height: 150rpx;
text-align: center; text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
float: left;
background: #fff;
border-bottom: 0px solid #fafafa;
margin-left: 15%;
} }
.service-policy { .sharebtn::after {
width: 100%; border: none;
height: 96rpx; border-radius: 0%;
/* background: #d3b676; */
border: 2px solid #fff;
/* align-items: center; */
} }
.service-policy .sharebtn { .savesharebtn {
width: 49.5%; top: 75rpx;
float: right; background: none !important;
border: none; font-size: 32rpx;
height: 80rpx; color: #fff !important;
font-size: 32rpx; border-radius: 0%;
background: #d3b676; width: 175rpx;
text-align: center; height: 150rpx;
color: #fff; text-align: center;
border-radius:0%; display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
float: right;
background: #fff;
border-bottom: 0px solid #fafafa;
margin-right: 15%;
} }
.service-policy .sharebtn::after { .savesharebtn::after {
border: none; border: none;
border-radius:0%; border-radius: 0%;
} }
.service-policy .savesharebtn { .sharebtn_image {
width: 49.5%; /* border: 1px solid #757575; */
float: left; width: 128rpx;
border: none; height: 128rpx;
height: 80rpx; margin-top: 0rpx;
font-size: 32rpx; }
background: #d3b676; .sharebtn_text {
text-align: center; /* border: 1px solid #757575; */
color: #fff; width: 150rpx;
border-radius:0%; margin-bottom: 2rpx;
} height: 20rpx;
line-height: 20rpx;
.service-policy .savesharebtn::after { font-size: 20rpx;
border: none; color: #555;
border-radius:0%; }
.separate {
background: #e0e3da;
width: 100%;
height: 6rpx;
} }
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment