猫眼电影小微信小程序.zip
大小:49.17KB
价格:11积分
下载量:0
评分:
5.0
上传者:m0_64904350
更新日期:2024-07-17

猫眼电影小微信小程序.zip

资源文件列表(大概)

文件名
大小
代码/mymovie/
-
代码/mymovie/.eslintrc.js
587B
代码/mymovie/app.js
364B
代码/mymovie/app.json
965B
代码/mymovie/app.wxss
196B
代码/mymovie/images/
-
代码/mymovie/images/add-user.png
5.89KB
代码/mymovie/images/add-user-selected.png
6.22KB
代码/mymovie/images/movie.png
5.71KB
代码/mymovie/images/movie-selected.png
5.98KB
代码/mymovie/images/search-minus.png
7.01KB
代码/mymovie/images/search-minus-selected.png
7.47KB
代码/mymovie/pages/
-
代码/mymovie/pages/detail/
-
代码/mymovie/pages/detail/detail.js
1.37KB
代码/mymovie/pages/detail/detail.json
27B
代码/mymovie/pages/detail/detail.wxml
492B
代码/mymovie/pages/detail/detail.wxss
476B
代码/mymovie/pages/index/
-
代码/mymovie/pages/index/index.js
1.42KB
代码/mymovie/pages/index/index.json
27B
代码/mymovie/pages/index/index.wxml
952B
代码/mymovie/pages/index/index.wxss
264B
代码/mymovie/pages/logs/
-
代码/mymovie/pages/logs/logs.js
305B
代码/mymovie/pages/logs/logs.json
77B
代码/mymovie/pages/logs/logs.wxml
197B
代码/mymovie/pages/logs/logs.wxss
106B
代码/mymovie/pages/movie/
-
代码/mymovie/pages/movie/movie.js
1.8KB
代码/mymovie/pages/movie/movie.json
71B
代码/mymovie/pages/movie/movie.wxml
598B
代码/mymovie/pages/movie/movie.wxss
474B
代码/mymovie/project.config.json
1.69KB
代码/mymovie/sitemap.json
191B
代码/mymovie/utils/
-
代码/mymovie/utils/util.js
460B

资源内容介绍

大学甡手作源码
// pages/movie/movie.jsPage({ /** * 页面的初始数据 */ data: { motto:"hello2", msg:"你好中国", list:[] }, goDetail:function(event){ console.log(event.currentTarget.dataset.id); wx.navigateTo({ url: '../detail/detail?id='+event.currentTarget.dataset.id, }) }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { wx.showLoading({ title: '加载中', }) //保存this对象 =》 代表的是page对象 var _this = this; wx.request({ url: 'https://m.maoyan.com/ajax/movieOnInfoList', header: { 'content-type': 'application/json' // 默认值 }, success (res) { wx.hideLoading(); var movieList = res.data.movieList; for(var i=0; i<movieList.length;i++) { movieList[i].img = movieList[i].img.replace("http","https"); movieList[i].img = movieList[i].img.replace("w.h","50.50"); } //console.log(movieList); //设置data的属性list=movieList _this.setData({ list:movieList }) } }) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, /** * 生命周期函数--监听页面隐藏 */ onHide: function () { }, /** * 生命周期函数--监听页面卸载 */ onUnload: function () { }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: function () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () { }, /** * 用户点击右上角分享 */ onShareAppMessage: function () { }})

用户评论 (0)

发表评论

captcha