From c5e49c10499435802a6551b98772f95660c6f85a Mon Sep 17 00:00:00 2001 From: 王飞 <14095171+wang-fei12345@user.noreply.gitee.com> Date: 星期五, 07 三月 2025 09:15:56 +0800 Subject: [PATCH] 定位app首次提交 --- pages/index/home.vue | 53 ++++++++++++++++++++++++++++++++++++----------------- 1 files changed, 36 insertions(+), 17 deletions(-) diff --git a/pages/index/home.vue b/pages/index/home.vue index da8abe4..834f433 100644 --- a/pages/index/home.vue +++ b/pages/index/home.vue @@ -3,7 +3,7 @@ <!-- 椤堕儴鑷畾涔夊鑸� --> - <tn-nav-bar fixed style=" position: absolute;z-index: 999999999;"> + <tn-nav-bar fixed :isBack="false" style=" position: absolute;z-index: 999999999;"> <text class="page-title">棣栭〉</text> </tn-nav-bar> <view> @@ -48,6 +48,7 @@ }, data() { return { + lock: false, // homelng:0, // homelat:0, token: uni.getStorageSync('access_token'), @@ -149,14 +150,12 @@ }, 400) }, - onLoad() { - }, + onLoad() {}, onUnload() { view.close(); }, methods: { - handleMars3DClick(data) { - }, + handleMars3DClick(data) {}, creatView() { view = new plus.nativeObj.View('test', { top: '100px', @@ -198,6 +197,18 @@ mars3dc(e) { this.perlist = e this.keyword = e.ptagid + this.lock = true + this.refreshlock() + }, + refreshlock() { + if (this.lock == true) { + this.searchxinxi() + setTimeout(() => { + //5绉掓挱鏀句竴娆� + this.refreshlock(); + }, 1000); + } + }, refreshPerson() { @@ -209,6 +220,7 @@ }); }, closePerson() { + this.lock = false this.perlist = {} this.keyword = '' }, @@ -218,17 +230,24 @@ name: this.keyword, company: this.company, } - findPerson(params).then((res) => { - if (res.code == 0) { - this.perlist = res.data - } else { - this.$refs.refSuccess.showBox({ - type: 'error', - txt: res.msg - }); - } - }) - + if (this.vuex_is_login) { + findPerson(params).then((res) => { + if (res.code == 0) { + this.perlist = res.data + } else { + if (this.lock == true) { + this.lock = false + this.perlist = {} + this.keyword = '' + } else { + this.$refs.refSuccess.showBox({ + type: 'error', + txt: res.msg + }); + } + } + }) + } } } } @@ -246,6 +265,6 @@ width: 90%; left: 5%; position: absolute; - z-index: 999999999; + z-index: 9999999999; } </style> \ No newline at end of file -- Gitblit v1.9.3