| | |
| | | { |
| | | "appId": "20201221213901540C6BC419CE41E47FABA62", |
| | | "appkey": "2020122121373692319E639E61B0E46A6BC2C", |
| | | "appId": "20210626201534927C87102C56DF9484EB501", |
| | | "appkey": "20210626201522493D7AD7591D7A547278685", |
| | | "mainSystemApi": "https://cloud.positecgroup.com/webapi/dostars", |
| | | "systemType": "", |
| | | "externalDatabase": "mkdata_kress_test", |
| | | "externalDatabase": "mkdata_worx_test", |
| | | "lineColor": "", |
| | | "filter": "false", |
| | | "defaultApp": "", |
| | | "defaultLang": "zh-CN", |
| | | "WXAppID": "wxa5dd6f28cae613fc", |
| | | "WXAppID": "wx4d8a34c8d4494872", |
| | | "WXminiAppID": "", |
| | | "nginx": "true", |
| | | "debugger": false, |
| | |
| | | "transfer": "false", |
| | | "keepPassword": "true", |
| | | "platforms": ["H5", "wechat", "android", "ios", "wxMiniProgram"], |
| | | "host": "http://bms-test.kresstools.cn", |
| | | "service": "oc/" |
| | | "host": "http://dms-test.worx.cn", |
| | | "service": "new/" |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | <<<<<<< HEAD |
| | | * @description 使用dostar接口,跳过验证 |
| | | * @param {Object} param 查询及提交参数 |
| | | */ |
| | | loginAndRedirect (param) { |
| | | let url = '' |
| | | if (process.env.NODE_ENV === 'production') { |
| | | url = document.location.origin + '/Home/LoginAndRedirect' |
| | | url = document.location.origin + '/zh-CN/Home/LoginAndRedirect' |
| | | } else { |
| | | url = '/Home/LoginAndRedirect' |
| | | url = window.GLOB.location + '/zh-CN/Home/LoginAndRedirect' |
| | | } |
| | | |
| | | return axios({ |
| | |
| | | } |
| | | |
| | | /* @description 直接请求 |
| | | ======= |
| | | * @description 微信业务请求 |
| | | */ |
| | | wxAccessToken () { |
| | | let _url = window.GLOB.baseurl + 'wxpay/getaccesstoken' |
| | | if (process.env.NODE_ENV !== 'production') { |
| | | _url = document.location.origin + '/wxpay/getaccesstoken' |
| | | } |
| | | |
| | | return new Promise(resolve => { |
| | | if (window.GLOB.accessToken.accessTime && (parseInt(new Date().getTime() / 1000) - window.GLOB.accessToken.accessTime < 30)) { |
| | | resolve(window.GLOB.accessToken) |
| | | } else { |
| | | window.GLOB.accessToken = {} |
| | | axios({ |
| | | url: _url, |
| | | method: 'get' |
| | | }).then(res => { |
| | | if (res.oa_access_token || res.mini_access_token) { |
| | | window.GLOB.accessToken.accessTime = parseInt(new Date().getTime() / 1000) |
| | | window.GLOB.accessToken.oa_access_token = res.oa_access_token |
| | | window.GLOB.accessToken.mini_access_token = res.mini_access_token |
| | | } |
| | | resolve(res) |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * @description 微信业务请求 |
| | | */ |
| | | wxNginxRequest (url, method, param) { |
| | | let _url = window.GLOB.location + '/' + url |
| | | if (process.env.NODE_ENV === 'production') { |
| | | _url = document.location.origin + '/' + url |
| | | } |
| | | if (/^http:\/\/(qingqiumarket.cn|cloud.mk9h.cn|sso.mk9h.cn)/.test(_url)) { |
| | | _url = window.GLOB.location + ':8080/' + url |
| | | if (process.env.NODE_ENV === 'production') { |
| | | _url = document.location.origin + ':8080/' + url |
| | | } |
| | | } else if (/^https:\/\/(qingqiumarket.cn|cloud.mk9h.cn|sso.mk9h.cn)/.test(_url)) { |
| | | _url = window.GLOB.location + ':8443/' + url |
| | | if (process.env.NODE_ENV === 'production') { |
| | | _url = document.location.origin + ':8443/' + url |
| | | } |
| | | } |
| | | |
| | | if (param) { |
| | | return axios({ |
| | | url: _url, |
| | | method, |
| | | data: param |
| | | }) |
| | | } |
| | | |
| | | return axios({ |
| | | url: _url, |
| | | method |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * @description 直接请求 |
| | | >>>>>>> positec |
| | | * @param {Object} param 查询及提交参数 |
| | | */ |
| | | directRequest (url, method = 'post', param, cross) { |
| | |
| | | } |
| | | } |
| | | .anticon-eye { |
| | | color: #1890ff; |
| | | color: $color6; |
| | | } |
| | | .ant-input:hover { |
| | | border-color: #1890ff!important; |
| | | border-color: $color6!important; |
| | | } |
| | | .ant-input:focus, .ant-input:active { |
| | | border-color: #40a9ff; |
| | | box-shadow: 0 0 0 2px #bae7ff; |
| | | border-color: $color4; |
| | | box-shadow: 0 0 0 2px $color2; |
| | | } |
| | | .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) { |
| | | border-color: #40a9ff; |
| | | border-color: $color4; |
| | | } |
| | | } |
| | | .login-bottom { |
| | |
| | | }) |
| | | message.warning('登录失败,用户名或密码错误!') |
| | | } else { |
| | | window.location.replace(document.location.origin + '/Home/Index') |
| | | window.location.replace(document.location.origin + '/zh-CN/Home/Index') |
| | | } |
| | | }) |
| | | } else { |
| | |
| | | authLogin={this.authLogin} |
| | | wrappedComponentRef={(inst) => this.loginformRef = inst} |
| | | /> : null} |
| | | </div> |
| | | <div className="login-bottom"> |
| | | {webSite && copyRight ? |
| | | <a target="_blank" rel="noopener noreferrer" href={webSite} dangerouslySetInnerHTML={{ __html: copyRight.replace(/\s/ig, ' ') }}></a> : |
| | | <p dangerouslySetInnerHTML={{ __html: copyRight ? copyRight.replace(/\s/ig, ' ') : '' }}></p> |
| | | } |
| | | {ICP ? <p dangerouslySetInnerHTML={{ __html: ICP.replace(/\s/ig, ' ') }}></p> : null} |
| | | <div className="login-bottom"> |
| | | {webSite && copyRight ? |
| | | <a target="_blank" rel="noopener noreferrer" href={webSite} dangerouslySetInnerHTML={{ __html: copyRight.replace(/\s/ig, ' ') }}></a> : |
| | | <p dangerouslySetInnerHTML={{ __html: copyRight ? copyRight.replace(/\s/ig, ' ') : '' }}></p> |
| | | } |
| | | {ICP ? <p dangerouslySetInnerHTML={{ __html: ICP.replace(/\s/ig, ' ') }}></p> : null} |
| | | </div> |
| | | </div> |
| | | {/* 编辑状态登录 */} |
| | | <Modal |
| | |
| | | .login-container { |
| | | position: relative; |
| | | height: 100vh; |
| | | min-height: 600px; |
| | | background-color: #ffffff!important; |
| | | background-size: cover; |
| | | background-repeat: no-repeat; |
| | | background-position: center center; |
| | | .logo { |
| | | position: relative; |
| | | height: 70px; |
| | | padding-top: 10px; |
| | | width: 990px; |
| | | margin: 0 auto; |
| | | height: 100px; |
| | | padding-top: 30px; |
| | | border-bottom: 3px solid #aeb303; |
| | | img { |
| | | height: 47px; |
| | | height: 50px; |
| | | } |
| | | .plat-name { |
| | | position: absolute; |
| | |
| | | |
| | | .login-middle { |
| | | position: relative; |
| | | height: calc(100vh - 194px); |
| | | height: calc(100vh - 100px); |
| | | min-height: 475px; |
| | | background-color: #427CAA; |
| | | background-image: url('http://bms-test.kresstools.cn/Content/images/login2/bg_mid.png'); |
| | | background-size: contain; |
| | | background-repeat: no-repeat; |
| | |
| | | border-radius: 5px; |
| | | overflow: hidden; |
| | | border: 1px solid #bfbfbf; |
| | | z-index: 3; |
| | | |
| | | .login-way-title { |
| | | font-size: 18px; |
| | |
| | | } |
| | | .form-item-wrap { |
| | | padding: 0.6vw 1.6vw 1.6vw; |
| | | // padding: 0.6vw 1.6vw 0vw; |
| | | } |
| | | .title { |
| | | color: #427CAA; |
| | | color: var(--mk-sys-color); |
| | | font-size: 22px; |
| | | font-weight: bold; |
| | | margin: 20px 1.6vw 5px; |
| | |
| | | font-size: 18px; |
| | | } |
| | | .anticon-eye { |
| | | color: #1890ff; |
| | | } |
| | | .login-form-button { |
| | | border-radius: 0; |
| | | background: #6fb3e9!important; |
| | | border: 1px solid #6fb3e9!important; |
| | | color: #aeb303; |
| | | } |
| | | } |
| | | .login-sync-button { |
| | |
| | | } |
| | | } |
| | | .login-bottom { |
| | | position: absolute; |
| | | bottom: 30px; |
| | | left: 0; |
| | | width: 100%; |
| | | text-align: center; |
| | | color: #666!important; |
| | | padding-top: 20px; |
| | | font: 12px/150% Arial,Verdana,"\5b8b\4f53"; |
| | | p span.split { |
| | |
| | | a { |
| | | display: inline-block; |
| | | margin-bottom: 5px; |
| | | color: #666!important; |
| | | font: 12px/150% Arial,Verdana,"\5b8b\4f53"; |
| | | } |
| | | } |