-
+
{{ item.title }}
@@ -14,17 +14,48 @@ export default {
defaultActive: {
type: Number,
default: 0
- },
- data: {
- type: Array,
- default: () => {
- return [];
- }
}
},
data() {
return {
- active: this.defaultActive
+ active: this.defaultActive,
+ tabbars: [
+ {
+ title: '成长',
+ to: {
+ name: 'Development'
+ },
+ icon: 'guide-o'
+ },
+ {
+ title: '今日',
+ to: {
+ name: 'Today'
+ },
+ icon: 'notes-o'
+ },
+ {
+ title: '洞悉',
+ to: {
+ name: 'Insight'
+ },
+ icon: 'apps-o'
+ },
+ {
+ title: '优化',
+ to: {
+ name: 'Optimize'
+ },
+ icon: 'diamond-o'
+ },
+ {
+ title: '我的',
+ to: {
+ name: 'Myself'
+ },
+ icon: 'user-circle-o'
+ }
+ ]
};
},
methods: {
diff --git a/src/plugins/vant.js b/src/plugins/vant.js
index 1a38e19..9ef1d65 100644
--- a/src/plugins/vant.js
+++ b/src/plugins/vant.js
@@ -1,4 +1,95 @@
// 按需全局引入 vant组件
import Vue from 'vue';
-import { Button, Tabbar, TabbarItem, Toast, NavBar } from 'vant';
-Vue.use(Button).use(Tabbar).use(TabbarItem).use(Toast).use(NavBar);
+import {
+ Button,
+ Tabbar,
+ TabbarItem,
+ Calendar,
+ Cell,
+ CellGroup,
+ Col,
+ DatetimePicker,
+ Dialog,
+ Field,
+ Form,
+ Icon,
+ Image,
+ List,
+ Loading,
+ NavBar,
+ NoticeBar,
+ Notify,
+ Overlay,
+ Popup,
+ PullRefresh,
+ Radio,
+ RadioGroup,
+ Row,
+ Slider,
+ Swipe,
+ SwipeCell,
+ SwipeItem,
+ Switch,
+ Tab,
+ Tabs,
+ Toast,
+ Tag,
+ Image as VanImage,
+ ActionSheet,
+ DropdownMenu,
+ DropdownItem,
+ Uploader,
+ Checkbox,
+ CheckboxGroup,
+ Circle,
+ Collapse,
+ CollapseItem,
+ ImagePreview,
+ Picker
+} from 'vant';
+Vue.use(Button)
+ .use(NavBar)
+ .use(Calendar)
+ .use(Cell)
+ .use(CellGroup)
+ .use(Col)
+ .use(DatetimePicker)
+ .use(Dialog)
+ .use(Icon)
+ .use(Image)
+ .use(Form)
+ .use(Field)
+ .use(List)
+ .use(Loading)
+ .use(NavBar)
+ .use(NoticeBar)
+ .use(Notify)
+ .use(Overlay)
+ .use(Popup)
+ .use(PullRefresh)
+ .use(Radio)
+ .use(RadioGroup)
+ .use(Row)
+ .use(Slider)
+ .use(Tabbar)
+ .use(TabbarItem)
+ .use(Swipe)
+ .use(SwipeCell)
+ .use(SwipeItem)
+ .use(Switch)
+ .use(Tab)
+ .use(Tabs)
+ .use(Toast)
+ .use(Tag)
+ .use(VanImage)
+ .use(ActionSheet)
+ .use(DropdownMenu)
+ .use(DropdownItem)
+ .use(Uploader)
+ .use(Checkbox)
+ .use(CheckboxGroup)
+ .use(Circle)
+ .use(Collapse)
+ .use(CollapseItem)
+ .use(ImagePreview)
+ .use(Picker);
diff --git a/src/router/router.config.js b/src/router/router.config.js
index c0ee77a..a84d307 100644
--- a/src/router/router.config.js
+++ b/src/router/router.config.js
@@ -41,6 +41,24 @@ export const constantRouterMap = [
name: 'Myself',
component: () => import('@/views/myself/index'),
meta: { title: '我的', keepAlive: false }
+ },
+ {
+ path: '/familyNumber',
+ name: 'familyNumber',
+ component: () => import('@/views/myself/familyNumber'),
+ meta: { title: '亲情号码', keepAlive: false }
+ },
+ {
+ path: '/changeFamilyNumber',
+ name: 'changeFamilyNumber',
+ component: () => import('@/views/myself/changeFamilyNumber'),
+ meta: { title: '修改亲情号码', keepAlive: false }
+ },
+ {
+ path: '/addFamilyNumber',
+ name: 'addFamilyNumber',
+ component: () => import('@/views/myself/addFamilyNumber'),
+ meta: { title: '增加亲情号码', keepAlive: false }
}
]
}
diff --git a/src/services/notify-service.js b/src/services/notify-service.js
new file mode 100644
index 0000000..675527b
--- /dev/null
+++ b/src/services/notify-service.js
@@ -0,0 +1,15 @@
+import { Notify } from 'vant';
+
+let NotifyService = {
+ notify({ type, message, duration, className, onClickCallback }) {
+ Notify({
+ type: type || 'warning', // success | primary | danger
+ message,
+ duration: duration || 1500,
+ className,
+ onClickCallback
+ });
+ }
+};
+
+export default NotifyService;
diff --git a/src/views/development/index.vue b/src/views/development/index.vue
index a137f5e..4f139b0 100644
--- a/src/views/development/index.vue
+++ b/src/views/development/index.vue
@@ -1,10 +1,14 @@
-
+
+
+
+
+
diff --git a/src/views/myself/changeFamilyNumber.vue b/src/views/myself/changeFamilyNumber.vue
new file mode 100644
index 0000000..5c283bb
--- /dev/null
+++ b/src/views/myself/changeFamilyNumber.vue
@@ -0,0 +1,594 @@
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
+ 快捷键
+
+
+
+
+
+
+
+
+
+
+
+
+
注:
+
1)由于网络因素影响,亲情号码设置后,最长需要等待10分钟后才可拨打。
+
+ 2)设备最多可设置{{
+ setPhoneNumber
+ }}个亲情号码,添加首月无法删除,次月起每月最多允许删除1个亲情号,请慎重操作。
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/myself/familyNumber.vue b/src/views/myself/familyNumber.vue
new file mode 100644
index 0000000..b6e57cc
--- /dev/null
+++ b/src/views/myself/familyNumber.vue
@@ -0,0 +1,310 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.relationship }}
+
+ {{ item.phone }}
+ (快捷键 {{ item.PressKey == '' ? '无' : item.PressKey }})
+
+
+
+
{{ item.SOS == 1 ? 'SOS' : '' }}
+
+
+ {{ item.SOS == 1 ? 'SOS' : '' }}
+ {{ item.status >= 2 ? '同步中' : '' }}
+
+
+
+
+
+
+
+
+
您还没添加亲情号码,赶紧去添加吧~
+
+
+
注:
+
1)由于网络因素影响,亲情号码设置后,最长需要等待10分钟后才可拨打。
+
+ 2)设备最多可设置{{
+ setPhoneNumber
+ }}个亲情号码,添加首月无法删除,次月起每月最多允许删除1个亲情号,请慎重操作。
+
+
+
+
+
+
+
+
+
+>
diff --git a/src/views/myself/index.vue b/src/views/myself/index.vue
index ca6c9d1..4eb8ad3 100644
--- a/src/views/myself/index.vue
+++ b/src/views/myself/index.vue
@@ -53,6 +53,7 @@
+