Commit 04ce7ab8 authored by 实打实的's avatar 实打实的

新版

parent e637ffbb
...@@ -121,7 +121,7 @@ export const dosign = { ...@@ -121,7 +121,7 @@ export const dosign = {
export const judgeAuthority = { export const judgeAuthority = {
"code": 10012, "code": 10012,
"data": { "data": {
"authority": "no" "authority": "yes"
}, },
"message": null, "message": null,
"success": true "success": true
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
<script src="https://yun.duiba.com.cn/db_games/hybrid_app2.js"></script> <script src="https://yun.duiba.com.cn/db_games/hybrid_app2.js"></script>
<script> <script>
// new VConsole();
function getApp() { function getApp() {
return { return {
cloud: {}, cloud: {},
...@@ -25,9 +27,10 @@ ...@@ -25,9 +27,10 @@
requestType: "mock" requestType: "mock"
} }
} }
var CFG = CFG || {}; var CFG = CFG || {};
CFG.projectId = location.pathname.split('/')[2] || '1'; CFG.projectId = location.pathname.split('/')[2] || '1';
function getUrlParam(name) { function getUrlParam(name) {
var search = window.location.search; var search = window.location.search;
var matched = search var matched = search
...@@ -43,7 +46,8 @@ ...@@ -43,7 +46,8 @@
} }
window.shareUrl = 'https://duiba' + CFG.appID + CFG.projectId + Math.floor(Math.random() * 90000) + '.activity-1.m.duiba.com.cn/customShare/share?id=4609' window.shareUrl = 'https://duiba' + CFG.appID + CFG.projectId + Math.floor(Math.random() * 90000) +
'.activity-1.m.duiba.com.cn/customShare/share?id=4609'
window.shareimg = 'https://yun.duiba.com.cn/spark/assets/e7bec756134eaca143ea54e9f6856b6a6e10d33f.png'; window.shareimg = 'https://yun.duiba.com.cn/spark/assets/e7bec756134eaca143ea54e9f6856b6a6e10d33f.png';
window.sharetitle = '欢趣专区全新升级,快来看看吧'; window.sharetitle = '欢趣专区全新升级,快来看看吧';
......
...@@ -18,6 +18,7 @@ class Task extends Component { ...@@ -18,6 +18,7 @@ class Task extends Component {
this.judgeAuthority(); this.judgeAuthority();
} }
judgeAuthority = async () => { judgeAuthority = async () => {
let result = await API.judgeAuthority(); let result = await API.judgeAuthority();
if (result && result.success) { if (result && result.success) {
...@@ -41,12 +42,24 @@ class Task extends Component { ...@@ -41,12 +42,24 @@ class Task extends Component {
Loading.hide(); Loading.hide();
} }
getActivityInfo = (actId) => {
console.log('getActivityInfo')
if (ICBCUtilTools.isAndroid()) { // 如果是安卓
window.Myutils.getActivityInfo(actId);
return;
}
if (ICBCUtilTools.isiPhone()) {
window.WebViewJavascriptBridge.callHandler("Myutils.getActivityInfo", actId)
}
}
toApplyCard = () => { toApplyCard = () => {
window.location.href = "https://elife.icbc.com.cn/OFSTCARD/creditCard/apply.do?channel=105BKRK0001000000000000000&coreCode=HZDW000174463&paraPromoCode=EW0004600000000EL01"; window.location.href = "https://elife.icbc.com.cn/OFSTCARD/creditCard/apply.do?channel=105BKRK0001000000000000000&coreCode=HZDW000174463&paraPromoCode=EW0004600000000EL01";
} }
toPurchase = () => { toPurchase = () => {
window.location.href = "https://ghjf.g-town.com.cn/activity/wsd.html?type=wsd"; // window.location.href = "https://ghjf.g-town.com.cn/activity/wsd.html?type=wsd";
this.getActivityInfo('HD046012MadrYFGPcb');
} }
......
This diff is collapsed.
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