Commit 479dde76 authored by wildfirecode13's avatar wildfirecode13

u

parent 72d6bd42
......@@ -13,6 +13,7 @@ import { getUrlParams } from "../module/tools/WebTool";
import getQueryParams from "./common/getQueryParams";
import { WebNetName } from "./WebNetName";
import { getUnionid } from "./getUnionid";
import { startShare } from "./share";
/**
......@@ -60,6 +61,7 @@ export class Main {
return;
}
startShare();
//初始化层级
layers.init(this.stage);
console.log("初始化层级完成")
......
import { start, WeixinMini, updateShare } from '@spark/share'
start([WeixinMini], (way, success, payload) => {
export const startShare=()=>{
console.log('start WeixinMini')
start([WeixinMini], (way, success, payload) => {
console.log('分享' + success ? '成功' : '失败');
updateShare({
......@@ -9,4 +13,6 @@ start([WeixinMini], (way, success, payload) => {
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