1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <template>
- <view class="examination">
- <view @click="itemClick(item)" class="examination-item" v-for="(item,index) in list" :key="index">
- <view class="examination-item-color">
- </view>
- <view class="examination-item-text">
- <view class="examination-item-text-top">
- {{item.title}}
- </view>
- <view class="examination-item-text-bottom">
- {{item.date}}
- </view>
- </view>
- <view class="examination-item-icon">
- <uni-icons color='#999' type="right" size="20"></uni-icons>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: "examination",
- props: {
- list: {
- type: Array,
- default: () => []
- }
- },
- data() {
- return {
- };
- },
- methods:{
- itemClick(item){
- this.$emit('click',item)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .examination {
- width: 100%;
- .examination-item {
- width: 100%;
- height: 108rpx;
- background-color: #fff;
- border-radius: 10rpx;
- box-shadow: 0px 0px 6.67px 0px rgba(147, 147, 147, 0.20);
- margin-bottom: 32rpx;
- display: flex;
- align-items: center;
- padding: 0 32rpx;
- box-sizing: border-box;
- .examination-item-color {
- width: 16rpx;
- height: 16rpx;
- border-radius: 50%;
- background-color: #05CCA1;
- margin-right: 20rpx;
- }
- .examination-item-text {
- flex: 1;
- .examination-item-text-bottom {
- color: #999;
- }
- }
- }
- }
- </style>
|