Merge branch 'feature/GFRS-456【0312】首页改版' into dev

This commit is contained in:
阳华祥
2020-03-05 11:39:30 +08:00
3 changed files with 21 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
* *
*/ */
let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl // 保融支付的收银台服务地址 let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl, zssqUrl // 保融支付的收银台服务地址
// 可以多个接口域名,按需添加 // 可以多个接口域名,按需添加
console.log('环境:', process.env.VUE_APP_FLAG) console.log('环境:', process.env.VUE_APP_FLAG)
@@ -17,6 +17,7 @@ switch (process.env.VUE_APP_FLAG) {
assetsUrl = 'http://139.199.50.151:8000/app/' assetsUrl = 'http://139.199.50.151:8000/app/'
mainUrl = 'http://139.199.50.151' mainUrl = 'http://139.199.50.151'
payUrl = 'http://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action' payUrl = 'http://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action'
zssqUrl = 'http://139.199.50.151/html/test/index.html#/'
break break
case 'uat': case 'uat':
apiDomain = 'http://115.159.235.59:7000/api/v1' // 国富api apiDomain = 'http://115.159.235.59:7000/api/v1' // 国富api
@@ -25,6 +26,7 @@ switch (process.env.VUE_APP_FLAG) {
assetsUrl = 'http://115.159.235.59:8000/app/' assetsUrl = 'http://115.159.235.59:8000/app/'
mainUrl = 'http://115.159.235.59' mainUrl = 'http://115.159.235.59'
payUrl = 'http://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action' payUrl = 'http://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action'
zssqUrl = 'http://139.199.50.151/html/test/index.html#/'
break break
case 'prd': case 'prd':
apiDomain = 'https://iagentsales.e-guofu.com/api/v1' apiDomain = 'https://iagentsales.e-guofu.com/api/v1'
@@ -32,6 +34,7 @@ switch (process.env.VUE_APP_FLAG) {
assetsUrl = 'https://iagentsales-sr.e-guofu.com:8443/' assetsUrl = 'https://iagentsales-sr.e-guofu.com:8443/'
mainUrl = 'https://iagentsales.e-guofu.com' mainUrl = 'https://iagentsales.e-guofu.com'
payUrl = 'https://uns3.e-guofu.com/s3-modules-gateway/embed/gateway.action' payUrl = 'https://uns3.e-guofu.com/s3-modules-gateway/embed/gateway.action'
zssqUrl = 'http://139.199.50.151/html/test/index.html#/'
break break
case 'dat': case 'dat':
apiDomain = '' apiDomain = ''
@@ -40,6 +43,7 @@ switch (process.env.VUE_APP_FLAG) {
assetsUrl = '' assetsUrl = ''
mainUrl = '' mainUrl = ''
payUrl = '' payUrl = ''
zssqUrl = ''
break break
} }
/** /**
@@ -56,5 +60,6 @@ export default {
// 静态服务资源 // 静态服务资源
assetsUrl, assetsUrl,
mainUrl, mainUrl,
payUrl payUrl,
} zssqUrl //知识社区地址
}

View File

@@ -25,6 +25,8 @@ Vue.use(Button)
Vue.use(Dialog) Vue.use(Dialog)
Vue.prototype.$assetsUrl = config.assetsUrl Vue.prototype.$assetsUrl = config.assetsUrl
Vue.prototype.$mainUrl = config.mainUrl Vue.prototype.$mainUrl = config.mainUrl
Vue.prototype.$zssqUrl = config.zssqUrl
// 全局 防重复点击 // 全局 防重复点击
Vue.directive('no-more-click', noMoreClick) Vue.directive('no-more-click', noMoreClick)
//解决ios移动端input调软键盘问题 //解决ios移动端input调软键盘问题

View File

@@ -5,7 +5,7 @@
<div class="home-product-pcenter"> <div class="home-product-pcenter">
<div class="pcenter-title flex pt10 mr20 mb10 ml15 justify-content-s align-items-c" style="height: 30px;"> <div class="pcenter-title flex pt10 mr20 mb10 ml15 justify-content-s align-items-c" style="height: 30px;">
<h3 class="center-title fs15 pl10" style="border-left: 4px solid red;">知识社区</h3> <h3 class="center-title fs15 pl10" style="border-left: 4px solid red;">知识社区</h3>
<span class="more fs13 c-gray-base" @click="checkZssq">查看更多</span> <span class="more fs13 c-gray-base" @click="checkZssqMore">查看更多</span>
</div> </div>
<div class="pcenter-list"> <div class="pcenter-list">
<div class="pcenter-title flex mt4 mb10 mr15 ml10 justify-content-s"> <div class="pcenter-title flex mt4 mb10 mr15 ml10 justify-content-s">
@@ -109,6 +109,16 @@ export default {
flag: 'webview_toast', flag: 'webview_toast',
extra: { content: '功能开发中,敬请期待' } extra: { content: '功能开发中,敬请期待' }
}) })
},
checkZssqMore() {
let that = this
this.$jump({
flag: 'h5',
extra: {
title: '知识社区',
url: that.$zssqUrl
}
})
} }
} }
} }