feat: 活动详情页
This commit is contained in:
2
dist/app.js
vendored
2
dist/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/app.json
vendored
2
dist/app.json
vendored
@@ -1 +1 @@
|
||||
{"pages":["pages/home/index","pages/activityList/index","pages/mountainPeak/index","pages/my/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}
|
||||
{"pages":["pages/home/index","pages/activityList/index","pages/activityList/components/details/index","pages/mountainPeak/index","pages/my/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}
|
||||
2
dist/pages/activityList/components/details/index.js
vendored
Normal file
2
dist/pages/activityList/components/details/index.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/*! For license information please see index.js.LICENSE.txt */
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/activityList/components/details/index"],{"./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/activityList/components/details/index.tsx":function(e,t,s){var i=s("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),n=s("webpack/container/remote/react/jsx-runtime");t.default=function details(){return(0,n.jsx)(i.View,{children:"details"})}},"./src/pages/activityList/components/details/index.tsx":function(e,t,s){var i=s("webpack/container/remote/@tarojs/runtime"),n=s("./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/activityList/components/details/index.tsx");Page((0,i.createPageConfig)(n.default,"pages/activityList/components/details/index",{root:{cn:[]}},{}||{}))}},function(e){e.O(0,["taro","common"],(function(){return t="./src/pages/activityList/components/details/index.tsx",e(e.s=t);var t}));e.O()}]);
|
||||
15
dist/pages/activityList/components/details/index.js.LICENSE.txt
vendored
Normal file
15
dist/pages/activityList/components/details/index.js.LICENSE.txt
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/*! ../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./index.tsx */
|
||||
|
||||
/*! @tarojs/components */
|
||||
|
||||
/*! @tarojs/runtime */
|
||||
|
||||
/*! react/jsx-runtime */
|
||||
|
||||
/*!*************************************************************!*\
|
||||
!*** ./src/pages/activityList/components/details/index.tsx ***!
|
||||
\*************************************************************/
|
||||
|
||||
/*!***************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[9].use[1]!./src/pages/activityList/components/details/index.tsx ***!
|
||||
\***************************************************************************************************************************************************************************/
|
||||
1
dist/pages/activityList/components/details/index.json
vendored
Normal file
1
dist/pages/activityList/components/details/index.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"usingComponents":{"comp":"../../../../comp"}}
|
||||
2
dist/pages/activityList/components/details/index.wxml
vendored
Normal file
2
dist/pages/activityList/components/details/index.wxml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<import src="../../../../base.wxml"/>
|
||||
<template is="taro_tmpl" data="{{root:root}}" />
|
||||
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/home/index.js
vendored
2
dist/pages/home/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -3,6 +3,7 @@ export default {
|
||||
// "pages/index/index",
|
||||
"pages/home/index",
|
||||
"pages/activityList/index",
|
||||
"pages/activityList/components/details/index",
|
||||
"pages/mountainPeak/index",
|
||||
"pages/my/index",
|
||||
|
||||
|
||||
8
src/pages/activityList/components/details/index.tsx
Normal file
8
src/pages/activityList/components/details/index.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { View } from "@tarojs/components";
|
||||
import react from "react";
|
||||
|
||||
const details=()=>{
|
||||
return <View>details</View>
|
||||
}
|
||||
|
||||
export default details
|
||||
@@ -3,6 +3,7 @@ import react 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 = () => {
|
||||
const [state, setState] = react.useState({
|
||||
@@ -14,7 +15,7 @@ const activityList = () => {
|
||||
{
|
||||
text: "附近活动",
|
||||
value: 1,
|
||||
}
|
||||
},
|
||||
],
|
||||
option2: [
|
||||
{
|
||||
@@ -44,22 +45,24 @@ const activityList = () => {
|
||||
</View>
|
||||
{[1, 2].map((item: any) => {
|
||||
return (
|
||||
<Card
|
||||
num=""
|
||||
price=""
|
||||
desc="报名中"
|
||||
title="周末爬山"
|
||||
thumb="cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg"
|
||||
// renderFooter={
|
||||
// <View>
|
||||
// <Button size="mini">按钮1</Button>
|
||||
// <Button size="mini">按钮2</Button>
|
||||
// </View>
|
||||
// }
|
||||
/>
|
||||
<View
|
||||
onClick={() => {
|
||||
console.log('Card')
|
||||
Taro.navigateTo({
|
||||
url: "/pages/activityList/components/details/index",
|
||||
});
|
||||
}}
|
||||
>
|
||||
<Card
|
||||
num=""
|
||||
price=""
|
||||
desc="报名中"
|
||||
title="周末爬山"
|
||||
thumb="cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg"
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
})}
|
||||
|
||||
<TabbarCom active={1} />;
|
||||
</View>
|
||||
);
|
||||
|
||||
@@ -31,12 +31,12 @@ const Home = () => {
|
||||
|
||||
useEffect(() => {
|
||||
Taro.showShareMenu({
|
||||
withShareTicket: true
|
||||
})
|
||||
withShareTicket: true,
|
||||
});
|
||||
Taro.updateShareMenu({
|
||||
withShareTicket: true,
|
||||
success () { }
|
||||
})
|
||||
success() {},
|
||||
});
|
||||
// let objParams = {
|
||||
// tableName: "test",
|
||||
// id: "80516fb66370bcf300b8f43c5f4dd52b",
|
||||
@@ -139,19 +139,23 @@ const Home = () => {
|
||||
|
||||
{[1, 2].map((item: any) => {
|
||||
return (
|
||||
<Card
|
||||
num=""
|
||||
price=""
|
||||
desc="报名中"
|
||||
title="周末爬山"
|
||||
thumb="cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg"
|
||||
// renderFooter={
|
||||
// <View>
|
||||
// <Button size="mini">按钮1</Button>
|
||||
// <Button size="mini">按钮2</Button>
|
||||
// </View>
|
||||
// }
|
||||
/>
|
||||
<View
|
||||
onClick={() => {
|
||||
console.log("Card");
|
||||
Taro.navigateTo({
|
||||
url: "/pages/activityList/components/details/index",
|
||||
});
|
||||
}}
|
||||
>
|
||||
{" "}
|
||||
<Card
|
||||
num=""
|
||||
price=""
|
||||
desc="报名中"
|
||||
title="周末爬山"
|
||||
thumb="cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg"
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
})}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user