Quellcode durchsuchen

删除 '微信小程序/index.js'

13395952019 vor 6 Jahren
Ursprung
Commit
3f68502baf
1 geänderte Dateien mit 0 neuen und 56 gelöschten Zeilen
  1. 0 56
      微信小程序/index.js

+ 0 - 56
微信小程序/index.js

@@ -1,56 +0,0 @@
-//index.js
-//获取应用实例
-const app = getApp()
-
-Page({
-  data: {
-   
-  },
- 
-  onLoad: function () {
-    var that=this;
-    wx.showLoading({
-      title: '正在加载中...',
-    })
-    //电影
-    wx.request({
-      url: 'https://m.douban.com/rexxar/api/v2/subject_collection/movie_showing/items?count=7',
-      success:function(res){
-        var movies = res.data.subject_collection_items;
-        that.setData({
-          movies:movies
-        })
-        // wx.hideLoading();
-      }
-    })
-
-    //电视剧
-    wx.request({
-      url: 'https://m.douban.com/rexxar/api/v2/subject_collection/tv_hot/items?count=7',
-      success: function (res) {
-        var tvs = res.data.subject_collection_items;
-        that.setData({
-          tvs: tvs
-        })
-        wx.hideLoading();
-      }
-    })
-
-    //综艺
-    wx.request({
-      url: 'https://m.douban.com/rexxar/api/v2/subject_collection/tv_variety_show/items?count=7',
-      success: function (res) {
-        var shows = res.data.subject_collection_items;
-        that.setData({
-          shows: shows
-        })
-        wx.hideLoading();
-      }
-    })
-  },
-  goBaidu:function(){
-    wx.navigateTo({
-      url: '/pages/comment/comment',
-    })
-  }
-})