作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
接口调用:
https://www.jk.cxkf.cc/api_select.php
参数:
hero:英雄名字
type:qq、wx、ios_qq、ios_wx
qq:安卓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"
}
}
文件解压密码:wzzlphb
// 技术支持微信titi3241
var 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({
// 插屏广告id
adUnitId: "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
});
},
// 技术支持微信titi3241
onShareAppMessage: 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
IFA2020 荣耀全球媒体发布会在德国柏林举办,带来两款全新荣耀系列智能手表,其中荣耀手表 GS Pro 海外售价为 249.9€,约合人民币 2023 元,售价 99.9 欧元起;荣耀手表 ES
我是一名优秀的程序员,十分优秀!