illustrate.vue
1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<template>
<view>
<!-- 报名提醒 -->
<view class="whiteItem">
<view v-html="reminder" class="richzz">
</view>
</view>
</view>
</template>
<script setup>
import {
reactive,
toRefs,
getCurrentInstance
} from 'vue';
import * as hotel from '@/common/hotel.js';
import {onLoad,onShow} from '@dcloudio/uni-app';
const app = getApp();
const data = reactive({
id: null,
form:{},
reminder:''
})
const {
id,form,reminder
} = toRefs(data);
onLoad(option => {
hotel.getTrainDetail(option.trainId).then(res => {
reminder.value = res.data.reminder
})
})
</script>
<style lang="scss" scoped>
.whiteItem {
width: 700rpx;
box-sizing: border-box;
margin: 30rpx auto 26rpx;
padding: 26rpx;
background: #FFFFFF;
box-shadow: 0rpx 0rpx 27rpx 0rpx #DEDEDE;
border-radius: 15rpx;
.tt {
line-height: 1;
border-left: 4rpx solid #1EC886;
color: #1EC886;
padding-left: 14rpx;
}
.m1 {
width: 314rpx;
height: 225rpx;
}
.m2 {
width: 315rpx;
height: 103rpx;
float: right;
}
.m3 {
width: 315rpx;
height: 103rpx;
position: absolute;
right: 0;
bottom: 0;
}
}
.richzz{
line-height: 1.6;
color: #333;
text-align: justify;
}
</style>