新弹窗

This commit is contained in:
A1300399510
2023-08-11 19:03:16 +08:00
parent 30d2ef0b3b
commit 2e7ec8dda5
6 changed files with 12445 additions and 1 deletions

View File

@@ -51,11 +51,14 @@
import { ElLoading } from 'element-plus'
import { ref, reactive, onMounted, getCurrentInstance, defineEmits } from 'vue'
import { useRouter } from 'vue-router'
import { useRouter, useRoute } from 'vue-router'
const { proxy } = getCurrentInstance()
const router = useRouter()
const route = useRoute();
let identityList = ref([])
let popType = ref('') // choice agent: 确认是否是中介(有个人房源) affirmAgent: 确认是否是中介(有中介房源)
@@ -75,12 +78,16 @@ let isintermediary = ref(0)
let loading = ref(null) // 加载
// 点击按钮
const ClickBtn = () => {
if (identityList.value.length == 0) init()
else popType.value = 'choice'
}
if (route.path == "/choosing-identity") ClickBtn()
async function init() {
loading = ElLoading.service({
lock: true,
@@ -98,6 +105,7 @@ async function init() {
// isintermediary.value = 1
// console.log("data.isintermediary",data.isintermediary);
// if (data['ispopup'] == 0) overallJump()
if (data['ispopup'] == 0) overallJump()
else popType.value = 'choice'
}).finally(() => {
@@ -143,6 +151,7 @@ let confirmIntermediary = (isintermediary) => {
</script>
<style lang="less" scoped>
.btn {
position: absolute;
top: 0;