微信小程序之-NBA赛程小程序开发
发表时间:2020-10-19
发布人:葵宇科技
浏览次数:77
项目源码地址:
wx-nba-project
项目中参考了wx-nba的部分样式及图片,接口数据都是来源于 腾讯网
使用wxParse来解析富文本,具体使用方法可以参考微信小程序解析富文本的几种方法
使用接口如下:
-
球队赛季 https://matchweb.sports.qq.com/nbaUnion/allSeasons
-
获取赛事直播列表 https://matchweb.sports.qq.com/kbs/list?columnId=100000&startTime=2020-09-11&endTime=2020-09-18&from=h5
-
比赛详情信息 https://matchweb.sports.qq.com/kbs/matchDetail?mid=100000:55068833&from=sportsh5
-
获取比赛集锦、回放、新闻、球队信息等 https://matchweb.sports.qq.com/html/matchStatV37?mid=100000%3A55068833
-
获取视频URL https://h5vv.video.qq.com/getinfo?platform=11001&charge=0&otype=json&ehost=https%3A%2F%2Fsports.qq.com&sphls=1&sb=1&nocache=0&_rnd=1600246631&guid=e01c0879af563e011f930ff22495de9f&appVer=V2.0Build9502&vids=f0034gt264t&defaultfmt=auto&&_qv_rmt=HYF/H4gNA10263H1w=&_qv_rmt2=cp+JMw0K160461RNw=&sdtfrom=v5010
-
获取球员基本信息 https://matchweb.sports.qq.com/player/baseInfo?&callback=playerBaseInfo&playerId=4725&from=web
-
获取球员profile https://matchweb.sports.qq.com/player/profile?playerId=4725&from=h5
-
获取球队基本信息详情 https://matchweb.sports.qq.com/team/baseInfo?teamId=12&competitionId=100000&from=h5
-
获取联盟排名 https://matchweb.sports.qq.com/rank/team?columnId=100000&from=NBA
-
获取文字直播IDs https://matchweb.sports.qq.com/textLive/index?competitionId=100000&matchId=55068833
-
根据id获取文字直播内容(需配合上面接口一起使用) https://matchweb.sports.qq.com/textLive/detail?competitionId=100000&matchId=55068833&ids=6710995922111756634_3126558223
-
获取球队比赛数据 https://matchweb.sports.qq.com/kbs/matchStat?mid=100000%3A55068833
-
获取指定球队赛程 https://matchweb.sports.qq.com/team/matchList?teamId=15&competitionId=100000
-
球队阵容球员列表 https://matchweb.sports.qq.com/team/players?teamId=12&competitionId=100000
-
获取球员得分篮板助攻抢断三分等排名 https://ziliaoku.sports.qq.com/cube/index?limit=30&cubeId=10&dimId=53%2C54%2C55%2C56%2C57%2C58¶ms=t2%3A2019%7Ct3%3A1&from=sportsdatabase
-
获取球员最近五场比赛数据、各赛季得分、及联盟平均数据等数据 https://matchweb.sports.qq.com/player/stats?&callback=playerStats&playerId=4725&from=web&_=1600175739021
-
获取球队最近五场比赛数据、各赛季得分、及联盟平均数据等数据 https://matchweb.sports.qq.com/team/stats?teamId=12&competitionId=100000&from=h5&seasonId=2019&seasonType=2
-
获取球队新闻列表 https://pacaio.match.qq.com/irs/index?flag=article&d1=irs%3Aarticle%3Aindex%3Anba&d2=0&idx1=irs%3Aarticle%3Aindex%3Anba&idx2=15&num=20&expIds=&page=0&_t=1601031429
-
新闻详情 https://pacaio.match.qq.com/openapi/getQQNewsContentBat?id=20200924A06KL700&newSource=1
-
评论 https://coral.qq.com/article/5912939908/comment?commentid=0&reqnum=50&tag=&source=5
效果图如下: