Commit 33343a9f authored by linlinjava's avatar linlinjava
Browse files

feat[litemall-wx]: 优化客服按钮效果

parent cc70d669
......@@ -156,6 +156,7 @@ Page({
});
}
}
res.data.info.path = "pages/goods/goods?id=" + that.data.id
that.setData({
goods: res.data.info,
......
......@@ -178,14 +178,14 @@
</view>
</view>
<!-- 联系客服 -->
<view class="contact">
<contact-button style="opacity:0;position:absolute;" type="default-dark" session-from="weapp" size="27">
</contact-button>
</view>
<!-- 底部按钮 -->
<view class="bottom-btn">
<view class="l">
<button show-message-card send-message-title="{{ goods.name }}" send-message-path="{{ goods.path }}"
send-message-img="{{ goods.picUrl }}" open-type="contact" class="l-contact">
<van-icon class="icon" name="/static/images/customer.png" />
</button>
</view>
<view class="l l-collect" bindtap="addCollectOrNot" wx:if="{{!isGroupon}}">
<van-icon class="icon" name="star" color="#ab956d" wx:if="{{collect}}"/>
<van-icon class="icon" name="star-o" wx:else/>
......
......@@ -577,24 +577,37 @@
.bottom-btn .l {
float: left;
height: 100rpx;
width: 162rpx;
width: 90rpx;
border: 1px solid #f4f4f4;
display: flex;
align-items: center;
justify-content: center;
}
.bottom-btn .l .l-contact {
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
line-height: 1;
background: #fff;
border-radius: 0;
height: 55rpx;
}
.bottom-btn .l .l-contact:after {
border: none;
border-radius: 0;
}
.bottom-btn .l.l-collect {
border-right: none;
border-left: none;
text-align: center;
width: 90rpx;
}
.bottom-btn .l.l-collect .icon {
position: absolute;
top: 28rpx;
left: 20rpx;
font-size: 44rpx;
}
......@@ -808,19 +821,6 @@
line-height: 65rpx;
}
.contact {
height: 100rpx;
width: 100rpx;
border-radius: 100%;
position: fixed;
bottom: 96rpx;
right: 10rpx;
font-size: 20rpx;
box-sizing: border-box;
background: url("/static/images/customer.png") no-repeat center 21rpx;
background-size: 55rpx auto;
}
.share-pop-box {
width: 100%;
height: 100%;
......
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