Skip to content

Commit

Permalink
在使用 indexfs.moonvy.com 的翻译服务时显示广告,尝试给腾讯翻译的服务费回血
Browse files Browse the repository at this point in the history
  • Loading branch information
yArna committed Apr 13, 2023
1 parent f3790fd commit 3b840db
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Binary file added src/Compoents/PromptEditor/Assets/ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions src/Compoents/PromptEditor/PromptEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,16 @@
</div>
</div>
</div>

<!-- 在使用 indexfs.moonvy.com 的翻译服务时显示广告,尝试给腾讯翻译的服务费回血 -->
<div v-if="needShowAd" class="ad-box" v-tooltip="'广告商提供的内容,与本网站(Moonvy 月维)无关'">
<a href="https://nf.video/yinhe/web?sharedId=124758" target="_blank"> <img src="./Assets/ad.png" /> </a>
</div>
</div>
</template>
<style lang="scss">
.PromptEditor {
position: relative;
max-width: 1280px;
margin: auto;
.debug {
Expand Down Expand Up @@ -168,6 +174,14 @@
}
}
}
.ad-box {
position: absolute;
bottom: -93px;
left: 18px;
img {
height: 52px;
}
}
}
</style>
<script lang="ts">
Expand Down Expand Up @@ -208,5 +222,12 @@ export default Vue.extend({
this.promptEditor.removeWorkspace(promptWork)
},
},
computed: {
needShowAd() {
if (this.promptEditor.data.server?.startsWith("https://indexfs.moonvy.com")) {
return true
}
},
},
})
</script>

0 comments on commit 3b840db

Please sign in to comment.