Просмотр исходного кода

add tabbar

tags/AL.0.8.0_20240113_base
yuan 1 год назад
Родитель
Сommit
2e21f5cfde
18 измененных файлов: 87 добавлений и 3 удалений
  1. +5
    -0
      .eslintrc.js
  2. +36
    -1
      src/app.config.ts
  3. Двоичные данные
      src/images/address-book-regular-797979.png
  4. Двоичные данные
      src/images/address-book-solid-397ef5.png
  5. Двоичные данные
      src/images/bell-regular-797979.png
  6. Двоичные данные
      src/images/bell-solid-397ef5.png
  7. Двоичные данные
      src/images/calendar-plus-regular-797979.png
  8. Двоичные данные
      src/images/calendar-plus-solid-397ef5.png
  9. Двоичные данные
      src/images/user-regular-797979.png
  10. Двоичные данные
      src/images/user-solid-397ef5.png
  11. +4
    -0
      src/pages/contact/index.config.ts
  12. +8
    -0
      src/pages/contact/index.vue
  13. +2
    -1
      src/pages/index/index.config.ts
  14. +5
    -1
      src/pages/index/index.vue
  15. +4
    -0
      src/pages/invite/index.config.ts
  16. +11
    -0
      src/pages/invite/index.vue
  17. +4
    -0
      src/pages/settings/index.config.ts
  18. +8
    -0
      src/pages/settings/index.vue

+ 5
- 0
.eslintrc.js Просмотреть файл

@@ -0,0 +1,5 @@
// ESLint 检查 .vue 文件需要单独配置编辑器:
// https://eslint.vuejs.org/user-guide/#editor-integrations
module.exports = {
'extends': ['taro/vue3']
}

+ 36
- 1
src/app.config.ts Просмотреть файл

@@ -1,11 +1,46 @@
export default defineAppConfig({
pages: [
'pages/index/index'
'pages/index/index',
'pages/contact/index',
'pages/invite/index',
'pages/settings/index'
],
window: {
backgroundTextStyle: 'light',
navigationBarBackgroundColor: '#fff',
navigationBarTitleText: 'WeChat',
navigationBarTextStyle: 'black'
},
tabBar: {
custom: false,
color: '#797979',
selectedColor: '#397EF5',
backgroundColor: '#ffffff',
list: [
{
pagePath: 'pages/index/index',
selectedIconPath: 'images/bell-solid-397ef5.png',
iconPath: 'images/bell-regular-797979.png',
text: '通知'
},
{
pagePath: 'pages/contact/index',
selectedIconPath: 'images/calendar-plus-solid-397ef5.png',
iconPath: 'images/calendar-plus-regular-797979.png',
text: '新邀约'
},
{
pagePath: 'pages/invite/index',
selectedIconPath: 'images/address-book-solid-397ef5.png',
iconPath: 'images/address-book-regular-797979.png',
text: '通讯录'
},
{
pagePath: 'pages/settings/index',
selectedIconPath: 'images/user-solid-397ef5.png',
iconPath: 'images/user-regular-797979.png',
text: '个人中心'
}
]
}
})

Двоичные данные
src/images/address-book-regular-797979.png Просмотреть файл

До После
Ширина: 81  |  Высота: 81  |  Размер: 962 B

Двоичные данные
src/images/address-book-solid-397ef5.png Просмотреть файл

До После
Ширина: 81  |  Высота: 81  |  Размер: 941 B

Двоичные данные
src/images/bell-regular-797979.png Просмотреть файл

До После
Ширина: 81  |  Высота: 81  |  Размер: 1.1 KiB

Двоичные данные
src/images/bell-solid-397ef5.png Просмотреть файл

До После
Ширина: 81  |  Высота: 81  |  Размер: 890 B

Двоичные данные
src/images/calendar-plus-regular-797979.png Просмотреть файл

До После
Ширина: 81  |  Высота: 81  |  Размер: 781 B

Двоичные данные
src/images/calendar-plus-solid-397ef5.png Просмотреть файл

До После
Ширина: 81  |  Высота: 81  |  Размер: 806 B

Двоичные данные
src/images/user-regular-797979.png Просмотреть файл

До После
Ширина: 81  |  Высота: 81  |  Размер: 1.2 KiB

Двоичные данные
src/images/user-solid-397ef5.png Просмотреть файл

До После
Ширина: 81  |  Высота: 81  |  Размер: 947 B

+ 4
- 0
src/pages/contact/index.config.ts Просмотреть файл

@@ -0,0 +1,4 @@
export default definePageConfig({
navigationBarTitleText: '',
"usingComponents": {}
})

+ 8
- 0
src/pages/contact/index.vue Просмотреть файл

@@ -0,0 +1,8 @@
<template>
<view class="index">
<text>我是通讯录!</text>
</view>
</template>

<script setup>
</script>

+ 2
- 1
src/pages/index/index.config.ts Просмотреть файл

@@ -1,3 +1,4 @@
export default definePageConfig({
navigationBarTitleText: '首页'
navigationBarTitleText: '',
"usingComponents": {}
})

+ 5
- 1
src/pages/index/index.vue Просмотреть файл

@@ -1,10 +1,12 @@
<script setup>
import { reactive, onMounted } from 'vue'
import { reactive } from 'vue'
import { View, Text } from '@tarojs/components'
import './index.scss'
import Counter from '../../components/Counter.vue'
import { ref } from 'vue';
import {useDidShow, useLoad} from "@tarojs/taro";
import { Add } from '@nutui/icons-vue-taro';


const show = ref(false);

@@ -36,6 +38,8 @@
<nut-popup :style="{ padding: '30px 50px' }" v-model:visible="show">正文</nut-popup>
<View><Text>{{state.msg}}</Text></View>
<nut-button type="primary" @click="handleClick(state.msg2)">点我</nut-button>
<Add color="red" />
<Add color="red" />
</template>



+ 4
- 0
src/pages/invite/index.config.ts Просмотреть файл

@@ -0,0 +1,4 @@
export default definePageConfig({
navigationBarTitleText: '',
"usingComponents": {}
})

+ 11
- 0
src/pages/invite/index.vue Просмотреть файл

@@ -0,0 +1,11 @@
<template>
<view class="index">
<text>我是邀约页面!</text>
</view>
</template>

<script>
export default {
name: 'Invite'
}
</script>

+ 4
- 0
src/pages/settings/index.config.ts Просмотреть файл

@@ -0,0 +1,4 @@
export default definePageConfig({
navigationBarTitleText: '',
"usingComponents": {}
})

+ 8
- 0
src/pages/settings/index.vue Просмотреть файл

@@ -0,0 +1,8 @@
<template>
<view class="index">
<text>我是个人中心!</text>
</view>
</template>

<script setup>
</script>

Загрузка…
Отмена
Сохранить