Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
60bcf37b
Commit
60bcf37b
authored
Aug 01, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品牌替换
parent
b5ee4a25
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
15 deletions
+34
-15
package.json
+1
-1
src/domains/basic-domain/constants.ts
+2
-3
src/domains/brand/constants.ts
+27
-5
src/domains/course-domain/constants.ts
+2
-4
src/modules/root/Login.jsx
+2
-2
No files found.
package.json
View file @
60bcf37b
...
...
@@ -131,7 +131,7 @@
"build:syoo"
:
{
"command"
:
"node scripts/build.js"
,
"env"
:
{
"DEPLOY_ENV"
:
"
syoo
"
,
"DEPLOY_ENV"
:
"
prod
"
,
"BREND"
:
"syoo"
}
}
...
...
src/domains/basic-domain/constants.ts
View file @
60bcf37b
...
...
@@ -7,6 +7,7 @@
* @FilePath: /wheat-web-demo/src/domains/basic-domain/constants.ts
*/
import
{
MapInterface
}
from
'@/domains/basic-domain/interface'
import
{
path
,
live
}
from
'@/domains/brand/constants'
// 默认是 dev 环境
const
ENV
:
string
=
process
.
env
.
DEPLOY_ENV
||
'dev'
...
...
@@ -17,15 +18,13 @@ const BASIC_HOST_MAP: MapInterface = {
rc
:
'https://rc-heimdall.xiaomai5.com/'
,
gray
:
'https://gray-heimdall.xiaomai5.com/'
,
prod
:
'https://gateway.xiaomai5.com/'
,
syoo
:
'https://gateway.xiaomai5.com/'
,
}
const
PATH_MAP
:
MapInterface
=
{
dev
:
'https://dev.xiaomai5.com/xiaomai-cloud-class-web/h5.html'
,
dev1
:
'https://dev.xiaomai5.com/xiaomai-cloud-class-web/h5.html'
,
rc
:
'https://rc.xiaomai5.com/xiaomai-cloud-class-web/h5.html'
,
gray
:
'https://res.xiaomai0.com/xiaomai-cloud-class-web/gray/h5.html'
,
prod
:
'https://res.xiaomai0.com/xiaomai-cloud-class-web/h5.html'
,
syoo
:
'https://res.xiaomai0.com/xiaomai-cloud-class-web/h5.html'
,
prod
:
path
,
}
export
const
YZ_APPId
=
"yozoqvpO2Hvz8346"
;
...
...
src/domains/brand/constants.ts
View file @
60bcf37b
...
...
@@ -6,20 +6,42 @@ const BrandNameMap: any = {
syoo
:
'云课堂'
}
const
BrandIcon
:
any
=
{
const
BrandIcon
Map
:
any
=
{
xiaomai
:
'https://image.xiaomaiketang.com/xm/bFkRBz7teA.png'
,
syoo
:
'https://image.xiaomaiketang.com/xm/
Z8AExQQADj
.png'
syoo
:
'https://image.xiaomaiketang.com/xm/
PfDseQHZtB
.png'
}
const
BrandLogo
:
any
=
{
const
BrandLogo
Map
:
any
=
{
xiaomai
:
'https://image.xiaomaiketang.com/xm/6k8PPCmywG.png'
,
syoo
:
'https://image.xiaomaiketang.com/xm/T7NRKwrfQE.png'
}
const
BrandBannerMap
:
any
=
{
xiaomai
:
'https://image.xiaomaiketang.com/xm/CDCcdAdaPs.png'
,
syoo
:
'https://image.xiaomaiketang.com/xm/DzMHpX7GWF.png'
}
const
PATH_MAP
:
any
=
{
prod
:
'https://res.xiaomai0.com/xiaomai-cloud-class-web/h5.html'
,
syoo
:
'https://res.xiaomai0.com/xiaomai-cloud-class-web/h5.html'
,
}
const
LIVE_SHARE_MAP
:
any
=
{
dev
:
'https://dev.xiaomai5.com/store-live/index.html#/'
,
dev1
:
'https://dev.xiaomai5.com/store-live/index.html#/'
,
rc
:
'https://rc.xiaomai5.com/store-live/index.html#/'
,
gray
:
'https://res.xiaomai0.com/store-live/gray/index.html#/'
,
prod
:
'https://res.xiaomai0.com/store-live/index.html#/'
,
}
export
const
brandName
:
string
=
BrandNameMap
[
BREND
];
export
const
brandIcon
:
string
=
BrandIcon
[
BREND
];
export
const
brandLogo
:
string
=
BrandLogo
[
BREND
];
export
const
brandIcon
:
string
=
BrandIconMap
[
BREND
];
export
const
brandLogo
:
string
=
BrandLogoMap
[
BREND
];
export
const
brandBanner
:
string
=
BrandBannerMap
[
BREND
];
export
const
path
:
string
=
PATH_MAP
[
BREND
];
export
const
live
:
string
=
LIVE_SHARE_MAP
[
BREND
];
window
.
brandName
=
BrandNameMap
[
BREND
];
src/domains/course-domain/constants.ts
View file @
60bcf37b
...
...
@@ -7,6 +7,7 @@
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
import
{
MapInterface
}
from
'@/domains/basic-domain/interface'
import
{
path
,
live
}
from
'@/domains/brand/constants'
const
ENV
:
string
=
process
.
env
.
DEPLOY_ENV
||
'dev'
;
const
appIdMap
:
MapInterface
=
{
...
...
@@ -15,7 +16,6 @@ const appIdMap: MapInterface = {
rc
:
'wx5c5a1fb71ecab7bc'
,
gray
:
"wx3dda02036493ada6"
,
// 小麦校讯通
prod
:
'wx3dda02036493ada6'
,
syoo
:
'wx3dda02036493ada6'
,
}
const
shareUrlMap
:
MapInterface
=
{
...
...
@@ -24,7 +24,6 @@ const shareUrlMap: MapInterface = {
'rc'
:
'https://rc.xiaomai5.com/share/show?appid='
,
'prod'
:
'https://prod.xiaomai5.com/share/show?appid='
,
'gray'
:
'https://prod.xiaomai5.com/share/show?appid='
,
'syoo'
:
'https://prod.xiaomai5.com/share/show?appid='
,
}
const
LIVE_SHARE_MAP
:
MapInterface
=
{
...
...
@@ -32,8 +31,7 @@ const LIVE_SHARE_MAP: MapInterface = {
dev1
:
'https://dev.xiaomai5.com/store-live/index.html#/'
,
rc
:
'https://rc.xiaomai5.com/store-live/index.html#/'
,
gray
:
'https://res.xiaomai0.com/store-live/gray/index.html#/'
,
prod
:
'https://res.xiaomai0.com/store-live/index.html#/'
,
syoo
:
'https://res.xiaomai0.com/store-live/index.html#/'
,
prod
:
live
,
}
...
...
src/modules/root/Login.jsx
View file @
60bcf37b
...
...
@@ -9,7 +9,7 @@ import BaseService from '@/domains/basic-domain/baseService';
import
axios
from
'axios'
;
import
storage
from
'@/common/js/storage'
;
import
_
from
'underscore'
;
import
{
brandLogo
}
from
'@/domains/brand/constants'
import
{
brandLogo
,
brandBanner
}
from
'@/domains/brand/constants'
const
{
TabPane
}
=
Tabs
;
function
Login
(
props
)
{
...
...
@@ -161,7 +161,7 @@ function Login(props) {
<
div
className=
'login-main'
>
<
div
className=
'left-banner'
>
<
div
className=
'img-box'
>
<
img
src=
'https://image.xiaomaiketang.com/xm/CDCcdAdaPs.png'
alt=
''
/>
<
img
src=
{
brandBanner
}
alt=
''
/>
</
div
>
</
div
>
<
div
className=
'login-box'
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment