Commit 0f62ba7608481142c8972742b52941927b355ff2

Authored by sanmu
1 parent 29276e29

feat: 1.0.7&add gtm

... ... @@ -7,7 +7,6 @@ import { useCategoryStore } from '~/stores/category'
7 7 // import { useI18n } from 'vue-i18n'
8 8 // const { t } = useI18n()
9 9  
10   -
11 10 useHead({
12 11 script: [
13 12 { src: 'https://www.googletagmanager.com/gtag/js?id=AW-881504701', async: true },
... ... @@ -19,16 +18,26 @@ useHead({
19 18 gtag('config', 'AW-881504701');
20 19 `,
21 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 34 const categoryStore = useCategoryStore()
28 35 categoryStore.getList()
29 36 </script>
30 37  
31 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 41 <Header v-if="!isMobile()" />
33 42 <MobileHeader v-if="isMobile()" />
34 43 <div class="tw-min-h-[700px]">
... ...
components/Footer.vue
... ... @@ -23,6 +23,7 @@
23 23 <p>Email: contact@canrd.com</p>
24 24 <p>Phone: +86 19867737979</p>
25 25 <p>Wechat: contactcanrd</p>
  26 + <p>Whatsapp:+86 19867737979</p>
26 27 </div>
27 28 <img class="tw-float-left" src="/wechat.jpg" alt="canrud-wechat" width="80" />
28 29 </v-col>
... ...
deploy/prod.sh
... ... @@ -2,7 +2,7 @@
2 2  
3 3 # 变量定义
4 4 IMAGE_NAME="canrud-outside-front"
5   -TAG="1.0.6"
  5 +TAG="1.0.7"
6 6 TAR_FILE="${IMAGE_NAME}_${TAG}.tar"
7 7 REMOTE_HOST="root@112.74.45.244"
8 8 REMOTE_DIR="/root/web/canrud-outside-nuxt-front"
... ...
pages/contact.vue
... ... @@ -23,6 +23,10 @@
23 23 <label class="text-subtitle-1 tw-mr-4 tw-w-20 tw-inline-block">Wechat</label>
24 24 <span>contactcanrd</span>
25 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 30 <div class="tw-w-[300px]">
27 31 <v-img src="/wechat.jpg" alt="canrud-wechat"></v-img>
28 32 </div>
... ...