Commit 4d483aa9 authored by wildfirecode13's avatar wildfirecode13

111

parent cb24acb8
...@@ -7,21 +7,21 @@ ...@@ -7,21 +7,21 @@
<meta name="theme-color" content="#000000"> <meta name="theme-color" content="#000000">
<title>活动标题</title> <title>活动标题</title>
<script src="https://yun.duiba.com.cn/db_games/debug/vconsole.min.js"></script> <script src="https://yun.duiba.com.cn/js-libs/vConsole/3.3.4/vconsole.min.js"></script>
<script> <script>
// init vConsole // init vConsole
var vConsole = new VConsole(); var vConsole = new VConsole();
console.log('Hello world',334); console.log('Hello world',334);
</script> </script>
<script src="//yun.duiba.com.cn/spark/v2/spark.base.fz.wxpollyfill.js"></script> <!-- <script src="//yun.duiba.com.cn/spark/v2/spark.base.fz.wxpollyfill.js"></script> -->
<script src="//yun.duiba.com.cn/js-libs/rem/1.1.3/rem.min.js"></script> <!-- <script src="//yun.duiba.com.cn/js-libs/rem/1.1.3/rem.min.js"></script> -->
<script src="//yun.duiba.com.cn/h5/lib/zepto.min.js"></script> <!-- <script src="//yun.duiba.com.cn/h5/lib/zepto.min.js"></script> -->
<!-- cmblifeSDK --> <!-- cmblifeSDK -->
<!-- <script src="//yun.duiba.com.cn/aurora/assets/1f77f067b23f29cbab785a417db977b3bde8d809.js"></script> --> <!-- <script src="//yun.duiba.com.cn/aurora/assets/1f77f067b23f29cbab785a417db977b3bde8d809.js"></script> -->
<!-- cmblifeSDK-Dev --> <!-- cmblifeSDK-Dev -->
<script src="//yun.duiba.com.cn/aurora/assets/a2ea866799a083bc624ed081af653884ad066779.js"></script> <!-- <script src="//yun.duiba.com.cn/aurora/assets/a2ea866799a083bc624ed081af653884ad066779.js"></script> -->
<script> <script>
function getApp() { function getApp() {
......
...@@ -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/1634030516856", "RES_PATH_PROD": "//yun.duiba.com.cn/spark/v2/temp_base/1634095516351",
"JS_PATH_PROD": "https://yun.duiba.com.cn/spark/v2/temp_base/1634030519691/js" "JS_PATH_PROD": "https://yun.duiba.com.cn/spark/v2/temp_base/1634095518316/js"
} }
\ No newline at end of file
...@@ -15,15 +15,22 @@ MD(); ...@@ -15,15 +15,22 @@ MD();
class App extends Component { class App extends Component {
async componentDidMount() { async componentDidMount() {
const url = 'https://activity-pre.m.duiba.com.cn/projectx/pb4398bdc/index.html?appKey=jlg88lyxz7siqtmr&openBs=openbs&appID=1'; const url = 'https://activity.m.duibatest.com.cn/projectx/p19dcfe16/index.html';
const callBackUrl = url + '&iscallback=1'; const callBackUrl = url + '?iscallback=1';
const redirectUrl = url + '&isredirect=1'; const redirectUrl = url + '?isredirect=1';
// 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 redirectUrl = url + '&isredirect=1';
let activityId = CFG.projectId; let activityId = CFG.projectId;
let { iscallback, cmbdata, isredirect } = queryParams; let { iscallback, cmbdata, isredirect } = queryParams;
setTimeout(() => { setTimeout(() => {
console.error('queryParams', JSON.stringify(queryParams)); console.error('queryParams', JSON.stringify(queryParams));
console.error('cmbdata', decodeURIComponent(cmbdata)); console.error('cmbdata', decodeURIComponent(cmbdata));
console.error('location', location.href);
}, 1000); }, 1000);
if (isredirect) { if (isredirect) {
API.getLoginUser({}).then(data => { API.getLoginUser({}).then(data => {
...@@ -44,7 +51,7 @@ class App extends Component { ...@@ -44,7 +51,7 @@ class App extends Component {
setTimeout(() => { setTimeout(() => {
console.error('generateLoginUrlResult', generateLoginUrlResult) console.error('generateLoginUrlResult', generateLoginUrlResult)
}, 1000); }, 1000);
location.href = generateLoginUrlResult.data; // location.href = generateLoginUrlResult.data;
} else { } else {
//没有获取到code //没有获取到code
...@@ -53,14 +60,15 @@ class App extends Component { ...@@ -53,14 +60,15 @@ class App extends Component {
//请求授权协议 //请求授权协议
// 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=20211012163851&keyAlias=CO_PUB_KEY_SM2&mid=1611e17549f83f6d83c77822d0bf7bef&random=cc8b45de7e90468bb49b17ad8777c427&responseType=code&scope=defaultScope&sign=MEYCIQD5wJvbKbZMymWbeKj2o4FVYGoklcqqt2ShaiM8ty0aEgIhANF7ZTCHulvvkqfMCTaE7o2Ya2TON9YXKv7raukxKkHY&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=20211013112046&keyAlias=CO_PUB_KEY_SM2&mid=1611e17549f83f6d83c77822d0bf7bef&random=7d11d0cea5ab4ff48dfb276548139494&responseType=code&scope=defaultScope&sign=MEUCIQD439PD%2B%2Fp6WbWA9bvRuBT9X3ErgY%2FbdZEceoJdJYiqyAIgWHMDYFLqh7FG0TMXcw9%2FfMEeabDUV5IW8vqRP2EuCc8%3D&state=state';
setTimeout(() => { setTimeout(() => {
console.error('protocol', protocol) console.error('protocol', protocol)
}, 1000); }, 1000);
window.location.href = protocol; window.location.href = protocol;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment