123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <template>
-
- <view>
- <view class="complaintContainer">
- <view class="complaint" @click="toComplaintDetail(item)" v-for="(item, index) in complaint" :key="item">
- <view class="complain">
- <view class="complaintHead">
- <view>标题</view>
- <view class="complaintTitle">{{item.complaintTitle}}</view>
- </view>
- <view class="complaintBody">
- <view>内容摘要</view>
- <view class="complaintContent">{{item.complaintDetail}}</view>
- </view>
- </view>
- <view>
- <view class="dispose">{{item.status}}</view>
- </view>
- </view>
-
- </view>
-
- <view class="toWriteComplaint">
- <view class="writeComplaint" @click="toWriteComplaint()">
- <text>写投诉</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- complaint: [],
- queryObj: {
- pageNum: 1,
- pageSize: 5
- }
- };
- },
-
- onShow(){
- this.init();
- },
-
- created(){
- this.init();
- },
- methods:{
-
- async init(){
-
- const { data: result } =await uni.$http.get('/education/my-complaint/findPersonComplaint',this.queryObj)
-
- this.complaint = result.data.data;
-
-
- console.log("this",this.complaint);
-
- },
-
-
-
- toComplaintDetail(item){
- let complaint = JSON.stringify(item)
- uni.navigateTo({
- url: '/subpkg/complaintDetail/complaintDetail?item=' + complaint
- })
- },
-
- toWriteComplaint(){
- uni.navigateTo({
- url: '/subpkg/complaintWrite/complaintWrite'
- })
- }
-
- }
- }
- </script>
- <style lang="scss"scoped>
- page{
-
-
- background-color: #E2F0D9;
- }
- .complaintContainer{
- height: 100%;
- padding-bottom: 120rpx;
- }
- .complaint{
- display: flex;
- padding: 20rpx;
- margin: 20rpx 10rpx;
- height: 140rpx;
- border-radius: 30rpx;
- background-color: #FFF2CC;
- }
- .complain{
- width: 75%;
- }
- .complaintHead,
- .complaintBody{
- display: flex;
- }
- .complaintBody{
- margin-top: 10rpx;
- }
- .complaintTitle,
- .complaintContent{
- margin-left: 20rpx;
- width: 65%;
- }
- .complaintTitle{
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .complaintContent{
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- }
- .dispose{
- font-weight: bold;
- color: red;
- margin-left: 30rpx;
- }
- .toWriteComplaint{
- display: flex;
- position: relative;
- justify-content: center;
- }
- .writeComplaint{
- text-align: center;
- position: fixed;
- bottom: 0rpx;
- width: 100%;
- height: 120rpx;
- line-height: 120rpx;
- background-color: #E2F0D9;
- }
- .writeComplaint text{
- background-color: #8FAADC;
- font-size: 36rpx;
- color: white;
- border-radius: 30rpx;
- padding: 10rpx 20rpx;
- }
- </style>
|