| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <template>
- <div class="otherAppeal">
- <div class="title">
- {{ otherAppeal.title }}
- </div>
- <img
- src="/static/appeal/waited.png"
- class="state"
- v-if="otherAppeal.state === 1"
- />
- <img
- src="/static/appeal/waiting.png"
- class="state"
- v-if="otherAppeal.state === 0"
- />
- <div class="details" v-if="otherAppeal.state === 1">
- <img :src="otherAppeal.image" class="icon" />
- <p class="msg">
- <span class="name">{{ otherAppeal.name }}</span
- >:
- <span class="msg_body">{{ otherAppeal.msg }}</span>
- </p>
- </div>
- <div class="details" v-else-if="otherAppeal.state === 0">
- <p class="msg">
- <span class="msg_body_waiting">{{ otherAppeal.msg }}</span>
- </p>
- </div>
- <div class="details" v-else>
- <img :src="otherAppeal.image" class="icon" />
- <p class="msg">
- <span class="name">{{ otherAppeal.name }}</span
- >:
- <span class="msg_body">{{ otherAppeal.msg }}</span>
- </p>
- </div>
- </div>
- </template>
- <script>
- export default {
- props: ["otherAppeal"],
- };
- </script>
- <style lang="scss" scoped>
- .otherAppeal {
- margin: 5% 8%;
- position: relative;
- height: 200rpx;
- .title {
- margin-bottom: 5%;
- font-size: 28rpx;
- }
- .state {
- position: absolute;
- right: 0;
- top: 0;
- transform: translateY(-30%);
- width: 94rpx;
- height: 74rpx;
- }
- .details {
- position: relative;
- .name {
- font-size: 25rpx;
- color: red;
- }
- .msg {
- font-size: 25rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- word-wrap: break-word;
- word-break: break-all;
- line-height: 40rpx;
- letter-spacing: 2rpx;
- .msg_body_waiting {
- color: #aaa;
- }
- }
- .icon {
- width: 50rpx;
- height: 50rpx;
- position: absolute;
- transform: translateX(-100%);
- }
- }
- }
- </style>
|