tousuweiquan.vue
1.2 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
<template>
<view class="container">
<view class="tousulist">
<view class="tousulistitem" v-for="(item,index) in tousulist" :key="index" @click="gotodetail(item.id)">{{item.name}}</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
tousulist:[]
}
},
onLoad() {
this.gettousu()
},
methods: {
gettousu(){
let that = this;
var url = 'protect/get_list';
var params = {
}
app.post(url, params, "post").then((res) => {
console.log(res);
that.tousulist=res.data.data
}).catch((err) => {
console.log(err)
})
},
// 投诉详情
gotodetail(id){
console.log(id)
uni.navigateTo({
url:'/pages/luntan/tousudetail?tousuid='+id
})
}
}
}
</script>
<style>
.tousulist{
padding: 0 32rpx;
box-sizing: border-box;
}
.tousulistitem{
padding: 32rpx 0;
box-sizing: border-box;
border-bottom: 1px solid #f5f5f5;
color:#333;
font-size: 32rpx;
}
</style>