Commit c504387e by xinla

--no commit message

1 parent a45d3639
......@@ -10,8 +10,8 @@ const routes = [
name: 'Home',
component: Home,
meta: {
title: '首页'
}
title: '首页',
},
},
// 聊天素材
{
......@@ -19,8 +19,8 @@ const routes = [
name: 'chat',
component: () => import('../views/chat'),
meta: {
title: 'chat'
}
title: 'chat',
},
},
// 用户画像
{
......@@ -28,8 +28,8 @@ const routes = [
name: 'portrait',
component: () => import('../views/portrait/index'),
meta: {
title: 'portrait'
}
title: 'portrait',
},
},
// 用户画像详情
{
......@@ -39,8 +39,8 @@ const routes = [
hidden: true,
meta: {
title: '',
noAuth: true
}
noAuth: true,
},
},
// 社群关系
{
......@@ -49,8 +49,8 @@ const routes = [
component: () => import('../views/portrait/community.vue'),
hidden: true,
meta: {
title: ''
}
title: '',
},
},
// 群活码扫描跳转页面
{
......@@ -60,8 +60,8 @@ const routes = [
hidden: true,
meta: {
title: '',
noAuth: true
}
noAuth: true,
},
},
// 标签建群+群sop
{
......@@ -74,9 +74,9 @@ const routes = [
component: () => import('../views/communityOperating/task/list'),
hidden: true,
meta: {
title: ''
title: '',
// noAuth: true
}
},
},
{
path: 'state',
......@@ -85,15 +85,15 @@ const routes = [
hidden: true,
meta: {
title: '',
noAuth: true
}
}
noAuth: true,
},
},
],
hidden: true,
meta: {
title: '',
noAuth: true
}
noAuth: true,
},
},
// 关键词群
{
......@@ -102,8 +102,8 @@ const routes = [
component: () => import('../views/communityOperating/keywords/index'),
hidden: true,
meta: {
title: ''
}
title: '',
},
},
// 客户公海
{
......@@ -111,22 +111,22 @@ const routes = [
name: 'highSeas',
component: () => import('../views/highSeas/index'),
meta: {
title: '公海分配'
}
title: '公海分配',
},
},
// 客户公海
// 红包
{
path: '/redPacket',
name: 'redPacket',
component: () => import('../views/redPacket/index'),
meta: {
title: '红包'
}
}
title: '红包',
},
},
]
const router = new VueRouter({
routes
routes,
})
router.beforeEach((to, from, next) => {
/* 路由发生变化修改页面title */
......
......@@ -8,7 +8,7 @@ export default {
loading: false,
visible: false,
finished: false,
type: 'personal'
type: 'personal',
}
},
computed: {},
......@@ -32,15 +32,21 @@ export default {
this.finished = true
}
}, 1000)
}
}
},
showDialog(type) {
this.type = type
this.visible = true
},
},
}
</script>
<template>
<div class="red-packet">
<div class="personal">
<van-button type="info" size="mini">+ 发送个人红包</van-button>
<van-button type="info" size="mini" @click="showDialog('personal')"
>+ 发送个人红包</van-button
>
</div>
<div>
<div class="title">企业红包</div>
......@@ -49,7 +55,7 @@ export default {
<div class="red-packet-message">红包名称</div>
<div class="ar red-packet-list--right">
<div class="money">¥50.00</div>
<van-button type="info" size="small">发送</van-button>
<van-button type="info" size="small" @click="showDialog('enterprise')">发送</van-button>
</div>
</div>
</van-list>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!