Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant-assemble
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f588ed62
authored
May 04, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
e4fee4c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
124 additions
and
126 deletions
login/index/components/Box/Box.scss
pages/tab/output/components/client/client.scss
utils/request/environment.js
login/index/components/Box/Box.scss
View file @
f588ed6
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
.box
{
.box
{
z-index
:
100
;
z-index
:
100
;
// height: 8
00rpx;
height
:
7
00rpx
;
.input-box
{
.input-box
{
width
:
540rpx
;
width
:
540rpx
;
...
...
pages/tab/output/components/client/client.scss
View file @
f588ed6
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
background
:
#ffffff
7d
;
background
:
#ffffff
7d
;
border
:
2rpx
solid
#EEEEEE
;
border
:
2rpx
solid
#EEEEEE
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
margin
:
24rpx
auto
;
margin
:
0rpx
auto
24rpx
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
height
:
96rpx
;
height
:
96rpx
;
line-height
:
96rpx
;
line-height
:
96rpx
;
padding
:
0
20rpx
0
32rpx
;
padding
:
0
20rpx
0
32rpx
;
margin-bottom
:
16
rpx
;
margin-bottom
:
0
rpx
;
margin-top
:
16rpx
;
margin-top
:
16rpx
;
background-size
:
100%
96rpx
;
background-size
:
100%
96rpx
;
font-weight
:
600
;
font-weight
:
600
;
...
...
utils/request/environment.js
View file @
f588ed6
import
{
preReleaseAppId
}
from
'~/config'
import
{
preReleaseAppId
}
from
'~/config'
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'preRelease'
]
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'preRelease'
]
const
mockObj
=
{
const
mockObj
=
{
test
:
'https://oss-config.dev.glsx.com.cn/mock/63fd6c2034c4d918e2f4df4d/config'
,
test
:
'https://oss-config.dev.glsx.com.cn/mock/63fd6c2034c4d918e2f4df4d/config'
,
product
:
'https://oss-config.test.glsx.com.cn/mock/63ff0b507dc47c4edc786e82/config'
product
:
'https://oss-config.test.glsx.com.cn/mock/63ff0b507dc47c4edc786e82/config'
}
}
/**
/**
...
@@ -31,148 +31,146 @@ let index = 2
...
@@ -31,148 +31,146 @@ let index = 2
// console.log(accountInfo.miniProgram.envVersion);
// console.log(accountInfo.miniProgram.envVersion);
// 对比一下appkey
// 对比一下appkey
// console.log();
// console.log();
if
(
systemInfo
.
platform
==
'devtools'
)
{
// 判断预发布的appid 是强制锁定为4(预发布的地址)
// 判断预发布的appid 是强制锁定为4(预发布的地址)
if
(
accountInfo
.
miniProgram
.
appId
==
preReleaseAppId
)
{
if
(
accountInfo
.
miniProgram
.
appId
==
preReleaseAppId
)
{
index
=
4
index
=
4
}
else
{
}
else
{
switch
(
accountInfo
.
miniProgram
.
envVersion
)
{
switch
(
accountInfo
.
miniProgram
.
envVersion
)
{
case
'develop'
:
case
'develop'
:
break
break
case
'trial'
:
case
'trial'
:
index
=
manual
?
index
:
2
index
=
manual
?
index
:
2
break
break
case
'release'
:
case
'release'
:
index
=
release
?
index
:
3
index
=
release
?
index
:
3
break
break
default
:
default
:
index
=
3
index
=
3
break
break
}
}
}
}
}
const
secretKey
=
{
const
secretKey
=
{
ip
:
{},
ip
:
{},
dev
:
{
dev
:
{
sso
:
{
sso
:
{
appKey
:
'8b31ae1009ccb0f96130ca4bd90e3d89'
,
appKey
:
'8b31ae1009ccb0f96130ca4bd90e3d89'
,
secret
:
'02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
secret
:
'02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
},
uat
:
{
sso
:
{
appKey
:
'8b31ae1009ccb0f96130ca4bd90e3d89'
,
secret
:
'02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
},
prod
:
{
sso
:
{
appKey
:
'8b31ae1009ccb0f96130ca4bd90e3d89'
,
secret
:
'02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
},
preRelease
:
{
sso
:
{
appKey
:
'8b31ae1009ccb0f96130ca4bd90e3d89'
,
secret
:
'02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
}
}
},
uat
:
{
sso
:
{
appKey
:
'8b31ae1009ccb0f96130ca4bd90e3d89'
,
secret
:
'02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
},
prod
:
{
sso
:
{
appKey
:
'8b31ae1009ccb0f96130ca4bd90e3d89'
,
secret
:
'02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
},
preRelease
:
{
sso
:
{
appKey
:
'8b31ae1009ccb0f96130ca4bd90e3d89'
,
secret
:
'02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
}
}[
target
[
index
]]
}[
target
[
index
]]
const
djSecretKey
=
{
const
djSecretKey
=
{
ip
:
{
ip
:
{
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
},
dev
:
{
dev
:
{
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
},
uat
:
{
uat
:
{
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
appKey
:
'48e5e13229b82c1b4e6e8c96151f0637'
,
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
secret
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
},
prod
:
{
prod
:
{
appKey
:
'd7ffc3346fc9a45bccaaa35300d59022'
,
appKey
:
'd7ffc3346fc9a45bccaaa35300d59022'
,
secret
:
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
secret
:
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
},
},
preRelease
:
{
preRelease
:
{
appKey
:
'd7ffc3346fc9a45bccaaa35300d59022'
,
appKey
:
'd7ffc3346fc9a45bccaaa35300d59022'
,
secret
:
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
secret
:
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
}
}
}[
target
[
index
]]
}[
target
[
index
]]
const
domain
=
{
const
domain
=
{
ip
:
{
ip
:
{
// dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.165:8292',
dj
:
'http://192.168.1.170:8292'
,
dj
:
'http://192.168.1.170:8292'
,
scrm
:
'http://192.168.1.165:8292'
scrm
:
'http://192.168.1.165:8292'
},
},
dev
:
{
dev
:
{
dj
:
'https://dj.dev.glsx.com.cn'
,
dj
:
'https://dj.dev.glsx.com.cn'
,
scrm
:
'https://scrm.dev.glsx.com.cn'
,
scrm
:
'https://scrm.dev.glsx.com.cn'
,
merchant
:
"https://rop-merchant.dev.glsx.com.cn"
,
merchant
:
"https://rop-merchant.dev.glsx.com.cn"
,
},
},
uat
:
{
uat
:
{
dj
:
'https://dj.test.glsx.com.cn'
,
dj
:
'https://dj.test.glsx.com.cn'
,
scrm
:
'https://scrm.test.glsx.com.cn'
,
scrm
:
'https://scrm.test.glsx.com.cn'
,
merchant
:
"https://rop-merchant.test.glsx.com.cn"
merchant
:
"https://rop-merchant.test.glsx.com.cn"
},
},
prod
:
{
prod
:
{
dj
:
'https://dj.glsx.com.cn'
,
dj
:
'https://dj.glsx.com.cn'
,
scrm
:
'https://scrm.glsx.com.cn'
,
scrm
:
'https://scrm.glsx.com.cn'
,
merchant
:
"https://commodity.glsx.com.cn"
merchant
:
"https://commodity.glsx.com.cn"
},
},
preRelease
:
{
preRelease
:
{
dj
:
'https://dj.beta.glsx.com.cn'
,
dj
:
'https://dj.beta.glsx.com.cn'
,
scrm
:
'https://scrm.beta.glsx.com.cn'
,
scrm
:
'https://scrm.beta.glsx.com.cn'
,
merchant
:
"https://rop-merchant.beta.glsx.com.cn"
merchant
:
"https://rop-merchant.beta.glsx.com.cn"
}
}
}[
target
[
index
]]
}[
target
[
index
]]
const
pathEnum
=
{
const
pathEnum
=
{
sso
:
'/rop-scrm-sso/'
,
sso
:
'/rop-scrm-sso/'
,
shopmall
:
'/rop-scrm-shopmall/'
,
shopmall
:
'/rop-scrm-shopmall/'
,
coupon
:
'/rop-scrm-coupon/'
,
coupon
:
'/rop-scrm-coupon/'
,
carlife
:
'/rop-scrm-carlife/'
,
carlife
:
'/rop-scrm-carlife/'
,
live
:
'/rop-scrm-live/'
,
live
:
'/rop-scrm-live/'
,
equity
:
'/rop-scrm-equity/'
,
equity
:
'/rop-scrm-equity/'
,
entmicro
:
'/rop-scrm-entmicro/'
,
entmicro
:
'/rop-scrm-entmicro/'
,
wechat
:
'/rop-scrm-wechat/'
,
wechat
:
'/rop-scrm-wechat/'
,
boutiquecoupon
:
'/rop-scrm-boutiquecoupon/'
,
boutiquecoupon
:
'/rop-scrm-boutiquecoupon/'
,
material
:
'/rop-scrm-marketing/'
,
//素材
material
:
'/rop-scrm-marketing/'
,
//素材
sop
:
'/rop-scrm-sop/'
,
sop
:
'/rop-scrm-sop/'
,
customercollect
:
'/rop-scrm-bigdatautil/'
,
customercollect
:
'/rop-scrm-bigdatautil/'
,
drac
:
'/rop-scrm-entmicro/'
,
drac
:
'/rop-scrm-entmicro/'
,
system
:
'/rop-scrm-entmicro/'
,
system
:
'/rop-scrm-entmicro/'
,
business
:
'/rop-scrm-entmicro/'
,
business
:
'/rop-scrm-entmicro/'
,
stoassistant
:
'/rop-scrm-stoassistant/'
,
stoassistant
:
'/rop-scrm-stoassistant/'
,
assistant
:
'/rop-scrm-stoassistant/'
,
assistant
:
'/rop-scrm-stoassistant/'
,
busassistant
:
'/rop-scrm-busassistant/'
,
busassistant
:
'/rop-scrm-busassistant/'
,
'rop-merchants'
:
'/rop-merchants/'
'rop-merchants'
:
'/rop-merchants/'
}
}
const
defaultMerchantId
=
{
const
defaultMerchantId
=
{
ip
:
'44184606'
,
ip
:
'44184606'
,
dev
:
'44184606'
,
dev
:
'44184606'
,
uat
:
'44184606'
,
uat
:
'44184606'
,
preRelease
:
'44184606'
,
preRelease
:
'44184606'
,
prod
:
'44189923'
prod
:
'44189923'
}[
target
[
index
]]
}[
target
[
index
]]
let
mockUrl
=
{
let
mockUrl
=
{
ip
:
mockObj
.
test
,
ip
:
mockObj
.
test
,
dev
:
mockObj
.
test
,
dev
:
mockObj
.
test
,
uat
:
mockObj
.
test
,
uat
:
mockObj
.
test
,
preRelease
:
mockObj
.
product
,
preRelease
:
mockObj
.
product
,
prod
:
mockObj
.
product
prod
:
mockObj
.
product
}[
target
[
index
]]
}[
target
[
index
]]
module
.
exports
=
{
module
.
exports
=
{
index
,
index
,
domain
,
domain
,
pathEnum
,
pathEnum
,
secretKey
,
secretKey
,
djSecretKey
,
djSecretKey
,
defaultMerchantId
,
defaultMerchantId
,
mockUrl
mockUrl
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment