Commit ac2fcd2ec5d1645c3f16d53f032da665c36d7454

Authored by vking
1 parent 9f78f419

boost

@@ -50,6 +50,7 @@ Page({ @@ -50,6 +50,7 @@ Page({
50 ], 50 ],
51 listMoreCount:0, 51 listMoreCount:0,
52 hasSearchLimit:false, 52 hasSearchLimit:false,
  53 + hasGetPos:false,
53 }, 54 },
54 hasClickMoveToLocation:false,//点击回到我的位置 55 hasClickMoveToLocation:false,//点击回到我的位置
55 hasSellerConcat:hasSellerConcat, 56 hasSellerConcat:hasSellerConcat,
@@ -187,7 +188,7 @@ Page({ @@ -187,7 +188,7 @@ Page({
187 }) 188 })
188 //this.getPos(systemInfo); 189 //this.getPos(systemInfo);
189 this.systemInfo=systemInfo 190 this.systemInfo=systemInfo
190 - this.selectComponent('#getpos').getPos(); 191 + //this.selectComponent('#getpos').getPos();
191 if(!this.hasClickMoveToLocation){ 192 if(!this.hasClickMoveToLocation){
192 //this.getMarkers(); 193 //this.getMarkers();
193 //this.timeoutGetMarkers(); 194 //this.timeoutGetMarkers();
@@ -910,5 +911,12 @@ Page({ @@ -910,5 +911,12 @@ Page({
910 }, 911 },
911 boostEvent(e){ 912 boostEvent(e){
912 console.log('boostEvent',e) 913 console.log('boostEvent',e)
  914 + //wx.aldstat.sendEvent( '强提醒', {...e.detail,time:parseInt(new Date()/1000)})
  915 + if(e.detail.act=='hide'){
  916 + this.setData({
  917 + hasGetPos:true,
  918 + })
  919 + this.selectComponent('#getpos').getPos();
  920 + }
913 }, 921 },
914 }) 922 })
@@ -135,12 +135,12 @@ @@ -135,12 +135,12 @@
135 <getpos bindpos="onpos" id="getpos"></getpos> 135 <getpos bindpos="onpos" id="getpos"></getpos>
136 <seller-box id="seller-box" bindevent="sellerBoxEvent"></seller-box> 136 <seller-box id="seller-box" bindevent="sellerBoxEvent"></seller-box>
137 <cover-view class="tab-patch"></cover-view> 137 <cover-view class="tab-patch"></cover-view>
138 -<ds wx:if="{{hasSetActivity}}" map="{{map}}" id="ds"></ds> 138 +<ds wx:if="{{hasSetActivity && hasGetPos}}" map="{{map}}" id="ds"></ds>
139 <a2l bindshow="a2lshow" bindhide="a2lshow" key="INDEX"></a2l> 139 <a2l bindshow="a2lshow" bindhide="a2lshow" key="INDEX"></a2l>
140 <list id="list" bindevent="listEvent" 140 <list id="list" bindevent="listEvent"
141 multiArray="{{multiArray}}" multiIndex="{{multiIndex}}" tags="{{tags}}"></list> 141 multiArray="{{multiArray}}" multiIndex="{{multiIndex}}" tags="{{tags}}"></list>
142 <caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}" 142 <caixi multiArray="{{multiArray}}" multiIndex="{{multiIndex}}"
143 bindactive="caixiActive" id="caixi" 143 bindactive="caixiActive" id="caixi"
144 ></caixi> 144 ></caixi>
145 -<activity-enter hasInHome></activity-enter> 145 +<activity-enter hasInHome wx:if="{{hasGetPos}}"></activity-enter>
146 <boost bindevent="boostEvent"></boost> 146 <boost bindevent="boostEvent"></boost>