// index.js
// 获取应用实例
const app = getApp()
Page({
data: {
// 在这个里面声明的变量才能渲染到页面上
// 空的字符串
// name:'',
// 直接定义的是数组
// list:[],
// name1:"",
// list1:[],
// name2:"",
// list2:[]
// img:["https://image.baidu.com/search/index?ct=201326592&z=undefined&tn=baiduimage&ipn=d&word=%E9%A3%8E%E6%99%AF%E5%9B%BE%E7%89%87&step_word=&ie=utf-8&in=&cl=2&lm=-1&st=undefined&hd=undefined&latest=undefined©right=undefined&cs=850895073,4223002703&os=1950081577,3318436501&simid=850895073,4223002703&pn=10&di=7108135681917976577&ln=1890&fr=&fmq=1655975348431_R&fm=&ic=undefined&s=undefined&se=&sme=&tab=0&width=undefined&height=undefined&face=undefined&is=0,0&istype=0&ist=&jit=&bdtype=0&spn=0&pi=0&gsm=0&objurl=https%3A%2F%2Fgimg2.baidu.com%2Fimage_search%2Fsrc%3Dhttp%253A%252F%252Fimg.jj20.com%252Fup%252Fallimg%252F1114%252F0R620115Q8%252F200R6115Q8-7-1200.jpg%26refer%3Dhttp%253A%252F%252Fimg.jj20.com%26app%3D2002%26size%3Df9999%2C10000%26q%3Da80%26n%3D0%26g%3D0n%26fmt%3Dauto%3Fsec%3D1658567349%26t%3D148b7b3c72f7676e7c62ff80f86cf182&rpstart=0&rpnum=0&adpicid=0&nojc=undefined&tt=1&dyTabStr=MCwzLDIsNiwxLDQsNSw3LDgsOQ%3D%3D",
// "https://image.baidu.com/search/index?ct=201326592&z=undefined&tn=baiduimage&ipn=d&word=%E9%A3%8E%E6%99%AF%E5%9B%BE%E7%89%87&step_word=&ie=utf-8&in=&cl=2&lm=-1&st=undefined&hd=undefined&latest=undefined©right=undefined&cs=2841953537,1025207808&os=1387296335,2005902773&simid=2841953537,1025207808&pn=18&di=7108135681917976577&ln=1890&fr=&fmq=1655975348431_R&fm=&ic=undefined&s=undefined&se=&sme=&tab=0&width=undefined&height=undefined&face=undefined&is=0,0&istype=0&ist=&jit=&bdtype=0&spn=0&pi=0&gsm=0&objurl=https%3A%2F%2Fgimg2.baidu.com%2Fimage_search%2Fsrc%3Dhttp%253A%252F%252Fimg.jj20.com%252Fup%252Fallimg%252F1113%252F0F220091522%252F200F2091522-1-1200.jpg%26refer%3Dhttp%253A%252F%252Fimg.jj20.com%26app%3D2002%26size%3Df9999%2C10000%26q%3Da80%26n%3D0%26g%3D0n%26fmt%3Dauto%3Fsec%3D1658567349%26t%3De547999e8b1102f06711b5dd523892a6&rpstart=0&rpnum=0&adpicid=0&nojc=undefined&tt=1&dyTabStr=MCwzLDIsNiwxLDQsNSw3LDgsOQ%3D%3D",
// "https://image.baidu.com/search/index?ct=201326592&z=undefined&tn=baiduimage&ipn=d&word=%E9%A3%8E%E6%99%AF%E5%9B%BE%E7%89%87&step_word=&ie=utf-8&in=&cl=2&lm=-1&st=undefined&hd=undefined&latest=undefined©right=undefined&cs=909426710,4008999221&os=1839228479,2420772626&simid=909426710,4008999221&pn=29&di=7108135681917976577&ln=1890&fr=&fmq=1655975348431_R&fm=&ic=undefined&s=undefined&se=&sme=&tab=0&width=undefined&height=undefined&face=undefined&is=0,0&istype=0&ist=&jit=&bdtype=0&spn=0&pi=0&gsm=0&objurl=https%3A%2F%2Fgimg2.baidu.com%2Fimage_search%2Fsrc%3Dhttp%253A%252F%252Fimg.jj20.com%252Fup%252Fallimg%252F1114%252F091520103956%252F200915103956-4-1200.jpg%26refer%3Dhttp%253A%252F%252Fimg.jj20.com%26app%3D2002%26size%3Df9999%2C10000%26q%3Da80%26n%3D0%26g%3D0n%26fmt%3Dauto%3Fsec%3D1658567349%26t%3D6b92bf69c1396e99af9d657264140d72&rpstart=0&rpnum=0&adpicid=0&nojc=undefined&tt=1&dyTabStr=MCwzLDIsNiwxLDQsNSw3LDgsOQ%3D%3D",
// "https://image.baidu.com/search/index?ct=201326592&z=undefined&tn=baiduimage&ipn=d&word=%E9%A3%8E%E6%99%AF%E5%9B%BE%E7%89%87&step_word=&ie=utf-8&in=&cl=2&lm=-1&st=undefined&hd=undefined&latest=undefined©right=undefined&cs=3152584363,899403381&os=1565289584,3094888122&simid=3152584363,899403381&pn=54&di=7108135681917976577&ln=1890&fr=&fmq=1655975348431_R&fm=&ic=undefined&s=undefined&se=&sme=&tab=0&width=undefined&height=undefined&face=undefined&is=0,0&istype=0&ist=&jit=&bdtype=0&spn=0&pi=0&gsm=0&objurl=https%3A%2F%2Fgimg2.baidu.com%2Fimage_search%2Fsrc%3Dhttp%253A%252F%252Fimg.jj20.com%252Fup%252Fallimg%252Ftp08%252F45041124184548-lp.jpg%26refer%3Dhttp%253A%252F%252Fimg.jj20.com%26app%3D2002%26size%3Df9999%2C10000%26q%3Da80%26n%3D0%26g%3D0n%26fmt%3Dauto%3Fsec%3D1658567350%26t%3D5f8419e2607f2a9421eb8dceffa6981b&rpstart=0&rpnum=0&adpicid=0&nojc=undefined&tt=1&dyTabStr=MCwzLDIsNiwxLDQsNSw3LDgsOQ%3D%3D"
// // "https://image.baidu.com/search/index?ct=201326592&z=undefined&tn=baiduimage&ipn=d&word=%E9%A3%8E%E6%99%AF%E5%9B%BE%E7%89%87&step_word=&ie=utf-8&in=&cl=2&lm=-1&st=undefined&hd=undefined&latest=undefined©right=undefined&cs=3915591019,3267670232&os=2141830996,3476325462&simid=3487109385,273017171&pn=87&di=7108135681917976577&ln=1890&fr=&fmq=1655975348431_R&fm=&ic=undefined&s=undefined&se=&sme=&tab=0&width=undefined&height=undefined&face=undefined&is=0,0&istype=0&ist=&jit=&bdtype=0&spn=0&pi=0&gsm=1e&objurl=https%3A%2F%2Fgimg2.baidu.com%2Fimage_search%2Fsrc%3Dhttp%253A%252F%252Fimg.jj20.com%252Fup%252Fallimg%252F1115%252F0ZR1095111%252F210ZP95111-11-1200.jpg%26refer%3Dhttp%253A%252F%252Fimg.jj20.com%26app%3D2002%26size%3Df9999%2C10000%26q%3Da80%26n%3D0%26g%3D0n%26fmt%3Dauto%3Fsec%3D1658567350%26t%3D8402c719dde88387c63faec1af005c13&rpstart=0&rpnum=0&adpicid=0&nojc=undefined&tt=1&dyTabStr=MCwzLDIsNiwxLDQsNSw3LDgsOQ%3D%3D"
// ]
img:["https://img1.baidu.com/it/u=3566020661,3504572203&fm=253&fmt=auto&app=120&f=JPEG?w=700&h=494",
"https://img1.baidu.com/it/u=1966616150,2146512490&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1656176400&t=5a6fc79c53e3ee12cd8a69afba79450a",
"https://img1.baidu.com/it/u=3569420573,2690721824&fm=253&fmt=auto&app=120&f=JPEG?w=889&h=500",
"https://img1.baidu.com/it/u=722430420,1974228945&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500"
]
},
// 页面一进来就要触发的函数
onLoad(){
// 调取接口写在这里 wx.request 请求数据的方法(微信官方提供的)
// this.getmov()
// this.getTv()
// this.getsec()
},
// // 第一种:弹出提示框,可以选择确定或者取消。
// // 代码:
// onLoad(options){
// wx.showModal({
// title: '提示',
// content: '这是一个模态弹窗',
// success: function (res) {
// if (res.confirm) {//这里是点击了确定以后
// console.log('用户点击确定')
// } else {//这里是点击了取消以后
// console.log('用户点击取消')
// }
// }
// })
// }
// 跳转搜索页面
goSearch(){
wx.navigateTo({
url: '../search/search',
})
},
gogame(){
wx.navigateTo({
url: '../game/game',
})
},
// 影院热映
getmov(){
wx.request({
// // 接口地址
url:"https://m.douban.com/rexxar/api/v2/subject_collection/movie_showing/items",
// 请求这个接口的方式方法
method:"GET",
// 前端给后台传值用的data {count:20}
data:{count:20},
success:(res)=>{
// 如果数据调取成功则把数据库的数据信息返回到前台 res代表后台给前台的响应(所有all)
// 将数据渲染到页面
// this.setData({}) 设置data中的数据
this.setData({
name:res.data.subject_collection.name,
list:res.data.subject_collection_items
})
console.log(this.data.list,1111);
}
})
},
// 近期热门剧集
getTv(){
wx.request({
url: 'https://m.douban.com/rexxar/api/v2/subject_collection/tv_hot/items',
method:"GET",
data:{count:20},
success:(res)=>{
console.log(res,'近期热门剧集');
this.setData({
name1:res.data.subject_collection.name,
list1:res.data.subject_collection_items
})
}
})
},
// 近期热门综艺节目
getsec(){
wx.request({
url: 'https://m.douban.com/rexxar/api/v2/subject_collection/tv_variety_show/items',
method:"GET",
data:{count:20},
success:(res)=>{
this.setData({
name2:res.data.subject_collection.name,
list2:res.data.subject_collection_items
})
}
})
}
})
没有合适的资源?快使用搜索试试~ 我知道了~
微信小程序编写豆瓣影评
共67个文件
json:15个
png:15个
js:14个
需积分: 8 0 下载量 96 浏览量
2022-07-03
20:19:53
上传
评论
收藏 139KB ZIP 举报
温馨提示
js技术,微信小程序编写豆瓣影评项目
资源详情
资源评论
资源推荐
收起资源包目录
豆瓣影评.zip (67个子文件)
img
images
5-point.png 3KB
6-point.png 3KB
3-point.png 3KB
4-point.png 3KB
1-point.png 2KB
2-point.png 3KB
image
jiandao.png 9KB
bu.png 9KB
剪刀石头布--页面布局.png 28KB
wenhao.png 11KB
shitou.png 8KB
搜索.png 9KB
rate_light.png 20KB
rate_half.png 8KB
rate_gray.png 16KB
component
star
star.wxml 648B
star.js 2KB
star.json 48B
star.wxss 204B
main
main.js 2KB
main.wxml 1KB
main.json 85B
main.wxss 1KB
app.json 818B
.eslintrc.js 587B
pages
more
more.wxml 270B
more.json 64B
more.js 1KB
more.wxss 723B
index
index.js 8KB
index.json 64B
index.wxss 2KB
index.wxml 5KB
newy
newy.wxss 26B
newy.js 753B
newy.json 27B
newy.wxml 89B
orderDetail
orderDetail.js 1KB
orderDetail.wxss 1KB
orderDetail.json 27B
orderDetail.wxml 819B
search
search.wxss 560B
search.json 30B
search.js 1KB
search.wxml 724B
logs
logs.js 0B
logs.json 4B
logs.wxml 0B
logs.wxss 0B
game
game.wxss 584B
game.wxml 372B
game.json 67B
game.js 2KB
game2
game2.json 27B
game2.wxml 995B
game2.wxss 1KB
game2.js 3KB
order
order.wxss 1KB
order.json 64B
order.wxml 1KB
order.js 3KB
project.private.config.json 375B
sitemap.json 191B
app.wxss 196B
app.js 364B
project.config.json 1KB
utils
util.js 460B
共 67 条
- 1
kingsndo
- 粉丝: 15
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0