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
| <template>
| <view class="p30">
| <view class="title p30 bg-white f30 lh200 radius8">
| <view>{{ detail.content }}</view>
| <view v-for="(item, index) in img_list" :key="index">
| <image :src="item.file_path" mode="aspectFit"></image>
| </view>
|
| </view>
|
| </view>
| </view>
| </template>
|
| <script>
| import utils from '@/common/utils.js';
| export default {
| data() {
| return {
| detail: '',
| img_list:[]
| }
| },
| onLoad(e) {
| /*id*/
| this.upload_id = e.upload_id;
| },
| mounted(){
| uni.showLoading({
| title: '加载中'
| });
| this.getData();
| },
| methods: {
| getData(){
| let self = this;
| let upload_id = self.upload_id;
| self._get('plus.ticket.index/detail', {upload_id: upload_id}, function (res)
| {
| self.detail= res.data.detail;
| self.img_list= res.data.detail.image;
| uni.hideLoading();
| });
| }
| }
| }
| </script>
|
| <style>
|
| </style>
|
|