Explorar o código

减少bug出现的可能性

xiaohaizhao hai 5 meses
pai
achega
852d396c59

+ 0 - 1
portrayal/index/index.scss

@@ -16,7 +16,6 @@
     .right {
         display: flex;
         align-items: center;
-        height: 86rpx;
         background-color: #fff;
         flex-shrink: 0;
 

+ 1 - 0
portrayal/list/client.js

@@ -176,6 +176,7 @@ Component({
             setTimeout(() => {
                 this.selectComponent('#ListBox').automaticSetHei();
                 if (this.data.searchShow) {
+                    if (this.selectComponent("#Yl_Filtrate1").data.show) return
                     this.setData({
                         focus: true
                     })

+ 1 - 1
portrayal/list/client.wxml

@@ -41,6 +41,6 @@
     <My_empty wx:if="{{list.length==0}}" />
 </Yl_ListBox>
 
-<Yl_Filtrate1 show='{{showFiltrate}}' list='{{filtratelist}}' dateRange bindhandle="handleFilter">
+<Yl_Filtrate1 id='Yl_Filtrate1' show='{{showFiltrate}}' list='{{filtratelist}}' dateRange bindhandle="handleFilter">
     <organization slot='head' defaultIsleave='1' dimissionF id='organization' />
 </Yl_Filtrate1>

+ 1 - 0
portrayal/list/contacts.js

@@ -153,6 +153,7 @@ Component({
             setTimeout(() => {
                 this.selectComponent('#ListBox').automaticSetHei();
                 if (this.data.searchShow) {
+                    if (this.selectComponent("#Yl_Filtrate1").data.show) return
                     this.setData({
                         focus: true
                     })

+ 6 - 5
portrayal/list/project.js

@@ -23,11 +23,11 @@ Component({
             getApp().globalData.Language.getLanguagePackage(this)
             this.data.organization = this.selectComponent("#organization");
             this.data.organization.initDepAndUser().then(active => {
-               let userid = active.userid || wx.getStorageSync("userMsg").userid;
-               this.setData({
-                   "content.dataid": userid,
-                   userid,
-               })
+                let userid = active.userid || wx.getStorageSync("userMsg").userid;
+                this.setData({
+                    "content.dataid": userid,
+                    userid,
+                })
                 this.triggerEvent('update', "Client")
             });
             this.setFiltratelist();
@@ -190,6 +190,7 @@ Component({
             setTimeout(() => {
                 this.selectComponent('#ListBox').automaticSetHei();
                 if (this.data.searchShow) {
+                    if (this.selectComponent("#Yl_Filtrate1").data.show) return
                     this.setData({
                         focus: true
                     })

+ 1 - 0
portrayal/list/sales.js

@@ -123,6 +123,7 @@ Component({
             setTimeout(() => {
                 this.selectComponent('#ListBox').automaticSetHei();
                 if (this.data.searchShow) {
+                    if (this.selectComponent("#Yl_Filtrate1").data.show) return
                     this.setData({
                         focus: true
                     })