Skip to content

cczw123/miniprogram-2

Repository files navigation

Xinitiative WeChat Mini Program

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.

Features

  • 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 getOpenid cloud function to provide a personalized experience.
  • Cloud Integration: Uses WeChat Cloud Functions and a cloud-hosted backend service for data management.

Project Structure

  • 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.

Getting Started

  1. Clone the repository.
  2. Open the project in WeChat DevTools.
  3. Import the project by selecting the project directory.
  4. Configure your appid in project.config.json.
  5. Deploy the cloud functions from the functions directory.
  6. Ensure the backend service is running and accessible.
  7. Click "Compile" in the DevTools to run

About

xinitiative_wechatproject

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •