xujing 5 年之前
父節點
當前提交
c3c244ab04
共有 1 個檔案被更改,包括 9 行新增9 行删除
  1. 9
    9
      src/pages/news/detail/index.js

+ 9
- 9
src/pages/news/detail/index.js 查看文件

207
     Taro.showLoading()
207
     Taro.showLoading()
208
     queryNewsDetail(newsId).then(res => {
208
     queryNewsDetail(newsId).then(res => {
209
       Taro.hideLoading()
209
       Taro.hideLoading()
210
+      WxParse.wxParse('article', 'html', res.newsDetail || <p></p>, this.$scope, 0)
210
       // 埋点
211
       // 埋点
211
       savePoint({
212
       savePoint({
212
         event: 'detail',
213
         event: 'detail',
223
         })
224
         })
224
         console.info('资讯详情')
225
         console.info('资讯详情')
225
       })
226
       })
226
-    
227
+
227
       this.setState({
228
       this.setState({
228
         detail: res,
229
         detail: res,
229
         loaded: true,
230
         loaded: true,
237
         }
238
         }
238
       })
239
       })
239
 
240
 
240
-      WxParse.wxParse('article', 'html', res.newsDetail, this.$scope, 0)
241
 
241
 
242
     })
242
     })
243
 
243
 
371
       </Block>
371
       </Block>
372
     );
372
     );
373
   }
373
   }
374
-  
375
-  render(){
376
-  	return (
377
-  		<authorizationComponent>
378
-  			{this.renderNews()}
379
-  		</authorizationComponent>
380
-  	)
374
+
375
+  render() {
376
+    return (
377
+      <authorizationComponent>
378
+        {this.renderNews()}
379
+      </authorizationComponent>
380
+    )
381
   }
381
   }
382
 }
382
 }