This commit is contained in:
haomingming
2023-03-06 17:57:39 +08:00
parent 3794faceae
commit 1066e37c96
4230 changed files with 193453 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
// commpents/appraise_data/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
name: {
type: String,
value: '默认姓名',
},
start: {
type: Number,
value: '5',
},
content: {
type: String,
value: '默认评价内筒',
},
date: {
type: String,
value: '2023-01-25 12:09',
},
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
+6
View File
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"t-rate": "tdesign-miniprogram/rate/rate"
}
}
+10
View File
@@ -0,0 +1,10 @@
<view class="item">
<view class="top">
<view class="name">{{name}}</view>
<view class="start">
<t-rate value="{{start}}" count="{{start}}" />
</view>
</view>
<view class="content">{{content}}</view>
<view class="date">{{date}}</view>
</view>
+33
View File
@@ -0,0 +1,33 @@
.item{
display: flex;
padding: 20rpx;
flex-direction: column;
border-bottom: 1px solid #E7E7E7;
}
.top{
display: flex;
justify-content: space-between;
align-items: center;
flex: 1;
}
.name{
flex: 1;
font-size: 30rpx;
color: #666666;
}
.start{
flex: 1;
display: flex;
justify-content: flex-end;
}
.content{
flex: 2;
font-size: 34rpx;
color: #333333;
margin: 20rpx 0;
}
.date{
flex: 1;
font-size: 28rpx;
color: #666666;
}