Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cmb_auth
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
cmb_auth
Commits
5791c5be
Commit
5791c5be
authored
Oct 12, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
db60117a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
project.settings.json
project.settings.json
+1
-1
sparkrc.js
sparkrc.js
+2
-2
app.jsx
src/app.jsx
+12
-12
No files found.
project.settings.json
View file @
5791c5be
{
"proSetting"
:{
"projectxIDs"
:{
"devId"
:
"pe9f9e14b"
,
"testId"
:
"p34906fbc"
,
"prodId"
:
"p
fc90ceb8
"
},
"skinVariables"
:[]},
"envSetting"
:{}}
{
"proSetting"
:{
"projectxIDs"
:{
"devId"
:
"pe9f9e14b"
,
"testId"
:
"p34906fbc"
,
"prodId"
:
"p
b4398bdc
"
},
"skinVariables"
:[]},
"envSetting"
:{}}
sparkrc.js
View file @
5791c5be
...
@@ -9,6 +9,6 @@ module.exports ={
...
@@ -9,6 +9,6 @@ module.exports ={
"IMAGE_Q1"
:
0.6
,
"IMAGE_Q1"
:
0.6
,
"IMAGE_Q2"
:
0.8
,
"IMAGE_Q2"
:
0.8
,
"RES_PATH"
:
"/src/assets/"
,
"RES_PATH"
:
"/src/assets/"
,
"RES_PATH_PROD"
:
"//yun.duiba.com.cn/spark/v2/temp_base/163402
2939646
"
,
"RES_PATH_PROD"
:
"//yun.duiba.com.cn/spark/v2/temp_base/163402
6726463
"
,
"JS_PATH_PROD"
:
"https://yun.duiba.com.cn/spark/v2/temp_base/163402
2941783
/js"
"JS_PATH_PROD"
:
"https://yun.duiba.com.cn/spark/v2/temp_base/163402
6728426
/js"
}
}
\ No newline at end of file
src/app.jsx
View file @
5791c5be
...
@@ -15,7 +15,7 @@ MD();
...
@@ -15,7 +15,7 @@ MD();
class
App
extends
Component
{
class
App
extends
Component
{
async
componentDidMount
()
{
async
componentDidMount
()
{
const
url
=
'https://activity
.m.duibatest.com.cn/projectx/p19dcfe16/index.html
'
;
const
url
=
'https://activity
-pre.m.duiba.com.cn/projectx/pb4398bdc/index.html?appKey=jlg88lyxz7siqtmr&openBs=openbs&appID=1
'
;
const
callBackUrl
=
url
+
'?iscallback=1'
;
const
callBackUrl
=
url
+
'?iscallback=1'
;
const
redirectUrl
=
url
+
'?isredirect=1'
;
const
redirectUrl
=
url
+
'?isredirect=1'
;
let
activityId
=
CFG
.
projectId
;
let
activityId
=
CFG
.
projectId
;
...
@@ -52,17 +52,17 @@ class App extends Component {
...
@@ -52,17 +52,17 @@ class App extends Component {
//请求授权协议,需要如果是同一活动需求区分是起始页还是授权回调页,注意开头要https
//请求授权协议,需要如果是同一活动需求区分是起始页还是授权回调页,注意开头要https
//请求授权协议
//请求授权协议
//
const result = await API.generateApproval({
const
result
=
await
API
.
generateApproval
({
//
activityId: activityId,
activityId
:
activityId
,
//
callBackUrl: callBackUrl
callBackUrl
:
callBackUrl
//
});
});
//
const protocol = result.data;
const
protocol
=
result
.
data
;
const
protocol
=
'cmblife://approval?aid=6b9a76cce8b54060a3a31867c4c9281d&callback=https%3A%2F%2Factivity.m.duibatest.com.cn%2Fprojectx%2Fp19dcfe16%2Findex.html%3Fiscallback%3D1&clientType=h5&date=20211012150848&keyAlias=CO_PUB_KEY_SM2&mid=1611e17549f83f6d83c77822d0bf7bef&random=975fc466216e4ccc8f37668a7928cc64&responseType=code&scope=defaultScope&sign=MEUCIF5YBj%2Brgp%2FSqBN%2BBRwvR7evMVLs41d6mXgHzOw3cFQfAiEAkEo0j0AEeeWBYNFPIi7e6LiQvZ5m54aMei22Y7i91Kw%3D&state=state'
//
const protocol = 'cmblife://approval?aid=6b9a76cce8b54060a3a31867c4c9281d&callback=https%3A%2F%2Factivity.m.duibatest.com.cn%2Fprojectx%2Fp19dcfe16%2Findex.html%3Fiscallback%3D1&clientType=h5&date=20211012150848&keyAlias=CO_PUB_KEY_SM2&mid=1611e17549f83f6d83c77822d0bf7bef&random=975fc466216e4ccc8f37668a7928cc64&responseType=code&scope=defaultScope&sign=MEUCIF5YBj%2Brgp%2FSqBN%2BBRwvR7evMVLs41d6mXgHzOw3cFQfAiEAkEo0j0AEeeWBYNFPIi7e6LiQvZ5m54aMei22Y7i91Kw%3D&state=state'
setTimeout
(()
=>
{
//
setTimeout(() => {
console
.
error
(
'protocol'
,
protocol
)
//
console.error('protocol', protocol)
},
1000
);
//
}, 1000);
window
.
location
.
href
=
protocol
;
//
window.location.href = protocol;
}
}
}
}
...
@@ -70,7 +70,7 @@ class App extends Component {
...
@@ -70,7 +70,7 @@ class App extends Component {
render
()
{
render
()
{
return
(
return
(
<
div
>
<
div
>
<
div
>
请在app.jsx中指定首页
</
div
>
<
div
>
加载中... ...
</
div
>
<
Modal
/>
<
Modal
/>
</
div
>
</
div
>
);
);
...
...
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