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 79179ac0
authored
Sep 05, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交用户名片
1 parent
936a2e87
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
108 additions
and
22 deletions
components/UserInfo/UserInfo.js
components/UserInfo/UserInfo.wxml
components/UserInfo/UserInfo.wxss
pages/tab/index/index.wxss
components/UserInfo/UserInfo.js
View file @
79179ac
...
@@ -12,12 +12,19 @@ Component({
...
@@ -12,12 +12,19 @@ Component({
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
showWechant
:
false
},
},
/**
/**
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
addWechat
()
{
console
.
log
(
112
,
this
.
data
.
showWechant
)
this
.
setData
({
showWechant
:
!
this
.
data
.
showWechant
})
console
.
log
(
this
.
data
.
showWechant
)
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
components/UserInfo/UserInfo.wxml
View file @
79179ac
<view class="user-wrapper">
<view class="user-wrapper">
<view class="user-info">
<view class="user-info">
<image class="user-bg" webp src="{{IMGURL}}/home/user-bg.png" />
<block wx:if="{{!showWechant}}">
<view class="user-company">
<view class="user-company">
<image class="company-logo" webp src="{{IMGURL}}/home/logo.png"></image>
<image class="company-logo" webp src="{{IMGURL}}/home/logo.png"></image>
<text>汽车流通行业数字化运营服务商</text>
<text>汽车流通行业数字化运营服务商</text>
</view>
<view class="user-name">
<view class="name">石文</view>
<view class="position">市场总监</view>
</view>
<view class="user-phone">
<image class="user-icon" webp src="{{IMGURL}}/home/icon-phone.png"></image>
<view>13274150220</view>
</view>
<view class="user-address">
<image class="user-icon" webp src="{{IMGURL}}/home/icon-address.png"></image>
<view class="address">深圳市南山区留仙大道3370号南山智园崇文园区1号楼14层</view>
</view>
<image class="user-avatar" src="https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg"></image>
<image bindtap="addWechat" class="add-wechat" webp src="{{IMGURL}}/home/add-wechat.png"></image>
</block>
<view class="scrm" wx:else>
<image class="srcm-img" src="https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg"></image>
<view class="scrm-text">长按识别二维码,免费体验嘀加SCRM</view>
<image bindtap="addWechat" class="add-wechat" webp src="{{IMGURL}}/home/back-user.png"></image>
</view>
</view>
<view class="user-name">
<image class="user-bg" webp src="{{IMGURL}}/home/user-bg.png" />
<view class="name">石文</view>
</view>
<view class="position">市场总监</view>
<view class="btn-group">
<view class="phone-btn">
<image class="icon-dial" webp src="{{IMGURL}}/home/icon-dial.png"></image>
<view class="phone-text">拨打电话</view>
</view>
</view>
<view class="user-phone">
<view class="btn-plain btn">
<image class="user-icon" webp src="{{IMGURL}}/home/icon-phone.png"></image>
保存名片
<view>13274150220</view>
</view>
</view>
<view class="user-address">
<view class="btn-primary btn">
<image class="user-icon" webp src="{{IMGURL}}/home/icon-address.png"></image>
分享名片
<view class="address">深圳市南山区留仙大道3370号南山智园崇文园区1号楼14层</view>
</view>
</view>
<image class="user-avatar" src="https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg"></image>
<image class="add-wechat" webp src="{{IMGURL}}/home/add-wechat.png"></image>
</view>
<view class="btn-group">
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
components/UserInfo/UserInfo.wxss
View file @
79179ac
.user-wrapper {
.user-wrapper {
padding: 24rpx 32rpx
32rpx
;
padding: 24rpx 32rpx;
background-color: #fff;
background-color: #fff;
z-index: -1;
margin-bottom: 20rpx;
}
}
.user-info {
.user-info {
position: relative;
position: relative;
height: 4
00
rpx;
height: 4
16
rpx;
padding: 40rpx 52rpx;
padding: 40rpx 52rpx;
box-shadow: 0 12rpx 32rpx 0 rgba(147, 160, 194, .35);
box-shadow: 0 12rpx 32rpx 0 rgba(147, 160, 194, .35);
border-radius: 16rpx;
border-radius: 16rpx;
...
@@ -17,7 +19,8 @@
...
@@ -17,7 +19,8 @@
right: 0;
right: 0;
bottom: 0;
bottom: 0;
width: 100%;
width: 100%;
height: 400rpx;
height: 416rpx;
z-index: -1;
}
}
.user-company {
.user-company {
display: flex;
display: flex;
...
@@ -91,4 +94,61 @@
...
@@ -91,4 +94,61 @@
right: 0;
right: 0;
width: 112rpx;
width: 112rpx;
height: 120rpx;
height: 120rpx;
}
.scrm {
text-align: center;
z-index: 1;
}
.srcm-img {
margin-top: 44rpx;
width: 192rpx;
height: 192rpx;
}
.scrm-text {
margin-top: 32rpx;
font-size: 28rpx;
color: #2d2d33;
}
.btn-group {
margin-top: 40rpx;
display: flex;
justify-content: space-between;
}
.phone-btn {
width: 136rpx;
height: 88rpx;
box-sizing: border-box;
text-align: center;
padding: 4rpx 32rpx 4rpx 24rpx;
background: #FFFFFF;
box-shadow: 8rpx 0 16rpx 0 rgba(202,211,230,0.30);
}
.icon-dial {
width: 48rpx;
height: 48rpx;
}
.phone-text {
font-size: 20rpx;
color: #6E6E7A;
line-height: 32rpx;
}
.btn {
display: inline-flex;
align-items: center;
padding: 12rpx 56rpx;
font-size: 32rpx;
line-height: 48rpx;
border-radius: 8rpx;
float: right;
}
.btn-plain {
color: #5850ff;
border: 2rpx solid #9B96FF;
/* margin-left: 46rpx; */
}
.btn-primary {
color: #FFFFFF;
background: #5850FF;
/* margin-left: 24rpx; */
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/index.wxss
View file @
79179ac
/* pages/tab/index/index.wxss */
/* pages/tab/index/index.wxss */
@import '../../template/demo/demo.wxss';
@import '../../template/demo/demo.wxss';
@import '../../template/channel/channel.wxss';
@import '../../template/channel/channel.wxss';
page {
background-color: #F5F5F7;
}
.tab-list {
.tab-list {
display: flex;
display: flex;
justify-content: space-evenly
justify-content: space-evenly
...
...
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