Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
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-h5
Commits
dbee52d7
Commit
dbee52d7
authored
Nov 22, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tenant): tenantId字段校验
parent
0d101d3f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
9 deletions
+12
-9
editor.api.ts
app/web/api/editor.api.ts
+5
-3
dev.config.ts
app/web/config/dev.config.ts
+2
-1
prod.config.ts
app/web/config/prod.config.ts
+2
-1
test.config.ts
app/web/config/test.config.ts
+2
-1
index.vue
app/web/page/activity/component/BackTop/index.vue
+1
-3
No files found.
app/web/api/editor.api.ts
View file @
dbee52d7
...
@@ -3,13 +3,15 @@ import config from '../config';
...
@@ -3,13 +3,15 @@ import config from '../config';
export
default
{
export
default
{
getPageById
(
params
)
{
getPageById
(
params
)
{
return
http
.
get
(
`
http://127.0.0.1:7002
/editor/get/
${
params
.
pageId
}
?lite=1`
);
return
http
.
get
(
`
${
config
.
apiHost
}
/editor/get/
${
params
.
pageId
}
?lite=1`
);
},
},
getShopCartCount
()
{
getShopCartCount
()
{
return
http
.
get
(
`
${
config
.
kdspHost
}
/api/kdsp/shop-cart/count`
);
return
http
.
get
(
`
${
config
.
kdspHost
}
/api/kdsp/shop-cart/count`
);
},
},
getMpSchema
(
params
)
{
getMpSchema
(
params
,
appId
)
{
return
http
.
post
(
`
${
config
.
kdspHost
}
/api/kdsp/ka/info/getShareMiniUrl`
,
params
,
{
emulateJSON
:
true
});
return
http
.
post
(
`
${
config
.
kdspHost
}
/api/kdsp/ka/info/getShareMiniUrl`
,
params
,
{
emulateJSON
:
true
,
headers
:
{
'
mini-app-id
'
:
appId
}
});
},
},
getWxConfig
(
url
=
window
.
location
.
href
.
split
(
'
#
'
)[
0
])
{
getWxConfig
(
url
=
window
.
location
.
href
.
split
(
'
#
'
)[
0
])
{
return
http
.
post
(
`
${
config
.
kdspHost
}
/api/kdsp/wx/mp/getJsapiSign`
,
{
return
http
.
post
(
`
${
config
.
kdspHost
}
/api/kdsp/wx/mp/getJsapiSign`
,
{
...
...
app/web/config/dev.config.ts
View file @
dbee52d7
...
@@ -9,7 +9,8 @@ const hostMap = {
...
@@ -9,7 +9,8 @@ const hostMap = {
test
:
true
,
test
:
true
,
yxmTenantId
:
560761
,
yxmTenantId
:
560761
,
appIdMap
:
{
appIdMap
:
{
560761
:
'
wxe16bf9293671506c
'
560761
:
'
wxe16bf9293671506c
'
,
560867
:
'
wxccb8435d68e8c7d6
'
,
},
},
};
};
...
...
app/web/config/prod.config.ts
View file @
dbee52d7
...
@@ -8,6 +8,7 @@ export default {
...
@@ -8,6 +8,7 @@ export default {
test
:
false
,
test
:
false
,
yxmTenantId
:
560761
,
yxmTenantId
:
560761
,
appIdMap
:
{
appIdMap
:
{
560761
:
'
wxb3e6270e1b1e0bc7
'
560761
:
'
wxb3e6270e1b1e0bc7
'
,
560867
:
'
wxbd0bc68b270a1dab
'
,
},
},
};
};
app/web/config/test.config.ts
View file @
dbee52d7
...
@@ -9,7 +9,8 @@ const hostMap = {
...
@@ -9,7 +9,8 @@ const hostMap = {
test
:
true
,
test
:
true
,
yxmTenantId
:
560761
,
yxmTenantId
:
560761
,
appIdMap
:
{
appIdMap
:
{
560761
:
'
wxe16bf9293671506c
'
560761
:
'
wxe16bf9293671506c
'
,
560867
:
'
wxccb8435d68e8c7d6
'
,
},
},
};
};
...
...
app/web/page/activity/component/BackTop/index.vue
View file @
dbee52d7
...
@@ -109,11 +109,9 @@ export default {
...
@@ -109,11 +109,9 @@ export default {
if
(
isH5Normal
&&
EASY_ENV_IS_BROWSER
&&
this
.
wxAppId
)
{
if
(
isH5Normal
&&
EASY_ENV_IS_BROWSER
&&
this
.
wxAppId
)
{
try
{
try
{
const
[
schema
]
=
await
api
.
getMpSchema
({
const
[
schema
]
=
await
api
.
getMpSchema
({
// TODO
miniAppId
:
this
.
wxAppId
,
miniUrl
:
WEAPP_PATH
,
miniUrl
:
WEAPP_PATH
,
params
:
`url=
${
encodeURIComponent
(
JSON
.
stringify
(
this
.
link
))}
`
params
:
`url=
${
encodeURIComponent
(
JSON
.
stringify
(
this
.
link
))}
`
});
}
,
this
.
wxAppId
);
this
.
mpSchema
=
schema
;
this
.
mpSchema
=
schema
;
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
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