king
2022-12-09 ad8abc44cf633517c30ab8447b9b035019beeadb
2022-12-09
5个文件已修改
140 ■■■■ 已修改文件
public/options.json 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.js 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/css/viewstyle.scss 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/index.jsx 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/index.scss 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/options.json
@@ -1,14 +1,14 @@
{
  "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,
@@ -17,6 +17,6 @@
  "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/"
}
src/api/index.js
@@ -120,16 +120,15 @@
  }
  /**
<<<<<<< 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({
@@ -140,72 +139,6 @@
  }
  /* @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) {
src/assets/css/viewstyle.scss
@@ -39,17 +39,17 @@
        }
      }
      .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 {
src/views/login/index.jsx
@@ -149,7 +149,7 @@
            })
            message.warning('登录失败,用户名或密码错误!')
          } else {
            window.location.replace(document.location.origin + '/Home/Index')
            window.location.replace(document.location.origin + '/zh-CN/Home/Index')
          }
        })
      } else {
@@ -962,13 +962,13 @@
            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, '&nbsp;') }}></a> :
            <p dangerouslySetInnerHTML={{ __html: copyRight ? copyRight.replace(/\s/ig, '&nbsp;') : '' }}></p>
          }
          {ICP ? <p dangerouslySetInnerHTML={{ __html: ICP.replace(/\s/ig, '&nbsp;') }}></p> : null}
          <div className="login-bottom">
            {webSite && copyRight ?
              <a target="_blank" rel="noopener noreferrer" href={webSite} dangerouslySetInnerHTML={{ __html: copyRight.replace(/\s/ig, '&nbsp;') }}></a> :
              <p dangerouslySetInnerHTML={{ __html: copyRight ? copyRight.replace(/\s/ig, '&nbsp;') : '' }}></p>
            }
            {ICP ? <p dangerouslySetInnerHTML={{ __html: ICP.replace(/\s/ig, '&nbsp;') }}></p> : null}
          </div>
        </div>
        {/* 编辑状态登录 */}
        <Modal
src/views/login/index.scss
@@ -1,18 +1,17 @@
.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;
@@ -28,9 +27,8 @@
  .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;
@@ -47,6 +45,7 @@
      border-radius: 5px;
      overflow: hidden;
      border: 1px solid #bfbfbf;
      z-index: 3;
      .login-way-title {
        font-size: 18px;
@@ -101,10 +100,9 @@
      }
      .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;
@@ -207,12 +205,7 @@
        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 {
@@ -222,8 +215,11 @@
    }
  }
  .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 {
@@ -232,7 +228,6 @@
    a {
      display: inline-block;
      margin-bottom: 5px;
      color: #666!important;
      font: 12px/150% Arial,Verdana,"\5b8b\4f53";
    }
  }