This commit is contained in:
许允枞 2025-04-03 18:08:29 +08:00
parent fb65aee3d0
commit bf199e2737
2 changed files with 26 additions and 4 deletions

View File

@ -12,7 +12,7 @@
refresher-enabled @refresherrefresh="onRefresherrefresh" :refresher-triggered="isTriggered"> refresher-enabled @refresherrefresh="onRefresherrefresh" :refresher-triggered="isTriggered">
<!-- 新增内容容器 --> <!-- 新增内容容器 -->
<view class="box_2 flex-col" v-if="curNow === 0"> <view class="box_2 flex-col" v-if="curNow === 0">
<view class="box_4 flex-col" v-for="item in appointmentList" @click="goDetail(item,'')"> <view class="box_4 flex-col" v-for="item in appointmentList" @click="goDetail(item,'')" :key="item.id">
<view class="group_5 flex-row justify-between"> <view class="group_5 flex-row justify-between">
<view class="block_3 flex-col justify-between"> <view class="block_3 flex-col justify-between">
<text class="text_2">{{ item.reservDay }}</text> <text class="text_2">{{ item.reservDay }}</text>
@ -41,7 +41,7 @@
</view> </view>
<!-- 新增内容容器 --> <!-- 新增内容容器 -->
<view class="box_2 flex-col" v-if="curNow === 1"> <view class="box_2 flex-col" v-if="curNow === 1">
<view class="box_4 flex-col" v-for="item in appointmentList" @click="goDetail(item,'train')"> <view class="box_4 flex-col" v-for="item in appointmentList" @click="goDetail(item,'train')" :key="item.id">
<view class="group_5 flex-row justify-between"> <view class="group_5 flex-row justify-between">
<view class="block_3 flex-col justify-between"> <view class="block_3 flex-col justify-between">
<text class="text_2">{{ item.trainDay }}</text> <text class="text_2">{{ item.trainDay }}</text>

View File

@ -46,6 +46,8 @@
</template> </template>
<script> <script>
import headers from "@/components/header/headers.vue"; import headers from "@/components/header/headers.vue";
import {getLocalUserInfo} from "@/utils/auth";
import request from "@/utils/request";
export default { export default {
components: {headers}, components: {headers},
@ -71,10 +73,30 @@ export default {
lanhutext4: '4.0' lanhutext4: '4.0'
} }
], ],
constants: {} constants: {},
userId: getLocalUserInfo().id,
pageNo: 1,
pageSize: 10
}; };
}, },
methods: {} onLoad() {
this.getList()
},
methods: {
getList() {
request({
url: '/app-api/feed-back/page',
method: 'GET',
params: {
userId: 5171,
pageNo: this.pageNo,
pageSize: this.pageSize
}
}).then(res => {
console.log(res)
})
}
}
}; };
</script> </script>
<style lang='scss'> <style lang='scss'>