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
d2008a09
Commit
d2008a09
authored
Nov 14, 2022
by
徐光星
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/appChannel' into 'master'
Feat/app channel See merge request
!99
parents
e9330794
dd86a23a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
editor.api.ts
app/web/api/editor.api.ts
+4
-1
index.vue
app/web/page/activity/component/BackTop/index.vue
+1
-1
index.ts
app/web/page/activity/view/activity/index.ts
+2
-2
init.service.ts
app/web/service/init.service.ts
+1
-1
No files found.
app/web/api/editor.api.ts
View file @
d2008a09
...
@@ -25,12 +25,15 @@ export default {
...
@@ -25,12 +25,15 @@ export default {
hideLoading
:
true
hideLoading
:
true
});
});
},
},
getFinanceSetting
()
{
getFinanceSetting
(
appChannel
)
{
const
customHeader
:
any
=
{};
const
customHeader
:
any
=
{};
if
(
EASY_ENV_IS_BROWSER
)
{
if
(
EASY_ENV_IS_BROWSER
)
{
const
ua
=
window
.
navigator
.
userAgent
;
const
ua
=
window
.
navigator
.
userAgent
;
const
appVersion
=
ua
.
match
(
/xyqb
\/([\d
|.
]
+
)
/
)
?
(
ua
.
match
(
/xyqb
\/([\d
|.
]
+
)
/
)
as
string
[])[
1
]
:
'
8.2.00
'
;
const
appVersion
=
ua
.
match
(
/xyqb
\/([\d
|.
]
+
)
/
)
?
(
ua
.
match
(
/xyqb
\/([\d
|.
]
+
)
/
)
as
string
[])[
1
]
:
'
8.2.00
'
;
customHeader
.
version
=
appVersion
;
customHeader
.
version
=
appVersion
;
if
(
appChannel
)
{
customHeader
.
appChannel
=
appChannel
;
}
}
}
// return http.post(`http://yapi.quantgroups.com/mock/351/api/kdsp/api/kdsp/vcc_switch`, {
// return http.post(`http://yapi.quantgroups.com/mock/351/api/kdsp/api/kdsp/vcc_switch`, {
...
...
app/web/page/activity/component/BackTop/index.vue
View file @
d2008a09
...
@@ -165,7 +165,7 @@ export default {
...
@@ -165,7 +165,7 @@ export default {
console
.
log
(
e
);
console
.
log
(
e
);
}
}
const
{
coverImage
,
pageName
,
pageDescribe
}
=
this
.
pageInfo
;
const
{
coverImage
,
pageName
,
pageDescribe
}
=
this
.
pageInfo
;
let
link
=
`
${
window
.
location
.
origin
}${
window
.
location
.
pathname
}
?vccToken={token}&tenantId=
${
localStorage
.
get
(
'
tenantId
'
)
||
''
}
`
;
let
link
=
`
${
window
.
location
.
origin
}${
window
.
location
.
pathname
}
?vccToken={token}&tenantId=
${
localStorage
.
get
(
'
tenantId
'
)
||
''
}
&appChannel={appChannel}
`
;
if
(
this
.
getUrlParamsVal
(
'
navId
'
)
!==
false
&&
this
.
getUrlParamsVal
(
'
index
'
)
!==
false
)
{
if
(
this
.
getUrlParamsVal
(
'
navId
'
)
!==
false
&&
this
.
getUrlParamsVal
(
'
index
'
)
!==
false
)
{
// 向分享URL中填充导航ID与位置索引
// 向分享URL中填充导航ID与位置索引
link
+=
`&navId=
${
this
.
getUrlParamsVal
(
"
navId
"
)}
&index=
${
this
.
getUrlParamsVal
(
'
index
'
)}
`
link
+=
`&navId=
${
this
.
getUrlParamsVal
(
"
navId
"
)}
&index=
${
this
.
getUrlParamsVal
(
'
index
'
)}
`
...
...
app/web/page/activity/view/activity/index.ts
View file @
d2008a09
...
@@ -160,8 +160,8 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
...
@@ -160,8 +160,8 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
return
;
return
;
}
}
}
}
const
appChannel
=
localStorage
.
get
(
'
appChannel
'
)
||
''
;
const
[
res
,
]
=
await
editorApi
.
getFinanceSetting
();
const
[
res
,
]
=
await
editorApi
.
getFinanceSetting
(
appChannel
);
const
[
serverTime
,
]
=
await
editorApi
.
getServerTime
();
const
[
serverTime
,
]
=
await
editorApi
.
getServerTime
();
// console.log(res, 'finance result');
// console.log(res, 'finance result');
// console.log(serverTime, 'time');
// console.log(serverTime, 'time');
...
...
app/web/service/init.service.ts
View file @
d2008a09
...
@@ -3,7 +3,7 @@ import { loginSa } from './sa.service';
...
@@ -3,7 +3,7 @@ import { loginSa } from './sa.service';
import
Cookies
from
'
./cookieStorage.service
'
;
import
Cookies
from
'
./cookieStorage.service
'
;
import
localStorage
from
'
./localStorage.service
'
;
import
localStorage
from
'
./localStorage.service
'
;
// formXcxPage:标识是从小程序跳转过来的;
// formXcxPage:标识是从小程序跳转过来的;
const
localStorageParams
=
[
'
creditToken
'
,
'
vccToken
'
,
'
vccChannel
'
,
'
sonVccChannel
'
,
'
formXcxPage
'
,
'
tenantId
'
,
'
distinctID
'
];
const
localStorageParams
=
[
'
creditToken
'
,
'
vccToken
'
,
'
vccChannel
'
,
'
sonVccChannel
'
,
'
formXcxPage
'
,
'
tenantId
'
,
'
distinctID
'
,
'
appChannel
'
];
const
cookiesParams
=
[
'
h
'
];
const
cookiesParams
=
[
'
h
'
];
export
default
{
export
default
{
...
...
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