调整登录逻辑
This commit is contained in:
24
components/avatar/index.js
Normal file
24
components/avatar/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// components/avatar/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
text: String,
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
4
components/avatar/index.json
Normal file
4
components/avatar/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
2
components/avatar/index.wxml
Normal file
2
components/avatar/index.wxml
Normal file
@@ -0,0 +1,2 @@
|
||||
<!--components/avatar/index.wxml-->
|
||||
<view class="wrapper">{{text}}</view>
|
11
components/avatar/index.wxss
Normal file
11
components/avatar/index.wxss
Normal file
@@ -0,0 +1,11 @@
|
||||
/* components/avatar/index.wxss */
|
||||
.wrapper {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, var(--light-green), var(--middle-green),var(--deep-green) );
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
}
|
Reference in New Issue
Block a user