12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <template>
- <view class="common-list my-reservation">
- <view class="common-item" v-for="(item,index) in list" :key="item.id">
- <view class="title">预约看房</view>
- <view class="date">{{item.date}}</view>
- <view class="other">
- <view class="item">
- <view class="label">预约人</view>
- <view class="value">{{item.userName}}</view>
- </view>
- <view class="item">
- <view class="label">房源负责人</view>
- <view class="value">{{item.chargePersonName}}</view>
- </view>
- </view>
- <view class="state">
- <view></view>
- <view class="tag">
- <div class="status-tag success"
- @click="$navigateTo('/pages/house/house?houseId=' + item.projectItemTargetRoomId)">
- 查看房源
- </div>
- </view>
- </view>
- <view class="icon">
- <uni-icons custom-prefix="iconfont" type="icon-jiesuanguanli" color="#08979c" size="30">
- </uni-icons>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- getReservationList
- } from '@/request/api/house.js'
- export default {
- data() {
- return {
- list: []
- }
- },
- onLoad() {
- this.init();
- },
- methods: {
- init() {
- getReservationList({
- userId: this.$store.getters.user.userId
- }).then(res => {
- if (res.code == 200) {
- this.list = res.data;
- }
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .my-reservation {
- padding: 30rpx;
- }
- </style>
|