quanwei
13 hours ago 408c463c5b66bba2aa1c81d8dca23e04c1608e24
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<template>
  <!--
        作者:luoyiming
        时间:2020-06-08
        描述:超链接选择-页面
    -->
    <el-select v-model="activePage" placeholder="请选择" class="percent-w100" @change="changeFunc" value-key="url">
        <el-option v-for="item in pages" :key="item.url" :value-key="item.name" :label="item.name" :value="item"></el-option>
    </el-select>
</template>
 
<script>
    export default{
        data(){
            return {
                /*页面数据*/
                pages: [
                    {
                        url: 'pages/shop/shop',
                        name: '首页',
                        type: '页面'
                    },
                    {
                        url: 'pages/shop/category',
                        name: '分类',
                        type: '页面'
                    },
                    /*{
                        url: 'pages/article/list/list',
                        name: '文章首页',
                        type: '页面',
                    },
                    {
                        url: 'pages/shop/shop_list',
                        name: '店铺',
                        type: '页面',
                    },
                    {
                        url: 'pages/shop/shop_list?is_takeout=1',
                        name: '外卖店铺',
                        type: '页面',
                    },
                    {
                        url: 'pages/order/myorder',
                        name: '订单',
                        type: '页面',
                    },
                    {
                        url: 'pages/cart/cart',
                        name: '购物车',
                        type: '页面',
                    },
                    {
                        url: 'pages/tabBar/user/index',
                        name: '我的',
                        type: '页面',
                    },
                    {
                        url: 'pages2/goodstore/store',
                        name: '好店',
                        type: '页面',
                    },
                    {
                        url: 'pages2/goodcoupon/coupon',
                        name: '好券',
                        type: '页面',
                    },
                    {
                        url: 'pages/user/register/register',
                        name: '注册',
                        type: '页面',
                    },
                    {
                        url: 'pages/shop/register',
                        name: '商户入驻',
                        type: '页面',
                    },
                    {
                        url: 'pages/branch/branch/index/index',
                        name: '分会列表',
                        type: '页面',
                    },
                    {
                        url: 'pages/branch/activity/index/index',
                        name: '连盟活动',
                        type: '页面',
                    },
                    {
                        url: 'pages2/bonus/index/index',
                        name: '超级分红',
                        type: '页面',
                    },
                    {
                        url: 'pages/plus/vip/index',
                        name: 'VIP专区',
                        type: '页面',
                    }*/
                ],
                /*选中的值*/
                activePage: '分类'
            }
        },
        created() {
          /*初始化*/
          this.changeFunc(this.pages[0]);
        },
        methods: {
            /*选中的值*/
            changeFunc(e){
                this.$emit('changeData', e);
            }
        }
    }
</script>
 
<style>
</style>