Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
33343a9f
Commit
33343a9f
authored
Mar 30, 2022
by
linlinjava
Browse files
feat[litemall-wx]: 优化客服按钮效果
parent
cc70d669
Changes
3
Hide whitespace changes
Inline
Side-by-side
litemall-wx/pages/goods/goods.js
View file @
33343a9f
...
...
@@ -156,6 +156,7 @@ Page({
});
}
}
res
.
data
.
info
.
path
=
"
pages/goods/goods?id=
"
+
that
.
data
.
id
that
.
setData
({
goods
:
res
.
data
.
info
,
...
...
litemall-wx/pages/goods/goods.wxml
View file @
33343a9f
...
...
@@ -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/>
...
...
litemall-wx/pages/goods/goods.wxss
View file @
33343a9f
...
...
@@ -577,24 +577,37 @@
.bottom-btn .l {
float: left;
height: 100rpx;
width:
162
rpx;
width:
90
rpx;
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%;
...
...
Write
Preview
Supports
Markdown
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