diff --git a/src/ga/type.ts b/src/ga/type.ts index 37ff9ab..645f646 100644 --- a/src/ga/type.ts +++ b/src/ga/type.ts @@ -94,6 +94,7 @@ export enum GA_EventName { * 用户主动关闭store广告 */ CloseAd = "close_ad", + OpenDoc = "open_doc", /** * 展示广告 */ @@ -106,6 +107,7 @@ export enum GA_EventName { export enum GA_Button { Github = "github", Issues = "issues", + Docs = "docs", QQ = "qq", /** * 当页面不支持cocos时,用户手动点击了刷新 diff --git a/src/scripts/inject-view/app.vue b/src/scripts/inject-view/app.vue index 3308b8c..a854cab 100644 --- a/src/scripts/inject-view/app.vue +++ b/src/scripts/inject-view/app.vue @@ -88,6 +88,16 @@ export default defineComponent({ }); }, }, + { + icon: "icon_book", + txt: "插件完整功能介绍(Gif动画)", + contextmenu: () => {}, + visible: true, + click: () => { + sendGaEvent(GA_EventName.OpenDoc); + window.open("https://juejin.cn/post/7463836172559024179"); + }, + }, { icon: "icon_do_play", click: (event: MouseEvent, item: ListItem) => { diff --git a/src/views/devtools/index.vue b/src/views/devtools/index.vue index 73a6b4e..4f9071e 100644 --- a/src/views/devtools/index.vue +++ b/src/views/devtools/index.vue @@ -75,11 +75,20 @@ export default defineComponent({ }); ccui.footbar.registerCmd({ icon: "qq", + title: "加入QQ群,一起吐槽唠嗑", cb: () => { - window.open("https://jq.qq.com/?_wv=1027&k=5SdPdy2"); + window.open("http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=Bb-7s7qr2C30Ys8HTkni5wnuyxw6UoDA&authKey=M5yO2j0bTRHo1e8tlTU%2FGMGya1gW03ZhRbApZBkycwnXMxpDzwibWaJtrXZyxXYl&noverify=0&group_code=591101717"); ga.clickButton(GA_Button.QQ); }, }); + ccui.footbar.registerCmd({ + icon: "book", + title: "插件完整功能介绍(Gif动画)", + cb: () => { + ga.clickButton(GA_Button.Docs); + window.open("https://juejin.cn/post/7463836172559024179"); + }, + }); ccui.footbar.registerCmd({ icon: "support", cb: () => {