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);
}

在上面的代码中,我试图在完成第一次巡演后调用另一个跳房子巡演。但这并没有开始下一次巡回演出。帮助我知道我哪里出错了。

谢谢...

4

0 回答 0