purchase-let/pageQuota/feedBack/list.vue

58 lines
1.1 KiB
Vue
Raw Normal View History

2024-05-09 18:01:57 +08:00
<template>
2024-05-10 09:45:35 +08:00
<view class="content">
2024-05-14 15:18:50 +08:00
<view class="li" v-for="item in lists" :key="item.id" @click="goDetail(item)">
2024-05-10 09:45:35 +08:00
<view class="lias">
<view class="">
<view class="">
2024-05-14 15:18:50 +08:00
<text style="color: #20B128;">{{item.content}}</text>
2024-05-10 09:45:35 +08:00
</view>
<view style="font-size: 24rpx;margin-top: 10rpx;">
2024-05-14 15:18:50 +08:00
<!-- 2024-05-10 09:24:25 -->
{{item.create_time}}
2024-05-10 09:45:35 +08:00
</view>
</view>
<up-icon name="arrow-right"></up-icon>
</view>
<up-line style="margin-top: 20rpx;" color="#EFEFEF"></up-line>
</view>
2024-05-09 18:01:57 +08:00
</view>
</template>
2024-05-10 09:45:35 +08:00
<script setup>
2024-05-13 19:28:05 +08:00
import {
userfeedbackListApi
} from "@/api/feedBack.js"
2024-05-14 15:18:50 +08:00
import {
ref
} from "vue"
2024-05-13 19:28:05 +08:00
2024-05-14 15:18:50 +08:00
const lists = ref([])
2024-05-13 19:28:05 +08:00
userfeedbackListApi().then(res => {
2024-05-14 15:18:50 +08:00
console.log(res.data.lists)
lists.value = res.data.lists
2024-05-13 19:28:05 +08:00
})
2024-05-14 15:18:50 +08:00
const goDetail = (item) => {
2024-05-10 09:45:35 +08:00
uni.navigateTo({
2024-05-14 15:18:50 +08:00
url: '/pageQuota/feedBack/detail?item=' + JSON.stringify(item)
2024-05-10 09:45:35 +08:00
})
}
2024-05-09 18:01:57 +08:00
</script>
2024-05-10 09:45:35 +08:00
<style lang="scss">
.li {
background-color: white;
padding: 20rpx;
padding-bottom: 0;
// align-items: c;
}
.lias {
display: flex;
justify-content: space-between;
align-items: center;
}
2024-05-09 18:01:57 +08:00
</style>