Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
config_repository
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
config_repository
Commits
3eb1271e
Commit
3eb1271e
authored
Jan 04, 2018
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui
parent
097031ac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
54 deletions
+21
-54
xjd-ui.js
lua-ui/config/xjd-ui.js
+10
-24
xyqb-ui.js
lua-ui/config/xyqb-ui.js
+11
-30
No files found.
lua-ui/config/xjd-ui.js
View file @
3eb1271e
var
protocol
=
window
.
location
.
protocol
let
protocol
=
window
.
location
.
protocol
var
apiHost
=
protocol
+
'
//api.xyqb.com/
'
var
xyqbUserUIHost
=
protocol
+
'
//passport.xyqb.com/
'
var
activityUI
=
protocol
+
'
//activity.xyqb.com/
'
var
qiniuHost
=
protocol
+
'
//ohsx2fi5w.bkt.clouddn.com/
'
var
btHost
=
protocol
+
'
//bt.xyqb.com/
'
var
shuntHost
=
protocol
+
'
//flow.xyqb.com/
'
var
mallApi
=
protocol
+
'
//mallapi.xyqb.com
'
;
var
mallUrl
=
protocol
+
'
//mall.xyqb.com
'
;
var
h5Url
=
protocol
+
'
//h5.xyqb.com
'
;
var
redPacketUrl
=
protocol
+
'
//redpacket.xyqb.com/
'
;
module
.
exports
=
{
ApiBaseUrl
:
apiHost
,
// 信用钱包后端
XyqbUserUI
:
xyqbUserUIHost
,
// 用户中心
ActivityUI
:
activityUI
,
// 活动中心
QiniuHostUrl
:
qiniuHost
,
BtBaseUrl
:
btHost
,
// 白条
ShuntBaseUrl
:
shuntHost
,
// 流量分发
mallApi
:
mallApi
,
// 商城后端
mallUrl
:
mallUrl
,
// 商城前端
h5Url
:
h5Url
,
RedPacketUrl
:
redPacketUrl
// 红包
let
allApi
=
{
ApiBaseUrl
:
`
${
protocol
}
//api.xyqb.com/`
,
// 信用钱包后端
ShuntBaseUrl
:
`
${
protocol
}
//flow.xyqb.com/`
,
// 流量分发
MallHost
:
`
${
protocol
}
//mallapi.xyqb.com/`
,
// 商城后端
mallUrl
:
`
${
protocol
}
//mall.xyqb.com`
,
// 商城ui
xyqbUserUI
:
`
${
protocol
}
//passport.xyqb.com/`
,
// 用户中心ui
h5Url
:
`
${
protocol
}
//h5.xyqb.com/`
// h5-ui
}
module
.
exports
=
allApi
\ No newline at end of file
lua-ui/config/xyqb-ui.js
View file @
3eb1271e
(
function
()
{
'
use strict
'
;
var
protocol
=
window
.
location
.
protocol
;
var
apiHost
=
protocol
+
'
//api.xyqb.com/
'
;
var
xyqbUserUIHost
=
protocol
+
'
//passport.xyqb.com/
'
;
var
authHost
=
protocol
+
'
//auth.xyqb.com/
'
;
var
bankCardReturnToken
=
'
BIND_RETURN_ONLINE
'
;
var
repayReturnToken
=
'
REPAY_RETURN_ONLINE
'
;
var
rebindRepayReturnToken
=
'
REBIND_RETURN_ONLINE
'
;
var
activityUI
=
protocol
+
'
//activity.xyqb.com/
'
;
var
qiniuHost
=
protocol
+
'
//ohsx2fi5w.bkt.clouddn.com/
'
;
var
btHost
=
protocol
+
'
//bt.xyqb.com/
'
;
var
shuntHost
=
protocol
+
'
//flow.xyqb.com/
'
;
var
h5Host
=
protocol
+
'
//h5.xyqb.com/
'
;
//var mogaokuHost = protocol + '//192.168.4.15:7999/';
var
xyqbUserUIHost
=
protocol
+
'
//passport.xyqb.com/
'
;
var
bankCardReturnToken
=
'
BIND_RETURN_BETA1
'
;
var
repayReturnToken
=
'
REPAY_RETURN_BETA1
'
;
var
rebindRepayReturnToken
=
'
REBIND_RETURN_BETA1
'
;
var
xyqbApp
=
angular
.
module
(
'
xyqbUiApp
'
);
var
h5Host
=
protocol
+
'
//h5.xyqb.com/
'
;
xyqbApp
.
value
(
'
ApiBaseUrl
'
,
apiHost
);
xyqbApp
.
value
(
'
AuthBaseUrl
'
,
authHost
);
xyqbApp
.
value
(
'
ActivityUI
'
,
activityUI
);
xyqbApp
.
value
(
'
QiniuHostUrl
'
,
qiniuHost
);
xyqbApp
.
value
(
'
BtBaseUrl
'
,
btHost
);
xyqbApp
.
value
(
'
ShuntBaseUrl
'
,
shuntHost
);
xyqbApp
.
value
(
'
XyqbUserUI
'
,
xyqbUserUIHost
);
xyqbApp
.
value
(
'
h5BaseUrl
'
,
h5Host
);
if
(
location
.
host
===
'
58.xyqb.com
'
)
{
bankCardReturnToken
=
'
58BIND_RETURN_ONLINE
'
;
repayReturnToken
=
'
58REPAY_RETURN_ONLINE
'
;
rebindRepayReturnToken
=
'
58REBIND_RETURN_ONLINE
'
;
xyqbApp
.
value
(
'
BindCardToken
'
,
bankCardReturnToken
);
xyqbApp
.
value
(
'
RepayToken
'
,
repayReturnToken
);
xyqbApp
.
value
(
'
RebindToken
'
,
rebindRepayReturnToken
);
}
else
{
// xyqbApp.value('MogaokuBaseUrl', mogaokuHost);
xyqbApp
.
value
(
'
BindCardToken
'
,
bankCardReturnToken
);
xyqbApp
.
value
(
'
RepayToken
'
,
repayReturnToken
);
xyqbApp
.
value
(
'
RebindToken
'
,
rebindRepayReturnToken
);
}
xyqbApp
.
value
(
'
ShuntBaseUrl
'
,
shuntHost
);
xyqbApp
.
value
(
'
XyqbUserUI
'
,
xyqbUserUIHost
);
xyqbApp
.
value
(
'
h5BaseUrl
'
,
h5Host
);
})();
\ No newline at end of file
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