diff --git a/src/views/popup/index.vue b/src/views/popup/index.vue index 6a7a0a7..fba828e 100644 --- a/src/views/popup/index.vue +++ b/src/views/popup/index.vue @@ -5,7 +5,7 @@
    -
  1. CocosStore打赏该插件
  2. +
  3. CocosStore打赏该插件
  4. 支持作者其他插件
  5. @@ -35,6 +35,10 @@
+
+ +
求五星好评
+
ver:{{ version }}
@@ -46,6 +50,7 @@ import { ButtonGroupItem } from "@xuyanfeng/cc-ui/types/cc-button-group/const"; import CCP from "cc-plugin/src/ccp/entry-render"; import { ChromeConst } from "cc-plugin/src/chrome/const"; import { defineComponent, onMounted, ref } from "vue"; +import PKG from "../../../cc-plugin.config"; import { Page } from "../../core/types"; import { ga } from "../../ga"; import { GA_EventName } from "../../ga/type"; @@ -137,8 +142,14 @@ export default defineComponent({ const viewType = ref(ViewType.Friends); const onlineTools = ref([]); const chooseItem = ref(items.value[0]); + const cocosStore = ref(PKG.manifest.store); const myPlugins = ref("https://store.cocos.com/app/search?name=xu_yanfeng"); return { + onClickRate() { + ga.fireEventWithParam(GA_EventName.Popup, "rate"); + window.open(PKG.manifest.chrome.url); + }, + cocosStore, myPlugins, onClickBuyPlugins() { ga.fireEventWithParam(GA_EventName.Popup, myPlugins.value); @@ -217,7 +228,16 @@ export default defineComponent({ flex-direction: row; height: 30px; align-items: center; + .rate { + display: flex; + flex-direction: row; + align-items: center; + cursor: pointer; + &:hover { + color: #ff0000; + } + } .space { flex: 1; } diff --git a/src/views/popup/res/star.png b/src/views/popup/res/star.png new file mode 100644 index 0000000..9ffb16f Binary files /dev/null and b/src/views/popup/res/star.png differ