| 
					
				 | 
			
			
				@@ -2,7 +2,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <!-- #ifdef H5 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <view class="message_view_page"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 横幅 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <view class="gonggao"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <view class="gonggao" @click="goFpzn"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <view>防骗手册,为您保驾护航</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <text class="iconfont icon-jinru"></text> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </view> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -77,7 +77,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </view> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <!-- 发送消息 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <view class="text_input_mount" @click="send"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <image style="width: 60%; height: 60%;" mode="aspectFill" src="/static/tabBar/icon_issue01.png"></image> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <image style="width: 50%; height: 53%;" mode="aspectFill" src="/static/tabBar/icon_issue01.png"></image> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </view> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -127,7 +127,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onShow() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // #ifdef H5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.getGoods() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.getNewList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.getMsgList(2, () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.getNewList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          uni.createSelectorQuery().select('.message_view_scroll').boundingClientRect(data => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            uni.createSelectorQuery().select('.scrollviewDiv').boundingClientRect(data2 => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.scrollTop = data2.height - data.height 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }).exec() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }).exec() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onHide() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -137,6 +146,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    destroyed() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // #ifdef H5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (this.timeId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        clearTimeout(this.timeId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // #ifdef H5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       getGoods() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -145,25 +161,28 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         api.postJson('/goods/detail', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           id: this.pam.goodsId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }, false).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.goodsDetail = res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          console.log(res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       getNewList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (this.timeId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           clearTimeout(this.timeId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.getMsgList(0, () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.timeId = setTimeout(this.getNewList, 3000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          uni.createSelectorQuery().select('.message_view_scroll').boundingClientRect(data => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            uni.createSelectorQuery().select('.scrollviewDiv').boundingClientRect(data2 => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              if ((this.scrollTop + data.height + 10) >= data2.height) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                this.scrollTop = data2.height 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }).exec() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }).exec() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        uni.createSelectorQuery().select('.scrollviewDiv').boundingClientRect(data1 => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getMsgList(0, () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.timeId = setTimeout(this.getNewList, 3000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              uni.createSelectorQuery().select('.message_view_scroll').boundingClientRect(data => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                uni.createSelectorQuery().select('.scrollviewDiv').boundingClientRect(data2 => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  if (data1.height - data.height - this.scrollTop < 10) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    this.scrollTop = data2.height - data.height 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }).exec() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }).exec() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).exec() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       getMsgList(flag, cb) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         api.postJson('/user/talk/list', { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -222,7 +241,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.scrollTop = e.detail.scrollTop 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       send() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (this.pam.goodsId && this.$store.state.user.userId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (this.pam.goodsId && this.$store.state.user.userId && this.message) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           api.postJson('/user/talk/send', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             message: this.message, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             userId: this.$store.state.user.userId, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -241,6 +260,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      goFpzn(item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$navToPage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          url: '/pages/mine/parse?type=1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // #ifndef H5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |