Commit 0f62ba7608481142c8972742b52941927b355ff2
1 parent
29276e29
feat: 1.0.7&add gtm
Showing
4 changed files
with
17 additions
and
3 deletions
app.vue
@@ -7,7 +7,6 @@ import { useCategoryStore } from '~/stores/category' | @@ -7,7 +7,6 @@ import { useCategoryStore } from '~/stores/category' | ||
7 | // import { useI18n } from 'vue-i18n' | 7 | // import { useI18n } from 'vue-i18n' |
8 | // const { t } = useI18n() | 8 | // const { t } = useI18n() |
9 | 9 | ||
10 | - | ||
11 | useHead({ | 10 | useHead({ |
12 | script: [ | 11 | script: [ |
13 | { src: 'https://www.googletagmanager.com/gtag/js?id=AW-881504701', async: true }, | 12 | { src: 'https://www.googletagmanager.com/gtag/js?id=AW-881504701', async: true }, |
@@ -19,16 +18,26 @@ useHead({ | @@ -19,16 +18,26 @@ useHead({ | ||
19 | gtag('config', 'AW-881504701'); | 18 | gtag('config', 'AW-881504701'); |
20 | `, | 19 | `, |
21 | type: 'text/javascript' | 20 | type: 'text/javascript' |
21 | + }, | ||
22 | + { | ||
23 | + children: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
24 | + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
25 | + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | ||
26 | + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | ||
27 | + })(window,document,'script','dataLayer','GTM-MGPGTKX3') | ||
28 | + `, | ||
29 | + type: 'text/javascript' | ||
22 | } | 30 | } |
23 | ] | 31 | ] |
24 | }) | 32 | }) |
25 | 33 | ||
26 | - | ||
27 | const categoryStore = useCategoryStore() | 34 | const categoryStore = useCategoryStore() |
28 | categoryStore.getList() | 35 | categoryStore.getList() |
29 | </script> | 36 | </script> |
30 | 37 | ||
31 | <template> | 38 | <template> |
39 | + <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MGPGTKX3" height="0" width="0" | ||
40 | + style="display:none;visibility:hidden"></iframe></noscript> | ||
32 | <Header v-if="!isMobile()" /> | 41 | <Header v-if="!isMobile()" /> |
33 | <MobileHeader v-if="isMobile()" /> | 42 | <MobileHeader v-if="isMobile()" /> |
34 | <div class="tw-min-h-[700px]"> | 43 | <div class="tw-min-h-[700px]"> |
components/Footer.vue
@@ -23,6 +23,7 @@ | @@ -23,6 +23,7 @@ | ||
23 | <p>Email: contact@canrd.com</p> | 23 | <p>Email: contact@canrd.com</p> |
24 | <p>Phone: +86 19867737979</p> | 24 | <p>Phone: +86 19867737979</p> |
25 | <p>Wechat: contactcanrd</p> | 25 | <p>Wechat: contactcanrd</p> |
26 | + <p>Whatsapp:+86 19867737979</p> | ||
26 | </div> | 27 | </div> |
27 | <img class="tw-float-left" src="/wechat.jpg" alt="canrud-wechat" width="80" /> | 28 | <img class="tw-float-left" src="/wechat.jpg" alt="canrud-wechat" width="80" /> |
28 | </v-col> | 29 | </v-col> |
deploy/prod.sh
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | # 变量定义 | 3 | # 变量定义 |
4 | IMAGE_NAME="canrud-outside-front" | 4 | IMAGE_NAME="canrud-outside-front" |
5 | -TAG="1.0.6" | 5 | +TAG="1.0.7" |
6 | TAR_FILE="${IMAGE_NAME}_${TAG}.tar" | 6 | TAR_FILE="${IMAGE_NAME}_${TAG}.tar" |
7 | REMOTE_HOST="root@112.74.45.244" | 7 | REMOTE_HOST="root@112.74.45.244" |
8 | REMOTE_DIR="/root/web/canrud-outside-nuxt-front" | 8 | REMOTE_DIR="/root/web/canrud-outside-nuxt-front" |
pages/contact.vue
@@ -23,6 +23,10 @@ | @@ -23,6 +23,10 @@ | ||
23 | <label class="text-subtitle-1 tw-mr-4 tw-w-20 tw-inline-block">Wechat</label> | 23 | <label class="text-subtitle-1 tw-mr-4 tw-w-20 tw-inline-block">Wechat</label> |
24 | <span>contactcanrd</span> | 24 | <span>contactcanrd</span> |
25 | </div> | 25 | </div> |
26 | + <div class="tw-mb-1"> | ||
27 | + <label class="text-subtitle-1 tw-mr-4 tw-w-20 tw-inline-block">Whatsapp</label> | ||
28 | + <span>+86 19867737979</span> | ||
29 | + </div> | ||
26 | <div class="tw-w-[300px]"> | 30 | <div class="tw-w-[300px]"> |
27 | <v-img src="/wechat.jpg" alt="canrud-wechat"></v-img> | 31 | <v-img src="/wechat.jpg" alt="canrud-wechat"></v-img> |
28 | </div> | 32 | </div> |