Skip to content

Commit

Permalink
📃 docs: hope
Browse files Browse the repository at this point in the history
  • Loading branch information
Chadwuo committed Nov 22, 2024
1 parent 701f073 commit a6fbb4d
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 41 deletions.
1 change: 0 additions & 1 deletion src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export {}

declare module 'vue' {
export interface GlobalComponents {
Advertisement: typeof import('./components/Advertisement.vue')['default']
Footer: typeof import('./components/Footer.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Expand Down
24 changes: 0 additions & 24 deletions src/components/Advertisement.vue

This file was deleted.

2 changes: 1 addition & 1 deletion src/pages/FAQs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
礼记 免费吗?
</div>
<div class="text-sm text-gray-500 leading-relaxed">
免费。礼记运营需要一定的服务器费用,目前依靠程序内部广告收益(你对广告容忍度很低,甚至可以关闭),可以收支平衡,是可维续的。
免费。礼记运营需要一定的服务器费用,目前依靠程序内部广告收益,可以收支平衡,是可维续的。
</div>
<div class="my-5">
<uv-line />
Expand Down
4 changes: 3 additions & 1 deletion src/pages/book/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ function calendarConfirm(e) {
</uv-form-item>
</uv-form>
</div>
<Advertisement class="mt-auto" />
<div class="mt-auto">
<ad unit-id="adunit-64aefbe92c2dc7bf" />
</div>
<uv-safe-bottom />
<uv-calendars
ref="calendarRef" lunar color="#F87171" confirm-color="#F87171" :date="dataSource.date.value"
Expand Down
6 changes: 4 additions & 2 deletions src/pages/family/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const actionSheetList = ref([])
async function onCreate() {
loading.value = true
await add().then(async (res) => {
if (res.success)
await useUserStore().getUserInfo()
Expand Down Expand Up @@ -80,7 +81,6 @@ onShareAppMessage(() => {
</script>

<template>
<div><uv-notice-bar text="您好!因微信平台政策限制,【家人共享】功能暂时受限,邀请家庭成员功能无法使用。如需帮助,请联系在线客服。感谢您的理解与支持!" /></div>
<div class="mt-3 h-full flex flex-col">
<div v-if="!userInfo.familyMembers" class="rounded-2xl bg-white p-4 space-y-2xl">
<div class="text-center">
Expand Down Expand Up @@ -148,7 +148,9 @@ onShareAppMessage(() => {
</button>
</div> -->
</div>
<Advertisement class="mt-auto" />
<div class="mt-auto">
<ad unit-id="adunit-64aefbe92c2dc7bf" />
</div>
</div>
<uv-action-sheet
ref="actionSheetRef" :actions="actionSheetList" :safe-area-inset-bottom="true"
Expand Down
4 changes: 3 additions & 1 deletion src/pages/friend/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ function onDel() {
</uv-form>
</div>
</div>
<Advertisement class="mt-auto" />
<div class="mt-auto">
<ad unit-id="adunit-64aefbe92c2dc7bf" />
</div>
<uv-safe-bottom />
</template>

Expand Down
4 changes: 3 additions & 1 deletion src/pages/giftIn/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ function onFriendClick(e) {
<uv-cell title="查看往来记录" is-link :border="false" @click="onFriendClick(dataSource.friendInfo)" />
</div>
</div>
<Advertisement class="mt-auto" />
<div class="mt-auto">
<ad unit-id="adunit-64aefbe92c2dc7bf" />
</div>
<uv-safe-bottom />
</template>

Expand Down
12 changes: 6 additions & 6 deletions src/pages/settings/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { update } from '@/alicloud/services/user'
import mpserverless from '~/alicloud/index'
const { userInfo } = storeToRefs(useUserStore())
function onChange(val) {
update({ enableAD: val })
}
// function onChange(val) {
// update({ enableAD: val })
// }
function openPrivacyContract() {
wx.openPrivacyContract()
Expand Down Expand Up @@ -66,13 +66,13 @@ function onBlur() {
</uv-cell>
<uv-cell title="标识" :border="false" :value="userInfo.oAuthUserId" />
</div>
<div class="rounded-2xl bg-white p-1">
<!-- <div class="rounded-2xl bg-white p-1">
<uv-cell title="开启广告" :label="userInfo.enableAD ? '页面广告已开启,礼记因你更美好!' : '礼记会继续努力,期待得到你的认可!'" :border="false">
<template #value>
<uv-switch v-model="userInfo.enableAD" active-color="#f87171" @change="onChange" />
</template>
</uv-cell>
</div>
</div> -->
<div class="rounded-2xl bg-white p-1">
<uv-cell is-link :border="false">
<template #title>
Expand All @@ -96,7 +96,7 @@ function onBlur() {
<uv-cell title="关于礼记" is-link :border="false" url="/pages/about/index" />
</div>
<div class="overflow-hidden rounded-2xl bg-white">
<Advertisement />
<ad unit-id="adunit-64aefbe92c2dc7bf" />
</div>
</div>
</template>
Expand Down
17 changes: 13 additions & 4 deletions src/pages/sponsor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,20 @@
"礼记"作为一个开放共享的项目,一直以来都致力于为用户提供高质量的服务与体验。由于项目的持续运行需要较大的资源投入,我们不得不在部分页面引入了少量广告以支持日常运营。
</div>
<div class="mt-2 indent-8 text-sm leading-relaxed">
我们理解即使极少的广告也可能会影响到您的使用体验,为此,我们在<text class="text-red" @click="router.push('/pages/settings/index')">
设置
</text>中提供了关闭广告的功能。如果您希望支持“礼记”,让这个社区继续成长并为更多人服务,请考虑保持广告开启状态。
我们理解即使极少的广告也可能会影响到您的使用体验,为此,
<text class="line-through">
我们在<text class="text-red">
设置
</text>中提供了关闭广告的功能。
</text>
<text class="text-sm font-bold">
(平台不允许设置广告关闭逻辑,此功能已不适用)
</text>
如果您希望支持“礼记”,让这个社区继续成长并为更多人服务,请考虑保持广告开启状态。
</div>
<div class="mt-auto">
<ad unit-id="adunit-45fd166651f430ec" ad-type="video" ad-theme="white" />
</div>
<Advertisement class="mt-auto" adtyle="video" />
</div>
</template>

Expand Down

0 comments on commit a6fbb4d

Please sign in to comment.