hopscotch - 在旅行结束时开始新的旅行

hopscotch - 在旅行结束时开始新的旅行,第1张

// Take the tour
takeToTour() {
    const tour = {
        id: "cryptex-tour",
        showPrevButton: true,
        i18n: {
            closeTooltip: String.fromCharCode(10060)
        },
        onEnd: () => {
            // Clearing cookies for next tour
            this.hopscotch.endTour(true);
            const endtour = {
                id: "tour-later",
                i18n: {
                    closeTooltip: String.fromCharCode(10060)
                },
                steps: [
                    {
                        title: "Access Ticker:",
                        content: "dummy tour"
                        target: "later",
                        placement: "bottom",
                        xOffset: 40
                    }
                ]
            }
            this.hopscotch.startTour(endtour, 0);
        },
        steps: [
            {
                title: "Price Ticker:",
                content: "You can navigate between markets and select your desired currency"
                target: "marketstour",
                placement: "bottom",
                xOffset: 40,
                delay: 300
            },
            {
                title: "Balances & Wallets:",
                content: "You have a separate wallet for each currency"
                target: "balancewallettour",
                placement: "bottom",
                xOffset: 40
            },
            {
                title: "Order Form:",
                content: "Order form gives you the number of order types of which market"
                target: "orderformtour",
                placement: "right",
                yOffset: 30
            }
        ]
    };
    this.hopscotch.startTour(tour, 0);
}

在上面的代码中,我试图在完成第一次巡演后再次进行跳房子游览。但它没有开始下一次巡演。帮我知道我哪里出错了。

谢谢...

最佳答案:

0 个答案:

没有答案
本文经用户投稿或网站收集转载,如有侵权请联系本站。

发表评论

0条回复