Commit 479dde76 authored by wildfirecode13's avatar wildfirecode13

u

parent 72d6bd42
...@@ -13,6 +13,7 @@ import { getUrlParams } from "../module/tools/WebTool"; ...@@ -13,6 +13,7 @@ import { getUrlParams } from "../module/tools/WebTool";
import getQueryParams from "./common/getQueryParams"; import getQueryParams from "./common/getQueryParams";
import { WebNetName } from "./WebNetName"; import { WebNetName } from "./WebNetName";
import { getUnionid } from "./getUnionid"; import { getUnionid } from "./getUnionid";
import { startShare } from "./share";
/** /**
...@@ -60,6 +61,7 @@ export class Main { ...@@ -60,6 +61,7 @@ export class Main {
return; return;
} }
startShare();
//初始化层级 //初始化层级
layers.init(this.stage); layers.init(this.stage);
console.log("初始化层级完成") console.log("初始化层级完成")
......
import { start, WeixinMini, updateShare } from '@spark/share' import { start, WeixinMini, updateShare } from '@spark/share'
start([WeixinMini], (way, success, payload) => {
console.log('分享' + success ? '成功' : '失败'); export const startShare=()=>{
updateShare({ console.log('start WeixinMini')
title: '百万体验金等你来拿', //分享标题 start([WeixinMini], (way, success, payload) => {
content: '三湘银行体验金活动', //分享内容 console.log('分享' + success ? '成功' : '失败');
url: 'http://www.baidu.com', //分享链接
thumbnail: 'https://yun.duiba.com.cn/db_games/sxbank.png', //分享缩略图 updateShare({
title: '百万体验金等你来拿', //分享标题
content: '三湘银行体验金活动', //分享内容
url: 'http://www.baidu.com', //分享链接
thumbnail: 'https://yun.duiba.com.cn/db_games/sxbank.png', //分享缩略图
});
}); });
}); }
\ No newline at end of file \ 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