feat: 页面挑标题
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
{"usingComponents":{"comp":"../../../../comp"}}
|
{"navigationBarTitleText":"活动详情","usingComponents":{"comp":"../../../../comp"}}
|
||||||
2
dist/pages/activityList/index.js
vendored
2
dist/pages/activityList/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/pages/activityList/index.json
vendored
2
dist/pages/activityList/index.json
vendored
@@ -1 +1 @@
|
|||||||
{"usingComponents":{"comp":"../../comp"}}
|
{"navigationBarTitleText":"活动列表","usingComponents":{"comp":"../../comp"}}
|
||||||
2
dist/pages/home/index.js
vendored
2
dist/pages/home/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/pages/home/index.json
vendored
2
dist/pages/home/index.json
vendored
@@ -1 +1 @@
|
|||||||
{"usingComponents":{"comp":"../../comp"}}
|
{"navigationBarTitleText":"首页","usingComponents":{"comp":"../../comp"}}
|
||||||
2
dist/pages/mountainPeak/index.js
vendored
2
dist/pages/mountainPeak/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/pages/mountainPeak/index.json
vendored
2
dist/pages/mountainPeak/index.json
vendored
@@ -1 +1 @@
|
|||||||
{"usingComponents":{"comp":"../../comp"}}
|
{"navigationBarTitleText":"山峰介绍","usingComponents":{"comp":"../../comp"}}
|
||||||
2
dist/pages/my/index.js
vendored
2
dist/pages/my/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/pages/my/index.json
vendored
2
dist/pages/my/index.json
vendored
@@ -1 +1 @@
|
|||||||
{"usingComponents":{"comp":"../../comp"}}
|
{"navigationBarTitleText":"我的","usingComponents":{"comp":"../../comp"}}
|
||||||
@@ -7,6 +7,13 @@ import "./index.scss";
|
|||||||
const details = () => {
|
const details = () => {
|
||||||
const [dataSource, setdataSource] = useState<any>([]);
|
const [dataSource, setdataSource] = useState<any>([]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
// 设置标题
|
||||||
|
definePageConfig({
|
||||||
|
navigationBarTitleText: "活动详情",
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let objParams = {
|
let objParams = {
|
||||||
tableName: "cityNew",
|
tableName: "cityNew",
|
||||||
|
|||||||
@@ -1,11 +1,18 @@
|
|||||||
import { View } from "@tarojs/components";
|
import { View } from "@tarojs/components";
|
||||||
import react from "react";
|
import react, { useEffect } from "react";
|
||||||
import { Card, DropdownMenu } from "@antmjs/vantui";
|
import { Card, DropdownMenu } from "@antmjs/vantui";
|
||||||
import { DropdownItem } from "@antmjs/vantui";
|
import { DropdownItem } from "@antmjs/vantui";
|
||||||
import TabbarCom from "../components/TabbarCom";
|
import TabbarCom from "../components/TabbarCom";
|
||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
|
|
||||||
const activityList = () => {
|
const activityList = () => {
|
||||||
|
useEffect(() => {
|
||||||
|
// 设置标题
|
||||||
|
definePageConfig({
|
||||||
|
navigationBarTitleText: "活动列表",
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
const [state, setState] = react.useState({
|
const [state, setState] = react.useState({
|
||||||
option1: [
|
option1: [
|
||||||
{
|
{
|
||||||
@@ -47,7 +54,7 @@ const activityList = () => {
|
|||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
console.log('Card')
|
console.log("Card");
|
||||||
Taro.navigateTo({
|
Taro.navigateTo({
|
||||||
url: "/pages/activityList/components/details/index",
|
url: "/pages/activityList/components/details/index",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -30,9 +30,15 @@ const Home = () => {
|
|||||||
];
|
];
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
// 设置标题
|
||||||
|
definePageConfig({
|
||||||
|
navigationBarTitleText: '首页'
|
||||||
|
})
|
||||||
|
// 设置允许分享
|
||||||
Taro.showShareMenu({
|
Taro.showShareMenu({
|
||||||
withShareTicket: true,
|
withShareTicket: true,
|
||||||
});
|
});
|
||||||
|
// 其他分享
|
||||||
Taro.updateShareMenu({
|
Taro.updateShareMenu({
|
||||||
withShareTicket: true,
|
withShareTicket: true,
|
||||||
success() {},
|
success() {},
|
||||||
|
|||||||
@@ -6,6 +6,14 @@ import { getTable } from "../../utils/index";
|
|||||||
|
|
||||||
const mountainPeak = () => {
|
const mountainPeak = () => {
|
||||||
const [dataSource, setdataSource] = useState<any>([]);
|
const [dataSource, setdataSource] = useState<any>([]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
// 设置标题
|
||||||
|
definePageConfig({
|
||||||
|
navigationBarTitleText: "山峰介绍",
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
const state: any = {
|
const state: any = {
|
||||||
nodes: [
|
nodes: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Card, Cell, Col, Row, Tabbar, TabbarItem } from "@antmjs/vantui";
|
import { Card, Cell, Col, Row, Tabbar, TabbarItem } from "@antmjs/vantui";
|
||||||
import { View } from "@tarojs/components";
|
import { View } from "@tarojs/components";
|
||||||
import react from "react";
|
import react, { useEffect } from "react";
|
||||||
import TabbarCom from "../components/TabbarCom";
|
import TabbarCom from "../components/TabbarCom";
|
||||||
import { Image } from "@antmjs/vantui";
|
import { Image } from "@antmjs/vantui";
|
||||||
// import styles from './index.module.scss'
|
// import styles from './index.module.scss'
|
||||||
@@ -13,6 +13,12 @@ import Taro from "@tarojs/taro";
|
|||||||
const my = (props: any) => {
|
const my = (props: any) => {
|
||||||
// const [active, setActive] = react.useState(props?.active ?? 0);
|
// const [active, setActive] = react.useState(props?.active ?? 0);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
// 设置标题
|
||||||
|
definePageConfig({
|
||||||
|
navigationBarTitleText: "我的",
|
||||||
|
});
|
||||||
|
}, []);
|
||||||
|
|
||||||
const CardCom=()=>{
|
const CardCom=()=>{
|
||||||
return <Card
|
return <Card
|
||||||
|
|||||||
Reference in New Issue
Block a user