金刚区 type
值星宿中有 6
种定义分别为:
1.xs_default 默认值跳二级 2.xs_tap 跳转底部导航 3.xs_program 跳转小程序 4.xs_business 跳转业务域名请在 route 填写网站地址 5.xs_wxvideo_activity 打开某个视频号视频 6.xs_bilibli 跳转 b 站小程序,appid 参数是 AV 号,但 b 站目前只有显式的 BV 号。获取视频的号,在 PC 端的播放页面打开 F12 输入 aid 即可获得
跳文章详情
在基本配置
---金刚区
中可配置跳转文章详情
格式: {"title": "标题", "type": "xs_default", "appid": "","route":"/pages/data/data?id=文章 ID","himg":"图标地址"} 事例: {"title": "星宿 V3.0", "type": "xs_default", "appid": "","route":"/pages/data/data?id=4247","himg":"https://vip.2sb.top/xingsu.png"}
跳分类列表
在基本配置
---金刚区
中可配置跳分类列表
格式: {"title": "标题", "type": "xs_default", "appid": "","route":"/pages/list/list?catepos=分类 ID","himg":"图标地址"} 事例: {"title": "Uni-apps", "type": "xs_default", "appid": "","route":"/pages/list/list?catepos=147","himg":"https://vip.2sb.top/xingsu.png"}
跳转 web-view
在基本配置
---金刚区
中可配置跳网页,个人小程序能跳转公众号
,企业可以跳业务域名
;
格式: {"title": "标题", "type": "xs_business", "appid": "","route":"公众号文章地址","himg":"图标地址"} 事例: {"title": "规划", "type": "xs_business", "appid": "","route":"https://mp.weixin.qq.com/s/WSb53WO_Em4F81khimsbBw","himg":"/static/index/dstrict-2.svg"}
跳转小程序
在基本配置
---金刚区
中可配置跳转小程序;route
可以留空,留空默认跳转首页,它也可以跳转详情页面只需要写页面地址和参数
格式: {"title": "标题", "type": "xs_program", "appid": "小程序 ID","route":"","himg":"图标地址"} 事例: {"title": "规划", "type": "xs_program", "appid": "wx770bd62bc4ca8c7b","route":"","himg":"/static/index/dstrict-2.svg"}
视频号
在基本配置
---金刚区
中可配置跳转视频号;appid
:输入视频号 id,以 「sph」 开头的 id,route
:视频 feedId,就是视频链接
格式: {"title": "标题", "type": "xs_wxvideo_activity", "appid": "小程序 ID","route":"","himg":"图标地址"} 事例: {"title": "视频号", "type": "xs_wxvideo_activity", "appid": "sphZH1MCAzuup7O","route":"export/UzFfAgtgekIEAQAAAAAAkmgZ-dnzgQAAAAstQy6ubaLX4KHWvLEZgBPEvqEYVUZGRauDzNPgMJqd9yLzTJ4xAM85VZ0MYmrr","himg":"/static/index/dstrict-1.svg"}
跳转 B 站
在基本配置
---金刚区
中可配置跳转 B 站;在 PC 端的播放页面打开 F12 输入 aid
即可获得,或者通过其他的接口等方法
格式: {"title": "标题", "type": "xs_program", "appid": "视频 aid 号","route":"","himg":"图标地址"} 事例: {"title": "B 站", "type": "xs_program", "appid": "512196103","route":"","himg":"/static/index/dstrict-2.svg"}