├── LICENSE
├── README.md
├── 云开发项目
├── app.js
├── app.json
├── app.wxss
├── cloudfunctions
│ ├── add_admin
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── add_category
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── add_schoolguide
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── add_site
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── browse
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── get_openid
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── lianbiao_query
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── login
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── rank
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── remove_admin
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── remove_category
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── remove_schoolguide
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── remove_site
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── set_default_site
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── update_admin
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── update_category
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── update_media
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── update_range
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ ├── update_schoolguide
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
│ └── update_site
│ │ ├── config.json
│ │ ├── index.js
│ │ └── package.json
├── data
│ ├── data.js
│ ├── map.js
│ ├── media.js
│ └── school.js
├── images
│ ├── admin.png
│ ├── arrow
│ │ ├── arrow_first.png
│ │ ├── arrow_first_no.png
│ │ ├── arrow_last.png
│ │ ├── arrow_last_no.png
│ │ ├── arrow_left.png
│ │ ├── arrow_left_no.png
│ │ ├── arrow_right.png
│ │ └── arrow_right_no.png
│ ├── book.png
│ ├── button
│ │ ├── ai_chat.png
│ │ ├── friendly_link.png
│ │ ├── map_navigation.png
│ │ ├── panoramic_map.png
│ │ ├── school_guide.png
│ │ ├── site_popularity.png
│ │ └── site_summary.png
│ ├── chat.png
│ ├── circle.png
│ ├── delete.png
│ ├── eyeclose.png
│ ├── eyeshow.png
│ ├── feedback.png
│ ├── fire.png
│ ├── green_arrow.png
│ ├── hat.png
│ ├── history.png
│ ├── home.png
│ ├── laba.png
│ ├── label.png
│ ├── location.png
│ ├── magazine.png
│ ├── map.png
│ ├── message.png
│ ├── money.png
│ ├── navigation.png
│ ├── new.png
│ ├── note.png
│ ├── notes.png
│ ├── restore.png
│ ├── school_icon.png
│ ├── school_logo.png
│ ├── share.png
│ ├── statement.png
│ ├── support.png
│ ├── tabbar
│ │ ├── icon_collection.png
│ │ ├── icon_collection_HL.png
│ │ ├── icon_home.png
│ │ ├── icon_home_HL.png
│ │ ├── icon_map.png
│ │ ├── icon_map_HL.png
│ │ ├── icon_more.png
│ │ ├── icon_more_HL.png
│ │ ├── icon_school.png
│ │ └── icon_school_HL.png
│ ├── tag.png
│ ├── use.png
│ ├── users.png
│ ├── weather.png
│ ├── zhixie.png
│ ├── zhixie_kaifazhe.jpg
│ └── zhixie_up.jpg
├── libs
│ └── qqmap-wx-jssdk.min.js
├── pages
│ ├── home
│ │ ├── home.js
│ │ ├── home.json
│ │ ├── home.wxml
│ │ ├── home.wxss
│ │ ├── introduction
│ │ │ ├── introduction.js
│ │ │ ├── introduction.json
│ │ │ ├── introduction.wxml
│ │ │ └── introduction.wxss
│ │ └── rank
│ │ │ ├── rank.js
│ │ │ ├── rank.json
│ │ │ ├── rank.wxml
│ │ │ └── rank.wxss
│ ├── manage
│ │ ├── admin-list
│ │ │ ├── admin-list.js
│ │ │ ├── admin-list.json
│ │ │ ├── admin-list.wxml
│ │ │ ├── admin-list.wxss
│ │ │ └── admin
│ │ │ │ ├── admin.js
│ │ │ │ ├── admin.json
│ │ │ │ ├── admin.wxml
│ │ │ │ └── admin.wxss
│ │ ├── manage.js
│ │ ├── manage.json
│ │ ├── manage.wxml
│ │ ├── manage.wxss
│ │ ├── media
│ │ │ ├── carousel
│ │ │ │ ├── carousel.js
│ │ │ │ ├── carousel.json
│ │ │ │ ├── carousel.wxml
│ │ │ │ └── carousel.wxss
│ │ │ ├── default-image
│ │ │ │ ├── default-image.js
│ │ │ │ ├── default-image.json
│ │ │ │ ├── default-image.wxml
│ │ │ │ └── default-image.wxss
│ │ │ ├── map-img
│ │ │ │ ├── map-img.js
│ │ │ │ ├── map-img.json
│ │ │ │ ├── map-img.wxml
│ │ │ │ └── map-img.wxss
│ │ │ └── video
│ │ │ │ ├── video.js
│ │ │ │ ├── video.json
│ │ │ │ ├── video.wxml
│ │ │ │ └── video.wxss
│ │ ├── schoolguide-list
│ │ │ ├── schoolguide-list.js
│ │ │ ├── schoolguide-list.json
│ │ │ ├── schoolguide-list.wxml
│ │ │ ├── schoolguide-list.wxss
│ │ │ └── schoolguide
│ │ │ │ ├── schoolguide.js
│ │ │ │ ├── schoolguide.json
│ │ │ │ ├── schoolguide.wxml
│ │ │ │ └── schoolguide.wxss
│ │ └── site
│ │ │ ├── campus-list
│ │ │ ├── campus-list.js
│ │ │ ├── campus-list.json
│ │ │ ├── campus-list.wxml
│ │ │ ├── campus-list.wxss
│ │ │ └── campus
│ │ │ │ ├── campus.js
│ │ │ │ ├── campus.json
│ │ │ │ ├── campus.wxml
│ │ │ │ ├── campus.wxss
│ │ │ │ └── choose-range
│ │ │ │ ├── choose-range.js
│ │ │ │ ├── choose-range.json
│ │ │ │ ├── choose-range.wxml
│ │ │ │ └── choose-range.wxss
│ │ │ ├── category-list
│ │ │ ├── category-list.js
│ │ │ ├── category-list.json
│ │ │ ├── category-list.wxml
│ │ │ ├── category-list.wxss
│ │ │ └── category
│ │ │ │ ├── category.js
│ │ │ │ ├── category.json
│ │ │ │ ├── category.wxml
│ │ │ │ └── category.wxss
│ │ │ ├── default-site
│ │ │ ├── default-site.js
│ │ │ ├── default-site.json
│ │ │ ├── default-site.wxml
│ │ │ └── default-site.wxss
│ │ │ ├── range
│ │ │ ├── polygons
│ │ │ │ ├── polygons.js
│ │ │ │ ├── polygons.json
│ │ │ │ ├── polygons.wxml
│ │ │ │ └── polygons.wxss
│ │ │ ├── range.js
│ │ │ ├── range.json
│ │ │ ├── range.wxml
│ │ │ └── range.wxss
│ │ │ └── site-list
│ │ │ ├── site-list.js
│ │ │ ├── site-list.json
│ │ │ ├── site-list.wxml
│ │ │ ├── site-list.wxss
│ │ │ └── site
│ │ │ ├── choose-point
│ │ │ ├── choose-point.js
│ │ │ ├── choose-point.json
│ │ │ ├── choose-point.wxml
│ │ │ └── choose-point.wxss
│ │ │ ├── site.js
│ │ │ ├── site.json
│ │ │ ├── site.wxml
│ │ │ └── site.wxss
│ ├── map
│ │ ├── instruction
│ │ │ ├── instruction.js
│ │ │ ├── instruction.json
│ │ │ ├── instruction.wxml
│ │ │ └── instruction.wxss
│ │ ├── map.js
│ │ ├── map.json
│ │ ├── map.wxml
│ │ ├── map.wxss
│ │ └── search
│ │ │ ├── search.js
│ │ │ ├── search.json
│ │ │ ├── search.wxml
│ │ │ └── search.wxss
│ ├── more
│ │ ├── more.js
│ │ ├── more.json
│ │ ├── more.wxml
│ │ ├── more.wxss
│ │ └── statement
│ │ │ ├── statement.js
│ │ │ ├── statement.json
│ │ │ ├── statement.wxml
│ │ │ └── statement.wxss
│ ├── school
│ │ ├── guidance
│ │ │ ├── guidance.js
│ │ │ ├── guidance.json
│ │ │ ├── guidance.wxml
│ │ │ └── guidance.wxss
│ │ ├── school.js
│ │ ├── school.json
│ │ ├── school.wxml
│ │ └── school.wxss
│ └── site
│ │ ├── site.js
│ │ ├── site.json
│ │ ├── site.wxml
│ │ └── site.wxss
├── project.config.json
├── project.private.config.json
└── sitemap.json
├── 云数据库文件
├── admin.json
├── category.json
├── media.json
├── schoolguide.js
└── site.json
├── 写作指南
└── 校园导航小程序+-+UML图、关系图、ER图、示意图 .pos
├── 地图参数获取工具
├── app.js
├── app.json
├── app.wxss
├── data
│ ├── img_data.js
│ └── map_data.js
├── images
│ ├── circle.png
│ └── tabbar
│ │ ├── icon_collection.png
│ │ ├── icon_collection_HL.png
│ │ ├── icon_home.png
│ │ ├── icon_home_HL.png
│ │ ├── icon_map.png
│ │ ├── icon_map_HL.png
│ │ ├── icon_more.png
│ │ ├── icon_more_HL.png
│ │ ├── icon_school.png
│ │ └── icon_school_HL.png
├── libs
│ └── qqmap-wx-jssdk.min.js
├── pages
│ ├── index
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ ├── location
│ │ ├── location.js
│ │ ├── location.json
│ │ ├── location.wxml
│ │ └── location.wxss
│ ├── map
│ │ ├── map.js
│ │ ├── map.json
│ │ ├── map.wxml
│ │ └── map.wxss
│ ├── polygons
│ │ ├── polygons.js
│ │ ├── polygons.json
│ │ ├── polygons.wxml
│ │ ├── polygons.wxss
│ │ └── range
│ │ │ ├── range.js
│ │ │ ├── range.json
│ │ │ ├── range.wxml
│ │ │ └── range.wxss
│ └── site
│ │ ├── getpoint
│ │ ├── getpoint.js
│ │ ├── getpoint.json
│ │ ├── getpoint.wxml
│ │ └── getpoint.wxss
│ │ ├── site.js
│ │ ├── site.json
│ │ ├── site.wxml
│ │ └── site.wxss
├── project.config.json
├── project.private.config.json
└── sitemap.json
└── 静态项目
├── app.js
├── app.json
├── app.wxss
├── data
├── data.js
├── map.js
├── media.js
└── school.js
├── images
├── book.png
├── button
│ ├── ai_chat.png
│ ├── friendly_link.png
│ ├── map_navigation.png
│ ├── panoramic_map.png
│ ├── school_guide.png
│ ├── site_popularity.png
│ └── site_summary.png
├── chat.png
├── delete.png
├── feedback.png
├── green_arrow.png
├── hat.png
├── history.png
├── home.png
├── judge.png
├── laba.png
├── label.png
├── location.png
├── magazine.png
├── map.png
├── message.png
├── money.png
├── more.png
├── navigation.png
├── new.png
├── note.png
├── notes.png
├── restore.png
├── school_icon.png
├── school_logo.png
├── share.png
├── statement.png
├── tabbar
│ ├── icon_collection.png
│ ├── icon_collection_HL.png
│ ├── icon_home.png
│ ├── icon_home_HL.png
│ ├── icon_map.png
│ ├── icon_map_HL.png
│ ├── icon_more.png
│ ├── icon_more_HL.png
│ ├── icon_school.png
│ └── icon_school_HL.png
├── tag.png
├── text.png
├── use.png
├── users.png
├── weather.png
├── zhixie.png
├── zhixie_kaifazhe.jpg
└── zhixie_up.jpg
├── libs
└── qqmap-wx-jssdk.min.js
├── pages
├── home
│ ├── home.js
│ ├── home.json
│ ├── home.wxml
│ ├── home.wxss
│ ├── introduction
│ │ ├── introduction.js
│ │ ├── introduction.json
│ │ ├── introduction.wxml
│ │ └── introduction.wxss
│ └── pano
│ │ ├── pano.js
│ │ ├── pano.json
│ │ ├── pano.wxml
│ │ └── pano.wxss
├── map
│ ├── instruction
│ │ ├── instruction.js
│ │ ├── instruction.json
│ │ ├── instruction.wxml
│ │ └── instruction.wxss
│ ├── map.js
│ ├── map.json
│ ├── map.wxml
│ ├── map.wxss
│ └── search
│ │ ├── search.js
│ │ ├── search.json
│ │ ├── search.wxml
│ │ └── search.wxss
├── more
│ ├── more.js
│ ├── more.json
│ ├── more.wxml
│ ├── more.wxss
│ └── statement
│ │ ├── statement.js
│ │ ├── statement.json
│ │ ├── statement.wxml
│ │ └── statement.wxss
├── school
│ ├── guidance
│ │ ├── guidance.js
│ │ ├── guidance.json
│ │ ├── guidance.wxml
│ │ └── guidance.wxss
│ ├── school.js
│ ├── school.json
│ ├── school.wxml
│ └── school.wxss
└── site
│ ├── site.js
│ ├── site.json
│ ├── site.wxml
│ └── site.wxss
├── project.config.json
├── project.private.config.json
└── sitemap.json
/云开发项目/app.js:
--------------------------------------------------------------------------------
1 | // app.js
2 | App({
3 | /**
4 | * 生命周期函数--监听页面加载
5 | */
6 | onLaunch() {
7 | // 在调用云开发各 API 前,需先调用初始化方法 init 一次
8 | wx.cloud.init({
9 | env: 'coder1-9gl7sd9c94ac3c80' // 云开发id
10 | })
11 | },
12 |
13 | globalData: {
14 | userInfo: null,
15 | mapRefresh: false,
16 | siteRefresh: false,
17 | schoolRefresh: false,
18 | schoolguideRefresh: false,
19 | introductionRefresh: false
20 | }
21 | })
--------------------------------------------------------------------------------
/云开发项目/app.wxss:
--------------------------------------------------------------------------------
1 | /**app.wxss**/
2 | page {
3 | height: 100%;
4 | width: 100%;
5 | }
6 |
7 | .container {
8 | height: 100%;
9 | display: flex;
10 | flex-direction: column;
11 | align-items: center;
12 | justify-content: space-between;
13 | padding: 200rpx 0;
14 | box-sizing: border-box;
15 | }
16 |
17 | .bottom-font {
18 | padding: 10px 0 10px 0;
19 | height: 20px;
20 | text-align: center;
21 | font-size: small;
22 | color: gray;
23 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_admin/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_admin/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('admin')
11 | .add({
12 | data: {
13 | name: event.name,
14 | openid: event.openid
15 | }
16 | })
17 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_admin/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "add_admin",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_category/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_category/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('category')
11 | .add({
12 | data: {
13 | name: event.name
14 | }
15 | })
16 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_category/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "add_category",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_schoolguide/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_schoolguide/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('schoolguide')
11 | .add({
12 | data: {
13 | title: event.title,
14 | keywords: event.keywords,
15 | content: event.content,
16 | imageList: event.imageList,
17 | }
18 | })
19 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_schoolguide/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "add_schoolguide",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_site/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_site/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('site')
11 | .add({
12 | data: {
13 | name: event.name,
14 | aliases: event.aliases,
15 | desc: event.desc,
16 | c_id: event.c_id,
17 | latitude: event.la,
18 | longitude: event.lo,
19 | img: event.img,
20 | browse: 0
21 | }
22 | })
23 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/add_site/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "add_site",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/browse/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/browse/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | const db = cloud.database()
9 | const _ = db.command
10 |
11 | // 云函数入口函数
12 | exports.main = async (event, context) => {
13 | return cloud.database().collection('site')
14 | .doc(event._id)
15 | .update({
16 | data: {
17 | browse: _.inc(1)
18 | }
19 | })
20 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/browse/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "browse",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/get_openid/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/get_openid/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | const wxContext = cloud.getWXContext()
11 | return {
12 | openid: wxContext.OPENID,
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/get_openid/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "get_openid",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/lianbiao_query/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/lianbiao_query/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | const db = cloud.database()
9 | const _ = db.command
10 | const $ = _.aggregate
11 |
12 | // 云函数入口函数
13 | exports.main = async (event, context) => {
14 | return await db.collection('category').aggregate()
15 | .lookup({
16 | from: 'site',
17 | localField: '_id',
18 | foreignField: 'c_id',
19 | as: 'list',
20 | })
21 | .end()
22 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/lianbiao_query/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lianbiao_query",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/login/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/login/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | const db = cloud.database()
9 |
10 | // 云函数入口函数
11 | exports.main = async (event, context) => {
12 | const wxContext = cloud.getWXContext()
13 | return await db.collection('admin')
14 | .where({
15 | openid: wxContext.OPENID
16 | })
17 | .get()
18 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/login/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "login",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/rank/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/rank/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | const db = cloud.database();
9 |
10 | // 云函数入口函数
11 | exports.main = async (event, context) => {
12 | const pagination = {
13 | current: event.current || 1, // 当前页面
14 | pageSize: event.pageSize || 20, // 分页条数
15 | }
16 | const wxContext = cloud.getWXContext()
17 |
18 | // 获取总数据条数
19 | const total = await db.collection('site').count();
20 |
21 | // 获取所有数据,orderBy排序,desc从大到小,skip跳过,limit限制
22 | const data = await db.collection('site')
23 | .orderBy('browse', 'desc')
24 | .skip((pagination.current - 1) * pagination.pageSize)
25 | .limit(pagination.pageSize)
26 | .get();
27 |
28 | pagination.total = total.total; // 总条数
29 | pagination.totalPage = Math.ceil(pagination.total / pagination.pageSize); // 总页数
30 |
31 | return {
32 | event,
33 | openid: wxContext.OPENID,
34 | appid: wxContext.APPID,
35 | unionid: wxContext.UNIONID,
36 | data,
37 | pagination
38 | }
39 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/rank/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "rank",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_admin/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_admin/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('admin')
11 | .doc(event._id)
12 | .remove({})
13 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_admin/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "remove_admin",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_category/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_category/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('category')
11 | .doc(event._id)
12 | .remove({})
13 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_category/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "remove_category",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_schoolguide/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_schoolguide/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('schoolguide')
11 | .doc(event._id)
12 | .remove({})
13 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_schoolguide/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "remove_schoolguide",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_site/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_site/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('site')
11 | .doc(event.id)
12 | .remove({})
13 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/remove_site/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "remove_site",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/set_default_site/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/set_default_site/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('media')
11 | .doc(event.default_id)
12 | .update({
13 | data: {
14 | s_id: event.s_id,
15 | }
16 | })
17 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/set_default_site/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "set_default_site",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_admin/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_admin/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('admin')
11 | .doc(event._id)
12 | .update({
13 | data: {
14 | name: event.name,
15 | openid: event.openid
16 | }
17 | })
18 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_admin/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "update_admin",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_category/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_category/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('category')
11 | .doc(event._id)
12 | .update({
13 | data: {
14 | name: event.name
15 | }
16 | })
17 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_category/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "update_category",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_media/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_media/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | const db = cloud.database()
9 |
10 | // 云函数入口函数
11 | exports.main = async (event, context) => {
12 | return db.collection('media')
13 | .doc(event._id)
14 | .update({
15 | data: {
16 | img: event.img
17 | }
18 | })
19 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_media/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "update_media",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_range/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_range/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({ env: cloud.DYNAMIC_CURRENT_ENV }) // 使用当前云环境
5 |
6 | const db = cloud.database()
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return db.collection('media')
11 | .where({
12 | name: "学校范围"
13 | })
14 | .update({
15 | data: {
16 | range: event.range
17 | }
18 | })
19 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_range/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "update_range",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_schoolguide/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_schoolguide/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('schoolguide')
11 | .doc(event._id)
12 | .update({
13 | data: {
14 | title: event.title,
15 | keywords: event.keywords,
16 | content: event.content,
17 | imageList: event.imageList,
18 | }
19 | })
20 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_schoolguide/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "update_schoolguide",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_site/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "permissions": {
3 | "openapi": [
4 | ]
5 | }
6 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_site/index.js:
--------------------------------------------------------------------------------
1 | // 云函数入口文件
2 | const cloud = require('wx-server-sdk')
3 |
4 | cloud.init({
5 | env: cloud.DYNAMIC_CURRENT_ENV
6 | }) // 使用当前云环境
7 |
8 | // 云函数入口函数
9 | exports.main = async (event, context) => {
10 | return cloud.database().collection('site')
11 | .doc(event._id)
12 | .update({
13 | data: {
14 | name: event.name,
15 | aliases: event.aliases,
16 | desc: event.desc,
17 | c_id: event.c_id,
18 | latitude: event.la,
19 | longitude: event.lo,
20 | img: event.img,
21 | }
22 | })
23 | }
--------------------------------------------------------------------------------
/云开发项目/cloudfunctions/update_site/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "update_site",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "wx-server-sdk": "*"
13 | }
14 | }
--------------------------------------------------------------------------------
/云开发项目/data/data.js:
--------------------------------------------------------------------------------
1 | /* data/data.js */
2 | module.exports = {
3 | // 和风天气API
4 | weatherKey: "de1f89544449420cb217032e79b9527c",
5 |
6 | // 小程序名称
7 | miniprogram_name: "桂院校园导航",
8 |
9 | // 相关信息
10 | information: {
11 | type: "计算机设计大赛作品 | 毕业设计",
12 | author: "理工学院 2019级 软件工程 吴警",
13 | teacher: "刘亮龙、杨嫘 | 韦林"
14 | }
15 | }
--------------------------------------------------------------------------------
/云开发项目/data/map.js:
--------------------------------------------------------------------------------
1 | /* data/map.js */
2 | // 地图相关
3 | module.exports = {
4 | // 地图部分参数
5 |
6 | // 腾讯位置服务API
7 | mapKey: "E6YBZ-GBZK4-4GLUN-DLZZR-G67ME-IWBWY",
8 |
9 | // 学校精确坐标(用于地图定位和获取天气数据)
10 | longitude: 110.277685,
11 | latitude: 25.093668,
12 |
13 | // 是否展示 POI 点
14 | enablepoi: true,
15 | // 是否显示带有方向的当前定位点
16 | showLocation: true,
17 | // 缩放级别
18 | scale: 16.1,
19 | // 最小缩放级别,比缩放级别小0.3-0.4为宜
20 | minscale: 15.8,
21 |
22 | // 自定义图层
23 | groundoverlay: {
24 | // 图层透明度 0-1
25 | opacity: 0.8,
26 | // 西南角
27 | southwest_latitude: 25.088910,
28 | southwest_longitude: 110.273850,
29 | // 东北角
30 | northeast_latitude: 25.098995,
31 | northeast_longitude: 110.281229
32 | },
33 |
34 | // 地图边界
35 | boundary: {
36 | // 西南角
37 | southwest_latitude: 25.088083,
38 | southwest_longitude: 110.272618,
39 | // 东北角
40 | northeast_latitude: 25.099580,
41 | northeast_longitude: 110.281911
42 | },
43 |
44 | // 学校边界
45 | // school_boundary: {
46 | // // 东(学校最东端点的 经度)
47 | // east: 110.280699,
48 | // // 西(学校最西端点的 经度)
49 | // west: 110.2733,
50 | // // 南(学校最南端点的 纬度)
51 | // south: 25.089701,
52 | // // 北(学校最北端点的 纬度)
53 | // north: 25.09839
54 | // },
55 |
56 | // 闭合多边形
57 | // points: [],
58 | }
--------------------------------------------------------------------------------
/云开发项目/data/school.js:
--------------------------------------------------------------------------------
1 | /* data/school.js */
2 | // 学校相关
3 | module.exports = {
4 | // 学校公众号二维码
5 | guanwei: [
6 | {
7 | // 显示名
8 | name: "学校",
9 | // 显示图标
10 | icon: "/images/school_icon.png",
11 | // 二维码图片链接
12 | img: "https://cdnjson.com/images/2023/04/30/guanwei.png",
13 | },
14 | {
15 | name: "图书馆",
16 | icon: "/images/book.png",
17 | img: "https://s1.imagehub.cc/images/2024/02/07/a9e42b78adace1b3f93484530613c84c.png",
18 | },
19 | {
20 | name: "财务处",
21 | icon: "/images/new.png",
22 | img: "https://s1.imagehub.cc/images/2024/02/07/8e8dae8b402c4c4ed236d7fbe4a9d913.png",
23 | },
24 | ],
25 |
26 | // 学校小程序AppID
27 | AppID: [
28 | {
29 | // 显示名
30 | name: "招生",
31 | // 显示图标
32 | icon: "/images/magazine.png",
33 | // 小程序id
34 | appId: "wx0a954435bd49aca4",
35 | }
36 | ],
37 |
38 | // 学校信息
39 | school_information: {
40 | // 学校全称
41 | school_name_full: "桂林学院",
42 | // 学校英文名
43 | school_name_English_full: "Guilin University",
44 | // 校规校训
45 | motto: "向学·向善·自律·自强",
46 | // 学校荣誉
47 | honor: "2025中国百强民办高校",
48 | // 建校时间
49 | build_time: 2001,
50 | // 办校类型
51 | school_type: "民办",
52 | // 院校类型
53 | institution_type: "综合类",
54 | // 学校所在地
55 | location: "广西桂林・雁山",
56 | // 学校简介
57 | text: "桂林学院(Guilin University 代码:13641)是一所经教育部批准设置的国有民办普通本科高校,由广西壮族自治区教育厅主管、桂林新城投资开发集团有限公司举办。学校前身系广西师范大学与社会投资方于2001年5月合作创办的广西师范大学漓江学院;2004年1月,经教育部确认取得“独立学院”办学资格;2021年5月,教育部致函广西壮族自治区人民政府,同意广西师范大学漓江学院转设并更名为桂林学院。"
58 | },
59 |
60 | // 校园指南
61 | // school_guide: []
62 | }
--------------------------------------------------------------------------------
/云开发项目/images/admin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/admin.png
--------------------------------------------------------------------------------
/云开发项目/images/arrow/arrow_first.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/arrow/arrow_first.png
--------------------------------------------------------------------------------
/云开发项目/images/arrow/arrow_first_no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/arrow/arrow_first_no.png
--------------------------------------------------------------------------------
/云开发项目/images/arrow/arrow_last.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/arrow/arrow_last.png
--------------------------------------------------------------------------------
/云开发项目/images/arrow/arrow_last_no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/arrow/arrow_last_no.png
--------------------------------------------------------------------------------
/云开发项目/images/arrow/arrow_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/arrow/arrow_left.png
--------------------------------------------------------------------------------
/云开发项目/images/arrow/arrow_left_no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/arrow/arrow_left_no.png
--------------------------------------------------------------------------------
/云开发项目/images/arrow/arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/arrow/arrow_right.png
--------------------------------------------------------------------------------
/云开发项目/images/arrow/arrow_right_no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/arrow/arrow_right_no.png
--------------------------------------------------------------------------------
/云开发项目/images/book.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/book.png
--------------------------------------------------------------------------------
/云开发项目/images/button/ai_chat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/button/ai_chat.png
--------------------------------------------------------------------------------
/云开发项目/images/button/friendly_link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/button/friendly_link.png
--------------------------------------------------------------------------------
/云开发项目/images/button/map_navigation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/button/map_navigation.png
--------------------------------------------------------------------------------
/云开发项目/images/button/panoramic_map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/button/panoramic_map.png
--------------------------------------------------------------------------------
/云开发项目/images/button/school_guide.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/button/school_guide.png
--------------------------------------------------------------------------------
/云开发项目/images/button/site_popularity.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/button/site_popularity.png
--------------------------------------------------------------------------------
/云开发项目/images/button/site_summary.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/button/site_summary.png
--------------------------------------------------------------------------------
/云开发项目/images/chat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/chat.png
--------------------------------------------------------------------------------
/云开发项目/images/circle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/circle.png
--------------------------------------------------------------------------------
/云开发项目/images/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/delete.png
--------------------------------------------------------------------------------
/云开发项目/images/eyeclose.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/eyeclose.png
--------------------------------------------------------------------------------
/云开发项目/images/eyeshow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/eyeshow.png
--------------------------------------------------------------------------------
/云开发项目/images/feedback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/feedback.png
--------------------------------------------------------------------------------
/云开发项目/images/fire.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/fire.png
--------------------------------------------------------------------------------
/云开发项目/images/green_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/green_arrow.png
--------------------------------------------------------------------------------
/云开发项目/images/hat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/hat.png
--------------------------------------------------------------------------------
/云开发项目/images/history.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/history.png
--------------------------------------------------------------------------------
/云开发项目/images/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/home.png
--------------------------------------------------------------------------------
/云开发项目/images/laba.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/laba.png
--------------------------------------------------------------------------------
/云开发项目/images/label.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/label.png
--------------------------------------------------------------------------------
/云开发项目/images/location.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/location.png
--------------------------------------------------------------------------------
/云开发项目/images/magazine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/magazine.png
--------------------------------------------------------------------------------
/云开发项目/images/map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/map.png
--------------------------------------------------------------------------------
/云开发项目/images/message.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/message.png
--------------------------------------------------------------------------------
/云开发项目/images/money.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/money.png
--------------------------------------------------------------------------------
/云开发项目/images/navigation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/navigation.png
--------------------------------------------------------------------------------
/云开发项目/images/new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/new.png
--------------------------------------------------------------------------------
/云开发项目/images/note.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/note.png
--------------------------------------------------------------------------------
/云开发项目/images/notes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/notes.png
--------------------------------------------------------------------------------
/云开发项目/images/restore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/restore.png
--------------------------------------------------------------------------------
/云开发项目/images/school_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/school_icon.png
--------------------------------------------------------------------------------
/云开发项目/images/school_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/school_logo.png
--------------------------------------------------------------------------------
/云开发项目/images/share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/share.png
--------------------------------------------------------------------------------
/云开发项目/images/statement.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/statement.png
--------------------------------------------------------------------------------
/云开发项目/images/support.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/support.png
--------------------------------------------------------------------------------
/云开发项目/images/tabbar/icon_collection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/tabbar/icon_collection.png
--------------------------------------------------------------------------------
/云开发项目/images/tabbar/icon_collection_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/tabbar/icon_collection_HL.png
--------------------------------------------------------------------------------
/云开发项目/images/tabbar/icon_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/tabbar/icon_home.png
--------------------------------------------------------------------------------
/云开发项目/images/tabbar/icon_home_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/tabbar/icon_home_HL.png
--------------------------------------------------------------------------------
/云开发项目/images/tabbar/icon_map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/tabbar/icon_map.png
--------------------------------------------------------------------------------
/云开发项目/images/tabbar/icon_map_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/tabbar/icon_map_HL.png
--------------------------------------------------------------------------------
/云开发项目/images/tabbar/icon_more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/tabbar/icon_more.png
--------------------------------------------------------------------------------
/云开发项目/images/tabbar/icon_more_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/tabbar/icon_more_HL.png
--------------------------------------------------------------------------------
/云开发项目/images/tabbar/icon_school.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/tabbar/icon_school.png
--------------------------------------------------------------------------------
/云开发项目/images/tabbar/icon_school_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/tabbar/icon_school_HL.png
--------------------------------------------------------------------------------
/云开发项目/images/tag.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/tag.png
--------------------------------------------------------------------------------
/云开发项目/images/use.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/use.png
--------------------------------------------------------------------------------
/云开发项目/images/users.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/users.png
--------------------------------------------------------------------------------
/云开发项目/images/weather.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/weather.png
--------------------------------------------------------------------------------
/云开发项目/images/zhixie.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/zhixie.png
--------------------------------------------------------------------------------
/云开发项目/images/zhixie_kaifazhe.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/zhixie_kaifazhe.jpg
--------------------------------------------------------------------------------
/云开发项目/images/zhixie_up.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/云开发项目/images/zhixie_up.jpg
--------------------------------------------------------------------------------
/云开发项目/pages/home/home.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "mp-dialog": "weui-miniprogram/dialog/dialog"
4 | },
5 | "navigationBarTitleText": "首页"
6 | }
--------------------------------------------------------------------------------
/云开发项目/pages/home/introduction/introduction.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "component": true,
4 | "navigationBarTitleText": "学校简介"
5 | }
--------------------------------------------------------------------------------
/云开发项目/pages/home/introduction/introduction.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | {{school_information.school_name_full}}
19 |
20 |
21 |
22 | {{school_information.school_name_English_full}}
23 |
24 |
25 |
26 |
27 | {{school_information.text}}
28 |
29 |
30 |
31 | 学校风光
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 信息来源:学校官网
40 |
--------------------------------------------------------------------------------
/云开发项目/pages/home/introduction/introduction.wxss:
--------------------------------------------------------------------------------
1 | /* pages/home/introduction/introduction.wxss */
2 | .swiper-item {
3 | height: 420rpx;
4 | }
5 |
6 | .swiper-item .wx-swiper-dot.wx-swiper-dot-active {
7 | width: 33rpx;
8 | background: #888888;
9 | border-radius: 15rpx;
10 | }
11 |
12 | .swiper-item-image {
13 | width: 100%;
14 | }
15 |
16 | .location {
17 | width: 70px;
18 | height: 70px;
19 | display: flex;
20 | justify-content: center;
21 | align-items: center;
22 | position: relative;
23 | margin-top: -35px;
24 | }
25 |
26 | .img {
27 | width: 70px;
28 | height: 70px;
29 | }
30 |
31 | .title-font {
32 | color: #73a5d6;
33 | margin-left: 20px;
34 | }
35 |
36 | .title-font-1 {
37 | font-size: 35px;
38 | }
39 |
40 | .title-font-2 {
41 | margin-top: 10px;
42 | font-size: 25px;
43 | }
44 |
45 | .text-font {
46 | margin: 20px 20px 0 20px;
47 | font-size: 15px;
48 | line-height: 25px;
49 | /* 文本保留空格和回车 */
50 | white-space: pre-wrap;
51 | }
52 |
53 | .video-font {
54 | color: #73a5d6;
55 | text-align: center;
56 | font-size: 25px;
57 | margin-top: 20px;
58 | margin-bottom: 20px;
59 | }
60 |
61 | .video {
62 | display: flex;
63 | justify-content: center;
64 | align-items: center;
65 | }
--------------------------------------------------------------------------------
/云开发项目/pages/home/rank/rank.js:
--------------------------------------------------------------------------------
1 | // pages/home/rank/rank.js
2 | import media from '@data/media'
3 |
4 | Page({
5 |
6 | /**
7 | * 页面的初始数据
8 | */
9 | data: {
10 | arrow_first: media.arrow_first,
11 | arrow_first_no: media.arrow_first_no,
12 | arrow_last: media.arrow_last,
13 | arrow_last_no: media.arrow_last_no,
14 | arrow_left: media.arrow_left,
15 | arrow_left_no: media.arrow_left_no,
16 | arrow_right: media.arrow_right,
17 | arrow_right_no: media.arrow_right_no,
18 |
19 | list: [],
20 | current: 1, // 当前页数
21 | pagination: {},
22 | },
23 |
24 | /**
25 | * 生命周期函数--监听页面加载
26 | */
27 | onLoad(options) {
28 | this.getList()
29 | },
30 |
31 | /**
32 | * 生命周期函数--监听页面显示
33 | */
34 | onShow() {
35 | this.getList()
36 | },
37 |
38 | getList() {
39 | var that = this
40 | wx.cloud.callFunction({
41 | name: 'rank',
42 | data: {
43 | current: that.data.current
44 | }
45 | })
46 | .then(res => {
47 | console.log('success', res.result.data.data)
48 | console.log('success', res.result.pagination)
49 | that.setData({
50 | list: res.result.data.data,
51 | pagination: res.result.pagination
52 | })
53 | console.log(that.data.list)
54 | })
55 | .catch(err => {
56 | console.log('fail', err)
57 | })
58 | },
59 |
60 | go(e) {
61 | console.log(e)
62 | var step = e.currentTarget.dataset.index * 1;
63 | console.log(step)
64 | this.setData({
65 | current: this.data.current + step
66 | })
67 | this.getList()
68 | },
69 |
70 | gooneside(e) {
71 | let step = e.currentTarget.dataset.index * 1
72 | if (step == -1) {
73 | this.setData({
74 | current: 1
75 | })
76 | } else if (step == 1) {
77 | this.setData({
78 | current: this.data.pagination.totalPage
79 | })
80 | }
81 | this.getList();
82 | }
83 | })
--------------------------------------------------------------------------------
/云开发项目/pages/home/rank/rank.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "地点热度",
4 | "backgroundTextStyle": "dark"
5 | }
--------------------------------------------------------------------------------
/云开发项目/pages/home/rank/rank.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 地点搜索浏览
6 |
7 |
8 | 排行榜单
9 |
10 |
11 |
12 |
13 |
14 | 排名
15 | 地点
16 | 浏览次数
17 |
18 |
19 |
20 | {{index+1+(pagination.current-1)*pagination.pageSize}}
21 |
22 |
23 | {{item.name}}
24 | {{item.aliases}}
25 |
26 |
27 | {{item.browse}}
28 |
29 |
30 |
31 |
32 |
33 |
34 | 依据用户搜索浏览行为统计,数据可能略有偏差
35 |
36 |
37 |
38 |
39 | {{pagination.current}}
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/云开发项目/pages/home/rank/rank.wxss:
--------------------------------------------------------------------------------
1 | /* pages/home/rank/rank.wxss */
2 | page {
3 | background-color: #73a5d6;
4 | height: auto;
5 | }
6 |
7 | .title {
8 | text-align: center;
9 | margin-top: 10px;
10 | margin-bottom: 10px;
11 | color: white;
12 | }
13 |
14 | .title-1 {
15 | font-size: 22px;
16 | }
17 |
18 | .title-2 {
19 | font-size: 38px;
20 | }
21 |
22 | .list {
23 | margin: 10px 10px 0 10px;
24 | border-radius: 20px;
25 | background-color: white;
26 | }
27 |
28 | .list-title {
29 | height: 50px;
30 | display: flex;
31 | justify-content: space-around;
32 | align-items: center;
33 | margin: 0 20px 0 20px;
34 | font-size: 20px;
35 | border-bottom: 2px solid #b95864;
36 | }
37 |
38 | .list-title-left {
39 | text-align: center;
40 | width: 50px;
41 | }
42 |
43 | .list-title-middle {
44 | text-align: center;
45 | width: 170px;
46 | }
47 |
48 | .list-title-right {
49 | text-align: center;
50 | width: 90px;
51 | }
52 |
53 | .list-result {
54 | height: 50px;
55 | margin: 5px 20px 10px 20px;
56 | display: flex;
57 | align-items: center;
58 | justify-content: space-around;
59 | border-bottom: 1px solid gainsboro;
60 | }
61 |
62 | .list-result-left {
63 | text-align: center;
64 | width: 50px;
65 | }
66 |
67 | .list-result-middle {
68 | display: flex;
69 | flex-direction: column;
70 | width: 170px;
71 | text-align: center;
72 | }
73 |
74 | .list-result-right {
75 | text-align: center;
76 | width: 90px;
77 | }
78 |
79 | .bottom {
80 | height: 60px;
81 | display: flex;
82 | flex-direction: column;
83 | align-items: center;
84 | margin: 0px 15px 0 15px;
85 | color: white;
86 | }
87 |
88 | .bottom-text {
89 | height: 20px;
90 | font-size: 12px;
91 | font-weight: lighter;
92 | }
93 |
94 | .button {
95 | width: 300px;
96 | display: flex;
97 | justify-content: space-around;
98 | align-items: center;
99 | }
100 |
101 | .button-img {
102 | width: 30px;
103 | height: 30px;
104 | border-radius: 50%;
105 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/admin-list/admin-list.js:
--------------------------------------------------------------------------------
1 | // pages/admin/admin-list/admin-list.js
2 | const db = wx.cloud.database()
3 |
4 | Page({
5 |
6 | /**
7 | * 页面的初始数据
8 | */
9 | data: {
10 | admin_list: []
11 | },
12 |
13 | /**
14 | * 生命周期函数--监听页面加载
15 | */
16 | onLoad(options) {
17 | this.getAdmin()
18 | },
19 |
20 | getAdmin() {
21 | db.collection('admin')
22 | .get()
23 | .then(res => {
24 | console.log('success', res)
25 | this.setData({
26 | admin_list: res.data
27 | })
28 | })
29 | .catch(err => {
30 | console.log('fail', err)
31 | })
32 | },
33 |
34 | addAdmin() {
35 | wx.navigateTo({
36 | url: './admin/admin?sid=1',
37 | })
38 | },
39 |
40 | manageAdmin(e) {
41 | console.log(e.target.dataset._id)
42 | console.log(e.target.dataset.name)
43 | wx.navigateTo({
44 | url: './admin/admin?sid=2&_id=' + e.target.dataset._id + '&name=' + e.target.dataset.name + '&openid=' + e.target.dataset.openid,
45 | })
46 | },
47 | })
--------------------------------------------------------------------------------
/云开发项目/pages/manage/admin-list/admin-list.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "管理员列表"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/admin-list/admin-list.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 管理员管理
8 |
9 |
10 |
11 |
12 |
15 |
16 | 序号
17 | 名字
18 | 操作
19 |
20 |
21 |
22 | {{index+1}}
23 | {{item.name}}
24 |
25 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/admin-list/admin-list.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/admin-list/admin-list.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 10px 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-container {
13 | margin-bottom: 30px;
14 | margin: 10px;
15 | }
16 |
17 | .card-container-title {
18 | display: flex;
19 | align-items: center;
20 | flex-direction: row;
21 | margin-bottom: 10px;
22 | padding-top: 10px;
23 | }
24 |
25 | .card-container-title-font {
26 | width: 100%;
27 | color: #73a5d6;
28 | margin: 15px 0;
29 | font-size: 30px;
30 | text-align: center;
31 | }
32 |
33 | .card-container-container {
34 | border-bottom: 10px solid white;
35 | }
36 |
37 | .card-container-container-title {
38 | margin: 10px 0 10px 0;
39 | display: flex;
40 | justify-content: space-between;
41 | align-items: center;
42 | font-size: larger;
43 | }
44 |
45 | .card-container-container-title-title {
46 | width: 80px;
47 | height: 50px;
48 | display: flex;
49 | justify-content: center;
50 | align-items: center;
51 | }
52 |
53 | .title {
54 | border-bottom: 1px solid grey;
55 | }
56 |
57 | .card-container-container-site-title {
58 | width: 160px;
59 | height: 50px;
60 | display: flex;
61 | justify-content: center;
62 | align-items: center;
63 | font-size: large;
64 | text-align: center;
65 | flex-direction: column;
66 | }
67 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/admin-list/admin/admin.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "管理员"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/admin-list/admin/admin.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 管理员管理
6 |
7 |
8 |
9 |
10 |
11 | 新增管理员
12 |
13 |
14 |
15 |
16 |
17 | 管理管理员
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | 名字:
26 |
27 |
28 |
29 |
30 |
31 |
32 | openid:
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/admin-list/admin/admin.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/admin-list/admin/admin.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 10px 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-top {
13 | height: 60px;
14 | border-radius: 10px 10px 0 0;
15 | display: flex;
16 | justify-content: center;
17 | align-items: center;
18 | font-size: 22px;
19 | }
20 |
21 | .card-container {
22 | margin-bottom: 30px;
23 | margin: 10px;
24 | }
25 |
26 | .card-container-title {
27 | display: flex;
28 | align-items: center;
29 | flex-direction: row;
30 | margin-bottom: 10px;
31 |
32 | }
33 |
34 | .card-container-title-font {
35 | color: #73a5d6;
36 | margin-left: 10px;
37 | font-size: 22px;
38 | }
39 |
40 | .card-container-form {
41 | border-bottom: 10px solid white;
42 | }
43 |
44 | .card-container-form-list {
45 | display: flex;
46 | margin: 10px;
47 | }
48 |
49 | .card-container-form-list-input {
50 | border: 1px solid grey;
51 | width: 190px;
52 | padding-left: 10px;
53 | border-radius: 8px;
54 | }
55 |
56 | .card-container-form-list-list-text {
57 | width: 80px;
58 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/manage.js:
--------------------------------------------------------------------------------
1 | // pages/manage/manage.js
2 | Page({
3 | taptocategory(e) {
4 | wx.navigateTo({
5 | url: './site/category-list/category-list',
6 | })
7 | },
8 |
9 | taptosite(e) {
10 | wx.navigateTo({
11 | url: './site/site-list/site-list',
12 | })
13 | },
14 |
15 | taptodefaultsite() {
16 | wx.navigateTo({
17 | url: './site/default-site/default-site',
18 | })
19 | },
20 |
21 | taptorange() {
22 | wx.navigateTo({
23 | url: './site/range/range',
24 | })
25 | },
26 |
27 | taptomapimg(e) {
28 | wx.navigateTo({
29 | url: './media/map-img/map-img',
30 | })
31 | },
32 |
33 | taptocarousel(e) {
34 | wx.navigateTo({
35 | url: './media/carousel/carousel',
36 | })
37 | },
38 |
39 | taptovideo(e) {
40 | wx.navigateTo({
41 | url: './media/video/video',
42 | })
43 | },
44 |
45 | taptodefaultimg(e) {
46 | wx.navigateTo({
47 | url: './media/default-image/default-image',
48 | })
49 | },
50 |
51 | taptoguide() {
52 | wx.navigateTo({
53 | url: './schoolguide-list/schoolguide-list',
54 | })
55 | },
56 |
57 | taptoadmin() {
58 | wx.navigateTo({
59 | url: './admin-list/admin-list',
60 | })
61 | }
62 | })
--------------------------------------------------------------------------------
/云开发项目/pages/manage/manage.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "管理界面"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/manage.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 管理界面
4 |
5 |
6 | 🏫 地点管理
7 |
8 |
9 |
10 | 地点类型
11 |
12 |
13 |
14 | 地点
15 |
16 |
17 |
18 | 默认地点
19 |
20 |
21 |
22 | 学校范围
23 |
24 |
25 |
26 |
27 |
28 | 🖼️ 媒体管理
29 |
30 |
31 |
32 | 校园地图图片
33 |
34 |
35 |
36 | 轮播图
37 |
38 |
39 |
40 | 视频
41 |
42 |
43 |
44 | 地点默认图片
45 |
46 |
47 |
48 |
49 |
50 | 📖 信息管理
51 |
52 |
53 |
54 | 校园指南
55 |
56 |
57 |
58 |
59 |
60 | 👤 成员管理
61 |
62 |
63 |
64 | 管理员
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/manage.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/manage.wxss */
2 | page {
3 | display: flex;
4 | justify-content: center;
5 | background: #f5f5f5;
6 | }
7 |
8 | .all {
9 | margin: 10px
10 | }
11 |
12 | .page-title {
13 | width: 100%;
14 | color: #73a5d6;
15 | margin: 0 0 15px 0;
16 | font-size: 30px;
17 | text-align: center;
18 | }
19 |
20 | .card {
21 | margin-bottom: 20px;
22 | padding: 5px;
23 | border-radius: 20px;
24 | display: flex;
25 | flex-direction: column;
26 | justify-content: center;
27 | background: white;
28 | }
29 |
30 | .title {
31 | margin: 10px;
32 | font-size: x-large;
33 | }
34 |
35 | .content {
36 | display: flex;
37 | flex-flow: row wrap;
38 | }
39 |
40 | .btn {
41 | width: 40vw;
42 | height: 60px;
43 | border: 1px solid grey;
44 | background: #f7f7f7;
45 | border-radius: 10px;
46 | margin: 10px;
47 | display: flex;
48 | justify-content: center;
49 | align-items: center;
50 | font-size: larger;
51 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/carousel/carousel.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "轮播图"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/carousel/carousel.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/media/carousel/carousel.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-container {
13 | margin-bottom: 30px;
14 | margin: 10px;
15 | }
16 |
17 | .card-container-title {
18 | display: flex;
19 | align-items: center;
20 | flex-direction: row;
21 | margin-bottom: 10px;
22 | }
23 |
24 | .card-container-title-font {
25 | width: 100%;
26 | color: #73a5d6;
27 | margin: 15px 0;
28 | font-size: 30px;
29 | text-align: center;
30 | }
31 |
32 | .card-container-container {
33 | border-bottom: 10px solid white;
34 | }
35 |
36 | .card-container-container-title {
37 | margin: 10px 0 10px 0;
38 | display: flex;
39 | justify-content: space-between;
40 | align-items: center;
41 | font-size: larger;
42 | }
43 |
44 | .title {
45 | border-bottom: 1px solid grey;
46 | }
47 |
48 | .list-landscape-container-swiper {
49 | height: 200px;
50 | }
51 |
52 | .list-landscape-container-swiper-item {
53 | margin-left: 11px;
54 | }
55 |
56 | .list-landscape-container-swiper-item-img {
57 | width: 100%;
58 | height: auto;
59 | border-radius: 8px;
60 | }
61 |
62 | .tip {
63 | margin: 10px;
64 | }
65 |
66 | .yulan {
67 | width: 240px;
68 | height: 135px;
69 | border: 1px solid grey;
70 | border-radius: 10px;
71 | display: flex;
72 | justify-content: center;
73 | align-items: center;
74 | margin-left: 40px;
75 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/default-image/default-image.js:
--------------------------------------------------------------------------------
1 | // pages/manage/media/default-image/default-image.js
2 | const app = getApp()
3 |
4 | const db = wx.cloud.database()
5 |
6 | Page({
7 |
8 | /**
9 | * 页面的初始数据
10 | */
11 | data: {
12 | default: null,
13 | default_id: null,
14 | defaulturl: null,
15 | },
16 |
17 | /**
18 | * 生命周期函数--监听页面加载
19 | */
20 | onLoad(options) {
21 | this.get()
22 | },
23 |
24 | get() {
25 | db.collection('media')
26 | .where({
27 | name: "默认图片"
28 | })
29 | .get()
30 | .then(res => {
31 | console.log('success', res.data[0].img)
32 | this.setData({
33 | default: res.data[0].img,
34 | default_id: res.data[0]._id
35 | })
36 | })
37 | .catch(err => {
38 | console.log('fail', err)
39 | })
40 | },
41 |
42 | getDefault() {
43 | var that = this
44 | wx.chooseMedia({
45 | count: 1,
46 | success(res) {
47 | console.log(res.tempFiles)
48 | var po = res.tempFiles[0].tempFilePath.lastIndexOf(".")
49 | var ext = res.tempFiles[0].tempFilePath.slice(po)
50 | wx.cloud.uploadFile({
51 | cloudPath: new Date().getTime() + ext,
52 | filePath: res.tempFiles[0].tempFilePath,
53 | success(res) {
54 | console.log(res.fileID)
55 | that.setData({
56 | defaulturl: res.fileID
57 | })
58 | }
59 | })
60 | }
61 | })
62 | },
63 |
64 | updateDefault() {
65 | if (this.data.defaulturl != null) {
66 | wx.cloud.callFunction({
67 | name: 'update_media',
68 | data: {
69 | _id: this.data.default_id,
70 | img: this.data.defaulturl,
71 | }
72 | })
73 | .then(res => {
74 | console.log('success', res)
75 | wx.showToast({
76 | title: '添加成功',
77 | icon: 'success',
78 | duration: 2000
79 | })
80 | this.get()
81 | })
82 | .catch(err => {
83 | console.log('fail', err)
84 | })
85 | } else {
86 | wx.showToast({
87 | title: '请选择图片',
88 | icon: 'none',
89 | duration: 2000
90 | })
91 | }
92 | },
93 | })
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/default-image/default-image.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "地点默认图片"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/default-image/default-image.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 地点默认图片管理
8 |
9 |
10 |
11 |
12 |
15 |
16 |
17 | 为确保图片观感,建议上传原图
18 |
19 |
20 |
21 | 预览效果
22 |
23 |
24 |
25 | 选择图片后可以查看预览效果
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | 提示:上传新图片会覆盖旧图片
34 |
35 |
36 |
39 |
40 |
41 | 实际效果
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/default-image/default-image.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/media/default-image/default-image.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-container {
13 | margin-bottom: 30px;
14 | margin: 10px;
15 | }
16 |
17 | .card-container-title {
18 | display: flex;
19 | align-items: center;
20 | flex-direction: row;
21 | margin-bottom: 10px;
22 |
23 | }
24 |
25 | .card-container-title-img {
26 | height: 25px;
27 | width: 25px;
28 | }
29 |
30 | .card-container-title-font {
31 | width: 100%;
32 | color: #73a5d6;
33 | margin: 15px 0;
34 | font-size: 30px;
35 | text-align: center;
36 | }
37 |
38 | .card-container-container {
39 | border-bottom: 10px solid white;
40 | }
41 |
42 | .card-container-container-title {
43 | margin: 10px 0 10px 0;
44 | display: flex;
45 | justify-content: space-between;
46 | align-items: center;
47 | font-size: larger;
48 | }
49 |
50 | .red {
51 | color: red;
52 | }
53 |
54 | .no {
55 | justify-content: flex-start;
56 | }
57 |
58 | .title {
59 | border-bottom: 1px solid grey;
60 | }
61 |
62 | .tip {
63 | margin: 10px;
64 | }
65 |
66 | .card-container-form-list-img {
67 | width: 100%;
68 | display: flex;
69 | justify-content: center;
70 | align-items: center;
71 | }
72 |
73 | .yulan {
74 | width: 240px;
75 | height: 135px;
76 | border: 1px solid grey;
77 | border-radius: 10px;
78 | display: flex;
79 | justify-content: center;
80 | align-items: center;
81 | margin-left: 40px;
82 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/map-img/map-img.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "校园地图图片"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/map-img/map-img.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 地图图片管理
8 |
9 |
10 |
11 |
12 |
15 |
16 |
17 | 为确保地图观感,请上传原图
18 |
19 |
20 |
21 | 预览效果
22 |
23 |
24 |
25 | 选择图片后可以查看预览效果
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | 提示:上传新图片会覆盖旧图片
34 |
35 |
36 |
39 |
40 |
41 | 实际效果
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/map-img/map-img.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/media/map-img/map-img.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-container {
13 | margin-bottom: 30px;
14 | margin: 10px;
15 | }
16 |
17 | .card-container-title {
18 | display: flex;
19 | align-items: center;
20 | flex-direction: row;
21 | margin-bottom: 10px;
22 |
23 | }
24 |
25 | .card-container-title-font {
26 | width: 100%;
27 | color: #73a5d6;
28 | margin: 15px 0;
29 | font-size: 30px;
30 | text-align: center;
31 | }
32 |
33 | .card-container-container {
34 | border-bottom: 10px solid white;
35 | }
36 |
37 | .card-container-container-title {
38 | margin: 10px 0 10px 0;
39 | display: flex;
40 | justify-content: space-between;
41 | align-items: center;
42 | font-size: larger;
43 | }
44 |
45 | .red {
46 | color: red;
47 | }
48 |
49 | .no {
50 | justify-content: flex-start;
51 | }
52 |
53 | .title {
54 | border-bottom: 1px solid grey;
55 | }
56 |
57 | .tip {
58 | margin: 10px;
59 | }
60 |
61 | .card-container-form-list-img {
62 | width: 100%;
63 | display: flex;
64 | justify-content: center;
65 | align-items: center;
66 | }
67 |
68 | .yulan {
69 | width: 240px;
70 | height: 135px;
71 | border: 1px solid grey;
72 | border-radius: 10px;
73 | display: flex;
74 | justify-content: center;
75 | align-items: center;
76 | margin-left: 40px;
77 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/video/video.js:
--------------------------------------------------------------------------------
1 | // pages/manage/media/video/video.js
2 | const app = getApp()
3 |
4 | const db = wx.cloud.database()
5 |
6 | Page({
7 |
8 | /**
9 | * 页面的初始数据
10 | */
11 | data: {
12 | video: null,
13 | video_id: null,
14 | videourl: null,
15 | },
16 |
17 | /**
18 | * 生命周期函数--监听页面加载
19 | */
20 | onLoad(options) {
21 | this.get()
22 | },
23 |
24 | get() {
25 | db.collection('media')
26 | .where({
27 | name: "视频"
28 | })
29 | .get()
30 | .then(res => {
31 | console.log('success', res.data[0].video)
32 | this.setData({
33 | video: res.data[0].img,
34 | video_id: res.data[0]._id
35 | })
36 | })
37 | .catch(err => {
38 | console.log('fail', err)
39 | })
40 | },
41 |
42 | getVideo() {
43 | var that = this
44 | wx.chooseMedia({
45 | count: 1,
46 | success(res) {
47 | console.log(res.tempFiles)
48 | var po = res.tempFiles[0].tempFilePath.lastIndexOf(".")
49 | var ext = res.tempFiles[0].tempFilePath.slice(po)
50 | wx.cloud.uploadFile({
51 | cloudPath: new Date().getTime() + ext,
52 | filePath: res.tempFiles[0].tempFilePath,
53 | success(res) {
54 | console.log(res.fileID)
55 | that.setData({
56 | videourl: res.fileID
57 | })
58 | }
59 | })
60 | }
61 | })
62 | },
63 |
64 | updateVideo() {
65 | if (this.data.videourl != null) {
66 | wx.cloud.callFunction({
67 | name: 'update_media',
68 | data: {
69 | _id: this.data.video_id,
70 | img: this.data.videourl,
71 | }
72 | })
73 | .then(res => {
74 | console.log('success', res)
75 | wx.showToast({
76 | title: '添加成功',
77 | icon: 'success',
78 | duration: 2000
79 | })
80 | app.globalData.introductionRefresh = true; // 标记 page介绍页 需刷新
81 | this.get()
82 | })
83 | .catch(err => {
84 | console.log('fail', err)
85 | })
86 | } else {
87 | wx.showToast({
88 | title: '请选择视频',
89 | icon: 'none',
90 | duration: 2000
91 | })
92 | }
93 | },
94 | })
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/video/video.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "视频"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/video/video.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 视频管理
8 |
9 |
10 |
11 |
12 |
15 |
16 |
17 | 预览效果
18 |
19 |
20 |
21 | 选择视频后可以查看预览效果
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | 提示:上传新视频会覆盖旧视频
30 |
31 |
32 |
33 | 请不要上传过大的视频
34 |
35 |
36 |
39 |
40 |
41 | 实际效果
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/media/video/video.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/media/video/video.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-container {
13 | margin-bottom: 30px;
14 | margin: 10px;
15 | }
16 |
17 | .card-container-title {
18 | display: flex;
19 | align-items: center;
20 | flex-direction: row;
21 | margin-bottom: 10px;
22 |
23 | }
24 |
25 | .card-container-title-font {
26 | width: 100%;
27 | color: #73a5d6;
28 | margin: 15px 0;
29 | font-size: 30px;
30 | text-align: center;
31 | }
32 |
33 | .card-container-container {
34 | border-bottom: 10px solid white;
35 | }
36 |
37 | .card-container-container-title {
38 | margin: 10px 0 10px 0;
39 | display: flex;
40 | justify-content: space-between;
41 | align-items: center;
42 | font-size: larger;
43 | }
44 |
45 | .title {
46 | border-bottom: 1px solid grey;
47 | }
48 |
49 | .video {
50 | display: flex;
51 | justify-content: center;
52 | align-items: center;
53 | }
54 |
55 | .tip {
56 | margin: 10px;
57 | }
58 |
59 | .yulan {
60 | width: 240px;
61 | height: 135px;
62 | border: 1px solid grey;
63 | border-radius: 10px;
64 | display: flex;
65 | justify-content: center;
66 | align-items: center;
67 | margin-left: 40px;
68 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/schoolguide-list/schoolguide-list.js:
--------------------------------------------------------------------------------
1 | // pages/manage/guide-list/guide-list.js
2 | const app = getApp()
3 |
4 | const db = wx.cloud.database()
5 | const _ = db.command
6 |
7 | Page({
8 |
9 | /**
10 | * 页面的初始数据
11 | */
12 | data: {
13 | schoolguide_list: [],
14 | key: null,
15 | },
16 |
17 | /**
18 | * 生命周期函数--监听页面加载
19 | */
20 | onLoad(options) {
21 | this.get()
22 | },
23 |
24 | get() {
25 | this.getschoolguide()
26 | },
27 |
28 | getschoolguide() {
29 | db.collection('schoolguide')
30 | .get()
31 | .then(res => {
32 | console.log('success', res)
33 | this.setData({
34 | schoolguide_list: res.data
35 | })
36 | })
37 | .catch(err => {
38 | console.log('fail', err)
39 | })
40 | },
41 |
42 | getKey(e) {
43 | this.setData({
44 | key: e.detail.value
45 | })
46 | },
47 |
48 | addschoolguide() {
49 | wx.navigateTo({
50 | url: './schoolguide/schoolguide?sid=1',
51 | })
52 | },
53 |
54 | manageschoolguide(e) {
55 | console.log(e.target.dataset._id)
56 | console.log(e.target.dataset.id)
57 | wx.navigateTo({
58 | url: './schoolguide/schoolguide?sid=2&_id=' + e.target.dataset._id,
59 | })
60 | },
61 | })
--------------------------------------------------------------------------------
/云开发项目/pages/manage/schoolguide-list/schoolguide-list.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "校园指南列表"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/schoolguide-list/schoolguide-list.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 校园指南管理
8 |
9 |
10 |
11 |
12 |
15 |
16 | 序号
17 | 校园指南
18 | 操作
19 |
20 |
21 |
22 | {{index+1}}
23 | {{item.title}}
24 |
25 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/schoolguide-list/schoolguide-list.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/guide-list/guide-list.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 10px 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-container {
13 | margin-bottom: 30px;
14 | margin: 10px;
15 | }
16 |
17 | .card-container-title {
18 | display: flex;
19 | align-items: center;
20 | flex-direction: row;
21 | margin-bottom: 10px;
22 | }
23 |
24 | .card-container-title-font {
25 | width: 100%;
26 | color: #73a5d6;
27 | margin: 15px 0;
28 | font-size: 30px;
29 | text-align: center;
30 | }
31 |
32 | .card-container-container {
33 | border-bottom: 10px solid white;
34 | }
35 |
36 | .card-container-container-title {
37 | margin: 10px 0 10px 0;
38 | display: flex;
39 | justify-content: space-between;
40 | align-items: center;
41 | font-size: larger;
42 | }
43 |
44 | .card-container-container-title-title {
45 | width: 80px;
46 | height: 50px;
47 | display: flex;
48 | justify-content: center;
49 | align-items: center;
50 | }
51 |
52 | .title {
53 | border-bottom: 1px solid grey;
54 | }
55 |
56 | .card-container-container-site-title {
57 | width: 160px;
58 | height: 50px;
59 | display: flex;
60 | justify-content: center;
61 | align-items: center;
62 | font-size: large;
63 | text-align: center;
64 | flex-direction: column;
65 | }
66 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/schoolguide-list/schoolguide/schoolguide.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "校园指南"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/campus-list/campus-list.js:
--------------------------------------------------------------------------------
1 | // pages/manage/campus-list/campus-list.js
2 | const app = getApp()
3 |
4 | const db = wx.cloud.database()
5 | const _ = db.command
6 |
7 | Page({
8 |
9 | /**
10 | * 页面的初始数据
11 | */
12 | data: {
13 | campus_list: [],
14 | sid: 1,
15 | campus: 0,
16 | key: null,
17 | _id: null,
18 | },
19 |
20 | /**
21 | * 生命周期函数--监听页面加载
22 | */
23 | onLoad(options) {
24 | this.get()
25 | },
26 |
27 | get() {
28 | this.getcampus()
29 | },
30 |
31 | getcampus() {
32 | db.collection('campus')
33 | .get()
34 | .then(res => {
35 | console.log('success', res)
36 | this.setData({
37 | campus_list: res.data
38 | })
39 | })
40 | .catch(err => {
41 | console.log('fail', err)
42 | })
43 | },
44 |
45 | addcampus() {
46 | wx.navigateTo({
47 | url: './manage-campus/manage-campus?sid=1',
48 | })
49 | },
50 |
51 | managecampus(e) {
52 | console.log(e.target.dataset._id)
53 | console.log(e.target.dataset.id)
54 | wx.navigateTo({
55 | url: './campus/campus?sid=2&_id=' + e.target.dataset._id + '&id=' + e.target.dataset.id + '&name=' + e.target.dataset.name,
56 | })
57 | },
58 | })
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/campus-list/campus-list.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "校区列表"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/campus-list/campus-list.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 校区管理
8 |
9 |
10 |
11 |
12 |
15 |
16 |
17 | 序号
18 | 名称
19 | 操作
20 |
21 |
22 |
23 | {{index+1}}
24 | {{item.name}}
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/campus-list/campus-list.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/campus-list/campus-list.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 10px 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-container {
13 | margin-bottom: 30px;
14 | margin: 10px;
15 | }
16 |
17 | .card-container-title {
18 | display: flex;
19 | align-items: center;
20 | flex-direction: row;
21 | margin-bottom: 10px;
22 | }
23 |
24 | .card-container-title-font {
25 | width: 100%;
26 | color: #73a5d6;
27 | margin: 15px 0;
28 | font-size: 30px;
29 | text-align: center;
30 | }
31 |
32 | .card-container-container {
33 | border-bottom: 10px solid white;
34 | }
35 |
36 | .card-container-container-title {
37 | margin: 10px 0 10px 0;
38 | display: flex;
39 | justify-content: space-between;
40 | align-items: center;
41 | font-size: larger;
42 | }
43 |
44 | .card-container-container-title-title {
45 | width: 80px;
46 | height: 50px;
47 | display: flex;
48 | justify-content: center;
49 | align-items: center;
50 | }
51 |
52 | .title {
53 | border-bottom: 1px solid grey;
54 | }
55 |
56 | .card-container-container-site-title {
57 | width: 160px;
58 | height: 50px;
59 | display: flex;
60 | justify-content: center;
61 | align-items: center;
62 | font-size: large;
63 | text-align: center;
64 | flex-direction: column;
65 | }
66 |
67 | .choose {
68 | border-top: 10px solid #404481;
69 | background-color: white;
70 | }
71 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/campus-list/campus/campus.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "校区"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/campus-list/campus/campus.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/campus-list/campus/campus.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 10px 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-top {
13 | height: 60px;
14 | border-radius: 10px 10px 0 0;
15 | display: flex;
16 | justify-content: center;
17 | align-items: center;
18 | font-size: 22px;
19 | }
20 |
21 | .card-top-left {
22 | height: 100%;
23 | width: 50%;
24 | display: flex;
25 | justify-content: center;
26 | align-items: center;
27 | background-color: #f3f3f3;
28 | border-radius: 10px 0 0 0;
29 | }
30 |
31 | .card-top-right {
32 | height: 100%;
33 | width: 50%;
34 | display: flex;
35 | justify-content: center;
36 | align-items: center;
37 | background-color: #f3f3f3;
38 | border-radius: 0 10px 0 0;
39 | }
40 |
41 | .choose {
42 | background-color: white;
43 | }
44 |
45 | .card-container {
46 | margin-bottom: 30px;
47 | margin: 10px;
48 | }
49 |
50 | .card-container-title {
51 | display: flex;
52 | align-items: center;
53 | flex-direction: row;
54 | margin-bottom: 10px;
55 |
56 | }
57 |
58 | .card-container-title-img {
59 | height: 25px;
60 | width: 25px;
61 | }
62 |
63 | .card-container-title-font {
64 | color: #73a5d6;
65 | margin-left: 10px;
66 | font-size: 22px;
67 | }
68 |
69 | .card-container-form {
70 | border-bottom: 10px solid white;
71 | }
72 |
73 | .card-container-form-list {
74 | display: flex;
75 | margin: 10px;
76 | }
77 |
78 | .card-container-form-list-input {
79 | border: 1px solid grey;
80 | width: 190px;
81 | padding-left: 10px;
82 | border-radius: 8px;
83 | }
84 |
85 | .card-container-form-list-list-picker {
86 | width: 100px;
87 | border: 1px solid grey;
88 | border-radius: 8px;
89 | padding: 2px;
90 | text-align: center;
91 | color: white;
92 | background-color: #07c160;
93 | margin-right: 10px;
94 | }
95 |
96 | .card-container-form-list-img {
97 | width: 100%;
98 | display: flex;
99 | justify-content: center;
100 | align-items: center;
101 | margin: 10px 0;
102 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/campus-list/campus/choose-range/choose-range.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "学校范围选择"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/campus-list/campus/choose-range/choose-range.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/campus-list/campus/choose-range/choose-range.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/campus-list/campus/choose-range/choose-range.wxss */
2 | map {
3 | width: 100%;
4 | height: calc(100% - 135px);
5 | }
6 |
7 | .title {
8 | /* display: flex; */
9 | text-align: left;
10 | margin-top: 15px;
11 | }
12 |
13 | .title_text {
14 | color: black;
15 | font-weight: bold;
16 | margin-bottom: 5px;
17 | }
18 |
19 | .scroll {
20 | height: 300px;
21 | width: 100%;
22 | margin-bottom: 15px;
23 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/category-list/category-list.js:
--------------------------------------------------------------------------------
1 | // pages/manage/category-list/category-list.js
2 | const app = getApp()
3 |
4 | const db = wx.cloud.database()
5 | const _ = db.command
6 |
7 | Page({
8 |
9 | /**
10 | * 页面的初始数据
11 | */
12 | data: {
13 | category_list: [],
14 | key: null,
15 | },
16 |
17 | /**
18 | * 生命周期函数--监听页面加载
19 | */
20 | onLoad(options) {
21 | this.get()
22 | },
23 |
24 | get() {
25 | this.getCategory()
26 | },
27 |
28 | getCategory() {
29 | db.collection('category')
30 | .get()
31 | .then(res => {
32 | console.log('success', res)
33 | this.setData({
34 | category_list: res.data
35 | })
36 | })
37 | .catch(err => {
38 | console.log('fail', err)
39 | })
40 | },
41 |
42 | getKey(e) {
43 | this.setData({
44 | key: e.detail.value
45 | })
46 | },
47 |
48 | addcategory() {
49 | wx.navigateTo({
50 | url: './category/category?sid=1',
51 | })
52 | },
53 |
54 | managecategory(e) {
55 | console.log(e.target.dataset._id)
56 | console.log(e.target.dataset.id)
57 | wx.navigateTo({
58 | url: './category/category?sid=2&_id=' + e.target.dataset._id + '&id=' + e.target.dataset.id + '&name=' + e.target.dataset.name,
59 | })
60 | },
61 | })
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/category-list/category-list.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "地点类型列表"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/category-list/category-list.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 地点类型管理
8 |
9 |
10 |
11 |
12 |
15 |
16 | 序号
17 | 地点类型
18 | 操作
19 |
20 |
21 |
22 | {{index+1}}
23 | {{item.name}}
24 |
25 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/category-list/category-list.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/category-list/category-list.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 10px 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-container {
13 | margin-bottom: 30px;
14 | margin: 10px;
15 | }
16 |
17 | .card-container-title {
18 | display: flex;
19 | align-items: center;
20 | flex-direction: row;
21 | margin-bottom: 10px;
22 | }
23 |
24 | .card-container-title-font {
25 | width: 100%;
26 | color: #73a5d6;
27 | margin: 15px 0;
28 | font-size: 30px;
29 | text-align: center;
30 | }
31 |
32 | .card-container-container {
33 | border-bottom: 10px solid white;
34 | }
35 |
36 | .card-container-container-title {
37 | margin: 10px 0 10px 0;
38 | display: flex;
39 | justify-content: space-between;
40 | align-items: center;
41 | font-size: larger;
42 | }
43 |
44 | .card-container-container-title-title {
45 | width: 80px;
46 | height: 50px;
47 | display: flex;
48 | justify-content: center;
49 | align-items: center;
50 | }
51 |
52 | .title {
53 | border-bottom: 1px solid grey;
54 | }
55 |
56 | .card-container-container-site-title {
57 | width: 160px;
58 | height: 50px;
59 | display: flex;
60 | justify-content: center;
61 | align-items: center;
62 | font-size: large;
63 | text-align: center;
64 | flex-direction: column;
65 | }
66 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/category-list/category/category.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "地点类型"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/category-list/category/category.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 地点类型管理
6 |
7 |
8 |
9 |
10 |
11 | 新增地点类型
12 |
13 |
14 |
15 |
16 |
17 | 管理地点类型
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | 地点类型名:
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/category-list/category/category.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/site/category-list/category/category.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 10px 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-top {
13 | height: 60px;
14 | border-radius: 10px 10px 0 0;
15 | display: flex;
16 | justify-content: center;
17 | align-items: center;
18 | font-size: 22px;
19 | }
20 |
21 | .card-container {
22 | margin-bottom: 30px;
23 | margin: 10px;
24 | }
25 |
26 | .card-container-title {
27 | display: flex;
28 | align-items: center;
29 | flex-direction: row;
30 | margin-bottom: 10px;
31 |
32 | }
33 |
34 | .card-container-title-font {
35 | color: #73a5d6;
36 | margin-left: 10px;
37 | font-size: 22px;
38 | }
39 |
40 | .card-container-form {
41 | border-bottom: 10px solid white;
42 | }
43 |
44 | .card-container-form-list {
45 | display: flex;
46 | margin: 10px;
47 | }
48 |
49 | .card-container-form-list-input {
50 | border: 1px solid grey;
51 | width: 190px;
52 | padding-left: 10px;
53 | border-radius: 8px;
54 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/default-site/default-site.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "默认地点"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/default-site/default-site.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | 默认地点
9 |
10 |
11 |
12 | 定位不在学校时,地图显示的地点
13 |
14 | 当前默认地点:{{default_site_name}}
15 |
16 |
17 |
18 |
19 |
20 | 搜索
21 |
22 |
23 |
24 |
25 |
26 |
27 | {{item.name}}
28 |
29 |
30 |
31 |
32 |
33 | 序号
34 | 地点
35 | 操作
36 |
37 |
38 |
39 | {{index+1}}
40 |
41 | {{item.name}}
42 |
43 |
44 | {{item.aliases}}
45 |
46 |
47 |
48 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/range/polygons/polygons.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "点与多边形关系"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/range/polygons/polygons.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 点
6 |
7 | {{isAtPolygons ? '在' : '不在'}}
8 |
9 | 多边形内
10 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/range/polygons/polygons.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/site/range/polygons/polygons.wxss */
2 | page{
3 | height: 100%;
4 | }
5 |
6 | map {
7 | width: 100%;
8 | height: calc(100% - 100px);
9 | }
10 |
11 | .text {
12 | display: flex;
13 | justify-content: center;
14 | align-items: center;
15 | font-size: x-large;
16 | margin: 5px;
17 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/range/range.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "学校范围"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/range/range.wxml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/range/range.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/site/range/range.wxss */
2 | map {
3 | width: 100%;
4 | height: calc(100% - 135px);
5 | }
6 |
7 | .control-btn {
8 | position: absolute;
9 | width: 45px;
10 | z-index: 99;
11 | background: #FFF;
12 | text-align: center;
13 | border-radius: 4px;
14 | right: 10px;
15 | bottom: 40px;
16 | }
17 |
18 | .img {
19 | height: 40px;
20 | width: 40px;
21 | }
22 |
23 | .text {
24 | font-size: small;
25 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/site-list/site-list.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "地点列表"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/site-list/site/choose-point/choose-point.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "地图选点"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/site-list/site/choose-point/choose-point.wxml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/site-list/site/choose-point/choose-point.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/site/site-list/site/choose-point/choose-point.wxss */
2 | map {
3 | width: 100%;
4 | height: calc(100% - 80px);
5 | }
6 |
7 | .img {
8 | height: 24px;
9 | width: 24px;
10 | position: absolute;
11 | top: 50%;
12 | left: 50%;
13 | transform: translate(-50%, -50%);
14 | }
15 |
16 | .button {
17 | margin-top: 10px;
18 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/site-list/site/site.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "地点"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/manage/site/site-list/site/site.wxss:
--------------------------------------------------------------------------------
1 | /* pages/manage/site/site-list/site/admin.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 10px 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-top {
13 | height: 60px;
14 | border-radius: 10px 10px 0 0;
15 | display: flex;
16 | justify-content: center;
17 | align-items: center;
18 | font-size: 22px;
19 | }
20 |
21 | .card-container {
22 | margin-bottom: 30px;
23 | margin: 10px;
24 | }
25 |
26 | .card-container-title {
27 | display: flex;
28 | align-items: center;
29 | flex-direction: row;
30 | margin-bottom: 10px;
31 |
32 | }
33 |
34 | .card-container-title-font {
35 | color: #73a5d6;
36 | margin-left: 10px;
37 | font-size: 22px;
38 | }
39 |
40 | .card-container-form {
41 | border-bottom: 10px solid white;
42 | }
43 |
44 | .card-container-form-list {
45 | display: flex;
46 | margin: 10px;
47 | flex-direction: column;
48 | }
49 |
50 | .card-container-form-list-list {
51 | display: flex;
52 | margin: 10px;
53 | align-items: center;
54 | }
55 |
56 | .card-container-form-list-list-text {
57 | width: 80px;
58 | }
59 |
60 | .card-container-form-list-list-input {
61 | border: 1px solid grey;
62 | width: 190px;
63 | padding-left: 10px;
64 | border-radius: 8px;
65 | }
66 |
67 | .height_input {
68 | height: 75px;
69 | }
70 |
71 | .card-container-form-list-list-picker {
72 | width: 100px;
73 | border: 1px solid grey;
74 | border-radius: 8px;
75 | padding: 2px;
76 | text-align: center;
77 | color: white;
78 | background-color: #07c160;
79 | margin-right: 10px;
80 | }
81 |
82 | .card-container-form-list-img {
83 | width: 100%;
84 | display: flex;
85 | justify-content: center;
86 | align-items: center;
87 | }
--------------------------------------------------------------------------------
/云开发项目/pages/map/instruction/instruction.js:
--------------------------------------------------------------------------------
1 | // pages/map/instruction/instruction.js
2 | import media from '@data/media'
3 |
4 | const db = wx.cloud.database()
5 |
6 | Page({
7 |
8 | /**
9 | * 页面的初始数据
10 | */
11 | data: {
12 | map: media.map,
13 |
14 | // 默认地点
15 | default_point: "",
16 | },
17 |
18 | /**
19 | * 生命周期函数--监听页面加载
20 | */
21 | onLoad(options) {
22 | this.setData({
23 | default_point: options.name
24 | })
25 | },
26 |
27 | // 跳转至地点汇总页
28 | tosite() {
29 | wx.switchTab({
30 | url: '../../site/site',
31 | })
32 | },
33 |
34 | // 跳转至地图页
35 | tomap() {
36 | wx.switchTab({
37 | url: '../../map/map',
38 | })
39 | }
40 | })
--------------------------------------------------------------------------------
/云开发项目/pages/map/instruction/instruction.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "使用说明"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/map/instruction/instruction.wxss:
--------------------------------------------------------------------------------
1 | /* pages/map/instruction/instruction.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 10px 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-container {
13 | margin-bottom: 30px;
14 | margin: 10px;
15 | padding-top: 20px;
16 | }
17 |
18 | .card-container-title {
19 | display: flex;
20 | align-items: center;
21 | flex-direction: row;
22 | margin-bottom: 10px;
23 |
24 | }
25 |
26 | .card-container-title-img {
27 | height: 25px;
28 | width: 25px;
29 | }
30 |
31 | .card-container-title-font {
32 | color: #73a5d6;
33 | margin-left: 10px;
34 | font-size: 22px;
35 | }
36 |
37 | .card-container-container {
38 | border-bottom: 10px solid white;
39 | }
40 |
41 | .card-container-container-instr {
42 | margin: 0 2px 0 2px;
43 | display: flex;
44 | align-items: center;
45 | text-align: center;
46 | flex-direction: row;
47 | border-left: 1px solid grey;
48 | border-right: 1px solid grey;
49 | border-bottom: 1px solid grey;
50 | }
51 |
52 | .card-container-container-instr-left {
53 | width: 30px;
54 | }
55 |
56 | .card-container-container-instr-right {
57 | width: 305px;
58 | line-height: 30px;
59 | border-left: 1px solid grey;
60 | }
61 |
62 | .top {
63 | border-top: 1px solid grey;
64 | margin-top: 10px;
65 | }
66 |
67 | .bottom {
68 | border-top: 10px solid white;
69 | }
70 |
71 | .button {
72 | margin-top: 20px;
73 | margin-bottom: 20px;
74 | }
--------------------------------------------------------------------------------
/云开发项目/pages/map/map.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "mp-dialog": "weui-miniprogram/dialog/dialog"
4 | },
5 | "navigationBarTitleText": "地图"
6 | }
--------------------------------------------------------------------------------
/云开发项目/pages/map/search/search.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "搜索"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/map/search/search.wxss:
--------------------------------------------------------------------------------
1 | /* pages/map/search/search.wxss */
2 | .root {
3 | display: flex;
4 | justify-content: space-around;
5 | align-items: center;
6 | margin: 10px;
7 | }
8 |
9 | .input {
10 | width: 60%;
11 | height: 30px;
12 | border: 1px solid grey;
13 | border-radius: 15px;
14 | padding-left: 15px;
15 | }
16 |
17 | .input_search {
18 | width: 20%;
19 | height: 28px;
20 | text-align: center;
21 | border: 1px solid grey;
22 | border-radius: 15px;
23 | background-color: #07c160;
24 | color: white;
25 | font-size: 18px;
26 | font-weight: bold;
27 | display: flex;
28 | justify-content: center;
29 | align-items: center;
30 | }
31 |
32 | .result {
33 | margin: 15px;
34 | }
35 |
36 | .middle {
37 | font-size: large;
38 | color: grey;
39 | }
40 |
41 | .result-list {
42 | height: 50px;
43 | margin: 10px;
44 | display: flex;
45 | align-items: center;
46 | justify-content: space-between;
47 | border-bottom: 1px solid gainsboro;
48 | }
49 |
50 | .item {
51 | display: flex;
52 | flex-direction: column;
53 | }
54 |
55 | .search-icon {
56 | width: 20px;
57 | height: 20px;
58 | /* align-self: center; */
59 | /* margin-left: 5px; */
60 | }
61 |
62 | .icon-right {
63 | width: 50rpx;
64 | height: 50rpx;
65 | }
66 |
67 | /* 标题部分 */
68 | .read-in {
69 | padding: 0 30rpx;
70 | }
71 |
72 | .headline {
73 | padding-top: .5rem;
74 | }
75 |
76 | .head-headline {
77 | width: 100%;
78 | /* height: 45rpx; */
79 | display: flex;
80 | font-size: 32rpx;
81 | font-weight: bold;
82 | /* align-content: center; */
83 | align-items: center;
84 | justify-content: space-between;
85 | }
86 |
87 | .headline-size {
88 | position: relative;
89 | left: -210rpx;
90 | top: 0rpx;
91 | }
92 |
93 | /* 内容部分 */
94 | .lately-main {
95 | margin-top: 20rpx;
96 | overflow: hidden;
97 | }
98 |
99 | .lately-main .chunk {
100 | display: inline-block;
101 | font-size: 24rpx;
102 | line-height: 20rpx;
103 | padding: 10rpx 21rpx;
104 | background: #f5f5f5;
105 | margin-right: 20rpx;
106 | border: 1px solid #DCDCDC;
107 | border-radius: 18.5rpx;
108 | color: #666666;
109 | margin-bottom: 26rpx;
110 | /* float: left; */
111 | }
--------------------------------------------------------------------------------
/云开发项目/pages/more/more.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "更多"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/more/more.wxss:
--------------------------------------------------------------------------------
1 | /* pages/more/more.wxss */
2 | page {
3 | background: #80fcdd;
4 | }
5 |
6 | .my {
7 | height: 100%;
8 | background: linear-gradient(to bottom, #003cff9c, #80fcdd);
9 | display: flex;
10 | flex-direction: column;
11 | align-items: center;
12 | }
13 |
14 | .center {
15 | width: 95%;
16 | /* height: 360rpx; */
17 | display: flex;
18 | justify-content: center;
19 | align-items: center;
20 | margin: 10px auto;
21 | }
22 |
23 | .center_top {
24 | display: flex;
25 | justify-content: center;
26 | align-items: center;
27 | width: 100%;
28 | height: 260rpx;
29 | margin: 0 auto;
30 | background: white;
31 | border-radius: 5px;
32 | }
33 |
34 | .center_top_card {
35 | display: flex;
36 | align-items: center;
37 | width: 80%;
38 | height: 180rpx;
39 | border-bottom: 1px solid #2f80ed;
40 | }
41 |
42 | .center_img {
43 | width: 122rpx;
44 | height: 122rpx;
45 | border-radius: 50%;
46 | overflow: hidden;
47 | }
48 |
49 | .user_head {
50 | width: 100%;
51 | height: 100%;
52 | }
53 |
54 | .center_info {
55 | display: flex;
56 | flex-direction: column;
57 | margin-left: 20px;
58 | }
59 |
60 | .center_name {
61 | font-size: 44rpx;
62 | }
63 |
64 | .center_welcome {
65 | font-size: 30rpx;
66 | margin-top: 2px;
67 | color: grey;
68 | }
69 |
70 | .menu {
71 | width: 95%;
72 | background: white;
73 | display: flex;
74 | flex-direction: column;
75 | align-items: center;
76 | margin-bottom: 16rpx;
77 | padding-bottom: 20rpx;
78 | border-radius: 5px;
79 | font-size: 36rpx;
80 | color: #444444;
81 | }
82 |
83 | .menu_row {
84 | display: flex;
85 | flex-direction: row;
86 | display: flex;
87 | align-items: center;
88 | height: 100rpx;
89 | margin-left: 4px;
90 | margin-right: 4px;
91 | border-bottom: 1px solid #56ccf2;
92 | width: 95%;
93 | background-color: white;
94 | }
95 |
96 | .open_type {
97 | padding: 0;
98 | font-size: 36rpx;
99 | font-weight: normal;
100 | color: #444444;
101 | border-radius: 0;
102 | }
--------------------------------------------------------------------------------
/云开发项目/pages/more/statement/statement.js:
--------------------------------------------------------------------------------
1 | // pages/more/statement/statement.js
2 | import data from '@data/data'
3 | import media from '@data/media'
4 | import school from '@data/school'
5 |
6 | Page({
7 |
8 | /**
9 | * 页面的初始数据
10 | */
11 | data: {
12 | school_name_full: school.school_information.school_name_full,
13 |
14 | miniprogram_name: data.miniprogram_name,
15 | information: data.information,
16 |
17 | message: media.message,
18 | statement: media.statement,
19 | zhixie: media.zhixie,
20 |
21 | zhixie_kaifazhe: media.zhixie_kaifazhe,
22 | zhixie_up: media.zhixie_up,
23 | zhixie_honghui: media.zhixie_honghui,
24 |
25 | notes: media.notes,
26 | },
27 | })
--------------------------------------------------------------------------------
/云开发项目/pages/more/statement/statement.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "软件声明"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/school/guidance/guidance.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "校园指南"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/school/guidance/guidance.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | {{item.title}}
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/云开发项目/pages/school/school.js:
--------------------------------------------------------------------------------
1 | // pages/school/school.js
2 | import media from '@data/media'
3 |
4 | const app = getApp()
5 |
6 | const db = wx.cloud.database()
7 |
8 | Page({
9 | /**
10 | * 页面的初始数据
11 | */
12 | data: {
13 | allWords: [],
14 |
15 | green_arrow: media.green_arrow
16 | },
17 |
18 | /**
19 | * 生命周期函数--监听页面加载
20 | */
21 | onLoad(options) {
22 | this.get()
23 | },
24 |
25 | /**
26 | * 生命周期函数--监听页面显示
27 | */
28 | onShow() {
29 | if (app.globalData.schoolguideRefresh) {
30 | this.get()
31 | app.globalData.schoolguideRefresh = false // 重置标记
32 | }
33 | },
34 |
35 | get() {
36 | db.collection('schoolguide')
37 | .get()
38 | .then(res => {
39 | console.log('success', res)
40 | this.setData({
41 | allWords: res.data
42 | })
43 | })
44 | .catch(err => {
45 | console.log('fail', err)
46 | })
47 | },
48 |
49 | /* 关于侧边栏,点击跳转 */
50 | jump(event) {
51 | let id = event.currentTarget.dataset.id;
52 | // 获取到跳转锚点id
53 | wx.navigateTo({
54 | url: './guidance/guidance?id=' + id, // 通过url传到跳转页面
55 | })
56 | },
57 |
58 | })
--------------------------------------------------------------------------------
/云开发项目/pages/school/school.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "校园指南"
4 | }
--------------------------------------------------------------------------------
/云开发项目/pages/school/school.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 📖
8 | {{item.title}}
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/云开发项目/pages/school/school.wxss:
--------------------------------------------------------------------------------
1 | /* pages/school/school.wxss */
2 | page {
3 | background-color: #56CCF2;
4 | }
5 |
6 | .cu-list {
7 | overflow: hidden;
8 | margin-right: 30rpx;
9 | margin-left: 30rpx;
10 | border-radius: 20rpx;
11 | /* display: block; */
12 | margin-top: 50rpx;
13 | margin-bottom: 50rpx;
14 | /* padding-top: 50rpx; */
15 | /* padding-bottom: 50rpx; */
16 | /* --ShadowSize: 0rpx 40rpx 100rpx 0rpx; */
17 | }
18 |
19 | .cu-item {
20 | padding-right: 90rpx;
21 | position: relative;
22 | display: flex;
23 | padding: 0 30rpx;
24 | min-height: 100rpx;
25 | background-color: #ffffff;
26 | justify-content: space-between;
27 | align-items: center;
28 |
29 | /* transition: all .6s ease-in-out 0s; */
30 | /* transform: translateX(0rpx); */
31 | border-bottom: 1px solid gray;
32 | }
33 |
34 | .cu-item:last-child {
35 | border-bottom: 0;
36 | }
37 |
38 | .content {
39 | width: 100%;
40 | display: flex;
41 | justify-content: space-between;
42 | /* font-size: 30rpx; */
43 | /* line-height: 1.6em; */
44 | /* flex: 1; */
45 | }
46 |
47 | .cuIcon-link {
48 | display: inline-block;
49 | margin-right: 10rpx;
50 | width: 1.6em;
51 | text-align: center;
52 |
53 | /* color: #0081ff; */
54 |
55 | /* font-family: "cuIcon"; */
56 | /* font-size: inherit; */
57 | /* font-style: normal; */
58 | }
59 |
60 | .text-grey {
61 | /* color: #8799a3; */
62 | color: grey;
63 | }
--------------------------------------------------------------------------------
/云开发项目/pages/site/site.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "mp-dialog": "weui-miniprogram/dialog/dialog"
4 | },
5 | "navigationBarTitleText": "地点汇总"
6 | }
--------------------------------------------------------------------------------
/云开发项目/pages/site/site.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | {{item.name}}
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | {{site_data[category].name}}
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | {{item.name}}\n{{item.aliases}}
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | {{card.aliases}}
44 |
45 | {{card.desc}}
46 |
47 |
--------------------------------------------------------------------------------
/云开发项目/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "cloudfunctionRoot": "cloudfunctions/",
3 | "description": "项目配置文件",
4 | "setting": {
5 | "bundle": false,
6 | "userConfirmedBundleSwitch": false,
7 | "urlCheck": true,
8 | "scopeDataCheck": false,
9 | "coverView": true,
10 | "es6": true,
11 | "postcss": true,
12 | "compileHotReLoad": false,
13 | "lazyloadPlaceholderEnable": false,
14 | "preloadBackgroundData": false,
15 | "minified": true,
16 | "autoAudits": false,
17 | "newFeature": false,
18 | "uglifyFileName": false,
19 | "uploadWithSourceMap": true,
20 | "useIsolateContext": true,
21 | "nodeModules": false,
22 | "enhance": true,
23 | "useMultiFrameRuntime": true,
24 | "showShadowRootInWxmlPanel": true,
25 | "packNpmManually": false,
26 | "enableEngineNative": false,
27 | "packNpmRelationList": [],
28 | "minifyWXSS": true,
29 | "showES6CompileOption": false,
30 | "minifyWXML": true,
31 | "babelSetting": {
32 | "ignore": [],
33 | "disablePlugins": [],
34 | "outputPath": ""
35 | },
36 | "condition": false,
37 | "ignoreUploadUnusedFiles": true
38 | },
39 | "compileType": "miniprogram",
40 | "condition": {},
41 | "editorSetting": {
42 | "tabIndent": "insertSpaces",
43 | "tabSize": 4
44 | },
45 | "simulatorPluginLibVersion": {},
46 | "packOptions": {
47 | "ignore": [],
48 | "include": []
49 | },
50 | "appid": "wxa67dbc9511ee06a6",
51 | "libVersion": "3.8.0"
52 | }
--------------------------------------------------------------------------------
/云开发项目/project.private.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
3 | "projectname": "%E6%A0%A1%E5%9B%AD%E5%AF%BC%E8%88%AA-%E4%BA%91%E5%BC%80%E5%8F%91",
4 | "setting": {
5 | "compileHotReLoad": true
6 | },
7 | "libVersion": "3.8.0",
8 | "condition": {
9 | "miniprogram": {
10 | "list": [
11 | {
12 | "name": "pages/map/admin/admin",
13 | "pathName": "pages/admin/admin",
14 | "query": "",
15 | "launchMode": "default",
16 | "scene": null
17 | }
18 | ]
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/云开发项目/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/云数据库文件/admin.json:
--------------------------------------------------------------------------------
1 | {
2 | "_id": "1288a0db645788cf000b3f20168d2ba2",
3 | "name": "admin",
4 | "openid": ""
5 | }
--------------------------------------------------------------------------------
/云数据库文件/category.json:
--------------------------------------------------------------------------------
1 | {
2 | "_id": "1",
3 | "name": "教学楼"
4 | }
5 | {
6 | "_id": "2",
7 | "name": "行政楼"
8 | }
9 | {
10 | "_id": "3",
11 | "name": "二级学院"
12 | }
13 | {
14 | "_id": "4",
15 | "name": "校门"
16 | }
17 | {
18 | "_id": "5",
19 | "name": "会议厅"
20 | }
21 | {
22 | "_id": "6",
23 | "name": "体育场所"
24 | }
25 | {
26 | "_id": "7",
27 | "name": "广场"
28 | }
29 | {
30 | "_id": "8",
31 | "name": "风景"
32 | }
33 | {
34 | "_id": "9",
35 | "name": "美食"
36 | }
37 | {
38 | "_id": "10",
39 | "name": "学生服务"
40 | }
41 | {
42 | "_id": "11",
43 | "name": "生活服务"
44 | }
45 | {
46 | "_id": "12",
47 | "name": "宿舍公寓"
48 | }
49 | {
50 | "_id": "13",
51 | "name": "其他"
52 | }
--------------------------------------------------------------------------------
/云数据库文件/media.json:
--------------------------------------------------------------------------------
1 | {
2 | "_id": "1",
3 | "img": "",
4 | "name": "地图"
5 | }
6 | {
7 | "_id": "2",
8 | "name": "轮播图",
9 | "img": []
10 | }
11 | {
12 | "_id": "3",
13 | "name": "视频",
14 | "img": ""
15 | }
16 | {
17 | "_id": "4",
18 | "name": "默认图片",
19 | "img": ""
20 | }
21 | {
22 | "_id": "5",
23 | "name": "默认地点",
24 | "s_id": "1"
25 | }
26 | {
27 | "_id": "5",
28 | "name": "学校范围",
29 | "range": null
30 | }
--------------------------------------------------------------------------------
/云数据库文件/schoolguide.js:
--------------------------------------------------------------------------------
1 | {
2 | "_id": "1",
3 | "title": "关于小程序",
4 | "keywords": ["学校", "校园"],
5 | "content": "
由于学校部分区域尚在施工建设阶段,目前市面上的导航软件尚未涵盖该地区地图信息,为此,特别开发了这个小程序,旨在为同学们提供基础的地图展示服务。
鉴于现有资料有限,本小程序可能存在一些不足之处,请在使用时以实际情况为准,敬请谅解。
",
6 | "img": ["/images/school_logo.png"]
7 | }
--------------------------------------------------------------------------------
/云数据库文件/site.json:
--------------------------------------------------------------------------------
1 | {
2 | "_id": "1",
3 | "name": "东校门",
4 | "aliases": "正大门",
5 | "img": "",
6 | "desc": "学校正大门,可通行车辆,有门禁",
7 | "latitude": 25.09551,
8 | "longitude": 110.28045,
9 | "c_id": "4",
10 | "browse": 0
11 | }
--------------------------------------------------------------------------------
/地图参数获取工具/app.js:
--------------------------------------------------------------------------------
1 | // app.js
2 | App({
3 | /**
4 | * 生命周期函数--监听页面加载
5 | */
6 | onLaunch() {
7 |
8 | },
9 |
10 | globalData: {
11 | userInfo: null,
12 | }
13 | })
14 |
--------------------------------------------------------------------------------
/地图参数获取工具/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/index/index",
4 | "pages/map/map",
5 | "pages/site/site",
6 | "pages/site/getpoint/getpoint",
7 | "pages/polygons/polygons",
8 | "pages/polygons/range/range",
9 | "pages/location/location"
10 | ],
11 | "window": {
12 | "backgroundTextStyle": "light",
13 | "navigationBarBackgroundColor": "#ffffff",
14 | "navigationBarTitleText": "地图参数",
15 | "navigationBarTextStyle": "black"
16 | },
17 | "tabBar": {
18 | "list": [{
19 | "selectedIconPath": "/images/tabbar/icon_home_HL.png",
20 | "iconPath": "/images/tabbar/icon_home.png",
21 | "pagePath": "pages/index/index",
22 | "text": "首页"
23 | },
24 | {
25 | "selectedIconPath": "/images/tabbar/icon_map_HL.png",
26 | "iconPath": "/images/tabbar/icon_map.png",
27 | "pagePath": "pages/map/map",
28 | "text": "地图参数"
29 | },
30 | {
31 | "selectedIconPath": "/images/tabbar/icon_more_HL.png",
32 | "iconPath": "/images/tabbar/icon_more.png",
33 | "pagePath": "pages/polygons/polygons",
34 | "text": "地图多边形"
35 | },
36 | {
37 | "selectedIconPath": "/images/tabbar/icon_collection_HL.png",
38 | "iconPath": "/images/tabbar/icon_collection.png",
39 | "pagePath": "pages/location/location",
40 | "text": "定位接口"
41 | },
42 | {
43 | "selectedIconPath": "/images/tabbar/icon_school_HL.png",
44 | "iconPath": "/images/tabbar/icon_school.png",
45 | "pagePath": "pages/site/site",
46 | "text": "静态地点"
47 | }
48 | ]
49 | },
50 | "style": "v2",
51 | "sitemapLocation": "sitemap.json",
52 | "lazyCodeLoading": "requiredComponents",
53 | "useExtendedLib": {
54 | "weui": true
55 | },
56 | "resolveAlias": {
57 | "@data/*": "data/*",
58 | "@libs/*": "libs/*"
59 | }
60 | }
--------------------------------------------------------------------------------
/地图参数获取工具/app.wxss:
--------------------------------------------------------------------------------
1 | /**app.wxss**/
2 | page {
3 | height: 100%;
4 | }
--------------------------------------------------------------------------------
/地图参数获取工具/data/img_data.js:
--------------------------------------------------------------------------------
1 | /* data/img_data.js */
2 | // 图片
3 | module.exports = {
4 | circle: '/images/circle.png',
5 |
6 | plus: 'https://3gimg.qq.com/lightmap/xcx/demoCenter/images/btn_plus@3x.png',
7 | minus: 'https://3gimg.qq.com/lightmap/xcx/demoCenter/images/btn_minus@3x.png',
8 |
9 | Marker2_Activated: 'https://3gimg.qq.com/lightmap/xcx/demoCenter/images/Marker2_Activated@3x.png',
10 | Marker3_Activated: 'https://3gimg.qq.com/lightmap/xcx/demoCenter/images/Marker3_Activated@3x.png',
11 | start: 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/start.png',
12 | end: 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/end.png',
13 | car: 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/car.png'
14 | }
--------------------------------------------------------------------------------
/地图参数获取工具/images/circle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/地图参数获取工具/images/circle.png
--------------------------------------------------------------------------------
/地图参数获取工具/images/tabbar/icon_collection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/地图参数获取工具/images/tabbar/icon_collection.png
--------------------------------------------------------------------------------
/地图参数获取工具/images/tabbar/icon_collection_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/地图参数获取工具/images/tabbar/icon_collection_HL.png
--------------------------------------------------------------------------------
/地图参数获取工具/images/tabbar/icon_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/地图参数获取工具/images/tabbar/icon_home.png
--------------------------------------------------------------------------------
/地图参数获取工具/images/tabbar/icon_home_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/地图参数获取工具/images/tabbar/icon_home_HL.png
--------------------------------------------------------------------------------
/地图参数获取工具/images/tabbar/icon_map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/地图参数获取工具/images/tabbar/icon_map.png
--------------------------------------------------------------------------------
/地图参数获取工具/images/tabbar/icon_map_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/地图参数获取工具/images/tabbar/icon_map_HL.png
--------------------------------------------------------------------------------
/地图参数获取工具/images/tabbar/icon_more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/地图参数获取工具/images/tabbar/icon_more.png
--------------------------------------------------------------------------------
/地图参数获取工具/images/tabbar/icon_more_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/地图参数获取工具/images/tabbar/icon_more_HL.png
--------------------------------------------------------------------------------
/地图参数获取工具/images/tabbar/icon_school.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/地图参数获取工具/images/tabbar/icon_school.png
--------------------------------------------------------------------------------
/地图参数获取工具/images/tabbar/icon_school_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/地图参数获取工具/images/tabbar/icon_school_HL.png
--------------------------------------------------------------------------------
/地图参数获取工具/pages/index/index.js:
--------------------------------------------------------------------------------
1 | // pages/index/index.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 |
9 | dialogShow: false,
10 | button: [{
11 | text: '关闭'
12 | }],
13 |
14 | info: [
15 | {
16 | name: "QQ",
17 | content: "229600398"
18 | },
19 | {
20 | name: "QQ交流群",
21 | content: "815075137"
22 | },
23 | {
24 | name: "相关资料",
25 | content: "https://pan.baidu.com/s/178lwGP1KIwtJekt55Fv2FA?pwd=f6gg"
26 | },
27 | {
28 | name: "CSDN",
29 | content: "https://blog.csdn.net/weixin_45940369/category_12257059.html"
30 | },
31 | {
32 | name: "Gitee",
33 | content: "https://gitee.com/talmudmaster/GLU-Campus-Guide"
34 | },
35 | {
36 | name: "GitHub",
37 | content: "https://github.com/talmudmaster/GLU-Campus-Guide"
38 | },
39 | {
40 | name: "bilibili",
41 | content: "https://space.bilibili.com/384844986/channel/collectiondetail?sid=1197124"
42 | },
43 | ]
44 | },
45 |
46 | map() {
47 | wx.switchTab({
48 | url: '../map/map',
49 | })
50 | },
51 |
52 | location() {
53 | wx.switchTab({
54 | url: '../location/location',
55 | })
56 | },
57 |
58 | site() {
59 | wx.switchTab({
60 | url: '../site/site',
61 | })
62 | },
63 |
64 | polygons() {
65 | wx.switchTab({
66 | url: '../polygons/polygons',
67 | })
68 | },
69 |
70 | range() {
71 | wx.navigateTo({
72 | url: '../polygons/range/range',
73 | })
74 | },
75 |
76 | study() {
77 | this.setData({
78 | dialogShow: true
79 | })
80 | },
81 |
82 | // 对话框按钮
83 | dialogButton() {
84 | this.setData({
85 | dialogShow: false,
86 | })
87 | },
88 |
89 | getInfo(e) {
90 | let data = e.currentTarget.dataset.content
91 | wx.setClipboardData({
92 | data,
93 | })
94 | }
95 | })
--------------------------------------------------------------------------------
/地图参数获取工具/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "mp-dialog": "weui-miniprogram/dialog/dialog"
4 | },
5 | "navigationBarTitleText": "首页"
6 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/index/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | {{item.name}}
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/地图参数获取工具/pages/index/index.wxss:
--------------------------------------------------------------------------------
1 | /* pages/index/index.wxss */
2 | .btn-area {
3 | display: flex;
4 | flex-direction: column;
5 | justify-content: center;
6 | height: 100%;
7 | }
8 |
9 | .button-index {
10 | margin: 12px 0;
11 | height: 70px;
12 | display: flex;
13 | justify-content: center;
14 | align-items: center;
15 | font-size: larger;
16 | }
17 |
18 | .button-sp-area{
19 | margin: 0 auto;
20 | width: 60%;
21 | }
22 |
23 | .title {
24 | /* display: flex; */
25 | text-align: left;
26 | margin-top: 15px;
27 | }
28 |
29 | .title_text {
30 | color: black;
31 | font-weight: bold;
32 | margin-bottom: 5px;
33 | }
34 |
35 | .button-dialog {
36 | margin: 10px 0 10px 0;
37 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/location/location.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/location/location.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
--------------------------------------------------------------------------------
/地图参数获取工具/pages/location/location.wxss:
--------------------------------------------------------------------------------
1 | /* pages/location/location.wxss */
2 | page {
3 | height: 100%;
4 | }
5 | map {
6 | width: 100%;
7 | height: calc(100% - 150px);
8 | }
9 |
10 | .cont {
11 | display: flex;
12 | margin: 15px 0 15px 0;
13 | justify-content: center;
14 | }
15 |
16 | .inp {
17 | border: 1px solid darkgray;
18 | border-radius: 8px;
19 | width: 240px;
20 | padding-left: 10px;
21 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/map/map.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "mp-dialog": "weui-miniprogram/dialog/dialog"
4 | },
5 | "navigationBarTitleText": "地图参数获取与设置"
6 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/map/map.wxml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | 当前地图的缩放级别
22 |
23 |
24 |
25 |
26 |
27 | 当前地图的边界
28 |
29 |
30 |
31 |
32 |
33 | 当前地图的中心点坐标
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/地图参数获取工具/pages/map/map.wxss:
--------------------------------------------------------------------------------
1 | /* pages/map/map.wxss */
2 | map {
3 | width: 100%;
4 | height: calc(100% - 180px);
5 | }
6 |
7 | .control-btn {
8 | position: absolute;
9 | height: 40px;
10 | width: 40px;
11 | z-index: 99;
12 | background: #FFF;
13 | line-height: 35px;
14 | font-size: 30px;
15 | text-align: center;
16 | border-radius: 4px;
17 | right: 10px;
18 | }
19 |
20 | .control-btn-increase {
21 | bottom: 140px;
22 | }
23 |
24 | .control-btn-decrease {
25 | bottom: 80px;
26 | }
27 |
28 | .buttons {
29 | display: flex;
30 | margin-top: 10px;
31 | margin-bottom: 10px;
32 | }
33 |
34 | .title {
35 | /* display: flex; */
36 | text-align: left;
37 | margin-top: 15px;
38 | }
39 |
40 | .title_text {
41 | color: black;
42 | font-weight: bold;
43 | margin-bottom: 5px;
44 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/polygons/polygons.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "mp-dialog": "weui-miniprogram/dialog/dialog"
4 | },
5 | "navigationBarTitleText": "地图多边形绘制"
6 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/polygons/polygons.wxml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | {{points_data}}
23 |
24 |
25 |
--------------------------------------------------------------------------------
/地图参数获取工具/pages/polygons/polygons.wxss:
--------------------------------------------------------------------------------
1 | /* pages/polygons/polygons.wxss */
2 | map {
3 | width: 100%;
4 | height: calc(100% - 115px);
5 | }
6 |
7 | .title {
8 | text-align: left;
9 | margin-top: 10px;
10 | }
11 |
12 | .scroll {
13 | height: 300px;
14 | width: 100%;
15 | margin-bottom: 15px;
16 | }
17 |
18 | .weui-dialog__btn_primary {
19 | background-color: #07c160;
20 | color: #fff;
21 | }
22 |
23 | .control-btn {
24 | position: absolute;
25 | width: 45px;
26 | z-index: 99;
27 | background: #FFF;
28 | text-align: center;
29 | border-radius: 4px;
30 | right: 10px;
31 | bottom: 40px;
32 | }
33 |
34 | .img {
35 | height: 40px;
36 | width: 40px;
37 | }
38 |
39 | .text {
40 | font-size: small;
41 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/polygons/range/range.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "点与多边形关系"
4 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/polygons/range/range.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 点
6 |
7 | {{isAtPolygons ? '在' : '不在'}}
8 |
9 | 多边形内
10 |
--------------------------------------------------------------------------------
/地图参数获取工具/pages/polygons/range/range.wxss:
--------------------------------------------------------------------------------
1 | /* pages/polygons/range/range.wxss */
2 | page{
3 | height: 100%;
4 | }
5 |
6 | map {
7 | width: 100%;
8 | height: calc(100% - 100px);
9 | }
10 |
11 | .text {
12 | display: flex;
13 | justify-content: center;
14 | align-items: center;
15 | font-size: x-large;
16 | margin: 5px;
17 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/site/getpoint/getpoint.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "地图选点"
4 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/site/getpoint/getpoint.wxml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/地图参数获取工具/pages/site/getpoint/getpoint.wxss:
--------------------------------------------------------------------------------
1 | /* pages/admin/getpoint/getpoint.wxss */
2 | .img {
3 | height: 24px;
4 | width: 24px;
5 | position: absolute;
6 | top: 50%;
7 | left: 50%;
8 | transform: translate(-50%, -50%);
9 | }
10 |
11 | .button {
12 | margin-top: 10px;
13 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/site/site.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "mp-form": "weui-miniprogram/form/form",
4 | "mp-form-page": "weui-miniprogram/form-page/form-page",
5 | "mp-cell": "weui-miniprogram/cell/cell",
6 | "mp-cells": "weui-miniprogram/cells/cells",
7 | "mp-dialog": "weui-miniprogram/dialog/dialog"
8 | },
9 | "componentFramework": "glass-easel",
10 | "navigationBarTitleText": "静态项目地点生成"
11 | }
--------------------------------------------------------------------------------
/地图参数获取工具/pages/site/site.wxss:
--------------------------------------------------------------------------------
1 | /* pages/site/site.wxss */
2 | .weui-agree .weui-agree__text {
3 | display: inline;
4 | }
5 |
6 | .weui-form {
7 | padding: 40px 0 0 0;
8 | }
9 |
10 | .weui-form__control-area {
11 | margin-bottom: 0;
12 | }
13 |
14 | .title {
15 | /* display: flex; */
16 | text-align: left;
17 | margin-top: 15px;
18 | }
19 |
20 | .title_text {
21 | color: black;
22 | font-weight: bold;
23 | margin-bottom: 5px;
24 | }
25 |
26 | .weui-dialog__btn_primary {
27 | background-color: #07c160;
28 | color: #fff;
29 | }
--------------------------------------------------------------------------------
/地图参数获取工具/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目配置文件",
3 | "setting": {
4 | "bundle": false,
5 | "userConfirmedBundleSwitch": false,
6 | "urlCheck": true,
7 | "scopeDataCheck": false,
8 | "coverView": true,
9 | "es6": true,
10 | "postcss": true,
11 | "compileHotReLoad": false,
12 | "lazyloadPlaceholderEnable": false,
13 | "preloadBackgroundData": false,
14 | "minified": true,
15 | "autoAudits": false,
16 | "newFeature": false,
17 | "uglifyFileName": false,
18 | "uploadWithSourceMap": true,
19 | "useIsolateContext": true,
20 | "nodeModules": false,
21 | "enhance": true,
22 | "useMultiFrameRuntime": true,
23 | "showShadowRootInWxmlPanel": true,
24 | "packNpmManually": false,
25 | "enableEngineNative": false,
26 | "packNpmRelationList": [],
27 | "minifyWXSS": true,
28 | "showES6CompileOption": false,
29 | "minifyWXML": true,
30 | "babelSetting": {
31 | "ignore": [],
32 | "disablePlugins": [],
33 | "outputPath": ""
34 | },
35 | "condition": false,
36 | "ignoreUploadUnusedFiles": true
37 | },
38 | "compileType": "miniprogram",
39 | "condition": {},
40 | "editorSetting": {
41 | "tabIndent": "insertSpaces",
42 | "tabSize": 4
43 | },
44 | "simulatorPluginLibVersion": {},
45 | "appid": "wxa67dbc9511ee06a6",
46 | "libVersion": "3.8.0",
47 | "packOptions": {
48 | "ignore": [],
49 | "include": []
50 | }
51 | }
--------------------------------------------------------------------------------
/地图参数获取工具/project.private.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
3 | "projectname": "%E5%9C%B0%E5%9B%BE%E5%8F%82%E6%95%B0%E8%8E%B7%E5%8F%96%E5%B7%A5%E5%85%B7",
4 | "setting": {
5 | "compileHotReLoad": true
6 | },
7 | "condition": {
8 | "miniprogram": {
9 | "list": [
10 | {
11 | "name": "pages/weui/weui",
12 | "pathName": "pages/weui/weui",
13 | "query": "",
14 | "launchMode": "default",
15 | "scene": null
16 | }
17 | ]
18 | }
19 | },
20 | "libVersion": "3.8.0"
21 | }
--------------------------------------------------------------------------------
/地图参数获取工具/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/静态项目/app.js:
--------------------------------------------------------------------------------
1 | // app.js
2 | App({
3 | /**
4 | * 全局的初始数据
5 | */
6 | globalData: {
7 | userInfo: null
8 | }
9 | })
--------------------------------------------------------------------------------
/静态项目/app.wxss:
--------------------------------------------------------------------------------
1 | /**app.wxss**/
2 | page {
3 | height: 100%;
4 | width: 100%;
5 | }
6 |
7 | .container {
8 | height: 100%;
9 | display: flex;
10 | flex-direction: column;
11 | align-items: center;
12 | justify-content: space-between;
13 | padding: 200rpx 0;
14 | box-sizing: border-box;
15 | }
16 |
17 | .bottom-font {
18 | padding: 10px 0 10px 0;
19 | height: 20px;
20 | text-align: center;
21 | font-size: small;
22 | color: gray;
23 | }
--------------------------------------------------------------------------------
/静态项目/data/data.js:
--------------------------------------------------------------------------------
1 | /* data/data.js */
2 | module.exports = {
3 | // 和风天气API
4 | weatherKey: "de1f89544449420cb217032e79b9527c",
5 |
6 | // 小程序名称
7 | miniprogram_name: "桂院校园导航",
8 |
9 | // 相关信息
10 | information: {
11 | type: "计算机设计大赛作品 | 毕业设计",
12 | author: "理工学院 2019级 软件工程 吴警",
13 | teacher: "刘亮龙、杨嫘 | 韦林"
14 | }
15 | }
--------------------------------------------------------------------------------
/静态项目/images/book.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/book.png
--------------------------------------------------------------------------------
/静态项目/images/button/ai_chat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/button/ai_chat.png
--------------------------------------------------------------------------------
/静态项目/images/button/friendly_link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/button/friendly_link.png
--------------------------------------------------------------------------------
/静态项目/images/button/map_navigation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/button/map_navigation.png
--------------------------------------------------------------------------------
/静态项目/images/button/panoramic_map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/button/panoramic_map.png
--------------------------------------------------------------------------------
/静态项目/images/button/school_guide.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/button/school_guide.png
--------------------------------------------------------------------------------
/静态项目/images/button/site_popularity.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/button/site_popularity.png
--------------------------------------------------------------------------------
/静态项目/images/button/site_summary.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/button/site_summary.png
--------------------------------------------------------------------------------
/静态项目/images/chat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/chat.png
--------------------------------------------------------------------------------
/静态项目/images/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/delete.png
--------------------------------------------------------------------------------
/静态项目/images/feedback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/feedback.png
--------------------------------------------------------------------------------
/静态项目/images/green_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/green_arrow.png
--------------------------------------------------------------------------------
/静态项目/images/hat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/hat.png
--------------------------------------------------------------------------------
/静态项目/images/history.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/history.png
--------------------------------------------------------------------------------
/静态项目/images/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/home.png
--------------------------------------------------------------------------------
/静态项目/images/judge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/judge.png
--------------------------------------------------------------------------------
/静态项目/images/laba.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/laba.png
--------------------------------------------------------------------------------
/静态项目/images/label.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/label.png
--------------------------------------------------------------------------------
/静态项目/images/location.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/location.png
--------------------------------------------------------------------------------
/静态项目/images/magazine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/magazine.png
--------------------------------------------------------------------------------
/静态项目/images/map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/map.png
--------------------------------------------------------------------------------
/静态项目/images/message.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/message.png
--------------------------------------------------------------------------------
/静态项目/images/money.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/money.png
--------------------------------------------------------------------------------
/静态项目/images/more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/more.png
--------------------------------------------------------------------------------
/静态项目/images/navigation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/navigation.png
--------------------------------------------------------------------------------
/静态项目/images/new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/new.png
--------------------------------------------------------------------------------
/静态项目/images/note.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/note.png
--------------------------------------------------------------------------------
/静态项目/images/notes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/notes.png
--------------------------------------------------------------------------------
/静态项目/images/restore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/restore.png
--------------------------------------------------------------------------------
/静态项目/images/school_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/school_icon.png
--------------------------------------------------------------------------------
/静态项目/images/school_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/school_logo.png
--------------------------------------------------------------------------------
/静态项目/images/share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/share.png
--------------------------------------------------------------------------------
/静态项目/images/statement.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/statement.png
--------------------------------------------------------------------------------
/静态项目/images/tabbar/icon_collection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/tabbar/icon_collection.png
--------------------------------------------------------------------------------
/静态项目/images/tabbar/icon_collection_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/tabbar/icon_collection_HL.png
--------------------------------------------------------------------------------
/静态项目/images/tabbar/icon_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/tabbar/icon_home.png
--------------------------------------------------------------------------------
/静态项目/images/tabbar/icon_home_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/tabbar/icon_home_HL.png
--------------------------------------------------------------------------------
/静态项目/images/tabbar/icon_map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/tabbar/icon_map.png
--------------------------------------------------------------------------------
/静态项目/images/tabbar/icon_map_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/tabbar/icon_map_HL.png
--------------------------------------------------------------------------------
/静态项目/images/tabbar/icon_more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/tabbar/icon_more.png
--------------------------------------------------------------------------------
/静态项目/images/tabbar/icon_more_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/tabbar/icon_more_HL.png
--------------------------------------------------------------------------------
/静态项目/images/tabbar/icon_school.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/tabbar/icon_school.png
--------------------------------------------------------------------------------
/静态项目/images/tabbar/icon_school_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/tabbar/icon_school_HL.png
--------------------------------------------------------------------------------
/静态项目/images/tag.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/tag.png
--------------------------------------------------------------------------------
/静态项目/images/text.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/text.png
--------------------------------------------------------------------------------
/静态项目/images/use.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/use.png
--------------------------------------------------------------------------------
/静态项目/images/users.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/users.png
--------------------------------------------------------------------------------
/静态项目/images/weather.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/weather.png
--------------------------------------------------------------------------------
/静态项目/images/zhixie.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/zhixie.png
--------------------------------------------------------------------------------
/静态项目/images/zhixie_kaifazhe.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/zhixie_kaifazhe.jpg
--------------------------------------------------------------------------------
/静态项目/images/zhixie_up.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talmudmaster/GLU-Campus-Guide/c095e9f0da4fa5a97bd6e300e9610cae429a6a13/静态项目/images/zhixie_up.jpg
--------------------------------------------------------------------------------
/静态项目/pages/home/home.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "mp-dialog": "weui-miniprogram/dialog/dialog"
4 | },
5 | "navigationBarTitleText": "首页"
6 | }
--------------------------------------------------------------------------------
/静态项目/pages/home/introduction/introduction.js:
--------------------------------------------------------------------------------
1 | // pages/home/introduction/introduction.js
2 | import media from '@data/media'
3 | import school from '@data/school'
4 |
5 | const app = getApp()
6 |
7 | Page({
8 |
9 | /**
10 | * 组件的初始数据
11 | */
12 | data: {
13 | school_information: school.school_information,
14 |
15 | background: media.swiper_background,
16 | navigation: media.navigation,
17 | videourl: media.videourl,
18 |
19 | indicatorDots: true,
20 | indicatorColor: "white", //指示点颜色
21 | activeColor: "#2adce2", //当前选中的指示点颜色
22 | autoplay: true, //是否自动切换
23 | circular: true, //是否采用衔接滑动
24 | interval: 3500, //间隔时间
25 | duration: 1500, //滑动时间
26 | },
27 |
28 | //图片比例
29 | imgHeight(e) {
30 | var winWid = wx.getWindowInfo().windowWidth; //获取当前屏幕的宽度
31 | var imgh = e.detail.height; //图片高度
32 | var imgw = e.detail.width; //图片宽度
33 | var swiperH = winWid * imgh / imgw + "px" //等比设置swiper的高度。 即 屏幕宽度 / swiper高度 = 图片宽度 / 图片高度 ==》swiper高度 = 屏幕宽度 * 图片高度 / 图片宽度
34 | this.setData({
35 | Height: swiperH //设置高度
36 | })
37 | },
38 |
39 | tomap() {
40 | wx.switchTab({
41 | url: '../../map/map',
42 | })
43 | },
44 | //点击图片可查看
45 | lookPhoto(e) {
46 | console.log("点击了图片", e.target.dataset.src)
47 | var url = e.target.dataset.src
48 | wx.previewImage({
49 | current: url, // 当前显示图片的http链接
50 | urls: this.data.background // 需要预览的图片http链接列表
51 | })
52 | },
53 | })
--------------------------------------------------------------------------------
/静态项目/pages/home/introduction/introduction.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {},
4 | "navigationBarTitleText": "学校简介"
5 | }
--------------------------------------------------------------------------------
/静态项目/pages/home/introduction/introduction.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | {{school_information.school_name_full}}
19 |
20 |
21 |
22 | {{school_information.school_name_English_full}}
23 |
24 |
25 |
26 |
27 | {{school_information.text}}
28 |
29 |
30 |
31 | 学校风光
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 信息来源:学校官网
40 |
--------------------------------------------------------------------------------
/静态项目/pages/home/introduction/introduction.wxss:
--------------------------------------------------------------------------------
1 | /* pages/home/introduction/introduction.wxss */
2 | .swiper-item {
3 | height: 420rpx;
4 | }
5 |
6 | .swiper-item .wx-swiper-dot.wx-swiper-dot-active {
7 | width: 33rpx;
8 | background: #888888;
9 | border-radius: 15rpx;
10 | }
11 |
12 | .swiper-item-image {
13 | width: 100%;
14 | }
15 |
16 | .location {
17 | width: 70px;
18 | height: 70px;
19 | display: flex;
20 | justify-content: center;
21 | align-items: center;
22 | position: relative;
23 | margin-top: -35px;
24 | }
25 |
26 | .img {
27 | width: 70px;
28 | height: 70px;
29 | }
30 |
31 | .title-font {
32 | color: #73a5d6;
33 | margin-left: 20px;
34 | }
35 |
36 | .title-font-1 {
37 | font-size: 35px;
38 | }
39 |
40 | .title-font-2 {
41 | margin-top: 10px;
42 | font-size: 25px;
43 | }
44 |
45 | .text-font {
46 | margin: 20px 20px 0 20px;
47 | font-size: 15px;
48 | line-height: 25px;
49 | /* 文本保留空格和回车 */
50 | white-space: pre-wrap;
51 | }
52 |
53 | .video-font {
54 | color: #73a5d6;
55 | text-align: center;
56 | font-size: 25px;
57 | margin-top: 20px;
58 | margin-bottom: 20px;
59 | }
60 |
61 | .video {
62 | display: flex;
63 | justify-content: center;
64 | align-items: center;
65 | }
--------------------------------------------------------------------------------
/静态项目/pages/home/pano/pano.js:
--------------------------------------------------------------------------------
1 | // pages/home/pano/pano.js
2 | import media from '@data/media'
3 |
4 | const wxPano = requirePlugin("wxPano")
5 |
6 | Page({
7 |
8 | /**
9 | * 页面的初始数据
10 | */
11 | data: {
12 | more: media.more,
13 | judge: media.judge,
14 | text: media.text,
15 | show: true,
16 | name: "sport_tianjing",
17 | panolist: [{
18 | name: "sport_zhishan",
19 | src: "https://s2.loli.net/2024/04/22/EpTcHMbmCiNGosP.jpg",
20 | infospots: [ //信息标记
21 | {
22 | type: "modal",
23 | modal: {
24 | title: "至善广场",
25 | content: "这里有宽宽的大阶梯,是拍集体照的好地方"
26 | },
27 | position: {
28 | x: 0.092,
29 | y: 0.434
30 | },
31 | size: 1,
32 | }
33 | ]
34 | }, {
35 | name: "sport_tianjing",
36 | src: 'https://s2.loli.net/2024/04/22/7wIgFSJb1tQYEv6.jpg',
37 | infospots: [{
38 | type: "modal",
39 | modal: {
40 | title: "田径场",
41 | content: "学生运动的好去处"
42 | },
43 | position: {
44 | x: 0.092,
45 | y: 0.434
46 | },
47 | size: 1,
48 | }]
49 | }],
50 | },
51 |
52 | /**
53 | * 生命周期函数--监听页面初次渲染完成
54 | */
55 | onReady() {
56 | wxPano.onReady = function () { //wxPano初始化完成后会触发此事件
57 |
58 | }
59 | wxPano.config({
60 | panolist: this.data.panolist,
61 | request: wx.request,
62 | loader: "GLLoader",
63 | entryname: "sport_zhishan"
64 | });
65 | },
66 |
67 | covertap() {
68 | var panoId = wxPano.getPanoInfo().panoId
69 | var panolist = this.data.panolist
70 | var name = panolist[(panoId + 1) % panolist.length].name
71 |
72 | wxPano.navigateMethod({
73 | type: "pano",
74 | entryname: name
75 | });
76 | },
77 | setCameraLookAt() {
78 | wxPano.setCameraLookAt({
79 | x: 0.5,
80 | y: 0.5
81 | })
82 | },
83 |
84 | getPanoInfo() {
85 | // console.log('wxPano.getPanoInfo()',wxPano.getPanoInfo())
86 | var panoId = wxPano.getPanoInfo().panoId
87 | console.log(panoId)
88 | var modal = this.data.panolist[panoId].infospots[0].modal
89 | console.log(modal)
90 |
91 | wx.showModal({
92 | title: modal.title,
93 | content: modal.content,
94 | })
95 | },
96 |
97 | })
--------------------------------------------------------------------------------
/静态项目/pages/home/pano/pano.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "pano": "plugin://wxPano/pano"
4 | },
5 | "navigationBarTitleText": "全景地图"
6 | }
--------------------------------------------------------------------------------
/静态项目/pages/home/pano/pano.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | 切换全景图
10 |
11 |
12 |
13 |
14 |
15 |
16 | 切换视角
17 |
18 |
19 |
20 |
21 |
22 |
23 | 简介
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/静态项目/pages/home/pano/pano.wxss:
--------------------------------------------------------------------------------
1 | /* pages/home/pano/pano.wxss */
--------------------------------------------------------------------------------
/静态项目/pages/map/instruction/instruction.js:
--------------------------------------------------------------------------------
1 | // pages/map/instruction/instruction.js
2 | import map from '@data/map'
3 | import media from '@data/media'
4 |
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | map: media.map,
12 | // 默认地点
13 | default_point: map.default_point.name,
14 | },
15 |
16 | // 跳转至地点汇总页
17 | tosite() {
18 | wx.switchTab({
19 | url: '../../site/site',
20 | })
21 | },
22 |
23 | // 跳转至地图页
24 | tomap() {
25 | wx.switchTab({
26 | url: '../../map/map',
27 | })
28 | }
29 | })
--------------------------------------------------------------------------------
/静态项目/pages/map/instruction/instruction.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "使用说明"
4 | }
--------------------------------------------------------------------------------
/静态项目/pages/map/instruction/instruction.wxss:
--------------------------------------------------------------------------------
1 | /* pages/map/instruction/instruction.wxss */
2 | page {
3 | background: #f3f3f3;
4 | }
5 |
6 | .card {
7 | margin: 10px 15px;
8 | border-radius: 10px;
9 | background-color: white;
10 | }
11 |
12 | .card-container {
13 | margin-bottom: 30px;
14 | margin: 10px;
15 | padding-top: 20px;
16 | }
17 |
18 | .card-container-title {
19 | display: flex;
20 | align-items: center;
21 | flex-direction: row;
22 | margin-bottom: 10px;
23 |
24 | }
25 |
26 | .card-container-title-img {
27 | height: 25px;
28 | width: 25px;
29 | }
30 |
31 | .card-container-title-font {
32 | color: #73a5d6;
33 | margin-left: 10px;
34 | font-size: 22px;
35 | }
36 |
37 | .card-container-container {
38 | border-bottom: 10px solid white;
39 | }
40 |
41 | .card-container-container-instr {
42 | margin: 0 2px 0 2px;
43 | display: flex;
44 | align-items: center;
45 | text-align: center;
46 | flex-direction: row;
47 | border-left: 1px solid grey;
48 | border-right: 1px solid grey;
49 | border-bottom: 1px solid grey;
50 | }
51 |
52 | .card-container-container-instr-left {
53 | width: 30px;
54 | }
55 |
56 | .card-container-container-instr-right {
57 | width: 305px;
58 | line-height: 30px;
59 | border-left: 1px solid grey;
60 | }
61 |
62 | .top {
63 | border-top: 1px solid grey;
64 | margin-top: 10px;
65 | }
66 |
67 | .bottom {
68 | border-top: 10px solid white;
69 | }
70 |
71 | .button {
72 | margin-top: 20px;
73 | margin-bottom: 20px;
74 | }
--------------------------------------------------------------------------------
/静态项目/pages/map/map.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "mp-dialog": "weui-miniprogram/dialog/dialog"
4 | },
5 | "navigationBarTitleText": "地图"
6 | }
--------------------------------------------------------------------------------
/静态项目/pages/map/search/search.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "搜索"
4 | }
--------------------------------------------------------------------------------
/静态项目/pages/map/search/search.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 搜索
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | 搜索历史
15 |
16 |
17 |
18 |
19 |
20 |
21 | {{item}}
22 |
23 |
24 |
25 | 搜索历史为空
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | 搜索结果
35 |
36 |
37 |
38 |
39 |
40 |
41 | {{item.name}}
42 | {{item.aliases}}
43 |
44 |
45 |
46 |
47 |
48 |
49 | 抱歉,没有找到您想找的地点
50 |
51 |
--------------------------------------------------------------------------------
/静态项目/pages/map/search/search.wxss:
--------------------------------------------------------------------------------
1 | /* pages/map/search/search.wxss */
2 | .root {
3 | display: flex;
4 | justify-content: space-around;
5 | align-items: center;
6 | margin: 10px;
7 | }
8 |
9 | .input {
10 | width: 70%;
11 | height: 30px;
12 | border: 1px solid grey;
13 | border-radius: 15px;
14 | padding-left: 15px;
15 | }
16 |
17 | .input_search {
18 | width: 20%;
19 | height: 30px;
20 | text-align: center;
21 | border: 1px solid grey;
22 | border-radius: 15px;
23 | background-color: #07c160;
24 | color: white;
25 | font-size: 18px;
26 | font-weight: bold;
27 | display: flex;
28 | justify-content: center;
29 | align-items: center;
30 | }
31 |
32 | .result {
33 | margin: 15px;
34 | }
35 |
36 | .middle {
37 | font-size: large;
38 | color: grey;
39 | }
40 |
41 | .result-list {
42 | height: 50px;
43 | margin: 10px;
44 | display: flex;
45 | align-items: center;
46 | justify-content: space-between;
47 | border-bottom: 1px solid gainsboro;
48 | }
49 |
50 | .item {
51 | display: flex;
52 | flex-direction: column;
53 | }
54 |
55 | .icon-right {
56 | width: 50rpx;
57 | height: 50rpx;
58 | }
59 |
60 | /* 标题部分 */
61 | .read-in {
62 | padding: 0 30rpx;
63 | }
64 |
65 | .headline {
66 | padding-top: .5rem;
67 | }
68 |
69 | .head-headline {
70 | width: 100%;
71 | /* height: 45rpx; */
72 | display: flex;
73 | font-size: 32rpx;
74 | font-weight: bold;
75 | /* align-content: center; */
76 | align-items: center;
77 | justify-content: space-between;
78 | }
79 |
80 | .headline-size {
81 | position: relative;
82 | left: -210rpx;
83 | top: 0rpx;
84 | }
85 |
86 | /* 内容部分 */
87 | .lately-main {
88 | margin-top: 20rpx;
89 | overflow: hidden;
90 | }
91 |
92 | .lately-main .chunk {
93 | display: inline-block;
94 | font-size: 24rpx;
95 | line-height: 20rpx;
96 | padding: 10rpx 21rpx;
97 | background: #f5f5f5;
98 | margin-right: 20rpx;
99 | border: 1px solid #DCDCDC;
100 | border-radius: 18.5rpx;
101 | color: #666666;
102 | margin-bottom: 26rpx;
103 | /* float: left; */
104 | }
--------------------------------------------------------------------------------
/静态项目/pages/more/more.js:
--------------------------------------------------------------------------------
1 | // pages/more/more.js
2 | import data from '@data/data'
3 | import media from '@data/media'
4 |
5 | Page({
6 | data: {
7 | miniprogram_name: data.miniprogram_name,
8 |
9 | avatarUrl: media.avatarUrl,
10 |
11 | green_arrow: media.green_arrow,
12 |
13 | statement: media.statement,
14 | note: media.note,
15 |
16 | users: media.users,
17 | contact: media.contact,
18 |
19 | chat: media.chat,
20 | feedback: media.feedback,
21 |
22 | share: media.share,
23 | miniprogramming_ma: media.miniprogramming_ma,
24 | },
25 |
26 | // 软件声明
27 | tostatement() {
28 | wx.navigateTo({
29 | url: './statement/statement',
30 | })
31 | },
32 | // 特别说明
33 | aboutus() {
34 | wx.showModal({
35 | title: '特别说明',
36 | content: '本项目同时应用于2023年中国大学生计算机设计大赛,未经允许,不得随意用于各类比赛项目\n\n作品名:云上高校导航\n作品编号:2023042719\n奖项:广西赛区 软件应用与开发 - 移动应用开发(非游戏类) 三等奖',
37 | })
38 | },
39 | // 联系作者
40 | contact() {
41 | wx.showModal({
42 | title: '联系作者',
43 | content: '如果遇到什么问题\n请点击确认与我联系',
44 | success: (res => {
45 | if (res.confirm == true) {
46 | wx.previewImage({
47 | current: this.data.contact, // 当前显示图片的http链接
48 | urls: [this.data.contact] // 需要预览的图片http链接列表
49 | })
50 | }
51 | }),
52 | fail(res) {
53 | console.log('fail')
54 | }
55 | })
56 | },
57 |
58 | // 分享
59 | share() {
60 | wx.showModal({
61 | title: '推荐给好友',
62 | content: '点击确认即可查看小程序码\n长按小程序码即可转发给好友',
63 | success: (res => {
64 | if (res.confirm == true) {
65 | wx.previewImage({
66 | current: this.data.miniprogramming_ma, // 当前显示图片的http链接
67 | urls: [this.data.miniprogramming_ma] // 需要预览的图片http链接列表
68 | })
69 | }
70 | }),
71 | fail(res) {
72 | console.log('fail')
73 | }
74 | })
75 | }
76 | })
--------------------------------------------------------------------------------
/静态项目/pages/more/more.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "更多"
4 | }
--------------------------------------------------------------------------------
/静态项目/pages/more/more.wxss:
--------------------------------------------------------------------------------
1 | /* pages/more/more.wxss */
2 | page {
3 | background: #80fcdd;
4 | }
5 |
6 | .my {
7 | height: 100%;
8 | background: linear-gradient(to bottom, #003cff9c, #80fcdd);
9 | display: flex;
10 | flex-direction: column;
11 | align-items: center;
12 | }
13 |
14 | .center {
15 | width: 95%;
16 | /* height: 360rpx; */
17 | display: flex;
18 | justify-content: center;
19 | align-items: center;
20 | margin: 10px auto;
21 | }
22 |
23 | .center_top {
24 | display: flex;
25 | justify-content: center;
26 | align-items: center;
27 | width: 100%;
28 | height: 260rpx;
29 | margin: 0 auto;
30 | background: white;
31 | border-radius: 5px;
32 | }
33 |
34 | .center_top_card {
35 | display: flex;
36 | align-items: center;
37 | width: 80%;
38 | height: 180rpx;
39 | border-bottom: 1px solid #2f80ed;
40 | }
41 |
42 | .center_img {
43 | width: 122rpx;
44 | height: 122rpx;
45 | border-radius: 50%;
46 | overflow: hidden;
47 | }
48 |
49 | .user_head {
50 | width: 100%;
51 | height: 100%;
52 | }
53 |
54 | .center_info {
55 | display: flex;
56 | flex-direction: column;
57 | margin-left: 20px;
58 | }
59 |
60 | .center_name {
61 | font-size: 44rpx;
62 | }
63 |
64 | .center_welcome {
65 | font-size: 30rpx;
66 | margin-top: 2px;
67 | color: grey;
68 | }
69 |
70 | .menu {
71 | width: 95%;
72 | background: white;
73 | display: flex;
74 | flex-direction: column;
75 | align-items: center;
76 | margin-bottom: 16rpx;
77 | padding-bottom: 20rpx;
78 | border-radius: 5px;
79 | font-size: 36rpx;
80 | color: #444444;
81 | }
82 |
83 | .menu_row {
84 | display: flex;
85 | flex-direction: row;
86 | display: flex;
87 | align-items: center;
88 | height: 100rpx;
89 | margin-left: 4px;
90 | margin-right: 4px;
91 | border-bottom: 1px solid #56ccf2;
92 | width: 95%;
93 | background-color: white;
94 | }
95 |
96 | .open_type {
97 | padding: 0;
98 | font-size: 36rpx;
99 | font-weight: normal;
100 | color: #444444;
101 | border-radius: 0;
102 | }
--------------------------------------------------------------------------------
/静态项目/pages/more/statement/statement.js:
--------------------------------------------------------------------------------
1 | // pages/more/statement/statement.js
2 | import data from '@data/data'
3 | import media from '@data/media'
4 | import school from '@data/school'
5 |
6 | Page({
7 |
8 | /**
9 | * 页面的初始数据
10 | */
11 | data: {
12 | school_name_full: school.school_information.school_name_full,
13 |
14 | miniprogram_name: data.miniprogram_name,
15 | information: data.information,
16 |
17 | message: media.message,
18 | statement: media.statement,
19 | zhixie: media.zhixie,
20 |
21 | zhixie_kaifazhe: media.zhixie_kaifazhe,
22 | zhixie_up: media.zhixie_up,
23 | zhixie_honghui: media.zhixie_honghui,
24 |
25 | notes: media.notes,
26 | },
27 | })
--------------------------------------------------------------------------------
/静态项目/pages/more/statement/statement.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "软件声明"
4 | }
--------------------------------------------------------------------------------
/静态项目/pages/school/guidance/guidance.js:
--------------------------------------------------------------------------------
1 | // pages/school/guidance/guidance.js
2 | import school from '@data/school'
3 |
4 | Page({
5 | data: {
6 | allWords: school.school_guide,
7 | curWords: school.school_guide,
8 |
9 | height: 0,
10 | detail: 'id0'
11 | },
12 |
13 | onLoad(options) {
14 | console.log(options.id);
15 | // this.getRect()
16 | this.setData({
17 | height: wx.getWindowInfo().windowHeight - 50, // 获取屏幕高度
18 | detail: 'id' + options.id // 获取跳转过来的锚点id
19 | })
20 | },
21 |
22 | getRect() {
23 | var that = this
24 | wx.createSelectorQuery().select('#search').boundingClientRect(function (rect) {
25 | rect.height // 节点的高度
26 | }).exec(res => {
27 | console.log(res)
28 | that.setData({
29 | top: res[0].height
30 | })
31 | })
32 | },
33 |
34 |
35 | clickImg(e) {
36 | console.log(e.currentTarget.dataset)
37 | var currentUrl = e.currentTarget.dataset.url;
38 | var currentId = e.currentTarget.dataset.id;
39 | var imageList = this.data.curWords[currentId].imageList
40 | console.log("当前显示图片", currentUrl)
41 | console.log("需要预览的图片", imageList)
42 | wx.previewImage({
43 | current: currentUrl, // 当前显示图片的http链接
44 | urls: imageList, // 需要预览的图片http链接列表,注意是数组
45 | fail(err) {
46 | console.log('放大图片失败', err)
47 | wx.showToast({
48 | title: '放大图片失败',
49 | icon: 'none'
50 | })
51 | },
52 | })
53 | },
54 |
55 | bindInput(e) {
56 | this.setData({
57 | inputValue: e.detail.value
58 | })
59 | },
60 |
61 | search() {
62 | let inputValue = this.data.inputValue || ''
63 | console.log('search', inputValue)
64 | wx.showLoading({
65 | title: '搜索中',
66 | })
67 | var res = []
68 | for (const i of this.data.allWords) {
69 | if (i.title.indexOf(inputValue) != -1 || i.content.indexOf(inputValue) != -1 || i.keywords.indexOf(inputValue) != -1) {
70 | res.push(i)
71 | }
72 | }
73 | console.log(this.data.allWords)
74 | console.log(res)
75 | wx.hideLoading()
76 | if (res.length == 0) {
77 | wx.showToast({
78 | title: '无搜索结果',
79 | icon: 'none'
80 | })
81 | } else {
82 | this.setData({
83 | curWords: res
84 | })
85 | }
86 | },
87 | })
--------------------------------------------------------------------------------
/静态项目/pages/school/guidance/guidance.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "校园指南"
4 | }
--------------------------------------------------------------------------------
/静态项目/pages/school/guidance/guidance.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | {{item.title}}
16 |
17 |
18 | {{item.content}}
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/静态项目/pages/school/school.js:
--------------------------------------------------------------------------------
1 | // pages/school/school.js
2 | import media from '@data/media'
3 | import school from '@data/school'
4 |
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | allWords: school.school_guide,
12 |
13 | green_arrow: media.green_arrow
14 | },
15 |
16 | /* 关于侧边栏,点击跳转 */
17 | jump(event) {
18 | let id = event.currentTarget.dataset.id;
19 | // 获取到跳转锚点id
20 | wx.navigateTo({
21 | url: '/pages/school/guidance/guidance?id=' + id, // 通过url传到跳转页面
22 | })
23 | },
24 |
25 | })
--------------------------------------------------------------------------------
/静态项目/pages/school/school.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "校园指南"
4 | }
--------------------------------------------------------------------------------
/静态项目/pages/school/school.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 📖
8 | {{item.title}}
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/静态项目/pages/school/school.wxss:
--------------------------------------------------------------------------------
1 | /* pages/school/school.wxss */
2 | page {
3 | background-color: #56CCF2;
4 | }
5 |
6 | .cu-list {
7 | overflow: hidden;
8 | margin-right: 30rpx;
9 | margin-left: 30rpx;
10 | border-radius: 20rpx;
11 | /* display: block; */
12 | margin-top: 50rpx;
13 | margin-bottom: 50rpx;
14 | /* padding-top: 50rpx; */
15 | /* padding-bottom: 50rpx; */
16 | /* --ShadowSize: 0rpx 40rpx 100rpx 0rpx; */
17 | }
18 |
19 | .cu-item {
20 | padding-right: 90rpx;
21 | position: relative;
22 | display: flex;
23 | padding: 0 30rpx;
24 | min-height: 100rpx;
25 | background-color: #ffffff;
26 | justify-content: space-between;
27 | align-items: center;
28 |
29 | /* transition: all .6s ease-in-out 0s; */
30 | /* transform: translateX(0rpx); */
31 | border-bottom: 1px solid gray;
32 | }
33 |
34 | .cu-item:last-child {
35 | border-bottom: 0;
36 | }
37 |
38 | .content {
39 | width: 100%;
40 | display: flex;
41 | justify-content: space-between;
42 | /* font-size: 30rpx; */
43 | /* line-height: 1.6em; */
44 | /* flex: 1; */
45 | }
46 |
47 | .cuIcon-link {
48 | display: inline-block;
49 | margin-right: 10rpx;
50 | width: 1.6em;
51 | text-align: center;
52 |
53 | /* color: #0081ff; */
54 |
55 | /* font-family: "cuIcon"; */
56 | /* font-size: inherit; */
57 | /* font-style: normal; */
58 | }
59 |
60 | .text-grey {
61 | /* color: #8799a3; */
62 | color: grey;
63 | }
--------------------------------------------------------------------------------
/静态项目/pages/site/site.js:
--------------------------------------------------------------------------------
1 | // pages/site/site.js
2 | import map from '@data/map'
3 | import media from '@data/media'
4 |
5 | const app = getApp()
6 |
7 | Page({
8 |
9 | /**
10 | * 页面的初始数据
11 | */
12 | data: {
13 | tag: media.tag,
14 | little_location: media.little_location,
15 | site_data: map.site_data,
16 |
17 | category: 0,
18 |
19 | id: null,
20 | card: null,
21 | dialogShow: false,
22 | buttons: [{
23 | text: '设为起点'
24 | }, {
25 | text: '设为终点'
26 | }],
27 | },
28 |
29 | changeCategory(e) {
30 | console.log("地点类型", e.currentTarget.id)
31 | this.setData({
32 | category: e.currentTarget.id,
33 | })
34 | },
35 |
36 | click(e) {
37 | console.log(e)
38 | var card = e.currentTarget.dataset
39 | let id = e.currentTarget.id
40 |
41 | this.setData({
42 | dialogShow: true,
43 | card: card,
44 | id: id,
45 | })
46 |
47 | },
48 |
49 | //点击图片可查看
50 | lookPhoto(e) {
51 | console.log("点击了图片", e.target.dataset.src)
52 | var url = e.target.dataset.src
53 | wx.previewImage({
54 | current: url, // 当前显示图片的http链接
55 | urls: [url] // 需要预览的图片http链接列表
56 | })
57 | },
58 |
59 | mapmarker(e) {
60 | this.setData({
61 | dialogShow: false,
62 | })
63 | console.log(e.detail)
64 | let choose = e.detail.item.text
65 | var id = this.data.id
66 | var category = this.data.category
67 |
68 | if (choose == "设为终点") {
69 | var end = this.data.site_data[category].list[id]
70 | console.log(end)
71 | wx.setStorageSync('end', end)
72 | wx.switchTab({
73 | url: '../map/map',
74 | })
75 | } else {
76 | var start = this.data.site_data[category].list[id]
77 | console.log(start)
78 | wx.setStorageSync('start', start)
79 | wx.switchTab({
80 | url: '../map/map',
81 | })
82 | }
83 | }
84 |
85 | })
--------------------------------------------------------------------------------
/静态项目/pages/site/site.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "mp-dialog": "weui-miniprogram/dialog/dialog"
4 | },
5 | "navigationBarTitleText": "地点汇总"
6 | }
--------------------------------------------------------------------------------
/静态项目/pages/site/site.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | {{item.name}}
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | {{site_data[category].name}}
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | {{item.name}}\n{{item.aliases}}
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | {{card.aliases}}
45 |
46 | {{card.desc}}
47 |
48 |
--------------------------------------------------------------------------------
/静态项目/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目配置文件",
3 | "setting": {
4 | "bundle": false,
5 | "userConfirmedBundleSwitch": false,
6 | "urlCheck": true,
7 | "scopeDataCheck": false,
8 | "coverView": true,
9 | "es6": true,
10 | "postcss": true,
11 | "compileHotReLoad": false,
12 | "lazyloadPlaceholderEnable": false,
13 | "preloadBackgroundData": false,
14 | "minified": true,
15 | "autoAudits": false,
16 | "newFeature": false,
17 | "uglifyFileName": false,
18 | "uploadWithSourceMap": true,
19 | "useIsolateContext": true,
20 | "nodeModules": false,
21 | "enhance": true,
22 | "useMultiFrameRuntime": true,
23 | "showShadowRootInWxmlPanel": true,
24 | "packNpmManually": false,
25 | "enableEngineNative": false,
26 | "packNpmRelationList": [],
27 | "minifyWXSS": true,
28 | "showES6CompileOption": false,
29 | "minifyWXML": true,
30 | "babelSetting": {
31 | "ignore": [],
32 | "disablePlugins": [],
33 | "outputPath": ""
34 | },
35 | "condition": false,
36 | "ignoreUploadUnusedFiles": true
37 | },
38 | "compileType": "miniprogram",
39 | "condition": {},
40 | "editorSetting": {
41 | "tabIndent": "insertSpaces",
42 | "tabSize": 4
43 | },
44 | "simulatorPluginLibVersion": {},
45 | "packOptions": {
46 | "ignore": [],
47 | "include": []
48 | },
49 | "appid": "wxa67dbc9511ee06a6",
50 | "libVersion": "3.8.0"
51 | }
--------------------------------------------------------------------------------
/静态项目/project.private.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
3 | "projectname": "%E6%A0%A1%E5%9B%AD%E5%AF%BC%E8%88%AA-%E9%9D%99%E6%80%81",
4 | "setting": {
5 | "compileHotReLoad": true
6 | },
7 | "libVersion": "3.8.0",
8 | "condition": {
9 | "miniprogram": {
10 | "list": [
11 | {
12 | "name": "pages/home/pano/pano",
13 | "pathName": "pages/home/pano/pano",
14 | "query": "",
15 | "launchMode": "default",
16 | "scene": null
17 | }
18 | ]
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/静态项目/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------