王飞
2025-03-07 c5e49c10499435802a6551b98772f95660c6f85a
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>