Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
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
ui
quantum-blocks
Commits
5f73dabc
Commit
5f73dabc
authored
Jul 23, 2022
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/finance' into 'master'
Feat/finance See merge request
!84
parents
51da4650
5ce118f6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
8 deletions
+29
-8
dev.config.ts
app/web/config/dev.config.ts
+6
-6
config.ts
app/web/lib/config.ts
+13
-1
index.ts
app/web/page/editor/component/DynamicForm/index.ts
+9
-0
package.json
package.json
+1
-1
No files found.
app/web/config/dev.config.ts
View file @
5f73dabc
...
@@ -3,15 +3,15 @@ const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'http';
...
@@ -3,15 +3,15 @@ const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'http';
const
hostMap
=
{
const
hostMap
=
{
apiHost
:
`http://localhost:7002/`
,
apiHost
:
`http://localhost:7002/`
,
// apiHost: `http://192.168.28.199:7001/`,
// apiHost: `http://192.168.28.199:7001/`,
// apiHost: 'https://quantum-blocks-
test1
.liangkebang.net/',
// apiHost: 'https://quantum-blocks-
sc
.liangkebang.net/',
h5Host
:
'
https://quantum-h5-
test1
.liangkebang.net
'
,
h5Host
:
'
https://quantum-h5-
sc
.liangkebang.net
'
,
qiniuHost
:
`https://appsync.lkbang.net`
,
qiniuHost
:
`https://appsync.lkbang.net`
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=default`
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=default`
,
opapiHost
:
`https://opapi-
test1
.liangkebang.net`
,
opapiHost
:
`https://opapi-
sc
.liangkebang.net`
,
qiniuUpHost
:
`
${
protocol
}
//up-z0.qiniup.com`
,
qiniuUpHost
:
`
${
protocol
}
//up-z0.qiniup.com`
,
// kdspHost: 'https://kdsp-api-
test1
.liangkebang.net',
// kdspHost: 'https://kdsp-api-
sc
.liangkebang.net',
talosHost
:
'
https://talos-
test1
.liangkebang.net
'
,
talosHost
:
'
https://talos-
sc
.liangkebang.net
'
,
kdspHost
:
'
https://kdsp-api-
test1
.liangkebang.net
'
,
kdspHost
:
'
https://kdsp-api-
sc
.liangkebang.net
'
,
yxmTenantId
:
560761
,
yxmTenantId
:
560761
,
appIdMap
:
{
appIdMap
:
{
560761
:
'
wxe16bf9293671506c
'
,
560761
:
'
wxe16bf9293671506c
'
,
...
...
app/web/lib/config.ts
View file @
5f73dabc
...
@@ -11,7 +11,19 @@ export const basicComponents = [
...
@@ -11,7 +11,19 @@ export const basicComponents = [
key
:
'
link
'
,
key
:
'
link
'
,
name
:
'
跳转链接
'
,
name
:
'
跳转链接
'
,
desc
:
'
跳转链接
'
,
desc
:
'
跳转链接
'
,
type
:
'
text
'
type
:
'
text
'
,
},
{
key
:
'
isFinance
'
,
name
:
'
是否导流
'
,
desc
:
'
是否导流
'
,
type
:
'
checkbox
'
,
},
{
key
:
'
needLogin
'
,
name
:
'
是否登录
'
,
desc
:
'
是否登录
'
,
type
:
'
checkbox
'
,
}
}
],
],
value
:
{
value
:
{
...
...
app/web/page/editor/component/DynamicForm/index.ts
View file @
5f73dabc
...
@@ -298,6 +298,15 @@ export default class DynamicForm extends Mixins(ContextMenuMixin, DynamicFormMix
...
@@ -298,6 +298,15 @@ export default class DynamicForm extends Mixins(ContextMenuMixin, DynamicFormMix
if
(
element
.
name
!==
'
cs-guide-cube
'
)
{
if
(
element
.
name
!==
'
cs-guide-cube
'
)
{
this
.
adjustHeight
();
this
.
adjustHeight
();
}
}
if
(
element
.
name
===
'
freedom-container
'
)
{
const
{
isFinance
}
=
newVal
;
if
(
isFinance
)
{
newVal
.
needLogin
=
true
;
newVal
.
disabledSelectNeedLogin
=
true
;
}
else
{
newVal
.
disabledSelectNeedLogin
=
false
;
}
}
});
});
this
.
$emit
(
'
modProps
'
,
params
,
'
component
'
);
this
.
$emit
(
'
modProps
'
,
params
,
'
component
'
);
}
}
...
...
package.json
View file @
5f73dabc
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
"test"
:
"cross-env NODE_ENV=production EGG_SERVER_ENV=sit egg-scripts start --port 80 --workers 1"
,
"test"
:
"cross-env NODE_ENV=production EGG_SERVER_ENV=sit egg-scripts start --port 80 --workers 1"
,
"stop"
:
"egg-scripts stop"
,
"stop"
:
"egg-scripts stop"
,
"backend"
:
"nohup egg-scripts start --port 7001 --workers 4"
,
"backend"
:
"nohup egg-scripts start --port 7001 --workers 4"
,
"dev"
:
"cross-env NODE_ENV=test APOLLO_CLUSTER=k8s NAMESPACE=
test1
npm run apollo && egg-bin dev -r egg-ts-helper/register --port 7002"
,
"dev"
:
"cross-env NODE_ENV=test APOLLO_CLUSTER=k8s NAMESPACE=
yxm
npm run apollo && egg-bin dev -r egg-ts-helper/register --port 7002"
,
"debug"
:
"egg-bin debug -r egg-ts-helper/register"
,
"debug"
:
"egg-bin debug -r egg-ts-helper/register"
,
"apollo"
:
"node bin/apollo.js"
,
"apollo"
:
"node bin/apollo.js"
,
"build"
:
"npm run tsc && cross-env NODE_ENV=production APOLLO_CLUSTER=3C npm run apollo && cross-env COS_ENV=production easy build --devtool"
,
"build"
:
"npm run tsc && cross-env NODE_ENV=production APOLLO_CLUSTER=3C npm run apollo && cross-env COS_ENV=production easy build --devtool"
,
...
...
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