index.vue 1.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
<template>
  <div class="container">
    <NavBar title="客户信息变更" left-arrow @click-left="goBack" />

    <section class="list">
      <PullRefresh v-model="refreshing" @refresh="onRefresh" class="scroll">
        <List :finished="finished" finished-text="没有更多了" @load="loadApproval">
          <ChangeListItem v-for="item in infos" :info="item" @click="jump" />
        </List>
      </PullRefresh>
    </section>

    <Plus @click="jump" />
  </div>
</template>

<script setup>
import { goBack } from "@/utils/globalFun"
import { NavBar, List, PullRefresh } from "vant";
import ChangeListItem from '../components/ChangeListItem.vue'
import Plus from '@/components/Plus.vue'
import api from "../api";
import { useRouter } from "vue-router";

const infos = $ref([
  {
    id: 'BG001001001',
    applyDate: '2022-8-18',
    status: '拒绝'
  }
])

const refreshing = $ref(true);
const finished = $ref(true);

const onRefresh = () => {
  // 下拉重置参数,重新加载
};

const loadApproval = () => {

}

const router = useRouter();
const jump = () => {
  router.push({ name: 'infoChange-views-changeForm' })
}
</script>

<style scoped lang="less">
.list {
  box-sizing: border-box;
  height: calc(100vh - var(--van-nav-bar-height));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 10px;
}

.scroll {
  box-sizing: border-box;
  height: 100%;
  overflow-y: auto;
}
</style>

<route>
{
  meta: {
    title: '客户信息变更'
  }
}
</route>