Commit cf8c5925 authored by wildfirecode13's avatar wildfirecode13

u

parent 1c02ebf9
......@@ -11,7 +11,7 @@
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<script src="//res.wx.qq.com/open/js/jweixin-1.3.2.js" crossorigin="anonymous"></script>
<script src="//res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
<!-- 渲染引擎 -->
<script src="//yun.duiba.com.cn/db_games/libs0924/fyge2018.minSpine.js" crossorigin="anonymous"></script>
<!-- svga解析库 -->
......
{
"code": null,
"data": "704OSQ",
"data": "ZZN5QH",
"message": null,
"success": true
}
\ No newline at end of file
......@@ -7,6 +7,7 @@ import Marquee from "../common/Marquee";
import { getAutoPrizeUrl } from "../getShareUrl";
import { AssistPanel } from "../panels/assist";
import { RulePanel } from "../panels/rule";
import updateShareFunc from "../share";
import { getPxTokenSave, sendWebNet, WebNetName } from "../WebNet";
export class ShareScene extends Scene {
......@@ -43,6 +44,7 @@ export class ShareScene extends Scene {
async start(data) {
super.start();
updateShareFunc('inShareScene', '');
console.log('ShareScene query>>', JSON.stringify(getQueryParams()));
const query = getQueryParams();
......
......@@ -5,14 +5,17 @@
import { start, WeixinMini,updateShare } from '@spark/share'
import { getShareUrl } from './getShareUrl';
let ready=0;
start([WeixinMini], (way, success, payload) => {
console.log('分享' + success ? '成功' : '失败')
console.log('分享' + success ? '成功' : '失败');
ready=1;
});
const updateShareFunc=(type, code)=>{
console.log('updateShare', 'type=', type, 'code=', code)
const updateShareFunc=(type, code )=>{
if(ready==0)
console.log('分享组件没有准备成功');
console.log('updateShare', 'type=', type, 'ready=',ready,'url=', getShareUrl({code:code,sxbankIsSharePage:1}));
updateShare({
title: 'title', //分享标题
content: 'content', //分享内容
......
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