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