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
91d483fb
Commit
91d483fb
authored
May 28, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 问题修复
parent
c7712014
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
activity.ts
app/controller/activity.ts
+2
-2
.sentryclirc.ts
app/web/.sentryclirc.ts
+5
-5
index.ts
app/web/component/layout/activity/index.ts
+1
-1
index.ts
app/web/page/activity/view/activity/index.ts
+5
-0
No files found.
app/controller/activity.ts
View file @
91d483fb
...
@@ -11,8 +11,8 @@ export default class ActivityController extends Controller {
...
@@ -11,8 +11,8 @@ export default class ActivityController extends Controller {
if
(
!
body
)
{
if
(
!
body
)
{
let
apollo
=
{};
let
apollo
=
{};
// if (process.env.NODE_ENV === 'production') {
// if (process.env.NODE_ENV === 'production') {
const
{
api
,
qiniu
}
=
ctx
.
app
.
config
.
apollo
||
{};
//
const { api, qiniu } = ctx.app.config.apollo || {};
apollo
=
{
...
api
,
...
qiniu
};
//
apollo = { ...api, ...qiniu };
// }
// }
body
=
await
ctx
.
renderView
(
'
activity.js
'
,
{
url
:
ctx
.
url
,
apollo
});
body
=
await
ctx
.
renderView
(
'
activity.js
'
,
{
url
:
ctx
.
url
,
apollo
});
await
ctx
.
service
.
redis
.
set
(
redisKey
,
body
);
await
ctx
.
service
.
redis
.
set
(
redisKey
,
body
);
...
...
app/web/.sentryclirc.ts
View file @
91d483fb
module
.
exports
=
{
module
.
exports
=
{
// Sentry options are required
// Sentry options are required
organization
:
'
sentry
'
,
organization
:
'
sentry
'
,
project
:
'
quantum-blocks
'
,
project
:
'
quantum-blocks
-h5
'
,
apiKey
:
'
2e7e0678d81d4542b09cdbc35812f1cbb07a4993cd13435ba49d9511be11ec95
'
,
apiKey
:
'
2e7e0678d81d4542b09cdbc35812f1cbb07a4993cd13435ba49d9511be11ec95
'
,
// Release version name/hash is required
// Release version name/hash is required
release
:
'
quantum-blocks@0.0.1
'
,
release
:
'
quantum-blocks
-h5
@0.0.1
'
,
baseSentryURL
:
'
http://sentry.quantgroups.com/api/0
'
,
baseSentryURL
:
'
http
s
://sentry.quantgroups.com/api/0
'
,
deleteAfterCompile
:
true
,
deleteAfterCompile
:
true
,
include
:
/js
\/
/
,
// 只上传js和map文件
include
:
/js
\/
/
,
// 只上传js和map文件
ignore
:
[
'
node_modules
'
],
ignore
:
[
'
node_modules
'
],
...
...
app/web/component/layout/activity/index.ts
View file @
91d483fb
...
@@ -11,7 +11,7 @@ import lazyload from '@qg/cherry-ui/src/lazyload/index';
...
@@ -11,7 +11,7 @@ import lazyload from '@qg/cherry-ui/src/lazyload/index';
// 初始化sentry
// 初始化sentry
if
(
process
.
env
.
SENTRY_ENV
!==
'
test
'
&&
process
.
env
.
NODE_ENV
===
'
production
'
)
{
if
(
process
.
env
.
SENTRY_ENV
!==
'
test
'
&&
process
.
env
.
NODE_ENV
===
'
production
'
)
{
Raven
.
config
(
'
https://0
785298052fd46128e201f30ca649102@sentry.q-gp.com/64
'
,
{
Raven
.
config
(
'
https://0
0ea2b4a57c94071a8d56f4548a42de2@sentry.quantgroups.com/66
'
,
{
release
,
release
,
environment
:
'
production
'
environment
:
'
production
'
})
})
...
...
app/web/page/activity/view/activity/index.ts
View file @
91d483fb
...
@@ -103,6 +103,11 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin) {
...
@@ -103,6 +103,11 @@ export default class Activity extends Mixins(TransformStyleMixin, SaMixin) {
const
transformY
=
transform
.
split
(
'
(
'
)[
1
].
split
(
'
)
'
)[
0
].
split
(
'
,
'
)[
5
];
const
transformY
=
transform
.
split
(
'
(
'
)[
1
].
split
(
'
)
'
)[
0
].
split
(
'
,
'
)[
5
];
gridItemEle
.
style
.
top
=
`
${
transformY
}
px`
;
gridItemEle
.
style
.
top
=
`
${
transformY
}
px`
;
gridItemEle
.
className
+=
'
del_transform
'
;
gridItemEle
.
className
+=
'
del_transform
'
;
if
(
transform
&&
transform
.
length
)
{
const
transformY
=
transform
.
split
(
'
(
'
)[
1
].
split
(
'
)
'
)[
0
].
split
(
'
,
'
)[
5
];
gridItemEle
.
style
.
top
=
`
${
transformY
}
px`
;
gridItemEle
.
className
+=
'
del_transform
'
;
}
// 处理backgroundColor
// 处理backgroundColor
const
activityEle
=
document
.
querySelector
(
'
.activity
'
);
const
activityEle
=
document
.
querySelector
(
'
.activity
'
);
const
activityBgColor
=
getStyle
(
activityEle
,
'
backgroundColor
'
);
const
activityBgColor
=
getStyle
(
activityEle
,
'
backgroundColor
'
);
...
...
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