Skip to content

Commit

Permalink
fix: 修改帮助信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Saltro committed Aug 26, 2023
1 parent 50bd682 commit e574504
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 32 deletions.
2 changes: 1 addition & 1 deletion components/page-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<header>
<app-header v-if="appLogo" :app-logo="appLogo" />
<img v-if="image" :src="image" />
<h1 v-if="title" :style="{ marginTop: titleGap }">{{ title }}</h1>
<h1 v-if="title" :style="{ marginTop: image ? titleGap : '' }">{{ title }}</h1>
<h1 v-else :style="{ marginTop: titleGap }">使用<strong>自强 Studio 账号</strong>登录</h1>
<p class="notice">{{ notice }}</p>
</header>
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"vite-svg-loader": "^4.0.0"
},
"dependencies": {
"copy-to-clipboard": "^3.3.3",
"vue-m-message": "^4.0.2"
}
}
2 changes: 1 addition & 1 deletion pages/certify-pending.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
重新发送邮件{{ messageTimeout > 0 ? ` (${messageTimeout})` : '' }}
</button>
</form>
<p class="action"><nuxt-link to="/help">无法访问武大邮箱?</nuxt-link></p>
<p class="action"><nuxt-link to="/help">如何访问武大邮箱?</nuxt-link></p>
</template>
<script lang="ts" setup>
import MMessage from 'vue-m-message';
Expand Down
2 changes: 1 addition & 1 deletion pages/certify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<button type="submit">发送验证邮件</button>
<button :disabled="isCertifyOnly" class="skip" @click="confirmSkip">跳过</button>
</form>
<p class="action"><nuxt-link to="/help">无法访问武大邮箱?</nuxt-link></p>
<p class="action"><nuxt-link to="/help">如何访问武大邮箱?</nuxt-link></p>
</template>
<script lang="ts" setup>
import User from 'assets/icon/user.svg?component';
Expand Down
16 changes: 1 addition & 15 deletions pages/help.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<template>
<page-back v-if="!isWxapp" />
<page-header
title="无法访问武大邮箱"
title="如何访问武大邮箱"
:notice="`在浏览器中打开 ${WHU_MAIL} 以访问武大邮箱。新生邮箱初始用户名为学号,密码为身份证后六位+考生号后两位`"
/>
<p v-if="!isWxapp" class="action" @click="handleOpen"><a>访问武大邮箱</a></p>
<p v-else class="action" @click="handleCopy"><a>复制武大邮箱地址</a></p>
</template>
<script setup lang="ts">
import { useWxapp } from '@/utils/use-wxapp';
import copy from 'copy-to-clipboard';
import { WHU_MAIL } from '@/constants/url';
import MMessage from 'vue-m-message';
Expand All @@ -22,18 +20,6 @@ function handleOpen() {
MMessage.error('访问失败,请手动打开武大邮箱');
}
}
function handleCopy() {
try {
copy(WHU_MAIL, {
onCopy: () => {
MMessage.success('复制成功,请在浏览器中打开武大邮箱');
},
});
} catch {
MMessage.error('复制失败,请手动打开武大邮箱');
}
}
</script>
<style scoped lang="less">
.action {
Expand Down
13 changes: 0 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e574504

Please sign in to comment.