feat: 活动详情页

This commit is contained in:
eric
2022-11-13 21:29:53 +08:00
parent ecb1fed94c
commit dccbb27473
13 changed files with 72 additions and 36 deletions

2
dist/app.js vendored

File diff suppressed because one or more lines are too long

2
dist/app.json vendored
View File

@@ -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"}}

View 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()}]);

View 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 ***!
\***************************************************************************************************************************************************************************/

View File

@@ -0,0 +1 @@
{"usingComponents":{"comp":"../../../../comp"}}

View File

@@ -0,0 +1,2 @@
<import src="../../../../base.wxml"/>
<template is="taro_tmpl" data="{{root:root}}" />

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -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",

View File

@@ -0,0 +1,8 @@
import { View } from "@tarojs/components";
import react from "react";
const details=()=>{
return <View>details</View>
}
export default details

View File

@@ -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>
);

View File

@@ -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>
);
})}