Commit 7661cb8e by jscat

remove useless folder

parent 2085c5fa
// components/tag/tag.js
// components/tag/tag.js
Component({
/**
* 组件的属性列表
*/
properties: {
img: String,
name: String,
typeid: String
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
onTap: function (event) {
this.triggerEvent('tapping', {
idx: this.properties.typeid
})
}
}
})
{
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<view class='type-container' bind:tap="onTap" data-typeid="{{typeid}}">
<view class='type-container' bind:tap="onTap" data-typeid="{{typeid}}">
<view class='circle'>
<image src='{{img}}'></image>
</view>
<text>{{name}}</text>
</view>
\ No newline at end of file
.type-container{
.type-container{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.type-container .circle{
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 13rpx;
width: 100rpx;
height: 100rpx;
border-radius: 50%;
background-color: #444446;
}
.type-container .circle image{
width: 50rpx;
height: 50rpx;
}
.type-container text{
font-size: 20rpx;
font-weight: bold;
color: #767676;
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论