Commit 127f1591 authored by haiyoucuv's avatar haiyoucuv

1

parent a44ed796
No preview for this file type
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" /> <mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="$PROJECT_DIR$/node_modules/duiba-game-build" vcs="Git" />
</component> </component>
</project> </project>
\ No newline at end of file
This diff is collapsed.
No preview for this file type
...@@ -94,30 +94,25 @@ ...@@ -94,30 +94,25 @@
bid: 31, bid: 31,
}, },
}; };
window['record'] = 'f67522bea.html'; window['record'] = 'ff0a36885.html';
window['rule'] = "活动时间: \n" + window['rule'] =
"2020年1月9日-2020年03月31日 \n" + "一、活动时间: \n" +
\n" + "2020年11月1日-2020年12月31日 \n" +
"活动对象: \n" + "二、活动主题:欢趣农场\n" +
"工银e生活用户\n" + "三、活动对象:工银e生活绑卡用户\n" +
"\n" + "四、活动内容: \n" +
"活动规则:\n" + "点击对应的土地,选择你想种的作物开始种植或者喂养。浇灌或者喂养作物成长,作物成熟后可出售成欢趣豆或集齐足额作物兑换好礼,具体兑换好礼详情见商店页面;集齐足额特殊作物有机会兑换对应作物的实物立减金券。\n" +
"1.点击对应的土地,选择你想种的作物开始种植或者喂养吧!\n" + "五、活动规则:\n" +
"2.浇灌或者喂养作物成长,作物成熟后可出售成欢趣豆或者兑换好礼;\n" +
"\n" +
"农场玩法:\n" +
"1.水的用途:用以浇灌小麦/玉米等农作物;\n" + "1.水的用途:用以浇灌小麦/玉米等农作物;\n" +
"2.饲料的用途:用以喂养鸡/牛等动物;\n" + "2.饲料的用途:用以喂养鸡/牛等动物;\n" +
"3.水和饲料怎么来:每天签到和首次分享可获得,完成制定任务也可获得哦\n" + "3.水和饲料怎么来:每天签到和首次分享可获得2份饲料和3份水,完成任务也可获得更多奖励\n" +
"4.作物成熟时间:作物每隔8小时就需要浇水,其中小麦/玉米等农作物需浇水2次,鸡/牛等动物需喂养3次可成熟;\n" + "4.作物成熟时间:作物每隔8小时就需要浇水,其中小麦/玉米等农作物需浇水2次,鸡/牛等动物需喂养3次可成熟;\n" +
"5.收获食材:小麦收获后可获得4袋小麦,鸡收获后可获得4个鸡蛋,牛收获后可获得4瓶牛奶,玉米收获后可获得4袋玉米;\n" + "5.收获食材:小麦收获后可获得4袋小麦,鸡收获后可获得4个鸡蛋,牛收获后可获得4瓶牛奶,玉米收获后可获得4袋玉米;核桃收获后可获得4颗核桃;土豆收获后可获得4颗土豆。\n" +
"6.收获的食材将储存在仓库中,点击食材即可出售成欢趣豆哦。作物售价会随着庄园总库存波动,最终出售价格以每日10点实际展示为准。\n" + "6.收获的食材将储存在仓库中,点击食材即可出售成欢趣豆哦。作物售价会随着庄园总库存波动,最终出售价格以商店页面每日10点实际展示为准。\n" +
"7.收获的食材还可用于兑换好礼,每个好礼仅限兑换一次,数量有限,先到先得~\n" + "7.收获的食材还可用于兑换好礼;土豆、核桃有机会兑换实物立减金券;每个好礼和作物在活动周期内仅限兑换一次,数量有限,先到先得~\n" +
"\n" +
"其他说明:\n" + "其他说明:\n" +
"1.领奖说明:中奖用户请根据中奖页面提示录入对应兑奖信息,具体兑换信息以奖品详情页为准,实物商品将在客户领取成功后15个工作日内发出;\n" + "1.领奖说明:客户兑换的实物立减金可在e生活app“我的”-“优惠券”-“e生活立减金”中查看,请用户前往该页面进行所有获奖奖品查看;\n" +
"2.用户如果违反诚实守信原则或出现违规行为(包括但不限于侵犯第三人合法权益、作弊、扰乱系统、实施网络攻击、恶意套取、批量注册、用机器注册账户、用机器模拟客户端等方式),一经发现我行有权终止该用户参与活动并取消其领奖资格; \n" + "2.用户如果违反诚实守信原则或出现违规行为(包括但不限于侵犯第三人合法权益、作弊、扰乱系统、实施网络攻击、恶意套取、批量注册、用机器注册账户、用机器模拟客户端等方式),一经发现我行有权终止该用户参与活动并取消其领奖资格;";
"3.本活动与苹果公司无关。";
</script> </script>
<!--微信分享方法--> <!--微信分享方法-->
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
......
No preview for this file type
import Panel from "../views/Panel"; import Panel from "../views/Panel";
import { getSkinPath } from "../utils"; import {getSkinPath} from "../utils";
import TopLayerCtrl from "../ctrls/topLayerCtrl"; import TopLayerCtrl from "../ctrls/topLayerCtrl";
import { ModuleTypes } from "../types/sceneTypes"; import {ModuleTypes} from "../types/sceneTypes";
import { NetManager } from "../../libs/tw/manager/NetManager"; import {NetManager} from "../../libs/tw/manager/NetManager";
import { MainDispatcher, MainIns } from "../Scenes/MainScene/MainScene"; import {MainDispatcher, MainIns} from "../Scenes/MainScene/MainScene";
import { getlogItem } from "../comm/getlogItem"; import {getlogItem} from "../comm/getlogItem";
import List = eui.List; import List = eui.List;
import ItemRenderer = eui.ItemRenderer; import ItemRenderer = eui.ItemRenderer;
import Image = eui.Image; import Image = eui.Image;
...@@ -52,11 +52,11 @@ export default class TaskPanel extends Panel { ...@@ -52,11 +52,11 @@ export default class TaskPanel extends Panel {
private getTaskInfo() { private getTaskInfo() {
NetManager.ins.getTaskInfo((success, res) => { NetManager.ins.getTaskInfo((success, res) => {
if(!success) { if (!success) {
return; return;
} }
let data = res.data; let data = res.data;
if(!this.isShow) { if (!this.isShow) {
this.isShow = true; this.isShow = true;
data.forEach((v) => { data.forEach((v) => {
(v.status == 0) ? NetManager.ins.showLog(getlogItem(window['taskUi'][v.id].bid)) : 0; // 12, 13, 14, 15, 30, 31 (v.status == 0) ? NetManager.ins.showLog(getlogItem(window['taskUi'][v.id].bid)) : 0; // 12, 13, 14, 15, 30, 31
...@@ -99,11 +99,11 @@ class TaskItem extends ItemRenderer { ...@@ -99,11 +99,11 @@ class TaskItem extends ItemRenderer {
this.textWater.text = '×' + this.data.spFood2RewardNum; this.textWater.text = '×' + this.data.spFood2RewardNum;
/// TODO 0奖励隐藏的临时低效方案,待优化 /// TODO 0奖励隐藏的临时低效方案,待优化
if(this.data.spFood1RewardNum <= 0) { if (this.data.spFood1RewardNum <= 0) {
this.foodGroup.visible = false; this.foodGroup.visible = false;
this.waterGroup.x = this.foodGroup.x; this.waterGroup.x = this.foodGroup.x;
} }
if(this.data.spFood2RewardNum <= 0) { if (this.data.spFood2RewardNum <= 0) {
this.waterGroup.visible = false; this.waterGroup.visible = false;
} }
this.setBtn(); this.setBtn();
...@@ -124,24 +124,28 @@ class TaskItem extends ItemRenderer { ...@@ -124,24 +124,28 @@ class TaskItem extends ItemRenderer {
MainIns().mainUI.getPropInfo(); MainIns().mainUI.getPropInfo();
}; };
if(this.data.status == 0) { if (this.data.status == 0) {
this.btn.addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this.btn.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
this.btn.touchEnabled = false; this.btn.touchEnabled = false;
NetManager.ins.clickLog(getlogItem(window['taskUi'][this.data.id].bid)); // 12, 13, 14, 15 NetManager.ins.clickLog(getlogItem(window['taskUi'][this.data.id].bid)); // 12, 13, 14, 15
NetManager.ins.doTask((success, res) => { NetManager.ins.doTask((success, res) => {
this.touchEnabled = true; this.touchEnabled = true;
if(!success) { if (!success) {
return; return;
} }
if(this.data.id == 1 || this.data.id == 2) { if (this.data.id == 1 || this.data.id == 2) {
(this.data.id == 2) ? ( (this.data.id == 2) ? (
window['share'](), window['share'](),
setTimeout(_f, 3000)) : _f(); setTimeout(_f, 3000)) : _f();
} else { } else {
MainDispatcher.dispatchEvent('getTaskInfo'); MainDispatcher.dispatchEvent('getTaskInfo');
MainIns().mainUI.getPropInfo(); MainIns().mainUI.getPropInfo();
window.location.href = this.data.url || window['taskUi'][this.data.id].link; if (window['taskUi'][this.data.id].linkId) {
window['getActivityInfo'](window['taskUi'][this.data.id].linkId);
} else {
window.location.href = this.data.url || window['taskUi'][this.data.id].link;
}
} }
}, this.data.id); }, this.data.id);
}, this); }, this);
......
<head>
<meta charset="utf-8">
<title>欢趣庄园</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<script>var __startTime__ = Date.now()</script>
<meta CONTENT="no-cache">
</head>
<body>
<script type="text/javascript"
src="https://res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.0.0/vconsole.min.js"></script>
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main"
data-orientation="auto" data-scale-mode="showAll" data-frame-rate="60" data-content-width="750"
data-content-height="1624" data-multi-fingered="2" data-show-fps="false" data-show-log="false"
data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div>
<style>
html,
body {
-ms-touch-action: none;
background: #888888;
padding: 0;
border: 0;
overflow: hidden;
margin: 0;
height: 100%;
}
* {
box-sizing: inherit !important;
}
</style>
<script src="https://assets.geilicdn.com/v-components/jsbridge/1.0.1/index.min.js"></script>
<script src="https://yun.duiba.com.cn/db_games/hybrid_app2.js"></script>
<script>
function share() {
/******************** demo ********************
调用分享交互需要传入的参数如下
******************** demoend ******************/
//pngUrl:分享后链接显示的图片地址
var pngUrl = "https://yun.duiba.com.cn/db_games/qx/joyousManor.jpg";
//shareUrl:分享后点击链接需要跳转的地址
var shareUrl = "https://gonghang.activity-1.m.duiba.com.cn/projectx/pb7d5ade5/f3c09cf32.html";
//title:分享后链接显示的标题
var title = "种菜养鸡 兑换欢趣豆";
//content:分享后链接显示的内容
var content = "来欢趣农场一键开启田园生活";
//封装需要分享的对象
var shareInfo = {
PNGUrl: pngUrl,
ShareUrl: shareUrl,
Title: title,
Content: content
};
// 将对象转为字符串
shareInfo = JSON.stringify(shareInfo);
hybrid_app.share(shareInfo);
}
</script>
<script>
window['taskUi'] = {
1: {
icon: '签到 icon_png',
btnLabel: '去签到',
label: '每日签到'
},
2: {
icon: '分享 icon_png',
btnLabel: '去分享',
label: '分享给好友'
},
3: {
icon: '消费 icon_png',
btnLabel: '去完成',
label: '访问欢趣竞猜',
link: 'https://gonghang.activity-1.m.duiba.com.cn/projectx/p63e3d5c8/index.html'
},
4: {
icon: '生活日 icon_png',
btnLabel: '去完成',
label: '访问欢趣市集',
link: 'https://gonghang.activity-1.m.duiba.com.cn/hdtool/index?id=3737984&dbnewopen'
},
};
window['record'] = 'https://gonghang.activity-1.m.duiba.com.cn/projectx/p7f1cc3ab/ff0a36885.html';
window['rule'] = "活动时间: \n" +
"2020年1月9日-2020年04月30日 \n" +
\n" +
"活动对象: \n" +
"工银e生活用户\n" +
"\n" +
"活动规则:\n" +
"1.点击对应的土地,选择你想种的作物开始种植或者喂养吧!\n" +
"2.浇灌或者喂养作物成长,作物成熟后可出售成欢趣豆或者兑换好礼;\n" +
"\n" +
"农场玩法:\n" +
"1.水的用途:用以浇灌小麦/玉米等农作物;\n" +
"2.饲料的用途:用以喂养鸡/牛等动物;\n" +
"3.水和饲料怎么来:每天签到和首次分享可获得,完成制定任务也可获得哦;\n" +
"4.作物成熟时间:作物每隔8小时就需要浇水,其中小麦/玉米等农作物需浇水3次,鸡/牛等动物需喂养4次可成熟;\n" +
"5.收获食材:小麦收获后可获得4袋小麦,鸡收获后可获得4个鸡蛋,牛收获后可获得4瓶牛奶,玉米收获后可获得4袋玉米;\n" +
"6.收获的食材将储存在仓库中,点击食材即可出售成欢趣豆哦。作物售价会随着庄园总库存波动,最终出售价格以每日10点实际展示为准。\n" +
"7.收获的食材还可用于兑换好礼,每个好礼仅限兑换一次,数量有限,先到先得~\n" +
"8.商店中的道具每人限量兑换哦~\n" +
"\n" +
"其他说明:\n" +
"1.领奖说明:中奖用户请根据中奖页面提示录入对应兑奖信息,具体兑换信息以奖品详情页为准,实物商品将在客户领取成功后15个工作日内发出;\n" +
"2.用户如果违反诚实守信原则或出现违规行为(包括但不限于侵犯第三人合法权益、作弊、扰乱系统、实施网络攻击、恶意套取、批量注册、用机器注册账户、用机器模拟客户端等方式),一经发现我行有权终止该用户参与活动并取消其领奖资格; \n" +
"3.本活动与苹果公司无关。";
</script>
<script>
var recordUrl = "//activity.m.duiba.com.cn/crecord/record" //发布皮肤时注意确认
var resPath = "https://yun.duiba.com.cn/db_games/activity/typfzq-20190903/1578629429/";
function resolve(a) {
var b = eval(a);
return b;
}
</script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/lib2_game.min.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/svga.egret.min2.js"></script>
<script crossorigin="anonymous"
src="//yun.duiba.com.cn/db_games/activity/typfzq-20190903/1578636702/output.js"></script>
<script crossorigin="anonymous"
src="//yun.duiba.com.cn/db_games/activity/typfzq-20190903/1578636765/resource/default.thm.js"></script>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
</script>
<script>
egret.ImageLoader.crossOrigin = "anonymous";
/**
* {
* "renderMode":, //Engine rendering mode, "canvas" or "webgl"
* "audioType": 0 //Use the audio type, 0: default, 2: web audio, 3: audio
* "antialias": //Whether the anti-aliasing is enabled in WebGL mode, true: on, false: off, defaults to false
* "calculateCanvasScaleFactor": //a function return canvas scale factor
* }
**/
setTimeout(function(){
egret.runEgret({
renderMode: "webgl", audioType: 0, calculateCanvasScaleFactor: function (context) {
var backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
return (window.devicePixelRatio || 1) / backingStore;
}
});
},400)
</script>
\ No newline at end of file
<head>
<meta charset="utf-8">
<title>欢趣庄园</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="full-screen" content="true"/>
<meta name="screen-orientation" content="portrait"/>
<meta name="x5-fullscreen" content="true"/>
<meta name="360-fullscreen" content="true"/>
<script>
var __startTime__ = Date.now()
</script>
<meta CONTENT="no-cache">
</head>
<body>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/libs/zepto_security_downloadApp.min.js"></script>
<script type="text/javascript"
src="https://res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.0.0/vconsole.min.js"></script>
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main"
data-orientation="auto" data-scale-mode="showAll" data-frame-rate="60" data-content-width="750"
data-content-height="1624" data-multi-fingered="2" data-show-fps="false" data-show-log="false"
data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div>
<style>
html,
body {
-ms-touch-action: none;
background: #888888;
padding: 0;
border: 0;
overflow: hidden;
margin: 0;
height: 100%;
}
* {
box-sizing: inherit !important;
}
</style>
<script>
window['link'] = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.icbc.elife&android_schema=com.icbc.elife%3A%2F%2Felife%2Floading%3FactID%3DHD0460191216064&ios_schema=com.icbc.elife%3A%2F%2Felife%3FactID%3DHD0460191216064';
</script>
<!--微信分享方法-->
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
function invokeWX() {
let share = {
title: "种菜养鸡 兑换欢趣豆",
desc: "来欢趣农场一键开启田园生活",
url: window.location.href, //"https://activity.m.duiba.com.cn/customShare/share?id=3562",
imgUrl: "https://yun.duiba.com.cn/db_games/qx/joyousManor.jpg",
};
wx.onMenuShareTimeline({
title: share.title,
desc: share.desc,
link: share.url,
imgUrl: share.imgUrl,
success: function () {
},
cancel: function () {
}
});
wx.onMenuShareAppMessage({
title: share.title,
desc: share.desc,
link: share.url,
imgUrl: share.imgUrl,
success: function () {
},
cancel: function () {
}
});
}
function initWx(url) {
console.log(111);
$.ajax({
type: 'get',
url: '/wechatShare/getShareInfo/v2',
data: {
wxdebug: false,
url: url
},
cache: false,
dataType: 'json',
success: function (res) {
if (!res.success) {
return;
}
wx.config({
debug: false,
appId: res.wxappid,
timestamp: res.wxtimestamp,
nonceStr: res.wxnonceStr,
signature: res.wxsignature,
jsApiList: ['checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage']
});
wx.error(function (res) {
console.error("wx error", res);
});
wx.ready(function () {
invokeWX();
});
},
error: function (err) {
}
});
}
initWx(window.location.href);
</script>
<script>
var recordUrl = "//activity.m.duiba.com.cn/crecord/record" //发布皮肤时注意确认
var resPath = "https://yun.duiba.com.cn/db_games/activity/typfzq-20190903/1576057172/";
function resolve(a) {
var b = eval(a);
return b;
}
</script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/lib2_game.min.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/svga.egret.min2.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/activity/typfzq-20190903/1576057172/output.js">
</script>
<script crossorigin="anonymous"
src="//yun.duiba.com.cn/db_games/activity/typfzq-20190903/1576057172/resource/default.thm.js"></script>
<script>
egret.ImageLoader.crossOrigin = "anonymous";
/**
* {
* "renderMode":, //Engine rendering mode, "canvas" or "webgl"
* "audioType": 0 //Use the audio type, 0: default, 2: web audio, 3: audio
* "antialias": //Whether the anti-aliasing is enabled in WebGL mode, true: on, false: off, defaults to false
* "calculateCanvasScaleFactor": //a function return canvas scale factor
* }
**/
setTimeout(function () {
egret.runEgret({
renderMode: "webgl", audioType: 0, calculateCanvasScaleFactor: function (context) {
var backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
return (window.devicePixelRatio || 1) / backingStore;
}
});
}, 400);
</script>
\ No newline at end of file
<head>
<meta charset="utf-8">
<title>欢趣庄园</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="full-screen" content="true"/>
<meta name="screen-orientation" content="portrait"/>
<meta name="x5-fullscreen" content="true"/>
<meta name="360-fullscreen" content="true"/>
<script>var __startTime__ = Date.now()</script>
<meta CONTENT="no-cache">
</head>
<body>
<!--<script type="text/javascript"-->
<!-- src="https://res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.0.0/vconsole.min.js"></script>-->
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main"
data-orientation="auto" data-scale-mode="showAll" data-frame-rate="60" data-content-width="750"
data-content-height="1624" data-multi-fingered="2" data-show-fps="false" data-show-log="false"
data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div>
<style>
html,
body {
-ms-touch-action: none;
background: #888888;
padding: 0;
border: 0;
overflow: hidden;
margin: 0;
height: 100%;
}
* {
box-sizing: inherit !important;
}
</style>
<script src="https://www.icbc.com.cn/ICBC/html/card/elife/js/2017/0703/icbc_client_core.js"
class="__web-inspector-hide-shortcut__"></script>
<script src="https://assets.geilicdn.com/v-components/jsbridge/1.0.1/index.min.js"></script>
<script src="https://yun.duiba.com.cn/db_games/hybrid_app2.js"></script>
<script src="getTokenKey"></script>
<script src="//yun.duiba.com.cn/js-libs/px-token/0.0.3/px-token.min.js"></script>
<script>
function share() {
/******************** demo ********************
调用分享交互需要传入的参数如下
******************** demoend ******************/
//pngUrl:分享后链接显示的图片地址
var pngUrl = "https://yun.duiba.com.cn/db_games/qx/joyousManor.jpg";
//shareUrl:分享后点击链接需要跳转的地址
var shareUrl = "https://gonghang.activity-1.m.duiba.com.cn/projectx/p7f1cc3ab/f3c09cf32.html";
//title:分享后链接显示的标题
var title = "种菜养鸡 兑换欢趣豆";
//content:分享后链接显示的内容
var content = "来欢趣农场一键开启田园生活";
//封装需要分享的对象
var shareInfo = {
PNGUrl: pngUrl,
ShareUrl: shareUrl,
Title: title,
Content: content
};
// 将对象转为字符串
shareInfo = JSON.stringify(shareInfo);
hybrid_app.share(shareInfo);
}
function getActivityInfo(actId) {
if (ICBCUtilTools.isAndroid()) { // 如果是安卓
window.Myutils.getActivityInfo(actId);
return;
}
if (ICBCUtilTools.isiPhone()) {
window.WebViewJavascriptBridge.callHandler("Myutils.getActivityInfo", actId)
}
}
</script>
<script>
window['taskUi'] = {
1: {
icon: '签到 icon_png',
btnLabel: '去签到',
label: '每日签到',
bid: 12,
},
2: {
icon: '分享 icon_png',
btnLabel: '去分享',
label: '分享给好友',
bid: 13,
},
3: {
icon: '消费 icon_png',
btnLabel: '去完成',
label: '访问欢趣竞猜',
link: 'https://gonghang.activity-1.m.duiba.com.cn/projectx/p63e3d5c8/index.html',
bid: 14,
},
4: {
icon: '生活日 icon_png',
btnLabel: '去完成',
label: '访问欢趣市集',
link: 'https://gonghang.activity-1.m.duiba.com.cn/hdtool/index?id=3737984&dbnewopen',
bid: 15,
},
5: {
icon: '浏览积分商城任务_png',
btnLabel: '去浏览',
label: '浏览积分商城',
linkId: 'HD0460200216484', // 积分商城
bid: 30,
},
6: {
icon: '消费任务_png',
btnLabel: '去浏览',
label: '浏览扶贫商城',
linkId: 'HD0460200417375', // 扶贫商城
bid: 31,
},
};
// HD0460200216484 积分商城
// HD0460200417375 扶贫商城
window['record'] = 'ff0a36885.html';
window['rule'] =
"一、活动时间: \n" +
"2020年11月1日-2020年12月31日 \n" +
"二、活动主题:欢趣农场\n" +
"三、活动对象:工银e生活绑卡用户\n" +
"四、活动内容: \n" +
"点击对应的土地,选择你想种的作物开始种植或者喂养。浇灌或者喂养作物成长,作物成熟后可出售成欢趣豆或集齐足额作物兑换好礼,具体兑换好礼详情见商店页面;集齐足额特殊作物有机会兑换对应作物的实物立减金券。\n" +
"五、活动规则:\n" +
"1.水的用途:用以浇灌小麦/玉米等农作物;\n" +
"2.饲料的用途:用以喂养鸡/牛等动物;\n" +
"3.水和饲料怎么来:每天签到和首次分享可获得2份饲料和3份水,完成任务也可获得更多奖励;\n" +
"4.作物成熟时间:作物每隔8小时就需要浇水,其中小麦/玉米等农作物需浇水2次,鸡/牛等动物需喂养3次可成熟;\n" +
"5.收获食材:小麦收获后可获得4袋小麦,鸡收获后可获得4个鸡蛋,牛收获后可获得4瓶牛奶,玉米收获后可获得4袋玉米;核桃收获后可获得4颗核桃;土豆收获后可获得4颗土豆。\n" +
"6.收获的食材将储存在仓库中,点击食材即可出售成欢趣豆哦。作物售价会随着庄园总库存波动,最终出售价格以商店页面每日10点实际展示为准。\n" +
"7.收获的食材还可用于兑换好礼;土豆、核桃有机会兑换实物立减金券;每个好礼和作物在活动周期内仅限兑换一次,数量有限,先到先得~\n" +
"其他说明:\n" +
"1.领奖说明:客户兑换的实物立减金可在e生活app“我的”-“优惠券”-“e生活立减金”中查看,请用户前往该页面进行所有获奖奖品查看;\n" +
"2.用户如果违反诚实守信原则或出现违规行为(包括但不限于侵犯第三人合法权益、作弊、扰乱系统、实施网络攻击、恶意套取、批量注册、用机器注册账户、用机器模拟客户端等方式),一经发现我行有权终止该用户参与活动并取消其领奖资格;";
</script>
<script>
var recordUrl = "//activity.m.duiba.com.cn/crecord/record" //发布皮肤时注意确认
var resPath = "https://yun.duiba.com.cn/db_games/activity/typfzq-20190903/1603877367/";
function resolve(a) {
var b = eval(a);
return b;
}
</script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/lib2_game.min.js"></script>
<script crossorigin="anonymous" src="//yun.duiba.com.cn/db_games/svga.egret.min2.js"></script>
<script crossorigin="anonymous"
src="//yun.duiba.com.cn/db_games/activity/typfzq-20190903/1603939701/output.js"></script>
<script crossorigin="anonymous"
src="//yun.duiba.com.cn/db_games/activity/typfzq-20190903/1603877367/resource/default.thm.js"></script>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
</script>
<script>
egret.ImageLoader.crossOrigin = "anonymous";
/**
* {
* "renderMode":, //Engine rendering mode, "canvas" or "webgl"
* "audioType": 0 //Use the audio type, 0: default, 2: web audio, 3: audio
* "antialias": //Whether the anti-aliasing is enabled in WebGL mode, true: on, false: off, defaults to false
* "calculateCanvasScaleFactor": //a function return canvas scale factor
* }
**/
setTimeout(function () {
egret.runEgret({
renderMode: "webgl", audioType: 0, calculateCanvasScaleFactor: function (context) {
var backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
return (window.devicePixelRatio || 1) / backingStore;
}
});
}, 400)
</script>
\ No newline at end of file
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