| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <view>
- <button @click="handleSelct('kh')">选择客户</button>
- <button @click="handleSelct('jz')">选择家政</button>
- </view>
- <!-- 客户 -->
- <selectKh ref="khRef"></selectKh>
- <!-- 家政 -->
- <selectJz ref="jzRef"></selectJz>
- </template>
- <script setup>
- import {
- ref,
- reactive,
- nextTick
- } from "vue";
- import {
- onLoad
- } from "@dcloudio/uni-app";
- import * as httpApi from "@/api/sanfang.js"
- import selectKh from "./components/selectKh.vue"
- import selectJz from "./components/selectJz.vue"
-
- const khRef = ref(null)
- const jzRef = ref(null)
-
- function handleSelct(code) {
- if (code == 'kh') {
- khRef.value.handleShow();
- } else {
- jzRef.value.handleShow();
- }
- }
-
- </script>
- <style>
- </style>
|