Commit f8580152 authored by haiyoucuv's avatar haiyoucuv

1

parent 8d8c84d4
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>$PAGE_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" />
<style>
html,
body {
padding: 0;
margin: 0;
border: 0;
width: 100%;
height: 100%;
overflow: hidden;
position: absolute;
background-color: white;
}
</style>
</head>
<script>
window['recordUrl'] = 'https://www.baidu.com/';
window['rule'] = '<p>活动时间: <br>即日起<br><br>活动对象: <br>工银e生活用户<br> <br> 活动规则:<br> 1.点击对应的土地,选择你想种的作物开始种植或者喂养吧!<br> 2.浇灌或者喂养作物成长,作物成熟后可出售成欢趣豆或者兑换好礼。<br> <br> 农场玩法:<br> 1.水的用途:用以浇灌小麦/玉米等农作物;<br> 2.饲料的用途:用以喂养鸡/牛等动物;<br> 3.水和饲料怎么来:每天签到和首次分享可获得,完成制定任务也可获得哦;<br> 4.作物成熟时间:作物每隔8小时就需要浇水,其中小麦/玉米等农作物需浇水3次,鸡/牛等动物需喂养4次可成熟;<br> 5.收获食材:小麦收获后可获得4袋小麦,鸡收获后可获得4个鸡蛋,牛收获后可获得4瓶牛奶,玉米收获后可获得4袋玉米;<br> 6.收获的食材将储存在仓库中,点击食材即可出售成欢趣豆哦~<br> 其他说明:<br> 1.领奖说明:中奖用户请根据中奖页面提示录入对应兑奖信息,具体兑换信息以奖品详情页为准,实物商品将在客户领取成功后15个工作日内发出;<br> 2.用户如果违反诚实守信原则或出现违规行为(包括但不限于侵犯第三人合法权益、作弊、扰乱系统、实施网络攻击、恶意套取、批量注册、用机器注册账户、用机器模拟客户端等方式),一经发现我行有权终止该用户参与活动并取消其领奖资格;<br> 3.本活动与苹果公司无关。 </p><p>活动时间: <br>即日起<br><br>活动对象: <br>工银e生活用户<br> <br> 活动规则:<br> 1.点击对应的土地,选择你想种的作物开始种植或者喂养吧!<br> 2.浇灌或者喂养作物成长,作物成熟后可出售成欢趣豆或者兑换好礼。<br> <br> 农场玩法:<br> 1.水的用途:用以浇灌小麦/玉米等农作物;<br> 2.饲料的用途:用以喂养鸡/牛等动物;<br> 3.水和饲料怎么来:每天签到和首次分享可获得,完成制定任务也可获得哦;<br> 4.作物成熟时间:作物每隔8小时就需要浇水,其中小麦/玉米等农作物需浇水3次,鸡/牛等动物需喂养4次可成熟;<br> 5.收获食材:小麦收获后可获得4袋小麦,鸡收获后可获得4个鸡蛋,牛收获后可获得4瓶牛奶,玉米收获后可获得4袋玉米;<br> 6.收获的食材将储存在仓库中,点击食材即可出售成欢趣豆哦~<br> 其他说明:<br> 1.领奖说明:中奖用户请根据中奖页面提示录入对应兑奖信息,具体兑换信息以奖品详情页为准,实物商品将在客户领取成功后15个工作日内发出;<br> 2.用户如果违反诚实守信原则或出现违规行为(包括但不限于侵犯第三人合法权益、作弊、扰乱系统、实施网络攻击、恶意套取、批量注册、用机器注册账户、用机器模拟客户端等方式),一经发现我行有权终止该用户参与活动并取消其领奖资格;<br> 3.本活动与苹果公司无关。 </p>'
</script>
<!--微信分享-->
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
window['shareAddTime'] = function () {
};
window['invokeWX'] = function () {
let share = {
title: "种菜养鸡 兑换欢趣豆",
desc: "来欢趣农场一键开启田园生活",
url: "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 () {
window['shareAddTime']();
},
cancel: function () {
}
});
wx.onMenuShareAppMessage({
title: share.title,
desc: share.desc,
link: share.url,
imgUrl: share.imgUrl,
success: function () {
window['shareAddTime']();
},
cancel: function () {
}
});
}
</script>
<!--微信分享-->
<body>
<img id="pic"
style="margin:auto; top:0; bottom:0; right:0; left:0;position: absolute;z-index: 999;display: none;" />
<div id="$CONTAINER_ID$" style="line-height:0;font-size:0"></div>
<script src="http://yun.duiba.com.cn/editor/zeroing/libs/engine.4db1f30a604493bbb87d4966af54cdd10840047a.js"></script>
$SCRIPTS$
<script>
engine.launch('//yun.duiba.com.cn/aurora/$VERSION$-data.json');
</script>
</body>
</html>
{
"code": null,
"data": {
"optionId": "thanks",
"position": null,
"prizeId": "thanks",
"prizeType": 0,
"url": null,
"userRecordId": null
},
"message": null,
"success": true
}
\ No newline at end of file
{
"name": "Test1",
"props": {
"uri": {
"type": "string",
"alias": "URI"
},
"method": {
"type": "enum",
"enum": [
"get",
"post"
],
"alias": "方法",
"default": "get"
},
"dataName": {
"type": "string",
"alias": "数据名"
},
"params": {
"type": "map",
"alias": "参数"
}
},
"name": "api请求",
"output": [
"success",
"failed",
"exception"
],
"sub": {
"d1eb90cd-9bbb-41a9-a43d-6a777fe851ab": {
"uuid": "d1eb90cd-9bbb-41a9-a43d-6a777fe851ab",
"meta": "entry",
"props": {},
"output": {
"success": [
"567169ba-a2c1-4c10-9666-605a2e89ef0f"
]
}
},
"567169ba-a2c1-4c10-9666-605a2e89ef0f": {
"uuid": "567169ba-a2c1-4c10-9666-605a2e89ef0f",
"meta": "a4b27753-4cbb-47e3-9b31-51999475e41a",
"props": {
"host": {
"type": "link"
},
"uri": {
"type": "link"
}
},
"output": {
"success": [
"f9a32b46-aec1-4bd2-9b98-3d9a427d87db"
]
}
},
"f9a32b46-aec1-4bd2-9b98-3d9a427d87db": {
"uuid": "f9a32b46-aec1-4bd2-9b98-3d9a427d87db",
"meta": "duiba-api",
"props": {
"method": {
"type": "link"
},
"name": {
"type": "link",
"alias": "dataName"
}
},
"output": {}
}
},
"assets": [
"subEntry": "d1eb90cd-9bbb-41a9-a43d-6a777fe851ab",
"metas": [
{
"url": "//yun.duiba.com.cn/aurora/af90069732223c75818c4799b3130bd0f0ad4ff8.png",
"ext": ".png"
"id": "a4b27753-4cbb-47e3-9b31-51999475e41a",
"script": "var uri = engine.findVariable('uri', args, props);\nvar url;\nif(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){\n\tvar projectX = 'projectx';\n\tvar projectID = engine.env.projectID;\n url = engine.joinPath(projectX, projectID, uri);\n}else{\n url = uri;\n}\nnext('success', {url:url});",
"props": {
"uri": {
"type": "string",
"alias": "URI"
}
},
"isInline": true,
"name": "url拼接",
"output": [
"success"
]
}
]
}
\ No newline at end of file
let baseCode = engine.toDisplayDataURL(props.node)
next('base64', baseCode);
http://beacon.duibadev.com.cn/?spId=999&spUUID=999&inviteCode=000#/preview/7da64ae40ad2a
\ No newline at end of file
function invokeWX() {
let share = {
title: "种菜养鸡 兑换欢趣豆",
desc: "来欢趣农场一键开启田园生活",
url: "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) {
$.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);
......@@ -6,8 +6,8 @@ const url = engine.findVariable('url', args, props);
const params = engine.findVariable('params', args, props);
if (!url) {
console.log('url is empty');
next('exception', '\'url is empty\'');
console.log('urlStr is empty');
next('exception', '\'urlStr is empty\'');
} else {
engine.httpRequest((s, payload) => {
if (s) {
......
{
"id": "init-weixin-env",
"props": {
"debug": {
"type": "boolean",
"alias": "调试模式"
}
},
"name": "初始化微信环境",
"output": [
"success"
],
"sub": {
"345ffd18-6e91-4a6e-8469-12d0e9f76e99": {
"uuid": "345ffd18-6e91-4a6e-8469-12d0e9f76e99",
"meta": "entry",
"design": {
"x": 10,
"y": 10,
"input": {},
"output": {
"success": [
{
"x": 124.5,
"y": 32
}
]
}
},
"props": {},
"output": {
"success": [
"303b8a54-5d14-4bb1-b2ad-72e54b5d4faf"
]
}
},
"d1eb90cd-9bbb-41a9-a43d-6a87cfe851ab": {
"uuid": "d1eb90cd-9bbb-41a9-a43d-6a87cfe851ab",
"meta": "66e003c5-4cd2-41cf-94e4-2c42d6d0112d",
"design": {
"x": 475,
"y": 213
},
"props": {
"debug": {
"type": "link"
}
},
"output": {}
},
"0ef79170-f204-4a63-8317-4714dd4114b4": {
"uuid": "0ef79170-f204-4a63-8317-4714dd4114b4",
"meta": "http-request",
"design": {
"x": 284,
"y": 144
},
"props": {
"url": "/wechatShare/getShareInfo/v2",
"params": {
"type": "map",
"value": {}
}
},
"output": {
"success": [
"d1eb90cd-9bbb-41a9-a43d-6a87cfe851ab"
]
}
},
"303b8a54-5d14-4bb1-b2ad-72e54b5d4faf": {
"uuid": "303b8a54-5d14-4bb1-b2ad-72e54b5d4faf",
"meta": "ab7b55eb-5e38-4028-815f-0ba3f6e1c998",
"design": {
"x": 119,
"y": 114
},
"props": {},
"output": {
"success": [
"0ef79170-f204-4a63-8317-4714dd4114b4"
]
}
}
},
"subEntry": "345ffd18-6e91-4a6e-8469-12d0e9f76e99",
"metas": [
{
"id": "66e003c5-4cd2-41cf-94e4-2c42d6d0112d",
"script": "//alert(JSON.stringify(args))\n\nwx.config({\n debug: props.debug,\n appId: args.wxappid,\n timestamp: args.wxtimestamp,\n nonceStr: args.wxnonceStr,\n signature: args.wxsignature,\n jsApiList: ['checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage']\n});\n\nwx.error(function(res){\n\talert(JSON.stringify(res))\n});\n\nnext('success');",
"props": {
"debug": {
"type": "boolean",
"alias": "调试模式"
}
},
"isInline": true,
"name": "设置微信环境",
"output": [
"success"
]
},
{
"id": "ab7b55eb-5e38-4028-815f-0ba3f6e1c998",
"script": "next('success', {\n params: {\n url: encodeURIComponent(location.href)\n }\n});",
"props": {},
"isInline": true,
"name": "获取当前链接",
"output": [
"success"
]
}
]
}
\ No newline at end of file
[
{
"script": "//alert(JSON.stringify(args))\n\nwx.config({\n debug: props.debug,\n appId: args.wxappid,\n timestamp: args.wxtimestamp,\n nonceStr: args.wxnonceStr,\n signature: args.wxsignature,\n jsApiList: ['checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage']\n});\n\nwx.error(function(res){\n\talert(JSON.stringify(res))\n});\n\nnext('success');",
"props": {
"debug": {
"type": "boolean",
"alias": "调试模式"
}
},
"isInline": true,
"name": "设置微信环境",
"output": [
"success"
]
},
{
"script": "next('success', {\n params: {\n url: encodeURIComponent(location.href)\n }\n});",
"props": {},
"isInline": true,
"name": "获取当前链接",
"output": [
"success"
]
}
]
\ 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