Jelajahi Sumber

店铺详情页面添加官网地址

zhaohongpeng 7 tahun lalu
induk
melakukan
911d770794
3 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 1 0
      components/store/BaseInfo.vue
  2. 1 1
      nuxt.config.js
  3. 2 2
      server.js

+ 1 - 0
components/store/BaseInfo.vue

@@ -35,6 +35,7 @@
             <div v-if="storeInfo.enterprise.enAddress.length >0">地址:<span v-text="storeInfo.enterprise.enAddress">深圳市南山区科技园科技南五路英唐大厦一楼</span></div>
             <div v-if="storeInfo.enterprise.enTel.length >0">电话:<span v-text="storeInfo.enterprise.enTel">0755-26038000/26038047/26038008/86140880</span></div>
             <div v-if="storeInfo.enterprise.enFax && storeInfo.enterprise.enFax.length > 0">传真:<span v-text="storeInfo.enterprise.enFax">0755-26038111</span></div>
+             <div v-if="storeInfo.enterprise.enUrl.length >0">官网地址:<a :href=storeInfo.enterprise.enUrl target="_blank">{{storeInfo.enterprise.enUrl}}</a></div>
           </div>
         </div>
       </div>

+ 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://192.168.253.60:9090/platform-b2c/' : 'http://192.168.253.121:9090/platform-b2c/')
+const baseUrl = process.env.BASE_URL || (isProdMode ? 'http://192.168.253.60:9090/platform-b2c/' : 'http://10.1.51.87:8080/platform-b2c/')
 const commonUrl = process.env.COMMON_URL || (isProdMode ? 'https://api-inquiry.usoftmall.com/' : 'http://218.17.158.219:24000/')
 
 module.exports = {

+ 2 - 2
server.js

@@ -1,9 +1,9 @@
-const Nuxt = require('nuxt')
+const Nuxt = require('nuxt')
 const app = require('express')()
 const proxy = require('http-proxy-middleware')
 const cookiejar = require('cookiejar')
 const host = process.env.HOST || '127.0.0.1'
-const port = process.env.PORT || 3000
+const port = process.env.PORT || 3100
 process.noDeprecation = true
 // const url = require('url')