Эх сурвалжийг харах

购物车、帮助中心改为新窗口打开

yangc 8 жил өмнө
parent
commit
037deaed1b

+ 1 - 1
components/default/Header.vue

@@ -46,7 +46,7 @@
             <a class="item" @click="onRegisterClick">注册</a>
             <nuxt-link class="item" :to="'/'">商城首页</nuxt-link>
           </template>
-          <nuxt-link class="item" to="/help/home">帮助中心</nuxt-link>
+          <nuxt-link class="item" to="/help/home" target="_blank">帮助中心</nuxt-link>
           <!--<a class="item" href="/help#/home">帮助中心</a>-->
         </div>
       </div>

+ 2 - 2
components/default/RightBar.vue

@@ -3,7 +3,7 @@
     <div class="right-bar">
       <ul class="right-bar-center">
         <li class="right-bar-item" @mouseenter="loadCarCount()">
-          <a @click="goCart" class="title" target="_blank">
+          <a @click="goCart" class="title">
             <i class="iconfont icon-shopping-cart icon-xlg"></i>
           </a>
           <div class="sidebar-menu"><a @click="goCart" title="我的购物车" target="_blank">我的购物车<em><span>(<span v-text="cartCount.count || 0"></span>)</span></em></a></div>
@@ -177,7 +177,7 @@
         if (!this.user.logged) {
           this.goLogin()
         } else {
-          window.location.href = '/user#/cart'
+          window.open('/user#/cart')
         }
       },
       goWebChat: function () {

+ 1 - 1
nuxt.config.js

@@ -1,6 +1,6 @@
 const path = require('path')
 const isProdMode = Object.is(process.env.NODE_ENV, 'production')
-const baseUrl = process.env.BASE_URL || (isProdMode ? 'http://10.10.100.107:8081/platform-b2c/' : 'http://192.168.253.132:8888/b2c-auth/')
+const baseUrl = process.env.BASE_URL || (isProdMode ? 'http://10.10.100.107:8081/platform-b2c/' : 'http://192.168.253.60:9090/platform-b2c/')
 
 module.exports = {
   router: {