 
      
      本节核心:通过movieid从一个界面转向另一个界面
 
      
      css ranking components
 
      
      https://frodo.douban.com/api/v2/subject_collection/movie_showing/items?start=0&count=10?apiKey=054022eaeae0b00e0fc068c0c0a2102a
```json
{
"msg": "invalid_apikey",
"code": 1062,
"request": "GET /v2/subject_collection/movie_showing/items",
"localized_message": ""
}
```
 
      
      # TMDb API
https://developers.themoviedb.org/3/getting-started/introduction
 
      
      https://api.douban.com/v2/movie/top250?apiKey=054022eaeae0b00e0fc068c0c0a2102a
```json
{
"msg": "invalid_apikey, Please contact bd-team@douban.com for authorized access.",
"code": 104,
"request": "GET /v2/movie/top250"
}
```
https://frodo.douban.com/api/v2/movie/top250?apiKey=054022eaeae0b00e0fc068c0c0a2102a
```json
{
"msg": "traversal_error",
"code": 404,
"request": "GET /v2/movie/top250",
"localized_message": "要访问的内容不存在"
}
```
 
      
      路由跳转!
 
      
      云函数在处理请求的时候,需要在该云函数目录中安装request和request-promise
(1) npm install --save request
(2) npm install --save request-promise
 
      
       
      
      小程序中的url传参方式有两种:
一、用es的单引号(即~下的符号)括起来,不再需要+连字符;如下:
url: `../comment/comment?movieid=${event.target.dataset.movieid}`
第二种:用普通的单引号,如下:
url: '../comment/comment?movieid='+event.target.dataset.movieid,
 
      
       
      
      12345
 
      
      12345
 
      
      电影列表API:http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10
电影详情API:`http://api.douban.com/v2/movie/subject/${event.movieid}?apikey=0df993c66c0c636e29ecbb5344252a4a`
 
      
      wx.navigateTo({
url:
})//跳转页面
 
      
      wx.navigateTo({
url:
})//跳转页面
 
      
      如果要用${}这种表示变量的话,需要用到ES6里的模板字符串,是反引号,就是键盘1左边的那个引号,就是反引号
 
      
      调用豆瓣接口:新建node.js云函数,需要发送请求,需要再次安装request和promise(
npm install --save request npm install --save request-promise
)

 
      
      毛玻璃效果