1. 注册小程序,获取appid
http://www.wxapp-union.com/forum.php?mod=viewthread&tid=495
2.引入hotapp
https://weixin.hotapp.cn/api/searchkey
1.App key:hotapp33481812
引入hotapp插件并在小程序的app.js的onLaunch方法里输入hotApp.init("hotapp33481812")
2.设置appid和appsecret:
微信AppID:wxccaf75f2a474c729
微信App secret:0df62115dob60565afb85aa64c188oce
3.调用hotapp获取数据:
1.调用hotapp:
var app=getApp() 信息服务平台
hotapp=app.globalData.hotapp; 全部资料
2.判断是否登陆:wx.login登陆
3.获取数据:searchkey=>wx.request 申请求
4.onReachBottom页面上拉触底事件的处理函数
wx.request({url:‘https://wxapi.hotapp.cn/api/searchkey‘,
data:{prefix:‘image‘,
pageindex:1,
pagesize:3,
appkey."hotapp33481812"
时间: 2024-10-03 15:01:28