12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <template>
- <view>
- <view class="custom-list-item">
- <view class="custom-list-item-left">
- <text>{{ item && item.serialContent }}</text>
- <text>{{ item && item.createTime }}</text>
- </view>
- <text
- class="custom-list-item-right"
- :style="{color: item.serialType == 2 ?'#363636':'#EE0808' }">{{ item.serialType == 2 ?'-':'+' }} {{ item && item.balance }}</text>
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- item: {
- type: Object,
- default: () => {
- return {
- serialType: null,
- balance: null,
- serialContent: null,
- createTime: null
- }
- }
- }
- },
-
- }
- </script>
- <style lang="scss" scoped>
- .custom-list-item {
- width: 100%;
- border-bottom: 2rpx solid #EEEEEE;
- padding: 40rpx 10rpx;
- box-sizing: border-box;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .custom-list-item-left {
- display: flex;
- flex-direction: column;
- font-family: SourceHanSansCN, SourceHanSansCN;
- >text:nth-child(1) {
- margin-bottom: 10rpx;
- font-size: 28rpx;
- font-weight: 400;
- color: #363636;
- }
- >text:nth-child(2) {
- font-size: 24rpx;
- font-weight: 400;
- color: #999999;
- }
- }
- .custom-list-item-right {
- font-size: 28rpx;
- font-family: SourceHanSansCN, SourceHanSansCN;
- font-weight: 400;
- color: #363636;
- white-space: nowrap;
- }
- }
- </style>
|