|
@@ -5,18 +5,24 @@
|
|
|
<import name="my" src="../../components/my"></import>
|
|
<import name="my" src="../../components/my"></import>
|
|
|
<import name="red-packet" src="../../components/red-packet"></import>
|
|
<import name="red-packet" src="../../components/red-packet"></import>
|
|
|
<import name="top-button" src="../../components/top-button"></import>
|
|
<import name="top-button" src="../../components/top-button"></import>
|
|
|
|
|
+<import name="weather" src="../../components/weather"></import>
|
|
|
|
|
+<import name="calendar" src="../../components/calendar"></import>
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
<div class="page-wrapper">
|
|
<div class="page-wrapper">
|
|
|
<tabs index="{{selectedTab}}" onchange="changeTab">
|
|
<tabs index="{{selectedTab}}" onchange="changeTab">
|
|
|
- <tab-content>
|
|
|
|
|
|
|
+ <tab-content scrollable="{{false}}">
|
|
|
<bookshelf
|
|
<bookshelf
|
|
|
shelf-list="{{shelfList}}"
|
|
shelf-list="{{shelfList}}"
|
|
|
onupdate-shelf="updateShelf"
|
|
onupdate-shelf="updateShelf"
|
|
|
></bookshelf>
|
|
></bookshelf>
|
|
|
<library></library>
|
|
<library></library>
|
|
|
|
|
+ <weather></weather>
|
|
|
|
|
+ <calendar></calendar>
|
|
|
<!-- <search-book></search-book> -->
|
|
<!-- <search-book></search-book> -->
|
|
|
- <tools-mall if="{{ brand == 'vivo' }}"></tools-mall>
|
|
|
|
|
|
|
+ <!-- if="{{ brand == 'vivo' }}" -->
|
|
|
|
|
+ <tools-mall></tools-mall>
|
|
|
<my></my>
|
|
<my></my>
|
|
|
</tab-content>
|
|
</tab-content>
|
|
|
<tab-bar mode="fixed" class="tab-bar">
|
|
<tab-bar mode="fixed" class="tab-bar">
|
|
@@ -55,6 +61,16 @@ export default {
|
|
|
// icon: '\ue603',
|
|
// icon: '\ue603',
|
|
|
// activatedIcon: '\ue604'
|
|
// activatedIcon: '\ue604'
|
|
|
// },
|
|
// },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '天气',
|
|
|
|
|
+ icon: '\ue603',
|
|
|
|
|
+ activatedIcon: '\uec8e'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '日历',
|
|
|
|
|
+ icon: '\ue89e',
|
|
|
|
|
+ activatedIcon: '\uec8f'
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
title: '工具',
|
|
title: '工具',
|
|
|
icon: '\ue648',
|
|
icon: '\ue648',
|
|
@@ -78,7 +94,7 @@ export default {
|
|
|
success: function(ret) {
|
|
success: function(ret) {
|
|
|
that.brand = ret.brand
|
|
that.brand = ret.brand
|
|
|
if(that.brand != 'vivo'){
|
|
if(that.brand != 'vivo'){
|
|
|
- that.tabList.splice(2,1)
|
|
|
|
|
|
|
+ // that.tabList.splice(-2,1)
|
|
|
}
|
|
}
|
|
|
$utils.setStorage('brand',ret.brand)
|
|
$utils.setStorage('brand',ret.brand)
|
|
|
// const data = await $utils.getStorage('brand')
|
|
// const data = await $utils.getStorage('brand')
|