Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ae8ce5cf
authored
Dec 21, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加分享功能
1 parent
6ffc3ea1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
9 deletions
components/PhoneNumber/PhoneNumber.scss
components/PhoneNumber/PhoneNumber.wxml
components/PhoneNumber/PhoneNumber.scss
View file @
ae8ce5c
...
@@ -8,13 +8,16 @@
...
@@ -8,13 +8,16 @@
box-shadow
:
inset
0
2rpx
0
0
#F2F3F7
;
box-shadow
:
inset
0
2rpx
0
0
#F2F3F7
;
padding
:
16rpx
48rpx
;
padding
:
16rpx
48rpx
;
filter
:
blur
(
0
);
filter
:
blur
(
0
);
.home-btn
{
.home-btn
{
width
:
100%
;
width
:
100%
;
}
}
.video-btn
{
.video-btn
{
display
:
flex
;
display
:
flex
;
flex
:
1
;
flex
:
1
;
}
}
.phoneNumber
{
.phoneNumber
{
width
:
100%
;
width
:
100%
;
color
:
#fff
;
color
:
#fff
;
...
@@ -22,10 +25,11 @@
...
@@ -22,10 +25,11 @@
font-weight
:
500
;
font-weight
:
500
;
font-size
:
32rpx
;
font-size
:
32rpx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
letter-spacing
:
0
;
letter-spacing
:
0
;
height
:
72rpx
;
height
:
72rpx
;
line-height
:
72rpx
;
line-height
:
72rpx
;
}
}
.forward-box
{
.forward-box
{
width
:
136rpx
;
width
:
136rpx
;
padding
:
4rpx
44rpx
;
padding
:
4rpx
44rpx
;
...
@@ -33,20 +37,23 @@
...
@@ -33,20 +37,23 @@
text-align
:
center
;
text-align
:
center
;
margin-right
:
40rpx
;
margin-right
:
40rpx
;
margin-top
:
-16rpx
;
margin-top
:
-16rpx
;
box-shadow
:
8rpx
0
16rpx
0
rgba
(
202
,
211
,
230
,
0
.30
);
box-shadow
:
8rpx
0
16rpx
0
rgba
(
202
,
211
,
230
,
0
.30
);
.forward-text
{
.forward-text
{
line-height
:
32rpx
;
line-height
:
32rpx
;
}
}
.icon-forward
{
.icon-forward
{
width
:
48rpx
;
width
:
48rpx
;
height
:
48rpx
;
height
:
48rpx
;
}
}
}
}
button
{
button
{
margin
:
0
;
margin
:
0
;
line-height
:
88rpx
;
line-height
:
88rpx
;
}
}
// 了解更多的样式
// 了解更多的样式
.phone-number
{
.phone-number
{
display
:
flex
;
display
:
flex
;
...
@@ -61,44 +68,69 @@
...
@@ -61,44 +68,69 @@
background-image
:
linear-gradient
(
180deg
,
#4791FF
0%
,
#5850FF
100%
,
#643DFF
100%
);
background-image
:
linear-gradient
(
180deg
,
#4791FF
0%
,
#5850FF
100%
,
#643DFF
100%
);
border-radius
:
8rpx
;
border-radius
:
8rpx
;
line-height
:
72rpx
;
line-height
:
72rpx
;
.icon-arrow
{
.icon-arrow
{
width
:
32rpx
;
width
:
32rpx
;
height
:
32rpx
;
height
:
32rpx
;
}
}
.icon-arrow
:first-child
{
.icon-arrow
:first-child
{
margin-right
:
48rpx
;
margin-right
:
48rpx
;
}
}
.icon-arrow
:last-child
{
.icon-arrow
:last-child
{
margin-left
:
48rpx
;
margin-left
:
48rpx
;
}
}
}
}
.video-box
{
.video-box
{
display
:
inline-flex
;
display
:
inline-flex
;
margin-right
:
20rpx
;
margin-right
:
20rpx
;
.btn-item
{
.btn-item
{
width
:
100rpx
;
width
:
100rpx
;
text-align
:
center
;
text-align
:
center
;
.btn-text
{
.btn-text
{
font-weight
:
500
;
font-weight
:
500
;
font-size
:
20rpx
;
font-size
:
20rpx
;
color
:
#5A6066
;
color
:
#5A6066
;
}
}
}
}
.icon-forward
{
.icon-forward
{
width
:
40rpx
;
width
:
40rpx
;
height
:
40rpx
;
height
:
40rpx
;
}
}
.phoneNumber
{
}
.phoneNumber
{
}
}
}
}
}
// .isFullSucreen {
// .isFullSucreen {
// width: 100%;
// width: 100%;
// }
// }
.product_full
{
.product_full
{
flex
:
1
;
flex
:
1
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
.forward_box
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
padding
:
0
!
important
;
margin
:
0
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
10px
;
color
:
#6E6E7A
;
background
:
#fff
;
box-shadow
:
4px
0
8px
0
rgba
(
202
,
211
,
230
,
0
.30
);
.icon-forward
{
flex-shrink
:
0
;
}
}
\ No newline at end of file
\ No newline at end of file
components/PhoneNumber/PhoneNumber.wxml
View file @
ae8ce5c
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
</view>
</view>
<view wx:if="{{type == 'product'}}" class="isFullSucreen product_full">
<view wx:if="{{type == 'product'}}" class="isFullSucreen product_full">
<block wx:if="{{hasPhone}}">
<block wx:if="{{hasPhone}}">
<
view class="forward-box
">
<
button class="forward-box forward_box" open-type="share
">
<image class="icon-forward" webp src="{{IMGURL}}home/icon-forward.png"></image>
<image class="icon-forward" webp src="{{IMGURL}}home/icon-forward.png"></image>
<view class="forward-text" bindtap="forward">转发</view>
<view class="forward-text" bindtap="forward">转发</view>
</
view
>
</
button
>
<button class="phoneNumber" bindtap="jump">申请合作</button>
<button class="phoneNumber" bindtap="jump">申请合作</button>
</block>
</block>
<block wx:else>
<block wx:else>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment