purchase-let/pageQuota/feedBack/list.vue

58 lines
1.1 KiB
Vue

<template>
<view class="content">
<view class="li" v-for="item in lists" :key="item.id" @click="goDetail(item)">
<view class="lias">
<view class="">
<view class="">
<text style="color: #20B128;">{{item.content}}</text>
</view>
<view style="font-size: 24rpx;margin-top: 10rpx;">
<!-- 2024-05-10 09:24:25 -->
{{item.create_time}}
</view>
</view>
<up-icon name="arrow-right"></up-icon>
</view>
<up-line style="margin-top: 20rpx;" color="#EFEFEF"></up-line>
</view>
</view>
</template>
<script setup>
import {
userfeedbackListApi
} from "@/api/feedBack.js"
import {
ref
} from "vue"
const lists = ref([])
userfeedbackListApi().then(res => {
console.log(res.data.lists)
lists.value = res.data.lists
})
const goDetail = (item) => {
uni.navigateTo({
url: '/pageQuota/feedBack/detail?item=' + JSON.stringify(item)
})
}
</script>
<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;
}
</style>