This is a WeChat Mini Program for the Xinitiative community. It allows users to discover events, explore local places like restaurants and attractions, and save their favorite spots. The application features an interactive map and a personalized user section.
- Home Page: Displays the latest events and promotional banners on the index page.
- Interactive Map: The map page shows various points of interest. Users can tap on markers to see details.
- Filtering & Randomizer: Users can filter locations on the map by type and location, and also get a random suggestion for a place to visit.
- Saved Items: Users can "star" or save their favorite places on the details page, which are then listed on their personal mine page.
- User Authentication: Integrates with WeChat login using the
getOpenidcloud function to provide a personalized experience. - Cloud Integration: Uses WeChat Cloud Functions and a cloud-hosted backend service for data management.
pages/: Contains all the pages of the mini-program.index/: The home page.map/: The interactive map page.mine/: The user's personal page.openup/: Detail page for a location/event.
functions/: Contains WeChat Cloud Functions.resources/: Contains static assets like images.app.js,app.json,app.wxss: Global configuration and styles for the app.project.config.json: WeChat DevTools project configuration.
- Clone the repository.
- Open the project in WeChat DevTools.
- Import the project by selecting the project directory.
- Configure your
appidinproject.config.json. - Deploy the cloud functions from the
functionsdirectory. - Ensure the backend service is running and accessible.
- Click "Compile" in the DevTools to run