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 4ff355b9
authored
Sep 17, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化
1 parent
028e6c14
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
100 additions
and
46 deletions
components/PhoneNumber/PhoneNumber.js
components/UserInfo/UserInfo.wxss
pages/tab/index/index.js
pages/tab/index/index.skeleton.wxml
pages/tab/index/index.skeleton.wxss
pages/tab/index/index.wxml
pages/tab/index/index.wxss
pages/template/clue/clue.wxml
pages/template/cube/cube.wxml
pages/template/cube/cube.wxss
pages/template/equity/equity.wxml
pages/template/menu/menu.wxss
components/PhoneNumber/PhoneNumber.js
View file @
4ff355b
...
...
@@ -19,6 +19,7 @@ Component({
methods
:
{
// 获取手机号
getPhoneNumber
({
detail
})
{
wx
.
$util
.
showLoading
(
'正在授权...'
)
getApp
()
.
login
(
true
)
.
then
(({
data
})
=>
{
...
...
@@ -31,6 +32,7 @@ Component({
delete
detail
.
errMsg
;
if
(
detail
.
iv
&&
detail
.
encryptedData
)
{
ssoApi
.
authUserPhone
(
detail
).
then
(({
data
,
code
,
message
})
=>
{
wx
.
hideLoading
()
if
(
code
==
0
)
{
wx
.
$util
.
setUserInfo
(
data
);
wx
.
$util
.
setSessionId
(
data
.
sessionId
);
...
...
components/UserInfo/UserInfo.wxss
View file @
4ff355b
...
...
@@ -47,6 +47,7 @@
}
.user-name .name {
font-size: 44rpx;
font-weight: 700;
color: #111111;
line-height: 72rpx;
}
...
...
@@ -154,6 +155,7 @@ button::after {
.btn-plain {
color: #5850ff;
border: 2rpx solid #9B96FF;
background-color: #fff;
/* margin-left: 46rpx; */
}
.btn-primary {
...
...
pages/tab/index/index.js
View file @
4ff355b
...
...
@@ -40,7 +40,7 @@ Page({
// icon1: "icon-cooperation",
// },
],
curTabIndex
:
0
,
curTabIndex
:
1
,
// 0-员工,1-代理商
customerType
:
0
,
// 是否授权昵称
...
...
@@ -99,7 +99,7 @@ Page({
// 设置手机号
getPhoneNumber
()
{
this
.
setData
({
hasPhoneNumber
:
tru
e
,
hasPhoneNumber
:
fals
e
,
});
},
...
...
pages/tab/index/index.skeleton.wxml
View file @
4ff355b
<!--
此文件为开发者工具生成,生成时间: 2022/9/
9下午3:55:54
此文件为开发者工具生成,生成时间: 2022/9/
17下午3:18:38
使用方法:
在 D:\workCode\2022-09\ai-card\pages\tab\index\index.wxml 引入模板
...
...
@@ -18,7 +18,7 @@
<template name="skeleton">
<view class="sk-container">
<view class="main-box">
<view is="components/UserInfo/UserInfo">
<view is="components/UserInfo/UserInfo"
hidden="{{cardInfo}}"
>
<view class="UserInfo--user-wrapper">
<view class="UserInfo--user-box">
<view class="UserInfo--user-info" data-item="[object Object]">
...
...
@@ -26,16 +26,16 @@
<image class="UserInfo--company-logo sk-image"></image>
</view>
<view class="UserInfo--user-name">
<view class="UserInfo--name sk-transparent sk-text-1
6-6667-707 sk-text">李崇源
</view>
<view class="UserInfo--position sk-transparent sk-text-14-2857-
250 sk-text">啦啦啦
</view>
<view class="UserInfo--name sk-transparent sk-text-1
9-4444-814 sk-text">虚拟员工
</view>
<view class="UserInfo--position sk-transparent sk-text-14-2857-
785 sk-text">虚拟职位
</view>
</view>
<view class="UserInfo--user-phone">
<image webp="true" class="UserInfo--user-icon sk-image"></image>
<view class="sk-transparent sk-text-12-5000-
755 sk-text">15778727124
</view>
<view class="sk-transparent sk-text-12-5000-
404 sk-text">xxxxxxxx
</view>
</view>
<view class="UserInfo--user-address">
<image webp="true" class="UserInfo--user-icon sk-image"></image>
<view class="UserInfo--address sk-transparent sk-text-12-5000-
970
sk-text">深圳市南山区留仙大道3370号南山智园崇文园区1号楼14层</view>
<view class="UserInfo--address sk-transparent sk-text-12-5000-
556
sk-text">深圳市南山区留仙大道3370号南山智园崇文园区1号楼14层</view>
</view>
<image lazy-load="true" class="UserInfo--user-avatar sk-image"></image>
<image webp="true" class="UserInfo--add-wechat sk-image"></image>
...
...
@@ -45,7 +45,7 @@
<view class="UserInfo--btn-group">
<view class="UserInfo--phone-btn">
<image webp="true" class="UserInfo--icon-dial sk-image"></image>
<view class="UserInfo--phone-text sk-transparent sk-text-14-2857-
3
5 sk-text" style="background-position-x: 50%;">拨打电话</view>
<view class="UserInfo--phone-text sk-transparent sk-text-14-2857-
44
5 sk-text" style="background-position-x: 50%;">拨打电话</view>
</view>
<button class="UserInfo--btn-plain UserInfo--btn sk-transparent sk-button sk-pseudo sk-pseudo-circle">保存名片</button>
<button class="UserInfo--btn-primary UserInfo--btn sk-transparent sk-button sk-pseudo sk-pseudo-circle" open-type="share">分享名片</button>
...
...
@@ -57,27 +57,42 @@
<view class="channel-bg">
<image webp="true" class="channel-img sk-image" data-name="logo" mode="widthFix" style="height: 71.7949px;"></image>
<view class="channel-word">
<view class="channel-title sk-transparent sk-text-17-8571-
311
sk-text">面向渠道</view>
<view class="channel-text sk-transparent sk-text-16-6667-
334
sk-text">助力数字化转型,实现获客增值</view>
<view class="channel-title sk-transparent sk-text-17-8571-
558
sk-text">面向渠道</view>
<view class="channel-text sk-transparent sk-text-16-6667-
529
sk-text">助力数字化转型,实现获客增值</view>
</view>
</view>
<view class="tab-list">
<view class="tab-item
tab-item-active sk-image
" data-index="0" data-name="[object Object]">
<view class="tab-item" data-index="0" data-name="[object Object]">
<image webp="true" class="tab-img sk-image" mode="widthFix" style="height: 36px;"></image>
<view class="tab-text sk-transparent sk-text-14-2857-
558
sk-text" style="background-position-x: 50%;">公司介绍</view>
<view class="tab-text sk-transparent sk-text-14-2857-
87
sk-text" style="background-position-x: 50%;">公司介绍</view>
</view>
<view class="tab-item" data-index="1" data-name="[object Object]">
<view class="tab-item
tab-item-active sk-image
" data-index="1" data-name="[object Object]">
<image webp="true" class="tab-img sk-image" mode="widthFix" style="height: 36px;"></image>
<view class="tab-text sk-transparent sk-text-14-2857-
567
sk-text" style="background-position-x: 50%;">方案介绍</view>
<view class="tab-text sk-transparent sk-text-14-2857-
646
sk-text" style="background-position-x: 50%;">方案介绍</view>
</view>
<view class="tab-item" data-index="2" data-name="[object Object]">
<image webp="true" class="tab-img sk-image" mode="widthFix" style="height: 36px;"></image>
<view class="tab-text sk-transparent sk-text-14-2857-6
82
sk-text" style="background-position-x: 50%;">视频直播</view>
<view class="tab-text sk-transparent sk-text-14-2857-6
69
sk-text" style="background-position-x: 50%;">视频直播</view>
</view>
</view>
<view class="box-wrapper">
<view class="sk-transparent sk-text-14-2857-396 sk-text" style="background-position-x: 50%;">广联数科</view>
<image class="m-t-md sk-image"></image>
<view class="menu-list">
<view class="menu-item menu-active sk-transparent sk-text-34-0909-543 sk-text sk-pseudo sk-pseudo-circle" data-index="0">
企微魔方
</view>
<view class="menu-item sk-transparent sk-text-35-2273-137 sk-text" data-index="1">
数字化权益
</view>
<view class="menu-item sk-transparent sk-text-35-2273-433 sk-text" data-index="2">
智能线索
</view>
<view class="menu-item sk-transparent sk-text-35-2273-571 sk-text" data-index="3">
D+增值转化
</view>
</view>
<view class="isFullSucreen">
<view class="p-b-20">
<image webp="true" class="img sk-image" mode="widthFix" style="height: 1318.16px;"></image>
</view>
</view>
</view>
</view>
...
...
pages/tab/index/index.skeleton.wxss
View file @
4ff355b
/*
此文件为开发者工具生成,生成时间: 2022/9/
9下午3:55:54
此文件为开发者工具生成,生成时间: 2022/9/
17下午3:18:38
在 D:\workCode\2022-09\ai-card\pages\tab\index\index.wxss 中引入样式
```
...
...
@@ -11,8 +11,8 @@
.sk-transparent {
color: transparent !important;
}
.sk-text-1
6-6667-707
{
background-image: linear-gradient(transparent 1
6.6667%, #EEEEEE 0%, #EEEEEE 83.3333
%, transparent 0%) !important;
.sk-text-1
9-4444-814
{
background-image: linear-gradient(transparent 1
9.4444%, #EEEEEE 0%, #EEEEEE 80.5556
%, transparent 0%) !important;
background-size: 100% 72.0000rpx;
position: relative !important;
}
...
...
@@ -23,54 +23,69 @@
color: transparent !important;
background-repeat: repeat-y !important;
}
.sk-text-14-2857-
250
{
.sk-text-14-2857-
785
{
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 3
9.2
000rpx;
background-size: 100% 3
6.4
000rpx;
position: relative !important;
}
.sk-text-12-5000-
755
{
.sk-text-12-5000-
404
{
background-image: linear-gradient(transparent 12.5000%, #EEEEEE 0%, #EEEEEE 87.5000%, transparent 0%) !important;
background-size: 100% 32.0000rpx;
position: relative !important;
}
.sk-text-12-5000-
970
{
.sk-text-12-5000-
556
{
background-image: linear-gradient(transparent 12.5000%, #EEEEEE 0%, #EEEEEE 87.5000%, transparent 0%) !important;
background-size: 100% 32.0000rpx;
position: relative !important;
}
.sk-text-14-2857-
3
5 {
.sk-text-14-2857-
44
5 {
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 28.0000rpx;
position: relative !important;
}
.sk-text-17-8571-
311
{
.sk-text-17-8571-
558
{
background-image: linear-gradient(transparent 17.8571%, #EEEEEE 0%, #EEEEEE 82.1429%, transparent 0%) !important;
background-size: 100% 56.0000rpx;
position: relative !important;
}
.sk-text-16-6667-
334
{
.sk-text-16-6667-
529
{
background-image: linear-gradient(transparent 16.6667%, #EEEEEE 0%, #EEEEEE 83.3333%, transparent 0%) !important;
background-size: 100% 36.0000rpx;
position: relative !important;
}
.sk-text-14-2857-
558
{
.sk-text-14-2857-
87
{
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 33.6000rpx;
position: absolute !important;
}
.sk-text-14-2857-
567
{
.sk-text-14-2857-
646
{
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 33.6000rpx;
position: absolute !important;
}
.sk-text-14-2857-6
82
{
.sk-text-14-2857-6
69
{
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 33.6000rpx;
position: absolute !important;
}
.sk-text-14-2857-396 {
background-image: linear-gradient(transparent 14.2857%, #EEEEEE 0%, #EEEEEE 85.7143%, transparent 0%) !important;
background-size: 100% 44.8000rpx;
.sk-text-34-0909-543 {
background-image: linear-gradient(transparent 34.0909%, #EEEEEE 0%, #EEEEEE 65.9091%, transparent 0%) !important;
background-size: 100% 88.0000rpx;
position: relative !important;
}
.sk-text-35-2273-137 {
background-image: linear-gradient(transparent 35.2273%, #EEEEEE 0%, #EEEEEE 64.7727%, transparent 0%) !important;
background-size: 100% 88.0000rpx;
position: relative !important;
}
.sk-text-35-2273-433 {
background-image: linear-gradient(transparent 35.2273%, #EEEEEE 0%, #EEEEEE 64.7727%, transparent 0%) !important;
background-size: 100% 88.0000rpx;
position: relative !important;
}
.sk-text-35-2273-571 {
background-image: linear-gradient(transparent 35.2273%, #EEEEEE 0%, #EEEEEE 64.7727%, transparent 0%) !important;
background-size: 100% 88.0000rpx;
position: relative !important;
}
.sk-button {
...
...
pages/tab/index/index.wxml
View file @
4ff355b
...
...
@@ -3,7 +3,7 @@
<import src="../../template/company/company.wxml" />
<import src="../../template/menu/menu.wxml" />
<import src="index.skeleton.wxml"/>
<template is="skeleton" wx:if="
{{!cardInfo}}
" />
<template is="skeleton" wx:if="
true
" />
<view class="main-box" wx:if="{{cardInfo}}" >
<user-info data-skeleton-hide="cardInfo" cardInfo="{{cardInfo}}"></user-info>
<view class="main-bottom">
...
...
pages/tab/index/index.wxss
View file @
4ff355b
...
...
@@ -151,4 +151,13 @@ page {
}
.icon-arrow:last-child {
margin-left: 48rpx;
}
/* 了解更多 */
.more-box {
position: relative;
}
.more-btn {
position: absolute;
width: 100%;
bottom: 32rpx;
}
\ No newline at end of file
pages/template/clue/clue.wxml
View file @
4ff355b
...
...
@@ -7,7 +7,7 @@
<video poster="{{IMGURL}}image/clue/clue-img14.png?v={{img_version}}" src="{{IMGURL}}image/clue/clue.mp4?v={{img_version}}"></video>
</view>
</view>
<phone-number bind:getPhoneNumber="getPhoneNumber" wx:if="{{!hasPhoneNumber}}"></phone-number>
<view wx:if="{{hasPhoneNumber}}">
<view class="relative m-t-64">
<image mode="widthFix" class="img" webp src="{{IMGURL}}image/clue/clue-bg.webp?v={{img_version}}"></image>
...
...
@@ -28,8 +28,11 @@
</view>
</view>
</view>
<view wx:else>
<image mode="widthFix" class="img" webp src="{{IMGURL}}image/clue/clue-img16.webp?v={{img_version}}"></image>
<view class="more-box" wx:else>
<image mode="widthFix" class="img m-t-16" webp src="{{IMGURL}}image/clue/clue-img16.webp?v={{img_version}}"></image>
<view class="more-btn">
<phone-number bind:getPhoneNumber="getPhoneNumber"></phone-number>
</view>
</view>
</view>
</template>
\ No newline at end of file
pages/template/cube/cube.wxml
View file @
4ff355b
...
...
@@ -2,7 +2,6 @@
<template name="cube">
<view class="p-b-20">
<image mode="widthFix" class="img" webp src="{{IMGURL}}image/cube/cube-img3.png?v={{img_version}}"></image>
<phone-number bind:getPhoneNumber="getPhoneNumber" wx:if="{{!hasPhoneNumber}}"></phone-number>
<view wx:if="{{hasPhoneNumber}}">
<image mode="widthFix" lazy-load class="img m-t-64" src="{{IMGURL}}image/cube/cube-img1.png?v={{img_version}}"></image>
<view class="relative">
...
...
@@ -18,8 +17,11 @@
</view>
</view>
</view>
<view wx:else>
<image mode="widthFix" class="img" webp src="{{IMGURL}}image/cube/cube-img4.png?v={{img_version}}"></image>
<view class="more-box" wx:else>
<image mode="widthFix" class="img m-t-16" webp src="{{IMGURL}}image/cube/cube-img4.png?v={{img_version}}"></image>
<view class="more-btn">
<phone-number bind:getPhoneNumber="getPhoneNumber"></phone-number>
</view>
</view>
</view>
</template>
\ No newline at end of file
pages/template/cube/cube.wxss
View file @
4ff355b
.m-t-64 {
margin-top: 64rpx;
margin-top: 24rpx;
}
.m-t-16 {
margin-top: 16rpx;
}
.box-video {
position: absolute;
...
...
pages/template/equity/equity.wxml
View file @
4ff355b
...
...
@@ -7,15 +7,17 @@
<video poster="{{IMGURL}}image/equity/equity-img7.webp?v={{img_version}}" src="{{IMGURL}}image/equity/equity.mp4?v={{img_version}}"></video>
</view>
</view>
<phone-number bind:getPhoneNumber="getPhoneNumber" wx:if="{{!hasPhoneNumber}}"></phone-number>
<view wx:if="{{hasPhoneNumber}}">
<image mode="widthFix" class="img m-t-64" lazy-load webp src="{{IMGURL}}image/equity/equity-img2.webp?v={{img_version}}"></image>
<image mode="widthFix" class="img m-t-64" lazy-load webp src="{{IMGURL}}image/equity/equity-img3.webp?v={{img_version}}"></image>
<image mode="widthFix" class="img m-t-64" lazy-load webp src="{{IMGURL}}image/equity/equity-img4.webp?v={{img_version}}"></image>
<image mode="widthFix" class="img m-t-64" lazy-load webp src="{{IMGURL}}image/equity/equity-img5.webp?v={{img_version}}"></image>
</view>
<view wx:else>
<image mode="widthFix" class="img m-t-64" lazy-load webp src="{{IMGURL}}image/equity/equity-img6.webp?v={{img_version}}"></image>
<view class="more-box" wx:else>
<image mode="widthFix" class="img m-t-16" lazy-load webp src="{{IMGURL}}image/equity/equity-img6.webp?v={{img_version}}"></image>
<view class="more-btn">
<phone-number bind:getPhoneNumber="getPhoneNumber"></phone-number>
</view>
</view>
</view>
</template>
\ No newline at end of file
pages/template/menu/menu.wxss
View file @
4ff355b
...
...
@@ -2,6 +2,7 @@
display: flex;
justify-content: space-evenly;
background-color: #fff;
margin-top: 16rpx;
}
.menu-item {
position: relative;
...
...
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