Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yma16
yma16_miniprogram
提交
2ebba9e6
Y
yma16_miniprogram
项目概览
yma16
/
yma16_miniprogram
通知
11
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yma16_miniprogram
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
2ebba9e6
编写于
4月 06, 2023
作者:
yma16
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: perf style
上级
c0d8491d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
150 addition
and
22 deletion
+150
-22
miniprogram/pages/index/index.js
miniprogram/pages/index/index.js
+6
-3
miniprogram/pages/index/index.wxml
miniprogram/pages/index/index.wxml
+12
-8
miniprogram/pages/index/index.wxss
miniprogram/pages/index/index.wxss
+132
-11
未找到文件。
miniprogram/pages/index/index.js
浏览文件 @
2ebba9e6
...
...
@@ -15,7 +15,8 @@ Page({
userInfo
:
{},
hasUserInfo
:
false
,
isloading
:
true
,
isOldVersion
:
false
isOldVersion
:
false
,
isShowBottom
:
true
},
getUserInfoBtn
:
function
(
info
)
{
wx
.
showLoading
({
...
...
@@ -105,7 +106,8 @@ Page({
console
.
log
(
'
res jump
'
,
res
)
// 通过 eventChannel 向被打开页面传送数据
res
.
eventChannel
.
emit
(
'
setHomePageData
'
,
{
userInfo
:
thisBack
.
data
.
userInfo
userInfo
:
thisBack
.
data
.
userInfo
,
isShowBottom
:
thisBack
.
data
.
isShowBottom
})
}
})
...
...
@@ -123,7 +125,8 @@ Page({
userName
:
authorPageConfig
.
userName
,
designPlaceholder
:
authorPageConfig
.
designPlaceholder
,
isOldVersion
:
authorPageConfig
.
isOldVersion
,
joinTitle
:
authorPageConfig
.
joinTitle
joinTitle
:
authorPageConfig
.
joinTitle
,
isShowBottom
:
authorPageConfig
.
isShowBottom
})
// this.jumpTohome()
// 页面创建时执行
...
...
miniprogram/pages/index/index.wxml
浏览文件 @
2ebba9e6
<view class="container">
<view class="title">{{title}}</view>
<view class="title"></view>
<view class="text-magic" data-word="{{title}}">
{{title}}
<view class="white">
</view>
</view>
<view class="user-image-box">
<view wx:if="{{isOldVersion}}">
<image class="user-image" src="{{userImageUrl}}"></image>
...
...
@@ -9,16 +14,15 @@
<button class="avatar-wrapper" style="background: transparent;" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
<image class="avatar" class="user-image" src="{{userImageUrl}}"></image>
</button>
<view style="display: flex;width:100%">
<view style="width: 30%;text-align: right;">
<view style="display: flex;width:100%
;text-align: center;
">
<
!-- <
view style="width: 30%;text-align: right;">
{{userPrefix}}
</view>
<view style="width: 50%;text-align: center;">
<input type="nickname" class="weui-input" value="{{userName}}" bindinput="bindKeyInput"
placeholder-style="color: #07c160"
style="width: 100%;border-bottom: 1px solid #ffffff;" placeholder="{{designPlaceholder}}" />
</view> -->
<view style="width:100%;text-align: center;">
<input type="nickname" class="weui-input" value="{{userName}}" bindinput="bindKeyInput" placeholder-style="color: #fff" style="width: 100%;border-bottom: 1px solid #ffffff;" placeholder="{{designPlaceholder}}" />
</view>
</view>
<!-- <l-avatar style="height: 300px;color:#ffffff" text="{{userName}}" placement="bottom" src="{{userImageUrl}}" /> -->
</view>
</view>
...
...
miniprogram/pages/index/index.wxss
浏览文件 @
2ebba9e6
/**index.wxss**/
page {
padding-top: 54rpx;
background:
#05b3ec;
color: #fff
;
/* background: #00416A; */
background:
-webkit-linear-gradient(to top, #E4E5E6, #00416A);
background: linear-gradient(to bottom, rgb(119, 119, 119), #076585)
;
/* fallback for old browsers */
background: -webkit-linear-gradient(to top, #fff, #076585);
/* background: -webkit-linear-gradient(to top, #fff, #076585); */
/* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to top, #fff, #076585);
/* background: linear-gradient(to top, rgb(255, 255, 255), #076585); */
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
background-image: url('https://yongma16.xyz/staticFile/common/img/scene.png');
background-repeat: no-repeat;
background-size: cover;
padding-bottom: 60rpx;
}
.l-avatar-text{
color:#ffffff !important;
}
.login-container{
position: absolute;
...
...
@@ -46,10 +51,12 @@ page {
width: 100px;
height: 100px;
border-radius: 50%;
border: 2px solid #fff;
}
.title {
font-family: PingFang SC;
margin-top:50px;
font-weight: 500;
font-size: 22px;
margin-bottom: 40rpx;
...
...
@@ -142,7 +149,7 @@ page {
text-align: center;
font-size: 12px;
font-weight: bold;
color: #
076585
;
color: #
ffffff
;
}
...
...
@@ -179,19 +186,19 @@ page {
left: 0%;
top: 0%;
animation: rotate-one 1.15s linear infinite;
border-bottom: 3px solid #fff
fff
;
border-bottom: 3px solid #fff;
}
.loader-child:nth-of-type(2) {
right: 0%;
top: 0%;
animation: rotate-two 1.15s linear infinite;
border-right: 3px solid #fff
fff
;
border-right: 3px solid #fff;
}
.loader-child:nth-of-type(3) {
right: 0%;
bottom: 0%;
animation: rotate-three 1.15s linear infinite;
border-top: 3px solid #fff
fff
;
border-top: 3px solid #fff;
}
@keyframes rotate-one {
0% {
...
...
@@ -218,4 +225,118 @@ page {
100% {
transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
}
}
\ No newline at end of file
}
/* 底层 */
.text-magic{
position: relative;
transform:scale(2.4);
font-size: 10px;
text-align: center;
color:#fff;
}
/* 扫描线条黑色 顶层*/
.white{
position: relative;
left:0px;
width:100%;
text-align: center;
height: 1px;
background: rgba(255,255,255,.8);
z-index: 4;
animation: whiteMove 2s ease-out infinite;
}
@keyframes whiteMove{
8%{
top:-10px;
}
14%{
top:-5px;
}
18%{
top:-2px;
}
20%{
top:-8px;
}
32%{
top:-3px;
}
60%{
top:-5px;
}
80%{
top:-8px;
}
99%{
top:-1px;
}
}
/* 红色阴影左移0.5px 第二层*/
.text-magic::before{
position: absolute;
/* 文字内容传递 */
content: attr(data-word);
width: 100%;
top:0;
left:1px;
height:36px;
color:rgba(255,255,255,.9);
z-index: 6;
/* 羽化 */
filter: contrast(200%);
text-shadow: 1px 0 0 rgba(255,255,255,.3);
overflow: hidden;
animation: redShadow 2s ease-in infinite;
}
@keyframes redShadow{
20%{
height: 32px;
}
60%{
height:6px;
}
100%{
height: 42px;
}
}
/* 左移错位-3px 第三层*/
.text-magic::after {
content: attr(data-word);
position: absolute;
top: 0;
left: -0.5px;
height: 36px;
color: rgba(255, 255, 255, 0.5);
overflow: hidden;
z-index: 3;
/* background: rgba(0, 0, 0, 0.9); */
animation: redHeight 2s ease-out infinite;
filter: contrast(200%);
text-shadow: -1px 0 0 rgba(255,255,255,.3);
mix-blend-mode: darken;
}
@keyframes redHeight {
20% {
height: 42px;
}
35% {
height: 12px;
}
50% {
height: 40px;
}
60% {
height: 20px;
}
70% {
height: 34px;
}
80% {
height: 22px;
}
100% {
height: 0px;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录