<template>
    <view>
        <view class="supplier_login"><login-menu :menuList="menuList" @scrollPage="scrollPage" /></view>
        <view class="artform" v-html="artForm"></view>
    </view>
</template>

<script>
import LoginMenu from './components/supplier-loginMenu.vue'
export default {
    components: {
        LoginMenu
    },
    data() {
        return {
            menuList: [
                {
                    id: 0,
                    title: '营销服务'
                },
                {
                    id: 1,
                    title: '解决方案'
                },
                {
                    id: 2,
                    title: '运营产品'
                },
                {
                    id: 3,
                    title: '营销工具'
                },
                {
                    id: 4,
                    title: '成功案例'
                },
                {
                    id: 5,
                    title: '关于采美'
                },
                {
                    id: 6,
                    title: '增长社区'
                }
            ],
            activeMenu: '',
            artForm: ''
        }
    },
    mounted() {
        this.artForm = uni.getStorageSync('artForm')
    },
    methods: {
        // 滚动事件
        scrollPage($event) {
            this.activeMenu = $event
            uni.navigateBack(1)
            uni.$emit('changeLink', $event)
        },
    }
}
</script>

<style scoped lang="scss">
.artform {
    margin-top: 220rpx;
    padding: 0 40rpx 40rpx 40rpx;
    box-sizing: border-box;
}
</style>