fei.wang
6 天以前 645834e1c3efb3a8c50dcbda98d87caba04bd421
pages/index/home.vue
@@ -9,7 +9,8 @@
      <view>
      </view>
      <view>
         <dituCom :access_token="token" :style="{height:webHeight+'px'}" @mars3dc="mars3dc" :fenceposition="fenceposition"></dituCom>
         <dituCom :access_token="token" :style="{height:webHeight+'px'}" @mars3dc="mars3dc"
            :fenceposition="fenceposition" :ishide="ishide" :isweimap="isweimap"></dituCom>
      </view>
@@ -128,7 +129,13 @@
            type: String,
            // default: 60
         },
         ishide: {
            type: Boolean,
         },
         isweimap: {
            type: Boolean,
         },
      },
      computed: {
         countList() {
@@ -140,8 +147,6 @@
         }
      },
      mounted() {
         console.log(22222222);
         console.log(this.fenceposition);
         this.getNavBarHeight();
         this.webviewStyles.bottom = this.tabheight.toString() + "px"
         this.webviewStyles.top = "45px"
@@ -194,16 +199,12 @@
         getNavBarHeight() {
            const query = uni.createSelectorQuery().in(this);
            query.select('.tn-nav-bar').boundingClientRect(data => {
               if (data) {
                  // data.height 就是 tn-nav-bar 的高度
                  console.log('NavBar height:', data.height);
               }
               if (data) {}
            }).exec();
         },
         mars3dc(e) {
            console.log(e);
            this.perlist = e
            this.keyword = e.ptagid
            this.keyword = e.tagid
            this.lock = true
            this.refreshlock()
         },
@@ -237,18 +238,15 @@
               name: this.keyword,
               company: this.company,
            }
            console.log(params);
            console.log(this.vuex_is_login);
            if (this.vuex_is_login == true) {
               findPerson(params).then((res) => {
                  console.log(res);
                  if (res.code == 0) {
                     this.perlist = res.data
                  } else {
                     if (this.lock == true) {
                        this.lock = false
                        this.perlist = {}
                        this.keyword = ''
                        // this.keyword = ''
                     } else {
                        this.$refs.refSuccess.showBox({
                           type: 'error',