小案例:王者荣耀战力查询系统(免费调用外部接口
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                小案例:王者荣耀战力查询系统(免费调用外部接口
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                一、查詢網址(點擊):
王者戰力查詢-王者戰力排行榜
二、戰力查詢接口:
接口調用: https://www.jk.cxkf.cc/api_select.php參數: hero:英雄名字 type:qq、wx、ios_qq、ios_wxqq:安卓QQ區 wx:安卓微信區 ios_qq:蘋果QQ區 ios_wx:蘋果微信區示例: https://jk.cxkf.cc/api_select.php?hero=武則天&type=wx結果:{"code": 200,"data": {"id": "118","fid": "30","name": "武則天","alias": "女帝-武則天","photo": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/136/136.jpg","area": "麟游縣","areaPower": "1000","city": "新余市","cityPower": "3458","province": "臺灣省","provincePower": "6437","platform": "安卓-微信區","stamp": "1637773082","updatetime": "2021/11/25 00:58:02","clientIP": "106.52.60.110","type": "wx"} }?三、查詢結果:
四、源碼下載:
王者小程序源碼
 1.0.0版本微云下載
 https://share.weiyun.com/9zhGFvyZ
 1.0.1版本微云下載
 https://share.weiyun.com/PXnIWw2a
 或百度云鏈接:
 https://pan.baidu.com/s/1N8Kg4Bf6kYxPoWOSBUN-_w?
 提取碼:yzkj?
 ----------------------
 文件解壓密碼:wzzlphb
五、部分代碼:
// 技術支持微信titi3241var t = null, e = getApp();Page({data: {showModel: !1,herolist: null,heroInfo: null,currHero: null,swiperList: e.globalData.swiperList},onLoad: function(e) {wx.createInterstitialAd && ((t = wx.createInterstitialAd({// 插屏廣告idadUnitId: "adunit-45dd04e58aca0595"})).onLoad(function() {}), t.onError(function(t) {}), t.onClose(function() {}));var o = this;wx.showLoading({title: "大招CD中..."}), wx.request({url: "https://jk.cxkf.cc/api_herolist.php",header: {"Content-Type": "application/json"},success: function(t) {200 == t.data.code && o.setData({herolist: t.data.data});},complete: function() {wx.hideLoading();}});},onShow: function() {t && t.show().catch(function(t) {console.error(t);});},findHero: function(t) {var e = this;wx.showLoading({title: "大招CD中..."});var o = t.currentTarget.dataset.hero;"" == o ? wx.showToast({title: "沒有找到相關英雄",icon: "info"}) : (e.setData({currHero: o}), wx.request({url: "https://jk.cxkf.cc/api_select.php?hero=" + o + "&type=wx",header: {"Content-Type": "application/json"},success: function(t) {if (200 == t.data.code) {var o = t.data.data;e.showModal(o);} else wx.showToast({title: "請求失敗",icon: "info"});},complete: function() {wx.hideLoading();}}));},showModal: function(t) {this.setData({heroInfo: t,showModel: !0});},hideModal: function() {this.setData({heroInfo: null,showModel: !1});},// 技術支持微信titi3241onShareAppMessage: function() {return {title: "免費查王者榮耀戰力排行榜,助你最低戰力上榜!快速拿標!",path: "/pages/qq/index",imageUrl: "https://cy.wen1024.com/img/wzqs/share.png"};},onShareTimeline: function() {return {title: "免費查王者榮耀戰力排行榜,助你最低戰力上榜!快速拿標!",path: "/pages/qq/index"};} });// 技術支持微信titi3241總結
以上是生活随笔為你收集整理的小案例:王者荣耀战力查询系统(免费调用外部接口的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: #高等数学# 第八章 微分方程
- 下一篇: java 量化指标_SAR指标配合阶段高
