景点评论数据
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取景点评论数据(位置:pages/scenery/scenery.js)</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:8090/wxf/content/getSceneryMessage.php</code>
//但凡这种写法则是完整URL,在函数里简写是因为我封装了request功能。(了解请查看文件:ulits-request.js和ulits-config.js)</li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET</li>
</ul>
<h5>返回示例</h5>
<pre><code> async getSceneryContent(){
let getSceneryContentData=await request('/wxf/content/getSceneryMessage.php'); //保存在页面数据中
this.setData({
SceneryContentData:getSceneryContentData,
})
wx.setStorageSync('sceneryMessageData',getSceneryContentData ) //保存在本地缓存
},</code></pre>
<h5>返回参数说明</h5>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=d54444815367c97d65f01cc6353052c2&amp;file=file.png" alt="" /></p>