Commit 57dea9f4 authored by zhangyuan's avatar zhangyuan

到实际

parent 0da62e72
......@@ -3,7 +3,7 @@
import React from 'react';
import { observer } from 'mobx-react';
import './sharePage.less';
import { _throttle, windowJumpUrl, CHANNEL, generateUUID } from '@/utils/utils';
import { _throttle, windowJumpUrl, CHANNEL, generateUUID, _asyncThrottle } from '@/utils/utils';
import { copyToClipboard } from '@spark/utils';
import { Toast } from "@grace/ui";
import API from '@/api';
......@@ -39,7 +39,7 @@ class SharePage extends React.Component {
}
/** 唤端 */
toApp = _throttle(() => {
toApp = _asyncThrottle(() => {
if (CFG.inviteCode) {
copyToClipboard(CFG.inviteCode);
Toast.show("复制成功")
......@@ -58,7 +58,7 @@ class SharePage extends React.Component {
}, 300)
})
doAssist = _throttle(async () => {
doAssist = _asyncThrottle(async () => {
const { success, message, code } = await API.doAsistInSharePage({
channel: CFG.channel,
deviceId: localStorage.getItem('like_uuid'),
......@@ -120,8 +120,8 @@ class SharePage extends React.Component {
</p>
</div>
<div className='btn_con'>
<span className='check-btn' onClick={_throttle(() => {
windowJumpUrl(el.realBuyJumpUrl)
<span className='check-btn' onClick={_asyncThrottle(() => {
this.toApp()
})}></span>
</div>
</div>
......
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