金刚区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"}