Commit 936a2e87 by 胡悦

添加名片

1 parent 117df167
<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" />
<view class="user-company"> <view class="user-company">
<image webp src="{{IMGURL}}/home/logo.png"></image> <image class="company-logo" webp src="{{IMGURL}}/home/logo.png"></image>
<text>汽车流通行业数字化运营服务商</text> <text>汽车流通行业数字化运营服务商</text>
</view> </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 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
...@@ -3,17 +3,27 @@ ...@@ -3,17 +3,27 @@
background-color: #fff; background-color: #fff;
} }
.user-info { .user-info {
height: 416rpx; position: relative;
height: 400rpx;
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;
box-sizing: border-box;
}
.user-bg {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 400rpx;
} }
.user-company { .user-company {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.user-company image { .company-logo{
width: 112rpx; width: 112rpx;
height: 24rpx; height: 24rpx;
} }
...@@ -22,4 +32,63 @@ ...@@ -22,4 +32,63 @@
line-height: 24rpx; line-height: 24rpx;
color: #2d2d33; color: #2d2d33;
margin-left: 16rpx; margin-left: 16rpx;
}
.user-name {
display: flex;
align-items: baseline;
margin-top: 24rpx;
}
.user-name .name {
font-size: 48rpx;
color: #111111;
line-height: 72rpx;
}
.user-name .position {
font-weight: 400;
font-size: 28rpx;
color: #6E6E7A;
margin-left: 20rpx;
}
.user-phone {
display: flex;
align-items: center;
font-size: 24rpx;
color: #2D2D33;
line-height: 32rpx;
margin-top: 96rpx;
}
.user-icon {
width: 24rpx;
height: 24rpx;
margin-right: 8rpx;
}
.user-address {
display: flex;
align-items: baseline;
font-size: 24rpx;
color: #2D2D33;
line-height: 32rpx;
margin-top: 16rpx;
}
.user-address .address {
width: 438rpx;
}
.user-avatar {
position: absolute;
width: 128rpx;
height: 128rpx;
border-radius: 8rpx;
top: 48rpx;
right: 36rpx;
}
.add-wechat {
position: absolute;
bottom: 0;
right: 0;
width: 112rpx;
height: 120rpx;
} }
\ No newline at end of file \ No newline at end of file
/*
* @Description:
* @Author: huyue
* @Date: 2022-08-30 11:26:21
* @LastEditors: huyue
* @LastEditTime: 2022-09-02 13:48:49
*/
// pages/tab/index/index.js // pages/tab/index/index.js
Page({ Page({
/** /**
...@@ -13,6 +20,9 @@ Page({ ...@@ -13,6 +20,9 @@ Page({
case "城市合伙人": case "城市合伙人":
wx.$router.go("applicationPartener"); wx.$router.go("applicationPartener");
break; break;
case "视频直播":
console.log('跳转直播')
break;
default: default:
this.setData({ this.setData({
introduceName: name, introduceName: name,
......
<!--pages/tab/index/index.wxml--> <!-- pages/tab/index/index.wxml -->
<user-info></user-info> <user-info></user-info>
<import src="../../template/channel/channel.wxml" /> <import src="../../template/channel/channel.wxml" />
<template is="channel"></template> <template is="channel"></template>
<view class="tab-list"> <view class="tab-list">
<view class="tab-item" data-name="公司介绍" bindtap="introduce"> <view class="tab-item" data-name="公司介绍" bindtap="introduce">公司介绍</view>
公司介绍 <view class="tab-item" data-name="产品介绍" bindtap="introduce">产品介绍</view>
</view> <view class="tab-item" data-name="视频直播" bindtap="introduce">视频直播</view>
<view class="tab-item" data-name="产品介绍" bindtap="introduce"> <view class="tab-item" data-name="城市合伙人" bindtap="introduce">城市合伙人</view>
产品介绍
</view>
<view class="tab-item" data-name="视频直播" bindtap="introduce">
视频直播
</view>
<view class="tab-item" data-name="城市合伙人" bindtap="introduce">
城市合伙人
</view>
</view> </view>
<view>{{introduceName}}</view> {{introduceName}}
<import src="../../template/company/company.wxml" />
<block >
<template is="company"></template>
</block>
<!-- <view>{{introduceName}}</view> -->
<view hidden="{{introduceName != '产品介绍'}}"> <view hidden="{{introduceName != '产品介绍'}}">
产品介绍 <view class="tab-list">
<view class="tab-list"> <view class="tab-item">企微魔方</view>
<view class="tab-item"> <view class="tab-item">数字化权益</view>
企微魔方 <view class="tab-item">智能线索</view>
<view class="tab-item">D+增值转化</view>
</view> </view>
<view class="tab-item">
数字化权益
</view>
<view class="tab-item">
智能线索
</view>
<view class="tab-item">
D+增值转化
</view>
</view>
</view> </view>
<import src="../../template/demo/demo.wxml" />
<template is="demo"></template>
<button bindtap="jump">免费申请体验账号</button>
\ No newline at end of file \ No newline at end of file
<button class="application" bindtap="jump">免费申请体验账号</button>
\ No newline at end of file \ No newline at end of file
...@@ -7,4 +7,9 @@ ...@@ -7,4 +7,9 @@
} }
.tab-item { .tab-item {
background-color: bisque; background-color: bisque;
}
.application {
position: fixed;
bottom: 0;
width: 100%;
} }
\ No newline at end of file \ No newline at end of file
<template name="company">
<text hidden="{{introduceName != '公司介绍'}}">公司介绍的页面</text>
</template>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!