Explorar el Código

change: 若干链接替换.

peter hace 6 días
padre
commit
fc86f959c4
Se han modificado 3 ficheros con 18 adiciones y 6 borrados
  1. 3 3
      components/PcFooter.vue
  2. 1 1
      components/PcHeader.vue
  3. 14 2
      components/Project.vue

+ 3 - 3
components/PcFooter.vue

@@ -146,7 +146,7 @@
     <div class="footer-bottom">
       <div class="footer-bottom-item com-width-1400 com-margin-auto">
         <div class="footer-bottom-item-left">
-          <a href="https://www.facebook.com/profile.php?id=100070939456361">
+          <a href="https://www.facebook.com/profile.php?id=100070939456361" target="_blank">
             <img
               src="@/assets/img/Shape 4.png"
               alt="" />
@@ -161,12 +161,12 @@
               src="@/assets/img/Shape 7.png"
               alt="" />
           </a> -->
-          <a href="https://www.instagram.com/promocollectioneu/">
+          <a href="https://www.instagram.com/promocollectioneu/" target="_blank">
             <img
               src="@/assets/img/Shape 21.png"
               alt="" />
           </a>
-          <a href="https://www.linkedin.com/company/promocollection-uk/?viewAsMember=true">
+          <a href="https://www.linkedin.com/company/promocollection-uk/?viewAsMember=true" target="_blank">
             <img src="@/assets/img/linkin.png" alt="">
           </a>
         </div>

+ 1 - 1
components/PcHeader.vue

@@ -479,7 +479,7 @@
                 params: { newsName: 'indent-ideas', id: indentIdeasArticle.id },
               }"
               target="_self">
-              Indent Sourcing
+              Bespoke Service
             </nuxt-link>
           </div>
         </li>

+ 14 - 2
components/Project.vue

@@ -16,9 +16,14 @@
         <img src="@/assets/img/question.png" /><span>Quick Question</span>
       </div> -->
       <a
-        href="https://zfrmz.com/2IuJGuGLCRBROyJXZetQ"
+        :href="
+          'https://forms.zohopublic.com/promocollection/form/ClientDetails/formperma/1Xq9qhTYZd3EuGJarUVql1FUXi096vI60BnG-lQ0Gh4?email=' +
+          encodeURIComponent(userInfo.email) +
+          '&product_code=' +
+          encodeURIComponent(productInfo.product_code)
+        "
         target="_target"
-        v-if="isLogin && /\@promocollection(.com.au|uk)/.test(userInfo.email)">
+        v-if="isLogin && domainList.some(i=> i.test(userInfo.email))">
         <div class="flex btn-nav">
           <img src="@/assets/img/tick.png" /><span>Ticket</span>
         </div>
@@ -61,6 +66,13 @@ export default {
   },
   data() {
     return {
+      domainList: [
+        /\@promocollection/,
+        /\@primepac/,
+        /\@pangea/,
+        /\@phonelocker/,
+        /\@phoenixexhibit/,
+      ],
       defaultURL: 'https://zfrmz.com/2IuJGuGLCRBROyJXZetQ',
       recordData: null
     }