1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <view class="main">
- <u-empty text="暂无档案" :show="istrue" mode="list" margin-top="300"></u-empty>
- <view class="cu-bar bg-white tabbar" style="position: fixed;bottom: 0;width: 100%;">
- <view class="submit" style="background-color: #0B73B9;color: white;" @click="addarchives">
- 添加健康档案
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- onLoad(options) {
- },
- onShow() {
- this.getarchives()
- },
- data() {
- return {
- patientList: [],
- istrue: false
- }
- },
- methods: {
- getarchives: async function() {
- let res = await this.$request.post("/api/v1/patient/patientList")
- if (res.status == 0) {
- this.patientList = res.data.data
- if (this.patientList.length == 0) {
- this.istrue = true
- }
- }
- },
- addarchives() {
- uni.navigateTo({
- url: "add_archives"
- })
- }
- }
- };
- </script>
- <style scoped lang="scss">
- .main {}
- </style>
|