Initial commit
Made-with: Cursor
This commit is contained in:
4
srde/miniprogram/components/risk-card/risk-card.json
Normal file
4
srde/miniprogram/components/risk-card/risk-card.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
7
srde/miniprogram/components/risk-card/risk-card.ts
Normal file
7
srde/miniprogram/components/risk-card/risk-card.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
Component({
|
||||
properties: {
|
||||
title: { type: String, value: '' },
|
||||
value: { type: String, value: '' },
|
||||
sub: { type: String, value: '' },
|
||||
},
|
||||
});
|
||||
5
srde/miniprogram/components/risk-card/risk-card.wxml
Normal file
5
srde/miniprogram/components/risk-card/risk-card.wxml
Normal file
@@ -0,0 +1,5 @@
|
||||
<view class="risk-card card">
|
||||
<view class="card-title">{{title}}</view>
|
||||
<view class="value">{{value}}</view>
|
||||
<view class="sub" wx:if="{{sub}}">{{sub}}</view>
|
||||
</view>
|
||||
14
srde/miniprogram/components/risk-card/risk-card.wxss
Normal file
14
srde/miniprogram/components/risk-card/risk-card.wxss
Normal file
@@ -0,0 +1,14 @@
|
||||
.risk-card {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.risk-card .value {
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
.risk-card .sub {
|
||||
font-size: 24rpx;
|
||||
color: #888;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user