@@ -390,6 +425,15 @@ export default {
this.active = i
document.querySelector(`#part${i}`).scrollIntoView()
},
+ // 置顶
+ topping() {
+ document.documentElement.scrollTop = 0
+ document.body.scrollTop = 0
+ },
+ // 问卷调查
+ toQues() {
+ window.open('https://www.wjx.cn/vm/wB0RcMm.aspx')
+ },
preview(row) {
// 登录后才能预览,否则直接跳转到登录页
if(this.token){
@@ -572,6 +616,10 @@ export default {
.wrap{
position: relative;
background-color: #F3F6FA;
+ .screen {
+ position: absolute;
+ top: -1000px;
+ }
.banner{
position: relative;
height: 518px;
@@ -586,7 +634,7 @@ export default {
left: 50%;
transform: translateX(-50%);
}
- .title{
+ .banner-title{
margin-bottom: 37px;
font-size: 45px;
color: #fff;
@@ -998,4 +1046,103 @@ export default {
overflow: auto;
}
}
+.tool {
+ z-index: 10;
+ position: fixed;
+ bottom: 100px;
+ right: 30px;
+ .item {
+ width: 45px;
+ height: 45px;
+ margin-bottom: 10px;
+ border: 1px solid #e5e5e5;
+ cursor: pointer;
+ }
+ .wechat {
+ background: #fff url(../../../assets/img/index/wechat.png) center center/auto no-repeat;
+ &:hover {
+ background-image: url(../../../assets/img/index/wechat-1.png);
+ background-color: #006EFF;
+ & + .popup {
+ display: block;
+ }
+ }
+ }
+ .tel {
+ background: #fff url(../../../assets/img/index/tel.png) center center/auto no-repeat;
+ &:hover {
+ background-image: url(../../../assets/img/index/tel-1.png);
+ background-color: #006EFF;
+ & + .popup {
+ display: block;
+ }
+ }
+ }
+ .topping {
+ background: #fff url(../../../assets/img/index/top.png) center center/auto no-repeat;
+ &:hover {
+ background-image: url(../../../assets/img/index/top-1.png);
+ background-color: #006EFF;
+ }
+ }
+ .popup {
+ position: absolute;
+ display: none;
+ }
+ .wechat-popup {
+ top: -100px;
+ left: -230px;
+ padding: 20px;
+ text-align: center;
+ background-color: #fff;
+ box-shadow: 0px 0px 7px 0px rgba(203, 203, 203, 0.55);
+ .tips {
+ font-size: 14px;
+ }
+ .des {
+ margin: 5px 0 15px;
+ font-size: 12px;
+ color: #333;
+ }
+ }
+ .tel-popup {
+ top: -10px;
+ left: -250px;
+ width: 250px;
+ border-right: 20px solid transparent;
+ &:hover {
+ display: block;
+ }
+ .tel-inner {
+ padding: 20px;
+ background-color: #fff;
+ box-shadow: 0px 0px 7px 0px rgba(203, 203, 203, 0.55);
+ }
+ .line {
+ display: flex;
+ &:first-child {
+ margin-bottom: 20px;
+ }
+ }
+ .text {
+ margin-left: 15px;
+ }
+ .title {
+ margin-bottom: 5px;
+ font-size: 14px;
+ cursor: pointer;
+ &:hover {
+ color: #006EFF;
+ }
+ }
+ .tel-num {
+ font-size: 12px;
+ color: #006EFF;
+ }
+ .des {
+ font-size: 12px;
+ color: #686868;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/setting.js b/src/setting.js
index faeaa23..50c8a2a 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -7,7 +7,12 @@
* 业务配置
* */
-const env = process.env.NODE_ENV;
+const url = location.host
+const dev = process.env.NODE_ENV === 'development' // 本地
+let host = `${location.origin}/`
+if (dev) {
+ host = 'http://121.37.12.51/'
+}
const Setting = {
/**
@@ -21,11 +26,11 @@ const Setting = {
showProgressBar: true,
/**
* 接口地址
- * 测试:http://39.108.250.202:9000
- * 正式:http://www.dataforward.cn:9000
+ * 测试:http://121.37.12.51
+ * 正式:https://www.dataforward.cn
* */
- // apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://39.108.250.202:9000',
- apiBaseURL: env === 'development' ? 'http://39.108.250.202:9000/' : `${location.origin}:9000/`,
+ // apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://121.37.12.51',
+ apiBaseURL: host,
// 加密货币接口地址
cryptoBaseURL: `http://159.138.53.111/`,
// 接口请求返回错误时,弹窗的持续时间,单位:秒