diff --git a/src/wxcamleader/.eslintrc.js b/src/wxcamleader/.eslintrc.js new file mode 100644 index 0000000..115cc02 --- /dev/null +++ b/src/wxcamleader/.eslintrc.js @@ -0,0 +1,31 @@ +/* + * Eslint config file + * Documentation: https://eslint.org/docs/user-guide/configuring/ + * Install the Eslint extension before using this feature. + */ +module.exports = { + env: { + es6: true, + browser: true, + node: true, + }, + ecmaFeatures: { + modules: true, + }, + parserOptions: { + ecmaVersion: 2018, + sourceType: 'module', + }, + globals: { + wx: true, + App: true, + Page: true, + getCurrentPages: true, + getApp: true, + Component: true, + requirePlugin: true, + requireMiniProgram: true, + }, + // extends: 'eslint:recommended', + rules: {}, +} diff --git a/src/wxcamleader/.gitignore b/src/wxcamleader/.gitignore new file mode 100644 index 0000000..14ea590 --- /dev/null +++ b/src/wxcamleader/.gitignore @@ -0,0 +1,14 @@ +# Windows +[Dd]esktop.ini +Thumbs.db +$RECYCLE.BIN/ + +# macOS +.DS_Store +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes + +# Node.js +node_modules/ diff --git a/src/wxcamleader/miniprogram/.gitignore b/src/wxcamleader/miniprogram/.gitignore new file mode 100644 index 0000000..7626a01 --- /dev/null +++ b/src/wxcamleader/miniprogram/.gitignore @@ -0,0 +1,2 @@ +project.config.json +config.js \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/LICENSE b/src/wxcamleader/miniprogram/LICENSE new file mode 100644 index 0000000..9ee385e --- /dev/null +++ b/src/wxcamleader/miniprogram/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 莞香广科 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/wxcamleader/miniprogram/README.md b/src/wxcamleader/miniprogram/README.md new file mode 100644 index 0000000..b1626a0 --- /dev/null +++ b/src/wxcamleader/miniprogram/README.md @@ -0,0 +1,97 @@ +
+

导览 - 微信地图导览小程序

+ +[![GitHub license](https://img.shields.io/github/license/gxgk/school-map)](https://github.com/gxgk/school-map/blob/master/LICENSE) +[![GitHub stars](https://img.shields.io/github/stars/gxgk/school-map)](https://github.com/gxgk/school-map/stargazers) +[![test](https://img.shields.io/badge/platform-微信小程序-green)]() + +首款开源的微信地图导览小程序,仅需修改地图文件,就可以适配某一学校/景区,具有出色的用户体验。 + +***官网:https://www.gxgkcat.com*** + +☑️一键配置切换 ☑️地图路径规划 ☑️在线热修补 + +
+ +--- + +## 🤩预览 + +![导览](https://map.gxgkcat.com/%E6%A0%A1%E5%9B%AD%E5%AF%BC%E8%A7%88/Screenshot.jpg) +![二维码](https://map.gxgkcat.com/%E6%A0%A1%E5%9B%AD%E5%AF%BC%E8%A7%88/qrcode.jpg) + +--- +## 📝使用说明 + +1、项目根文件新建config.js文件,写入以下内容,并根据自身需求修改 + +```js +module.exports = { + // 调试模式开关,调试模式下只调用本地数据 + debug: true, + // 学校数据配置名称,学校英文缩写 + school: "gdst", + // 高德路线规划密钥,必须加入https://restapi.amap.com为request合法域名 + // 密钥申请地址http://lbs.amap.com/api/javascript-api/summary/ + key: "", + // 地图更新地址,用于热修补,无需每次都提交审核 + updateUrl: "https://www.qq.com/json.json", + // 图片CDN域名 + imgCDN: "https://www.gxgkcat.com/" +} +``` + +2、复制resources下的地图数据文件gdst.js,重命名gdst.js为(你自己学校的英文缩写.js,根据实际情况修改) + +```js +module.exports.introduce = {} +module.exports.map = [{}] +``` + +3、修改地图文件 + +``` +参照例子自行研究 +地图经纬度获取:http://lbs.qq.com/tool/getpoint/index.html +``` + +--- + +## 📒开源许可证 + +请认真阅读并遵守以下开源协议 + +`MIT License` [License](https://github.com/gxgk/map/blob/master/LICENSE) + +欢迎 pull request and star + +允许任何人对该项目进行变动 + +同时欢迎各位校友参与到该项目(可新增关于界面加入参与贡献者名称) + +不过,该项目所有图片均有版权(学院宣传服务中心所有),禁止盗用,包含首页背景 + + +更改历史: +1.配置config.js, 申请key以及request合法域名,在微信小程序身份登录的公众平台。然后刷新详情中的基本配置。最后编译就好了。 +2.高德地图api:https://lbs.amap.com/api/webservice/guide/api/staticmaps +3.地图控制台:https://console.amap.com/dev/index +4.修改resources/gdst + 1.改名:cauc + 2.config.js中将school配置为cauc + 3.所以说需要根据自定义的只是cauc.js,地图信息 +5.cdn中gdst.json内容和resources中的cauc.js中的内容相同。 +6.可配置信息和getApp()得到的全局信息只要在cauc.js中修改就好了 +7.index无路线规划,polyline有,因为调用了amap-wx.js接口 +8.details中航大总介绍 + index校园建筑地图 + ployline校园门口位置导航 +9.include points是实现把所有点包含并且只是以第一次包含的点全在为标准。 +10.在index.xml中调用map时,参数中写include-points="{{buildlData[isSelectedBuildType].data}}",包含所有点 +11.第一次迭代效果还不错 +12.接下来的工作: + 1.实现手机端导航授权成功 + 2.实现标志性建筑相关位置显示 + 3.改为调用高德地图,实现中航大3d楼块 + 4.食堂评论功能,前后端绑定 + 5.收集和添加数据 \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/app.js b/src/wxcamleader/miniprogram/app.js new file mode 100644 index 0000000..5f8e15f --- /dev/null +++ b/src/wxcamleader/miniprogram/app.js @@ -0,0 +1,98 @@ +//app.js +let config = require('config.js') +App({ + onLaunch: function() { + var _this = this; + //载入学校位置数据 + _this.loadSchoolConf() + //如果已经授权,提前获取定位信息 + wx.getSetting({ + success(res) { + if (res.authSetting['scope.userLocation']) { + //获取地理位置 + wx.getLocation({ + type: 'wgs84', // 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于 wx.openLocation 的坐标 + success: function(res) { + _this.globalData.latitude = res.latitude; + _this.globalData.longitude = res.longitude; + _this.globalData.islocation = true + } + }) + } + } + }) + }, + + loadNetWorkScoolConf: function() { + var _this = this + return new Promise(function(resolve, reject) { + if (!_this.debug) { + // 优先读取缓存信息 + var map = wx.getStorageSync('map') + var introduce = wx.getStorageSync('introduce') + if (map && introduce) { + _this.globalData.map = map; + _this.globalData.introduce = introduce; + } + + // 再加载网络数据 + wx.request({ + url: config.updateUrl, + header: { + 'content-type': 'application/json' + }, + success: function(res) { + console.log("加载远程数据") + if (res.data.map && res.data.map.length > 0) { + //刷新数据 + _this.globalData.map = res.data.map; + _this.globalData.introduce = res.data.introduce; + + // 存储学校位置数据于缓存中 + wx.setStorage({ + key: "map", + data: res.data.map + }) + wx.setStorage({ + key: "introduce", + data: res.data.introduce + }) + } + }, + complete: function(info) { + resolve(); + } + }) + } else { + resolve(); + } + }); + }, + + loadSchoolConf: function() { + var _this = this + // 载入本地数据 + _this.globalData.map = _this.school.map; + _this.globalData.introduce = _this.school.introduce; + _this.loadNetWorkScoolConf().then(function() { + // 渲染id + for (let i = 0; i < _this.globalData.map.length; i++) { + for (let b = 0; b < _this.globalData.map[i].data.length; b++) { + _this.globalData.map[i].data[b].id = b + 1; + } + } + }) + + }, + debug: config.debug, //开启后只调用本地数据 + imgCDN: config.imgCDN, + school: require('/resources/' + config.school), + globalData: { + userInfo: null, + map: null, + introduce: null, + latitude: null, + longitude: null + } +}, +) \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/app.json b/src/wxcamleader/miniprogram/app.json new file mode 100644 index 0000000..8f0ca9c --- /dev/null +++ b/src/wxcamleader/miniprogram/app.json @@ -0,0 +1,31 @@ +{ + "pages": [ + "pages/login", + "pages/canteen/canteen", + "pages/index", + "pages/map/index", + "pages/map/details", + "pages/map/polyline", + "pages/map/search", + "pages/web-views/web-views", + "pages/test/test" + ], + "permission": { + "scope.userLocation": { + "desc": "你的位置信息将用于辅助规划路线" + } + }, + "requiredPrivateInfos": [ + "getLocation" +], + "window": { + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#079df2", + "navigationBarTitleText": "校园导览", + "navigationBarTextStyle": "white" + }, + "sitemapLocation": "sitemap.json", + "navigateToMiniProgramAppIdList": [ + "wx98d60f2aee3668c3" + ] +} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/app.wxss b/src/wxcamleader/miniprogram/app.wxss new file mode 100644 index 0000000..0bfbce1 --- /dev/null +++ b/src/wxcamleader/miniprogram/app.wxss @@ -0,0 +1,14 @@ +/**app.wxss**/ +page{ + height: 100%; + width: 100%; +} +.container { + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: space-between; + padding: 200rpx 0; + box-sizing: border-box; +} diff --git a/src/wxcamleader/miniprogram/cdn/cauc.json b/src/wxcamleader/miniprogram/cdn/cauc.json new file mode 100644 index 0000000..7199b80 --- /dev/null +++ b/src/wxcamleader/miniprogram/cdn/cauc.json @@ -0,0 +1,432 @@ +{ + "map": [ + { + "name": "景点", + "scale": 16, + "data": [ + { + "name": "图书馆", + "latitude": "39.107078", + "longitude": "117.353131", + "iconPath": "/img/ico/jd.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/景点/图书馆/图书馆1.jpg", + "校园导览/景点/图书馆/图书馆2.jpg", + "校园导览/景点/图书馆/图书馆3.jpg" + ], + "description": "

 广东科技学院图书馆建筑面积2.36万平方米,设有社会科学、自然科学、英语语言专题书库、计算机专题书库等七个大型书库,期刊、报纸、工具书、电子阅览室、新书阅览室等七个功能各异的阅览室,680座的大型学术报告厅一个,共拥有阅览座位1866个。

 图书馆馆藏丰富,现有馆藏图书279.96万册,其中纸质图书177.32万册,电子图书102.64万册,电子期刊1.1万多种,光盘音像资料6万余件。2017年订购纸质期刊600种,纸质报纸100种,基本形成了以学院教学学科专业为主的藏书和综合文献保障体系。

 在学院领导的正确指导和大力支持下,图书馆近年来完成了新书阅览室建设,完成了3楼、5楼自习区的升级改造,完成了报告厅的升级改造,完成了自主学习空间的建设。一系列的升级改造,拉开了图书馆学习空间改造的序幕,极大地改善了图书馆的学习阅览环境,提高了读者阅读、学习的舒适性,获得了师生一致的赞誉。

" + }, + { + "name": "体育馆", + "latitude": "39.106916", + "longitude": "117.355886", + "iconPath": "/img/ico/jd.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/景点/体育馆/体育馆1.jpg", + "校园导览/景点/体育馆/体育馆2.jpg", + "校园导览/景点/体育馆/体育馆3.jpg", + "校园导览/景点/体育馆/体育馆4.jpg" + ], + "description": " 广东科技学院体育馆坐落于学校中心,紧挨学校操场,临近学校7栋教学楼。室内设施现代化,装有中央空调,以及现代化舞台等配套设施。观众席有上下两层,最高可容纳3000人。我校体育馆作为一设施健全,现代化规模高的建筑,每年都会在馆内举办许多大型活动,如我校的迎新晚会,东莞篮球联赛的主场等。是我校标志性建筑之一。" + }, + { + "name": "西湖乐园", + "latitude": "39.10497", + "longitude": "117.355763", + "iconPath": "/img/ico/jd.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/景点/西湖乐园/西湖乐园3.jpg", + "校园导览/景点/西湖乐园/西湖乐园2.jpg", + "校园导览/景点/西湖乐园/西湖乐园1.jpg" + ], + "description": "西湖乐园" + } + ] + }, + { + "name": "教学楼", + "scale": 16, + "data": [ + { + "name": "1号教学楼", + "latitude": "39.105963", + "longitude": "117.353212", + "iconPath": "/img/ico/jxl.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/教学楼/1号教学楼.jpg" + ], + "description": " 1号教学楼有九层楼,左右两侧有电梯,正对着正门(北门),成拱形,左边是2号教学楼,右边是3号教学楼,中间与4、5号教学楼相连。1号教学楼一楼主要是学校社团部门的活动室,还有农行ATM机,校园银行(中国建设银行),中国电信、联通、移动店,广科报刊亭;2~6层楼为多媒体教室;7~9主要为实验室,有:语言实验室、公共实验室、会计多功能综合实验室、软件综合实验室,同声传译实验室,ERP实训室,NET实训室,国际商务英语模拟实训室,计算机基础技术实训室,数据开发实训室,还有管理办公室。" + }, + { + "name": "2号教学楼", + "latitude": "39.106449", + "longitude": "117.35235", + "iconPath": "/img/ico/jxl.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/教学楼/2号教学楼.jpg" + ], + "description": " 2号教学楼有六层楼,在1号教学楼的左边,创业楼的后面。" + }, + { + "name": "3号教学楼", + "latitude": "39.10485", + "longitude": "117.352777", + "iconPath": "/img/ico/jxl.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/教学楼/3号教学楼1.jpg", + "校园导览/教学楼/3号教学楼2.jpg" + ], + "description": " 3号教学楼有六层楼,在1号教学楼的右边。" + }, + { + "name": "4号教学楼", + "latitude": "39.104238", + "longitude": "117.352915", + "iconPath": "/img/ico/jxl.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/教学楼/4号教学楼1.jpg", + "校园导览/教学楼/4号教学楼2.jpg" + ], + "description": " 4栋教学楼位于2栋教学楼后方,且与2栋教学楼相连接。4栋教学楼在配套有现代多媒体教学设施,且全部装有空调的同时还配套有最新电脑设备,帮助学生学习最新现代信息技术。" + }, + { + "name": "5号教学楼", + "latitude": "39.101809", + "longitude": "117.35374", + "iconPath": "/img/ico/jxl.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/教学楼/5号教学楼1.jpg", + "校园导览/教学楼/5号教学楼2.jpg" + ], + "description": " 5栋教学楼位于3栋教学楼后方,且与3栋教学楼相连接。3栋教学楼在配套有现代多媒体教学设施,且全部装有空调,保证了学生学习环境和教师教学环境的质量。使学生能舒适专心地进行高质量学习。" + } + ] + }, + { + "name": "校门", + "scale": 16, + "data": [ + { + "name": "北门", + "latitude": "39.114642", + "longitude": "117.34876", + "iconPath": "/img/ico/xm.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/校门/北门.jpg" + ], + "description": "北门" + }, + { + "name": "南门", + "latitude": "39.107847", + "longitude": "117.354828", + "iconPath": "/img/ico/xm.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/校门/南门2.jpg", + "校园导览/校门/南门3.jpg", + "校园导览/校门/南门1.jpg" + ], + "description": "南门" + }, + { + "name": "西门", + "latitude": "39.105958", + "longitude": "117.351209", + "iconPath": "/img/ico/xm.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/校门/雅苑门.jpg" + ], + "description": "雅苑门" + } + ] + }, + { + "scale": 16, + "name": "行政部门", + "data": [ + { + "name": "机器人研究所", + "floor": "创业楼301", + "latitude": "39.100547", + "longitude": "117.357268", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/创业楼/广科招生办301.jpg" + ], + "description": "创业楼301 广科招生办 Admissions Office" + }, + { + "name": "体育部", + "floor": "创业楼1202", + "latitude": "39.105038", + "longitude": "117.355197", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/创业楼/就业指导中心 1202.jpg" + ], + "description": "

广东科技学院结合社会发展需求,推进教学改章,鼓励学生参加各类社会实践活动,提高专业技能、综合素质与就业创业能力。学院依托东莞区域优势,与企业合作办学、合作育人,建成了200多家校外就业创业实习基地,为学生校外实习创造了良好条件。


学院就业指导中心树立为企业服务、为学生服务的理念,与东莞市智能制造协会、电商联合会等知名行业协会合作,引进行业龙头企业、标杆企业,为毕业生提供优质、对口、薪酬较高的就业岗位。就业工作呈现两个特色:一是搭建“政、校、行、企四位一体”


就业工作平台。市人力资源局、经信局、科技局、南城街道办等政府部门牵线搭桥,帮助学院整合企业资源。学院主动对接行业协会、行业标杆企业与龙头企业,引进大型骨干企业、倍增计划企业、高科技企业进校园招聘;二是以提高人才培养质量为目标,结合专业建设需求,就业工作主动为人才培养服务,力推校企合作。


多年来,广东科技学院的毕业生以综合素质好、职业素养高、实践能力强赢得用人单位的青睐,学院毕业生总体就业率均达98%以上。学院多次荣获广东省高校毕业生就业工作优秀院校、广东省普通高校毕业生就业工作先进集体、广东省民办高校就业竞争力十强等荣誉。


" + }, + { + "name": "学院办公室", + "floor": "行政楼513", + "latitude": "39.104259", + "longitude": "117.352893", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/行政楼/学院办公室 行政楼513.jpg" + ], + "description": "

学院办公室是学院综合性行政管理部门,在主管领导的领导下负责全院行政工作的组织、指导、协调、服务和监控。根据领导的指示,协调各处室,保证各项法规、制度、办法的贯彻执行。其主要职责是:


一、贯彻执行党的教育方针和国家的法律、法规,根据院领导的指示及学院有关规定处理日常工作。


二、负责学院工作计划、总结、报告、决议等文件的起草、印发;组织各系、处、室制订学年(学期)工作计划,撰写工作总结,并检查计划的执行情况。


三、负责院长办公会及全院性会议的筹备、召集与记录工作;负责全院性大型活动的策划、组织、宣传。


四、负责学院的外事工作;负责外出参观、学习、交流、公差、旅游联络协调工作。


五、负责督促检查各行政部门、各单位对学院行政工作目标、文件、会议决定事项、院长指示及各项规章制度的执行落实情况;深入基层调查研究,经常了解全院改革和教学、科研、管理等与全局有关的情况和问题,及时提出相应建议,供院领导参考。


六、负责学院行政公文的管理。做好校内外文件的收发、登记、传阅、催办、立卷、归档工作和公文印制发放工作,处理校内各单位的请示、报告。


七、负责接待群众来信来访,及时协调处理相关事宜,做好督促检查和回复工作。


八、负责上级领导及兄弟院校来校视察、参观、交流的接待工作。


九、掌握并正确使用学院印鉴,负责审定各处室印章的刻制及用印的监督,负责开具介绍信及有关证明。


十、负责各种报表的综合统计及审定报刊杂志的征订。负责审核各处室以学院名义上报或下发的文件资料。


十一、负责办公用品的发放和管理及会议室、接待室的管理和使用。


十二、负责院领导公务用车的调度与管理。


十三、负责院领导的后勤服务工作,负责办理院领导出访、出差的有关手续。


十四、完成院领导交办的其它工作。


" + }, + { + "name": "教务处", + "floor": "行政楼205", + "latitude": "39.102544", + "longitude": "117.354727", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/行政楼/教务处205.jpg" + ], + "description": "

 教务处是学院教学管理的职能部门,在主管教学副院长领导下开展工作,对全院教学活动进行计划、组织、协调、监控、调研,为相关教学单位和教师进行服务。教务处是学院各教学单位相互联系和沟通的枢纽,是保证人才培养质量的重要管理部门;同时也是学院行教学研究、推进教学改革的指导机构。

" + }, + { + "name": "心理辅导中心", + "floor": "图书馆F6", + "latitude": "39.101685", + "longitude": "117.357382", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/行政楼/心理辅导中心 图书馆F6.jpg" + ], + "description": "

 广东科技学院心理健康教育与辅导中心,隶属学生处,全面负责学院的大学生心理健康教育与辅导工作,目前共有专职心理教师4人、心灵关爱导师7人,以及学院、系学生会朋辈心理互助中心(学生干部机构)、心理健康发展协会(学生心理社团)和班级心理委员、宿舍心理委员五支学生心理工作队伍。为进一步加强中心的心理健康教育与辅导功能,在学院领导支持和关怀下,中心的设施设备逐步趋于完善。


 目前,中心设有温馨的心语室、心理测量室、心理舒缓室、团体心理训练室以及心灵书吧等功能室。中心本着优化心理品质、激发个人潜能、促进自我成长的理念,旨在真诚、热情地理解和服务于学生,全面普及心理健康知识,帮助学生排除心理困扰、增强心理适应能力和心理素质、努力开发个人潜能,促进学生全面发展。

" + }, + { + "name": "保卫室(武装部)", + "floor": "教学楼3栋", + "latitude": "39.108148", + "longitude": "117.354363", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/保卫室.jpg" + ], + "description": "

 广东科技学院社会治安综合治理办公室(简称“综治办”)是学院社会治安综合治理委员会下设的机构,与学院保卫处合署。在学院党委和行政的领导下,开展“创安、维稳、禁毒、消防、防邪”等工作。主要负责治安综合治理和治安防范、普法宣传教育和安全防范教育(防毒、防火、防其他事故)、安全检查和隐患排查、信息监控和舆情引导、交通消防和食品卫生安全监督、周边环境治理等。

" + }, + { + "name": "思想政治理论课教学部", + "floor": "教学楼3-205", + "latitude": "39.10729", + "longitude": "117.353125", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/各系办公室/思政部 3-205.jpg" + ], + "description": "

思想政治理论课教学部(简称“思政部”)前身是公共基础部所属的思政教研室,2010年起成为学院直属的二级教学机构,负责全院大学生的思想政治理论和德育课教学与研究工作。思政部师资力量雄厚,教师职称结构、学历结构、学缘结构、年龄结构合理。思政部现有专任教师48人(专职教师47人、兼职教师1人),其中教授9人,副教授5人;具有博士学位教师5人,硕士学位教师35人,在读博士3人;省级教学名师1人、课程负责人1人、各类骨干教师5人,多人具有社会兼职。


思政部现设五个教研室,除开设国家规定的《马克思主义基本原理概论》、《中国近现代史纲要》等5门必修课外,还开设《莞邑文化概论》、《莞邑文化研习营》、《岭南文化概览》、《当代世界经济与政治》、《中西政治比较》、《合同法》、《中华人民共和国公司法》、《散户股票投资实战技能及其法律保护》、《刑事典型案例选讲》、《劳动法热点问题分析》、《刑法学》、《社会工作与志愿服务》、《社交礼仪》、《社会心理学》、《婚姻家庭心理学》、《生活中的传播》等多门选修课。


思政部积极开展教学、科研活动,教学科研成绩斐然。


在教学方面,曹美菊教授获评广东省高校思想政治理论课教师2014年度影响力人物,在2015年广东省首届民办高校“微党课”比赛中荣获一等奖;侯东栋老师在2016年广东省青年教师教学基本功比赛中荣获一等奖,王婕老师获得三等奖;徐泉海老师在2015年广东省青年教师教学基本功比赛中荣获二等奖;曹美菊教授、范海燕老师的微课分别获得全国微课大赛广东分赛区三等奖;在2015年学院讲课比赛中,曾祥辉老师荣获一等奖;同年学院说课比赛中,向前副教授获一等奖。每一学期学生评教,思政部全体老师均在90分以上,名列全校前茅,深受学生好评。


科研方面,李永芳教授申报的《国民革命基地视阈下的广东农会组织研究》获2016年广东省“十三五”社科规划课题立项,民办院校(含独立学院)仅有3项;2016年,我部教师申报的《莞邑文化的生成源流及其当代价值研究》获得广东高校重大科研项目;2017年我部向前副教授申报的《自媒体语境下本科院校思想政治理论课教学的实效性研究》获得广东省2017年省级德育项目立项;2015年,我部教师申报的《东莞文化旅游新业态研究》课题获东莞市2015年哲学社会科学规划课题立项,并获优秀结项;我部申报的实践育人机制建设课题《“莞邑文化研习营”的实践运作与网络传播》获广东省2015年省级德育创新项目重大项目立项,获配套资助经费10万元,并经专家组评审顺利开题;范海燕老师申报的《工学结合模式下高校思政课实践教学模式建构》获广东省2015年省级德育课题一般项目立项,并顺利结题。2016年,李新凤博士申报的《思政课实践教学模式新探索--以广东科技学院法律服务中心实践教学为例》获得广东省教育厅教改课题立项。我部教师指导的省级大学生创新创业项目成功立项15个,位居全院前列。近年来,我部教师在CSSCI来源期刊、北大中文核心期刊发表高层次论文数十篇,在省级一般刊物发表论文数百篇,多篇被人大复印资料转引。


课程建设方面,2015年我部共有四门课程获得院级优质课程立项,分别是徐泉海老师负责的《中国近现代史纲要》,向前老师负责的《形势与政策》、曹美菊教授负责的《毛泽东思想和中国特色社会主义理论体系概论》、张芙华教授负责的《莞邑文化概论》。2017年,范海燕老师负责的《思想道德修养与法律基础》获得院级精品资源共享课立项。


思政部贯彻党的教育方针,以提高大学生思想政治素质为核心,紧紧围绕我院“育产业精英”的培养目标,教学“贴近实际、贴近生活、贴近学生”。2014年我部率先提出提出了“莞邑文化”的概念,在学院内开设了第一门综合性地方课程——《莞邑文化概论》,将研究与教学相结合,全面呈现东莞历史、政治、经济、思想、科技等各方面文化的发展概况,通过挖掘本土特色文化资源,活化系列公共课程,作为思政课程改革的突破口,为学生普及地方文化常识的同时,培养爱乡爱国的情感,让思政课程真正接了地气。学院与虎门硝烟纪念馆、东江纵队纪念馆、袁崇焕纪念文化园等多个单位建立了思想政治教育实践基地,定期组织学生参观学习,成为我院的第二思政课堂。


思政教学紧密围绕学院培养目标,把思想教育与专业教学紧密结合,采取分专业针对性案例教学,让同学们在专业背景下体会到思想性、思辨性,把思想教育融入到专业分析中,积极探索符合我院特色的思想政治教育新路径,力争使每一个毕业生都能够“技能精湛,成熟成人”,不仅是“合格的公民”,还富有亲和力和感染力,人际和谐,成为具有团队精神的优秀毕业生。 思政部倡导主动尽责、自由愉悦的工作氛围,淡化行政主导,倡导人人参与管理,人人自我管理。部门成立有教学指导委员会、学术分委员会、考核与聘任委员会等三个专业委员会和行政、教学、科研、服务四个志愿服务小组,具体承担部门日常管理和业务运行工作。


" + } + ] + }, + { + "name": "食堂", + "scale": 16, + "data": [ + { + "name": "南一食堂", + "latitude": "39.103575", + "longitude": "117.352881", + "iconPath": "/img/ico/st.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/食堂/一饭/一饭1.jpg", + "校园导览/食堂/一饭/一饭2.jpg", + "校园导览/食堂/一饭/一饭二楼1.jpg", + "校园导览/食堂/一饭/一饭二楼2.jpg" + ], + "description": "一号饭堂:位于博苑,学校唯一设有2层的饭堂,是从雅苑宿舍到教学楼的必经之路。是校内人流量最多的一个饭堂,饭菜味道大众化,适合多种人的口味,肉类丰富,种类繁多。有4毛钱和6毛钱的米饭窗口,如果打包需要加1块钱的外卖费,蔬菜跟肉类种类都是很多的,口味也大众化,而且也有炖汤提供,价格不一,最靠左边还有鸡扒饭可选择,一饭正门入口外卖摊位那里还有快餐,基本是客家人,也别有一番风味。第二层特色是自助餐,菜跟肉自己挑选,然后称重算钱,15块钱一斤,饭是免费的,可以吃多少打多少,另外还有煮面食的摊位。" + }, + { + "name": "南二食堂", + "latitude": "39.101772", + "longitude": "117.351573", + "iconPath": "/img/ico/st.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/食堂/二饭/二饭1.jpg", + "校园导览/食堂/二饭/二饭2.jpg" + ], + "description": "二号饭堂:位于南苑4号宿舍的一楼,接近图书馆,环境明亮,早餐有肠粉,菜色丰富,口感鲜美,特色是现煮粥,材料可自己选择。" + }, + { + "name": "南三食堂", + "latitude": "39.10329", + "longitude": "117.351733", + "iconPath": "/img/ico/st.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/食堂/三饭/三饭1.jpg", + "校园导览/食堂/三饭/三饭2.jpg", + "校园导览/食堂/三饭/三饭3.jpg" + ], + "description": "三号饭堂:三饭与二饭相邻,在南苑1.2号宿舍的一楼,有自助餐和汤粉蒸粉肠粉,三饭的特色是煲仔饭,材料可自己选择(田鸡、鸡肉等)菜色丰富,不过早餐是4个饭堂中种类最多的,味道也都挺不错的。" + } + ] + }, + { + "scale": 16, + "name": "宿舍", + "data": [ + { + "name": "南一公寓", + "latitude": "39.103543", + "longitude": "117.353461", + "iconPath": "/img/ico/boy_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑男生/南苑1栋.jpg" + ], + "description": "南苑1栋" + }, + { + "name": "南苑2栋", + "latitude": "39.103198", + "longitude": "117.353412", + "iconPath": "/img/ico/boy_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑男生/南苑2栋.jpg" + ], + "description": "南苑2栋" + }, + { + "name": "南苑3栋", + "latitude": "39.103467", + "longitude": "117.353915", + "iconPath": "/img/ico/boy_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑男生/南苑3-4栋.jpg" + ], + "description": "南苑3栋" + }, + { + "name": "南苑4栋", + "latitude": "39.103299", + "longitude": "117.353919", + "iconPath": "/img/ico/boy_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑男生/南苑4栋.jpg" + ], + "description": "南苑4栋" + }, + { + "name": "南苑5栋", + "latitude": "39.102828", + "longitude": "117.3534", + "iconPath": "/img/ico/boy_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑男生/南苑5栋.jpg" + ], + "description": "南苑5栋" + }, + { + "name": "南苑6栋", + "latitude": "39.102527", + "longitude": "117.353382", + "iconPath": "/img/ico/girl_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑女生/南苑6栋.jpg" + ], + "description": "南苑6栋" + }, + { + "name": "南苑7栋", + "latitude": "39.102818", + "longitude": "117.353908", + "iconPath": "/img/ico/girl_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑女生/南苑7栋.jpg" + ], + "description": "南苑7栋" + }, + { + "name": "南苑8栋", + "latitude": "39.102518", + "longitude": "117.353906", + "iconPath": "/img/ico/girl_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑8910/南苑1.jpg", + "校园导览/南苑8910/南苑2.jpg", + "校园导览/南苑8910/南苑3.jpg" + ], + "description": "南苑8栋" + } + ] + } + ], + "introduce": { + "shortName": "广科", + "name": "广东科技学院", + "images": "校园导览/gdst.jpg", + "share": "校园导览/share.jpg", + "latitude": "22.972816", + "longitude": "113.756003", + "img": [ + "校园导览/校门/北门.jpg", + "校园导览/教学楼/全景.jpg" + ], + "description": "

 广东科技学院创建于2003年,是国家教育部批准设立的一所以工学为主,管理学、经济学、文学、艺术学等多学科协调发展的全日制普通本科院校,拥有学士学位授予权。学院设有机电工程系、计算机学院、管理系、财经系、外语系、艺术设计系、公共基础课部、思想政治理论课教学部、继续教育学院、国际教育学院、创新创业学院等六系两部三院。学院校园规划占地面积1700余亩,南城校区已有建筑面积48万余平方米,建设中的松山湖校区规划总建筑面积82.34万余平方米,拥有各类图书279.96万册,教学仪器设备总值10752.28万余元。

 学院始终坚持“人才强校”战略,拥有了一支数量充足、结构合理、素质过硬的教师队伍。学院大力鼓励教师开展科研活动。学院注重以专业技术技能大赛促进教学水平的提高,学生获得了各种专业比赛奖项。学院不断加强实验实训基地建设。学院毕业生赢得用人单位的青睐。历届学生最终就业率均在98%以上。学院积极与国外及港澳台高校进行交流与合作。目前与十余所国外高校协同开展3+1+1本硕连读、2+2双学位等合作项目,为学院学生到美、英、泰等国交流学习提供了便捷通道。

 经过14年的发展,学院办学水平稳步提升。学院将继续秉承“崇德、尚学、精艺、笃行”的校训,不断进取,开拓创新,进一步加强内涵建设,着力提高人才培养质量,提升科学研究服务社会能力,为把学院建设成为民办高水平理工科学院,实现学院“创百年学府,育产业精英”的目标而努力奋斗。

", + "mapCopyright": { + "name": "招生宣传服务中心", + "url": "yzf.huapens.com/wx/" + } + } +} diff --git a/src/wxcamleader/miniprogram/img/ico/boy_ss.png b/src/wxcamleader/miniprogram/img/ico/boy_ss.png new file mode 100644 index 0000000..fe41508 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/ico/boy_ss.png differ diff --git a/src/wxcamleader/miniprogram/img/ico/dcl.png b/src/wxcamleader/miniprogram/img/ico/dcl.png new file mode 100644 index 0000000..f9f8910 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/ico/dcl.png differ diff --git a/src/wxcamleader/miniprogram/img/ico/girl_ss.png b/src/wxcamleader/miniprogram/img/ico/girl_ss.png new file mode 100644 index 0000000..85155a7 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/ico/girl_ss.png differ diff --git a/src/wxcamleader/miniprogram/img/ico/jd.png b/src/wxcamleader/miniprogram/img/ico/jd.png new file mode 100644 index 0000000..744e475 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/ico/jd.png differ diff --git a/src/wxcamleader/miniprogram/img/ico/jd1.png b/src/wxcamleader/miniprogram/img/ico/jd1.png new file mode 100644 index 0000000..1559b4b Binary files /dev/null and b/src/wxcamleader/miniprogram/img/ico/jd1.png differ diff --git a/src/wxcamleader/miniprogram/img/ico/jxl.png b/src/wxcamleader/miniprogram/img/ico/jxl.png new file mode 100644 index 0000000..e616dc1 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/ico/jxl.png differ diff --git a/src/wxcamleader/miniprogram/img/ico/st.png b/src/wxcamleader/miniprogram/img/ico/st.png new file mode 100644 index 0000000..99510b3 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/ico/st.png differ diff --git a/src/wxcamleader/miniprogram/img/ico/xm.png b/src/wxcamleader/miniprogram/img/ico/xm.png new file mode 100644 index 0000000..675fd97 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/ico/xm.png differ diff --git a/src/wxcamleader/miniprogram/img/ico/xyfu.png b/src/wxcamleader/miniprogram/img/ico/xyfu.png new file mode 100644 index 0000000..56c15b8 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/ico/xyfu.png differ diff --git a/src/wxcamleader/miniprogram/img/ico/景点.png b/src/wxcamleader/miniprogram/img/ico/景点.png new file mode 100644 index 0000000..9ffed91 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/ico/景点.png differ diff --git a/src/wxcamleader/miniprogram/img/loading.svg b/src/wxcamleader/miniprogram/img/loading.svg new file mode 100644 index 0000000..e676ab3 --- /dev/null +++ b/src/wxcamleader/miniprogram/img/loading.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/img/location.png b/src/wxcamleader/miniprogram/img/location.png new file mode 100644 index 0000000..4372c77 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/location.png differ diff --git a/src/wxcamleader/miniprogram/img/location.svg b/src/wxcamleader/miniprogram/img/location.svg new file mode 100644 index 0000000..887de8f --- /dev/null +++ b/src/wxcamleader/miniprogram/img/location.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/img/mapicon_end.png b/src/wxcamleader/miniprogram/img/mapicon_end.png new file mode 100644 index 0000000..4b9ed6c Binary files /dev/null and b/src/wxcamleader/miniprogram/img/mapicon_end.png differ diff --git a/src/wxcamleader/miniprogram/img/mapicon_start.png b/src/wxcamleader/miniprogram/img/mapicon_start.png new file mode 100644 index 0000000..27ed2d0 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/mapicon_start.png differ diff --git a/src/wxcamleader/miniprogram/img/search.png b/src/wxcamleader/miniprogram/img/search.png new file mode 100644 index 0000000..b508a19 Binary files /dev/null and b/src/wxcamleader/miniprogram/img/search.png differ diff --git a/src/wxcamleader/miniprogram/pages/canteen/canteen.js b/src/wxcamleader/miniprogram/pages/canteen/canteen.js new file mode 100644 index 0000000..5c6f5a0 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/canteen/canteen.js @@ -0,0 +1,1360 @@ +// pages/canteen/canteen.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + grade:0, + inputValue: "", + data:null, + showModal:false, + currentTab:0, + //canteen + canteen11:[ + { id:"1", + name:"益禾酸菜鱼", + evaluate:"暂无评分", + }, + { id:"2", + name:"面行人", + evaluate:"暂无评分" + }, + { id:"3", + name:"jo姐饭团", + evaluate:"暂无评分" + }, + { id:"4", + name:"馄饨", + evaluate:"暂无评分" + }, + { id:"5", + name:"包子", + evaluate:"暂无评分" + }, + { id:"6", + name:"馅饼", + evaluate:"暂无评分" + }, + { id:"7", + name:"啥也不会", + evaluate:"暂无评分" + }, + { id:"8", + name:"啥也不行", + evaluate:"暂无评分" + }, + ], + canteen12:[ + { id:"1", + name:"m-牛肉饭", + evaluate:"暂无评分" + }, + { id:"2", + name:"面夫子", + evaluate:"暂无评分" + }, + { id:"3", + name:"大盘鸡盖面", + evaluate:"暂无评分" + }, + { id:"4", + name:"馄饨", + evaluate:"暂无评分" + }, + { id:"5", + name:"包子", + evaluate:"暂无评分" + }, + { id:"6", + name:"馅饼", + evaluate:"暂无评分" + }, + { id:"7", + name:"啥也不会", + evaluate:"暂无评分" + }, + { id:"8", + name:"啥也不行", + evaluate:"暂无评分" + }, + ], + canteen13:[ + { id:"1", + name:"营养早餐", + evaluate:"暂无评分" + }, + { id:"2", + name:"山西刀削面", + evaluate:"暂无评分" + }, + { id:"3", + name:"渔粉", + evaluate:"暂无评分" + }, + { id:"4", + name:"馄饨", + evaluate:"暂无评分" + }, + { id:"5", + name:"包子", + evaluate:"暂无评分" + }, + { id:"6", + name:"馅饼", + evaluate:"暂无评分" + }, + { id:"7", + name:"啥也不会", + evaluate:"暂无评分" + }, + { id:"8", + name:"啥也不行", + evaluate:"暂无评分" + }, + + ], + canteen21:[ + { id:"1", + name:"bu餐", + evaluate:"暂无评分" + }, + { id:"2", + name:"山北刀削面", + evaluate:"暂无评分" + }, + { id:"3", + name:"<・)))><<粉", + evaluate:"暂无评分" + }, + { id:"4", + name:"馄饨", + evaluate:"暂无评分" + }, + { id:"5", + name:"包子", + evaluate:"暂无评分" + }, + { id:"6", + name:"馅饼", + evaluate:"暂无评分" + }, + { id:"7", + name:"啥也不会", + evaluate:"暂无评分" + }, + { id:"8", + name:"啥也不行", + evaluate:"暂无评分" + }, + + ], + canteen22:[ + { id:"1", + name:"不营养中餐", + evaluate:"暂无评分" + }, + { id:"2", + name:"山南刀削面", + evaluate:"暂无评分" + }, + { id:"3", + name:"鲨鱼粉", + evaluate:"暂无评分" + }, + { id:"4", + name:"馄饨", + evaluate:"暂无评分" + }, + { id:"5", + name:"包子", + evaluate:"暂无评分" + }, + { id:"6", + name:"馅饼", + evaluate:"暂无评分" + }, + { id:"7", + name:"啥也不会", + evaluate:"暂无评分" + }, + { id:"8", + name:"啥也不行", + evaluate:"暂无评分" + }, + + ], + canteen23:[ + { id:"1", + name:"油炸早餐", + evaluate:"暂无评分" + }, + { id:"2", + name:"山东刀削面", + evaluate:"暂无评分" + }, + { id:"3", + name:"鲤鱼粉", + evaluate:"暂无评分" + }, + { id:"4", + name:"馄饨", + evaluate:"暂无评分" + }, + { id:"5", + name:"包子", + evaluate:"暂无评分" + }, + { id:"6", + name:"馅饼", + evaluate:"暂无评分" + }, + { id:"7", + name:"啥也不会", + evaluate:"暂无评分" + }, + { id:"8", + name:"啥也不行", + evaluate:"暂无评分" + }, + + ], + canteen3:[ + { id:"1", + name:"终于", + evaluate:"暂无评分" + }, + { id:"2", + name:"快要", + evaluate:"暂无评分" + }, + { id:"3", + name:"敲完了", + evaluate:"暂无评分" + }, + { id:"4", + name:"馄饨", + evaluate:"暂无评分" + }, + { id:"5", + name:"包子", + evaluate:"暂无评分" + }, + { id:"6", + name:"馅饼", + evaluate:"暂无评分" + }, + { id:"7", + name:"啥也不会", + evaluate:"暂无评分" + }, + { id:"8", + name:"啥也不行", + evaluate:"暂无评分" + }, + + ] + }, + swipeContent:function(e){ + var _this=this; + if(this.data.currentTab!=e.target.dataset.current){ + _this.setData({ + currentTab: e.target.dataset.current, + }); + } + }, + swiperChange:function(e){ + var _this=this; + _this.setData({ + currentTab:e.detail.current, + }); + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function () { + + + }, + showModal_click:function(){ + this.setData({ + showModal:true + }) + }, +//评分 + change111:function(e){ + // console.log(e.detail.value); + this.setData({ + nowgrade:e.detail.value + }) + + }, +//获取评分 + +//评论 + inputcon:function(e){ + this.setData({ + inputValue:e.detail.value + }) + }, + send:function(e){ + console.log("发送内容为:",this.data.inputValue); + this.setData({ + sendValue:this.data.inputValue + }) + }, + + //弹窗事件 + hideModal: function () { + this.setData({ + showModal: false + }); + }, + onCancel: function () { + this.hideModal(); + }, + onConfirm: function () { + this.hideModal(); + console.log("评分为:",this.data.nowgrade); + this.setData({ + grade:this.data.nowgrade + }) + }, + sliderchange111:function(e) { + this.setData({ slider111: e.detail.value }) + }, + showModal_click112:function(){ + this.setData({ + showModal112:true + }) + }, + onCancel112: function () { + this.hideModal112(); + }, + onConfirm112: function () { + this.hideModal112(); + }, + hideModal112: function () { + this.setData({ + showModal112: false + }); + }, + // 113 + hideModal113: function () { + this.setData({ + showModal113: false + }); + }, + + showModal_click113:function(){ + this.setData({ + showModal113:true + }) + }, + onCancel113: function () { + this.hideModal113(); + }, + onConfirm113: function () { + this.hideModal113(); + }, + // 114 + hideModal114: function () { + this.setData({ + showModal114: false + }); + }, + + showModal_click114:function(){ + this.setData({ + showModal114:true + }) + }, + onCancel114: function () { + this.hideModal114(); + }, + onConfirm114: function () { + this.hideModal114(); + }, + // 115 + hideModal115: function () { + this.setData({ + showModal115: false + }); + }, + + showModal_click115:function(){ + this.setData({ + showModal115:true + }) + }, + onCancel115: function () { + this.hideModal115(); + }, + onConfirm115: function () { + this.hideModal115(); + }, + // 116 + hideModal116: function () { + this.setData({ + showModal116: false + }); + }, + + showModal_click116:function(){ + this.setData({ + showModal116:true + }) + }, + onCancel116: function () { + this.hideModal116(); + }, + onConfirm116: function () { + this.hideModal116(); + }, + // 117 + hideModal117: function () { + this.setData({ + showModal117: false + }); + }, + + showModal_click117:function(){ + this.setData({ + showModal117:true + }) + }, + onCancel117: function () { + this.hideModal117(); + }, + onConfirm117: function () { + this.hideModal117(); + }, + // 118 + hideModal118: function () { + this.setData({ + showModal118: false + }); + }, + + showModal_click118:function(){ + this.setData({ + showModal118:true + }) + }, + onCancel118: function () { + this.hideModal118(); + }, + onConfirm118: function () { + this.hideModal118(); + }, + // 121 + hideModal121: function () { + this.setData({ + showModal121: false + }); + }, + + showModal_click121:function(){ + this.setData({ + showModal121:true + }) + }, + onCancel121: function () { + this.hideModal121(); + }, + onConfirm121: function () { + this.hideModal121(); + }, + // 122 + hideModal122: function () { + this.setData({ + showModal122: false + }); + }, + + showModal_click122:function(){ + this.setData({ + showModal122:true + }) + }, + onCancel122: function () { + this.hideModal122(); + }, + onConfirm122: function () { + this.hideModal122(); + }, + // 123 + hideModal123: function () { + this.setData({ + showModal123: false + }); + }, + + showModal_click123:function(){ + this.setData({ + showModal123:true + }) + }, + onCancel123: function () { + this.hideModal123(); + }, + onConfirm123: function () { + this.hideModal123(); + }, + // 124 + hideModal124: function () { + this.setData({ + showModal124: false + }); + }, + + showModal_click124:function(){ + this.setData({ + showModal124:true + }) + }, + onCancel124: function () { + this.hideModal124(); + }, + onConfirm124: function () { + this.hideModal124(); + }, + // 125 + hideModal125: function () { + this.setData({ + showModal125: false + }); + }, + + showModal_click125:function(){ + this.setData({ + showModal125:true + }) + }, + onCancel125: function () { + this.hideModal125(); + }, + onConfirm125: function () { + this.hideModal125(); + }, + // 126 + hideModal126: function () { + this.setData({ + showModal126: false + }); + }, + + showModal_click126:function(){ + this.setData({ + showModal126:true + }) + }, + onCancel126: function () { + this.hideModal126(); + }, + onConfirm126: function () { + this.hideModal126(); + }, + // 127 + hideModal127: function () { + this.setData({ + showModal127: false + }); + }, + + showModal_click127:function(){ + this.setData({ + showModal127:true + }) + }, + onCancel127: function () { + this.hideModal127(); + }, + onConfirm127: function () { + this.hideModal127(); + }, + // 128 + hideModal128: function () { + this.setData({ + showModal128: false + }); + }, + + showModal_click128:function(){ + this.setData({ + showModal128:true + }) + }, + onCancel128: function () { + this.hideModal128(); + }, + onConfirm128: function () { + this.hideModal128(); + }, + // 131 + hideModal131: function () { + this.setData({ + showModal131: false + }); + }, + + showModal_click131:function(){ + this.setData({ + showModal131:true + }) + }, + onCancel131: function () { + this.hideModal131(); + }, + onConfirm131: function () { + this.hideModal131(); + }, + // 132 + hideModal132: function () { + this.setData({ + showModal132: false + }); + }, + + showModal_click132:function(){ + this.setData({ + showModal132:true + }) + }, + onCancel132: function () { + this.hideModal132(); + }, + onConfirm132: function () { + this.hideModal132(); + }, + // 133 + hideModal133: function () { + this.setData({ + showModal133: false + }); + }, + + showModal_click133:function(){ + this.setData({ + showModal133:true + }) + }, + onCancel133: function () { + this.hideModal133(); + }, + onConfirm133: function () { + this.hideModal133(); + }, + // 134 + hideModal134: function () { + this.setData({ + showModal134: false + }); + }, + + showModal_click134:function(){ + this.setData({ + showModal134:true + }) + }, + onCancel134: function () { + this.hideModal134(); + }, + onConfirm134: function () { + this.hideModal134(); + }, + // 135 + hideModal135: function () { + this.setData({ + showModal135: false + }); + }, + + showModal_click135:function(){ + this.setData({ + showModal135:true + }) + }, + onCancel135: function () { + this.hideModal135(); + }, + onConfirm135: function () { + this.hideModal135(); + }, + // 136 + hideModal136: function () { + this.setData({ + showModal136: false + }); + }, + + showModal_click136:function(){ + this.setData({ + showModal136:true + }) + }, + onCancel136: function () { + this.hideModal136(); + }, + onConfirm136: function () { + this.hideModal136(); + }, + // 137 + hideModal137: function () { + this.setData({ + showModal137: false + }); + }, + + showModal_click137:function(){ + this.setData({ + showModal137:true + }) + }, + onCancel137: function () { + this.hideModal137(); + }, + onConfirm137: function () { + this.hideModal137(); + }, + // 138 + hideModal138: function () { + this.setData({ + showModal138: false + }); + }, + + showModal_click138:function(){ + this.setData({ + showModal138:true + }) + }, + onCancel138: function () { + this.hideModal138(); + }, + onConfirm138: function () { + this.hideModal138(); + }, + // 食堂2 1楼 + //弹窗事件 + hideModal211: function () { + this.setData({ + showModal211: false + }); + }, + onCancel211: function () { + this.hideModal211(); + }, + onConfirm211: function () { + this.hideModal211(); + }, + + showModal_click212:function(){ + this.setData({ + showModal212:true + }) + }, + onCancel212: function () { + this.hideModal212(); + }, + onConfirm212: function () { + this.hideModal212(); + }, + hideModal212: function () { + this.setData({ + showModal212: false + }); + }, + // 213 + hideModal213: function () { + this.setData({ + showModal213: false + }); + }, + + showModal_click213:function(){ + this.setData({ + showModal213:true + }) + }, + onCancel213: function () { + this.hideModal213(); + }, + onConfirm213: function () { + this.hideModal213(); + }, + // 214 + hideModal214: function () { + this.setData({ + showModal214: false + }); + }, + + showModal_click214:function(){ + this.setData({ + showModal214:true + }) + }, + onCancel214: function () { + this.hideModal214(); + }, + onConfirm214: function () { + this.hideModal214(); + }, + // 215 + hideModal215: function () { + this.setData({ + showModal215: false + }); + }, + + showModal_click215:function(){ + this.setData({ + showModal215:true + }) + }, + onCancel215: function () { + this.hideModal215(); + }, + onConfirm215: function () { + this.hideModal215(); + }, + // 216 + hideModal216: function () { + this.setData({ + showModal216: false + }); + }, + + showModal_click216:function(){ + this.setData({ + showModal216:true + }) + }, + onCancel216: function () { + this.hideModal216(); + }, + onConfirm216: function () { + this.hideModal216(); + }, + // 217 + hideModal217: function () { + this.setData({ + showModal217: false + }); + }, + + showModal_click217:function(){ + this.setData({ + showModal217:true + }) + }, + onCancel217: function () { + this.hideModal217(); + }, + onConfirm217: function () { + this.hideModal217(); + }, + // 218 + hideModal218: function () { + this.setData({ + showModal218: false + }); + }, + + showModal_click218:function(){ + this.setData({ + showModal218:true + }) + }, + onCancel218: function () { + this.hideModal218(); + }, + onConfirm218: function () { + this.hideModal218(); + }, + // 221 + hideModal221: function () { + this.setData({ + showModal221: false + }); + }, + + showModal_click221:function(){ + this.setData({ + showModal221:true + }) + }, + onCancel221: function () { + this.hideModal221(); + }, + onConfirm221: function () { + this.hideModal221(); + }, + // 222 + hideModal222: function () { + this.setData({ + showModal222: false + }); + }, + + showModal_click222:function(){ + this.setData({ + showModal222:true + }) + }, + onCancel222: function () { + this.hideModal222(); + }, + onConfirm222: function () { + this.hideModal222(); + }, + // 223 + hideModal223: function () { + this.setData({ + showModal223: false + }); + }, + + showModal_click223:function(){ + this.setData({ + showModal223:true + }) + }, + onCancel223: function () { + this.hideModal223(); + }, + onConfirm223: function () { + this.hideModal223(); + }, + // 224 + hideModal224: function () { + this.setData({ + showModal224: false + }); + }, + + showModal_click224:function(){ + this.setData({ + showModal224:true + }) + }, + onCancel224: function () { + this.hideModal224(); + }, + onConfirm224: function () { + this.hideModal224(); + }, + // 225 + hideModal225: function () { + this.setData({ + showModal225: false + }); + }, + + showModal_click225:function(){ + this.setData({ + showModal225:true + }) + }, + onCancel225: function () { + this.hideModal225(); + }, + onConfirm225: function () { + this.hideModal225(); + }, + // 226 + hideModal226: function () { + this.setData({ + showModal226: false + }); + }, + + showModal_click226:function(){ + this.setData({ + showModal226:true + }) + }, + onCancel226: function () { + this.hideModal226(); + }, + onConfirm226: function () { + this.hideModal226(); + }, + // 227 + hideModal227: function () { + this.setData({ + showModal227: false + }); + }, + + showModal_click227:function(){ + this.setData({ + showModal227:true + }) + }, + onCancel227: function () { + this.hideModal227(); + }, + onConfirm227: function () { + this.hideModal227(); + }, + // 228 + hideModal228: function () { + this.setData({ + showModal228: false + }); + }, + + showModal_click228:function(){ + this.setData({ + showModal228:true + }) + }, + onCancel228: function () { + this.hideModal228(); + }, + onConfirm228: function () { + this.hideModal228(); + }, + // 231 + hideModal231: function () { + this.setData({ + showModal231: false + }); + }, + + showModal_click231:function(){ + this.setData({ + showModal231:true + }) + }, + onCancel231: function () { + this.hideModal231(); + }, + onConfirm231: function () { + this.hideModal231(); + }, + // 232 + hideModal232: function () { + this.setData({ + showModal232: false + }); + }, + + showModal_click232:function(){ + this.setData({ + showModal232:true + }) + }, + onCancel232: function () { + this.hideModal232(); + }, + onConfirm232: function () { + this.hideModal232(); + }, + // 233 + hideModal233: function () { + this.setData({ + showModal233: false + }); + }, + + showModal_click233:function(){ + this.setData({ + showModal233:true + }) + }, + onCancel233: function () { + this.hideModal233(); + }, + onConfirm233: function () { + this.hideModal233(); + }, + // 234 + hideModal234: function () { + this.setData({ + showModal234: false + }); + }, + + showModal_click234:function(){ + this.setData({ + showModal234:true + }) + }, + onCancel234: function () { + this.hideModal234(); + }, + onConfirm234: function () { + this.hideModal234(); + }, + // 235 + hideModal235: function () { + this.setData({ + showModal235: false + }); + }, + + showModal_click235:function(){ + this.setData({ + showModal235:true + }) + }, + onCancel235: function () { + this.hideModal235(); + }, + onConfirm235: function () { + this.hideModal235(); + }, + // 236 + hideModal236: function () { + this.setData({ + showModal236: false + }); + }, + + showModal_click236:function(){ + this.setData({ + showModal236:true + }) + }, + onCancel236: function () { + this.hideModal236(); + }, + onConfirm236: function () { + this.hideModal236(); + }, + // 237 + hideModal237: function () { + this.setData({ + showModal237: false + }); + }, + + showModal_click237:function(){ + this.setData({ + showModal237:true + }) + }, + onCancel237: function () { + this.hideModal237(); + }, + onConfirm237: function () { + this.hideModal237(); + }, + // 238 + hideModal238: function () { + this.setData({ + showModal238: false + }); + }, + + showModal_click238:function(){ + this.setData({ + showModal238:true + }) + }, + onCancel238: function () { + this.hideModal238(); + }, + onConfirm238: function () { + this.hideModal238(); + }, +// 食堂3 + // 31 + hideModal31: function () { + this.setData({ + showModal31: false + }); + }, + + showModal_click31:function(){ + this.setData({ + showModal31:true + }) + }, + onCancel31: function () { + this.hideModal31(); + }, + onConfirm31: function () { + this.hideModal31(); + }, + // 32 + hideModal32: function () { + this.setData({ + showModal32: false + }); + }, + + showModal_click32:function(){ + this.setData({ + showModal32:true + }) + }, + onCancel32: function () { + this.hideModal32(); + }, + onConfirm32: function () { + this.hideModal32(); + }, + // 33 + hideModal33: function () { + this.setData({ + showModal33: false + }); + }, + + showModal_click33:function(){ + this.setData({ + showModal33:true + }) + }, + onCancel33: function () { + this.hideModal33(); + }, + onConfirm33: function () { + this.hideModal33(); + }, + // 34 + hideModal34: function () { + this.setData({ + showModal34: false + }); + }, + + showModal_click34:function(){ + this.setData({ + showModal34:true + }) + }, + onCancel34: function () { + this.hideModal34(); + }, + onConfirm34: function () { + this.hideModal34(); + }, + // 35 + hideModal35: function () { + this.setData({ + showModal35: false + }); + }, + + showModal_click35:function(){ + this.setData({ + showModal35:true + }) + }, + onCancel35: function () { + this.hideModal35(); + }, + onConfirm35: function () { + this.hideModal35(); + }, + // 36 + hideModal36: function () { + this.setData({ + showModal36: false + }); + }, + + showModal_click36:function(){ + this.setData({ + showModal36:true + }) + }, + onCancel36: function () { + this.hideModal36(); + }, + onConfirm36: function () { + this.hideModal36(); + }, + // 37 + hideModal37: function () { + this.setData({ + showModal37: false + }); + }, + + showModal_click37:function(){ + this.setData({ + showModal37:true + }) + }, + onCancel37: function () { + this.hideModal37(); + }, + onConfirm37: function () { + this.hideModal37(); + }, + // 38 + hideModal38: function () { + this.setData({ + showModal38: false + }); + }, + + showModal_click38:function(){ + this.setData({ + showModal38:true + }) + }, + onCancel38: function () { + this.hideModal38(); + }, + onConfirm38: function () { + this.hideModal38(); + }, + + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/canteen/canteen.json b/src/wxcamleader/miniprogram/pages/canteen/canteen.json new file mode 100644 index 0000000..3928faa --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/canteen/canteen.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/canteen/canteen.wxml b/src/wxcamleader/miniprogram/pages/canteen/canteen.wxml new file mode 100644 index 0000000..a140e94 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/canteen/canteen.wxml @@ -0,0 +1,1381 @@ + + + + + +南一食堂1楼 +南一食堂2楼 +南一食堂3楼 +南二食堂1楼 +南二食堂2楼 +南二食堂3楼 +南三食堂 + + + + + + + 窗口{{item.id}} + {{item.name}} + + + + + + 评分:{{grade}} + + 评分:{{grade1}} + + 评分:{{grade2}} + + 评分:{{grade3}} + + 评分:{{grade4}} + + 评分:{{grade5}} + + 评分:{{grade6}} + + 评分:{{grade7}} + + + + + + 窗口{{item.id}} + {{item.name}} + 评分:{{item.evaluate}} + + + + + + + + + + + + + + + + 窗口{{item.id}} + {{item.name}} + 评分:{{item.evaluate}} + + + + + + + + + + + + + + + + 窗口{{item.id}} + {{item.name}} + 评分:{{item.evaluate}} + + + + + + + + + + + + + + + + 窗口{{item.id}} + {{item.name}} + 评分:{{item.evaluate}} + + + + + + + + + + + + + + + + 窗口{{item.id}} + {{item.name}} + 评分:{{item.evaluate}} + + + + + + + + + + + + + + + + 窗口{{item.id}} + {{item.name}} + 评分:{{item.evaluate}} + + + + + + + + + + + + + + + + + + + + + 窗口 + + + 评分 + + + + + + + + + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + 评分 + + + + + + + + + + + + 取消 + 确定 + + + + + + + + 窗口 + + 评分 + + + + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + 评分 + + + + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + 评分 + + + + + + + + + + + + 取消 + 确定 + + + + + + + + 窗口 + + 评分 + + + + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + 评分 + + + + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + 评分 + + + + + + + + + + + + 取消 + 确定 + + + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + 取消 + 确定 + + + + + + + + + + 窗口 + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + + 取消 + 确定 + + + + + + + + + 窗口 + + + + + + + + + 取消 + 确定 + + + diff --git a/src/wxcamleader/miniprogram/pages/canteen/canteen.wxss b/src/wxcamleader/miniprogram/pages/canteen/canteen.wxss new file mode 100644 index 0000000..156a246 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/canteen/canteen.wxss @@ -0,0 +1,784 @@ +/* pages/canteen/canteen.wxss */ +.father{ + display:flex; + + align-items:flex-start ; + +} +.can-display{ +background-color: rgb(247, 246, 235); +width: 40%; +height: 13cm + +} + +.can-display view{ + display:inline-flexbox; + margin:50rpx 40rpx; + width:70%; + font-size: 35rpx; + +} +.cn_active{ + color: rgb(204, 175, 9); + font-weight: 710; + border-bottom: 4rpx solid rgb(204, 175, 9); + + } +.swiper_container{ + width:70%; + height:12cm + +} +.recipe_cell{ +flex-direction: column; +padding: 30rpx; +border-bottom: 1rpx solid rgb(248, 224, 118); +} +/* 弹窗 */ +.showModal{ + position: absolute; + height:25px; + right:2%; + width:10%; + top:10%; + background: rgb(250, 239, 177); + color:#fff; + font-size: 10px; + pointer-events:auto; + + } + .showModal112{ + position: absolute; + height:25px; + right:2%; + width:10%; + top:27%; + background: rgb(250, 239, 177); + color:#fff; + font-size: 10px; + pointer-events:auto; + + } + .showModal113{ + position: absolute; + height:25px; + right:2%; + width:10%; + top:45%; + background: rgb(250, 239, 177); + color:#fff; + font-size: 10px; + pointer-events:auto; + } + .showModal114{ + position: absolute; + height:25px; + right:2%; + width:10%; + top:62%; + background: rgb(250, 239, 177); + color:#fff; + font-size: 10px; + pointer-events:auto; + } + .showModal115{ + position: absolute; + height:25px; + right:2%; + width:10%; + top:79%; + background: rgb(250, 239, 177); + color:#fff; + font-size: 10px; + pointer-events:auto; + } + .showModal116{ + position: absolute; + height:25px; + right:2%; + width:10%; + top:106%; + background: rgb(250, 239, 177); + color:#fff; + font-size: 10px; + pointer-events:auto; + } + .showModal117{ + position: absolute; + height:25px; + right:2%; + width:10%; + top:126%; + background: rgb(250, 239, 177); + color:#fff; + font-size: 10px; + pointer-events:auto; + } + .showModal118{ + position: absolute; + height:25px; + right:2%; + width:10%; + top:145%; + background: rgb(250, 239, 177); + color:#fff; + font-size: 10px; + pointer-events:auto; + } + + /*以下全是弹窗样式*/ + .modal-mask { + width: 100%; + height: 100%; + position: fixed; + top: 0; + left: 0; + background: rgba(0, 0, 0, 0.158); + opacity: 0.5; + overflow: hidden; + z-index: 9000; + color: #fff; + } + .modal-dialog { + width: 599rpx; + height:900rpx; + overflow: hidden; + position: fixed; + top: 25%; + left: 0; + z-index: 9999; + background: #ffffff; + margin-top: -180rpx; + margin-left: 10%; + border-radius: 36rpx; + } + .modal-title { + padding-top: 30rpx; + font-size: 20px; + color: #4e4d4d; + text-align: center; + } + .modal-title-sc { + padding-top: 10rpx; + font-size: 15px; + color: #bebcbc; + text-align: center; + } + .modal-content { + padding: 35rpx 12rpx; + /* justify-content: flex-start; */ + + } + .username{ + margin: 0rpx 2rpx; + font-size: 10rpx; + } + .evaluate{ + margin:0rpx 2rpx; + font-size: 30rpx; + } + .evaluate_time{ + margin:0rpx 2rpx; + font-size: 20rpx; + } + + .info{ + height:40px; + right:20%; + text-align: left; + font-size: 12px; + color:#bebcbc; + } + .info::after{ + border: 0px; + } + .name_List{ + position:absolute; + left:0%; + width:40%; + text-align: left; + } + .quantity_List{ + position:absolute; + left:40%; + width:10%; + text-align: left; + } + .reason_List{ + position:absolute; + left:50%; + width:50%; + text-align: right; + overflow: hidden; + } + .modal-content-return{ + padding: 15rpx 32rpx; + font-size: 15px; + color: #757272; + } + .modal-footer { + display: flex; + flex-direction: row; + height: 86rpx; + border-top: 1px solid #dedede; + font-size: 34rpx; + line-height: 86rpx; + } + .btn-cancel { + width: 50%; + color: #666; + text-align: center; + border-right: 1px solid #dedede; + } + .btn-confirm { + width: 50%; + color: #ec5300; + text-align: center; + } +/* tanchuang */ + .modal-mask112 { + width: 100%; + height: 100%; + position: fixed; + top: 0; + left: 0; + background: rgba(0, 0, 0, 0.158); + opacity: 0.5; + overflow: hidden; + z-index: 9000; + color: #fff; + } + .modal-dialog112 { + width: 599rpx; + height:900rpx; + overflow: hidden; + position: fixed; + top: 25%; + left: 0; + z-index: 9999; + background: #ffffff; + margin-top: -180rpx; + margin-left: 10%; + border-radius: 36rpx; + } + .modal-title112 { + padding-top: 30rpx; + font-size: 20px; + color: #4e4d4d; + text-align: center; + } + .modal-title-sc112 { + padding-top: 10rpx; + font-size: 15px; + color: #bebcbc; + text-align: center; + } + .modal-content112 { + padding: 35rpx 12rpx; + /* justify-content: flex-start; */ + + } + .username{ + margin: 0rpx 2rpx; + font-size: 10rpx; + } + .evaluate{ + margin:0rpx 2rpx; + font-size: 30rpx; + } + .evaluate_time{ + margin:0rpx 2rpx; + font-size: 20rpx; + } + + .info{ + height:60px; + right:20%; + text-align: left; + font-size: 12px; + color:#bebcbc; + } + .info::after{ + border: 0px; + } + .name_List{ + position:absolute; + left:0%; + width:40%; + text-align: left; + } + .quantity_List{ + position:absolute; + left:40%; + width:10%; + text-align: left; + } + .reason_List{ + position:absolute; + left:50%; + width:50%; + text-align: right; + overflow: hidden; + } + .modal-content-return112{ + padding: 15rpx 32rpx; + font-size: 15px; + color: #757272; + } + .modal-footer112 { + display: flex; + flex-direction: row; + height: 86rpx; + border-top: 1px solid #dedede; + font-size: 34rpx; + line-height: 86rpx; + } + .btn-cancel112 { + width: 50%; + color: #666; + text-align: center; + border-right: 1px solid #dedede; + } + .btn-confirm112 { + width: 50%; + color: #ec5300; + text-align: center; + } + /* tanchuang */ + .modal-mask113 { + width: 100%; + height: 100%; + position: fixed; + top: 0; + left: 0; + background: rgba(0, 0, 0, 0.158); + opacity: 0.5; + overflow: hidden; + z-index: 9000; + color: #fff; + } + .modal-dialog113 { + width: 599rpx; + height:900rpx; + overflow: hidden; + position: fixed; + top: 25%; + left: 0; + z-index: 9999; + background: #ffffff; + margin-top: -180rpx; + margin-left: 10%; + border-radius: 36rpx; + } + .modal-title113 { + padding-top: 30rpx; + font-size: 20px; + color: #4e4d4d; + text-align: center; + } + .modal-title-sc113 { + padding-top: 10rpx; + font-size: 15px; + color: #bebcbc; + text-align: center; + } + .modal-content113 { + padding: 35rpx 12rpx; + /* justify-content: flex-start; */ + + } + .username{ + margin: 0rpx 2rpx; + font-size: 10rpx; + } + .evaluate{ + margin:0rpx 2rpx; + font-size: 30rpx; + } + .evaluate_time{ + margin:0rpx 2rpx; + font-size: 20rpx; + } + + .info{ + height:60px; + right:20%; + text-align: left; + font-size: 12px; + color:#bebcbc; + } + .info::after{ + border: 0px; + } + .name_List{ + position:absolute; + left:0%; + width:40%; + text-align: left; + } + .quantity_List{ + position:absolute; + left:40%; + width:10%; + text-align: left; + } + .reason_List{ + position:absolute; + left:50%; + width:50%; + text-align: right; + overflow: hidden; + } + .modal-content-return113{ + padding: 15rpx 32rpx; + font-size: 15px; + color: #757272; + } + .modal-footer113 { + display: flex; + flex-direction: row; + height: 86rpx; + border-top: 1px solid #dedede; + font-size: 34rpx; + line-height: 86rpx; + } + .btn-cancel113 { + width: 50%; + color: #666; + text-align: center; + border-right: 1px solid #dedede; + } + .btn-confirm113 { + width: 50%; + color: #ec5300; + text-align: center; + } + /* tanchuang */ + /* tanchuang */ + .modal-mask114 { + width: 100%; + height: 100%; + position: fixed; + top: 0; + left: 0; + background: rgba(0, 0, 0, 0.158); + opacity: 0.5; + overflow: hidden; + z-index: 9000; + color: #fff; + } + .modal-dialog114 { + width: 599rpx; + height:900rpx; + overflow: hidden; + position: fixed; + top: 25%; + left: 0; + z-index: 9999; + background: #ffffff; + margin-top: -180rpx; + margin-left: 10%; + border-radius: 36rpx; + } + .modal-title114 { + padding-top: 30rpx; + font-size: 20px; + color: #4e4d4d; + text-align: center; + } + .modal-title-sc114 { + padding-top: 10rpx; + font-size: 15px; + color: #bebcbc; + text-align: center; + } + .modal-content114 { + padding: 35rpx 12rpx; + /* justify-content: flex-start; */ + + } + .username{ + margin: 0rpx 2rpx; + font-size: 10rpx; + } + .evaluate{ + margin:0rpx 2rpx; + font-size: 30rpx; + } + .evaluate_time{ + margin:0rpx 2rpx; + font-size: 20rpx; + } + + .info{ + height:60px; + right:20%; + text-align: left; + font-size: 12px; + color:#bebcbc; + } + .info::after{ + border: 0px; + } + .name_List{ + position:absolute; + left:0%; + width:40%; + text-align: left; + } + .quantity_List{ + position:absolute; + left:40%; + width:10%; + text-align: left; + } + .reason_List{ + position:absolute; + left:50%; + width:50%; + text-align: right; + overflow: hidden; + } + .modal-content-return114{ + padding: 15rpx 32rpx; + font-size: 15px; + color: #757272; + } + .modal-footer114 { + display: flex; + flex-direction: row; + height: 86rpx; + border-top: 1px solid #dedede; + font-size: 34rpx; + line-height: 86rpx; + } + .btn-cancel114 { + width: 50%; + color: #666; + text-align: center; + border-right: 1px solid #dedede; + } + .btn-confirm114 { + width: 50%; + color: #ec5300; + text-align: center; + } + /* tanchuang */ + .modal-mask115 { + width: 100%; + height: 100%; + position: fixed; + top: 0; + left: 0; + background: rgba(0, 0, 0, 0.158); + opacity: 0.5; + overflow: hidden; + z-index: 9000; + color: #fff; + } + .modal-dialog115 { + width: 599rpx; + height:900rpx; + overflow: hidden; + position: fixed; + top: 25%; + left: 0; + z-index: 9999; + background: #ffffff; + margin-top: -180rpx; + margin-left: 10%; + border-radius: 36rpx; + } + .modal-title115 { + padding-top: 30rpx; + font-size: 20px; + color: #4e4d4d; + text-align: center; + } + .modal-title-sc115 { + padding-top: 10rpx; + font-size: 15px; + color: #bebcbc; + text-align: center; + } + .modal-content115 { + padding: 35rpx 12rpx; + /* justify-content: flex-start; */ + + } + .username{ + margin: 0rpx 2rpx; + font-size: 10rpx; + } + .evaluate{ + margin:0rpx 2rpx; + font-size: 30rpx; + } + .evaluate_time{ + margin:0rpx 2rpx; + font-size: 20rpx; + } + + .info{ + height:60px; + right:20%; + text-align: left; + font-size: 12px; + color:#bebcbc; + } + .info::after{ + border: 0px; + } + .name_List{ + position:absolute; + left:0%; + width:40%; + text-align: left; + } + .quantity_List{ + position:absolute; + left:40%; + width:10%; + text-align: left; + } + .reason_List{ + position:absolute; + left:50%; + width:50%; + text-align: right; + overflow: hidden; + } + .modal-content-return115{ + padding: 15rpx 32rpx; + font-size: 15px; + color: #757272; + } + .modal-footer115 { + display: flex; + flex-direction: row; + height: 86rpx; + border-top: 1px solid #dedede; + font-size: 34rpx; + line-height: 86rpx; + } + .btn-cancel115 { + width: 50%; + color: #666; + text-align: center; + border-right: 1px solid #dedede; + } + .btn-confirm115 { + width: 50%; + color: #ec5300; + text-align: center; + } + /* tanchuang */ + .modal-mask116 { + width: 100%; + height: 100%; + position: fixed; + top: 0; + left: 0; + background: rgba(0, 0, 0, 0.158); + opacity: 0.5; + overflow: hidden; + z-index: 9000; + color: #fff; + } + .modal-dialog116 { + width: 599rpx; + height:900rpx; + overflow: hidden; + position: fixed; + top: 25%; + left: 0; + z-index: 9999; + background: #ffffff; + margin-top: -180rpx; + margin-left: 10%; + border-radius: 36rpx; + } + .modal-title116 { + padding-top: 30rpx; + font-size: 20px; + color: #4e4d4d; + text-align: center; + } + .modal-title-sc116 { + padding-top: 10rpx; + font-size: 15px; + color: #bebcbc; + text-align: center; + } + .modal-content116 { + padding: 35rpx 12rpx; + /* justify-content: flex-start; */ + + } + .username{ + margin: 0rpx 2rpx; + font-size: 10rpx; + } + .evaluate{ + margin:0rpx 2rpx; + font-size: 30rpx; + } + .evaluate_time{ + margin:0rpx 2rpx; + font-size: 20rpx; + } + + .info{ + height:60px; + right:20%; + text-align: left; + font-size: 12px; + color:#bebcbc; + } + .info::after{ + border: 0px; + } + .name_List{ + position:absolute; + left:0%; + width:40%; + text-align: left; + } + .quantity_List{ + position:absolute; + left:40%; + width:10%; + text-align: left; + } + .reason_List{ + position:absolute; + left:50%; + width:50%; + text-align: right; + overflow: hidden; + } + .modal-content-return116{ + padding: 15rpx 32rpx; + font-size: 15px; + color: #757272; + } + .modal-footer116 { + display: flex; + flex-direction: row; + height: 86rpx; + border-top: 1px solid #dedede; + font-size: 34rpx; + line-height: 86rpx; + } + .btn-cancel116 { + width: 50%; + color: #666; + text-align: center; + border-right: 1px solid #dedede; + } + .btn-confirm116 { + width: 50%; + color: #ec5300; + text-align: center; + } \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/index.js b/src/wxcamleader/miniprogram/pages/index.js new file mode 100644 index 0000000..408e666 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/index.js @@ -0,0 +1,32 @@ +//获取应用实例 +var app = getApp(); +Page({ + data: { + images: app.globalData.introduce.images, + shortName: app.globalData.introduce.shortName, + mapCopyright: app.globalData.introduce.mapCopyright, + imgCDN: app.imgCDN + }, + onLoad: function (options) { + wx.setNavigationBarTitle({ + title: app.globalData.introduce.name + }) + }, + onShareAppMessage: function (res) { + if (res.from === 'button') { + // 来自页面内转发按钮 + console.log(res.target) + } + return { + title: app.globalData.introduce.name + ' - 校园导览', + path: '/pages/index', + imageUrl: app.imgCDN + app.globalData.introduce.share, + success: function (res) { + // 转发成功 + }, + fail: function (res) { + // 转发失败 + } + } + }, +}) \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/index.json b/src/wxcamleader/miniprogram/pages/index.json new file mode 100644 index 0000000..ce7a442 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/index.json @@ -0,0 +1,3 @@ +{ + "navigationBarBackgroundColor": "#0c101b" +} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/index.wxml b/src/wxcamleader/miniprogram/pages/index.wxml new file mode 100644 index 0000000..fe1b661 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/index.wxml @@ -0,0 +1,18 @@ + + + + {{shortName}}简介 + + + 逛逛{{shortName}} + + + + + © cauc软工 + + + {{mapCopyright?"数据版权:"+mapCopyright.name:""}} + + + \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/index.wxss b/src/wxcamleader/miniprogram/pages/index.wxss new file mode 100644 index 0000000..e13f2d6 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/index.wxss @@ -0,0 +1,44 @@ +.page { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + color: white; +} + +.button_container { + width: 100%; + display: flex; + align-items: center; + flex-direction: row; + margin-top: 120px; + justify-content: center; +} + +.button { + width: 145rpx; + height: 145rpx; + margin: 20px; + background-color: rgba(255, 224, 115, 0.9); + border-radius: 80rpx; + display: flex; + justify-content: center; +} + +.button text { + width: 55%; + align-self: center; + text-align: center; +} + +.copyright { + display: flex; + justify-content: flex-end; + flex-direction: column; + align-items: center; + height: 55vh; + font-size: 27rpx; + text-align: center; + line-height: 150%; + text-shadow:#000 1rpx 0 0,#000 0 1rpx 0,#000 -1rpx 0 0,#000 0 -1rpx 0; +} diff --git a/src/wxcamleader/miniprogram/pages/login.js b/src/wxcamleader/miniprogram/pages/login.js new file mode 100644 index 0000000..45e582e --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/login.js @@ -0,0 +1,112 @@ +// pages/login/login.js +var that; +Page({ + + /** + * 页面的初始数据 + */ + data: { + userInfo:null, + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad:function(options) { + that = this; + wx.getStorage({ + key:'userInfo', + success(res){ + // console.log('get storage success',JSON.parse(res.data)) + that.setData({ + userInfo:JSON.parse(res.data) + }) + } + }) + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow(){ + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + }, + bindGetUserInfo: function(e){ + that = this; + if(e.detail.userInfo){ + wx.setStorage({ + data:JSON.stringify(e.detail.userInfo), + key:'userInfo', + success(res){ + // console.log('set storage success:',res) + that.setData({ + userInfo:JSON.parse(res.data) + }) + } + }) + wx.getStorage({ + key:'userInfo', + success(res){ + // console.log('get storage success',JSON.parse(res.data)) + that.setData({ + userInfo:JSON.parse(res.data) + }) + } + }) + } + + }, + goToSchool:function(options){ + + wx.navigateTo({ + url: '../pages/index' + }) + }, + goToCanteen:function(options){ + wx.navigateTo({ + url: '../pages/canteen/canteen' + }) + } +}) \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/login.json b/src/wxcamleader/miniprogram/pages/login.json new file mode 100644 index 0000000..3928faa --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/login.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/login.wxml b/src/wxcamleader/miniprogram/pages/login.wxml new file mode 100644 index 0000000..05a72ef --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/login.wxml @@ -0,0 +1,19 @@ + + + + + + + + 欢迎您! {{userInfo.nickName}} + + + + + 微信登陆 + 将获取您的信息,如头像、昵称等 + + + diff --git a/src/wxcamleader/miniprogram/pages/login.wxss b/src/wxcamleader/miniprogram/pages/login.wxss new file mode 100644 index 0000000..c99bb97 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/login.wxss @@ -0,0 +1,49 @@ +/* pages/login/login.wxss */ +page { + background-color: rgb(255, 255, 255); + display: flex; + flex-direction: column; + justify-content: flex-start; +} +.text_style{ + margin-top: 40rpx; + height: 140rpx; + width: 100%; + background: #ffffff; + text-align: center; + font-size: 40rpx; + color: rgb(18, 18, 224); +} +.text_desc_style{ + /* margin-top: 40rpx; */ + height: 100rpx; + width: 100%; + background: #fff; + text-align: center; + font-size: 30rpx; + color: blue; +} +#userinfo{ + width: 260rpx; + height:260rpx; + border-radius:50%; + display: flex; + overflow:hidden; + /* text-align: center; */ + /* justify-content: center; */ + margin-top: 50px; + margin-left: 120px; +} +.nickname_type{ + width: 100%; + height: 200px; + display: flex; + /* align-items: center; */ + justify-content: center; +} +.tapbtn1{ + margin-top: 1%; +} +.tapbtn2{ + margin-top: 5%; +} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/details.js b/src/wxcamleader/miniprogram/pages/map/details.js new file mode 100644 index 0000000..1ee6aef --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/details.js @@ -0,0 +1,107 @@ +// pages/map/details.js +//获取应用实例 +var app = getApp(); +Page({ + /** + * 页面的初始数据 + */ + data: { + tid: 0, + bid: 0, + building: { + img: []//加载中图片地址 + }, + imgCDN: app.imgCDN + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + var bid = parseInt(options.bid); + var tid = parseInt(options.tid); + if (!options.bid || !options.tid){ + var data = app.globalData.introduce; + } else { + var data = app.globalData.map[tid].data[bid]; + } + this.setData({ + bid: bid, + tid: tid, + building: data + }); + wx.setNavigationBarTitle({ + title: data.name + }) + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function (res) { + var title, path; + if (this.data.introduce){ + title = app.globalData.introduce.name + '校园导览'; + path = "/pages/map/details"; + } else { + title = this.data.building.name + ' - ' + app.globalData.introduce.name + '校园导览' + path = "/pages/map/details?tid=" + this.data.tid + "&bid=" + this.data.bid + } + if (res.from === 'button') { + // 来自页面内转发按钮 + console.log(res.target) + } + return { + title: title, + path: path, + imageUrl: app.imgCDN + this.data.building.img[0], + success: function (res) { + // 转发成功 + }, + fail: function (res) { + // 转发失败 + } + } + }, +}) \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/details.json b/src/wxcamleader/miniprogram/pages/map/details.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/details.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/details.wxml b/src/wxcamleader/miniprogram/pages/map/details.wxml new file mode 100644 index 0000000..924eb34 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/details.wxml @@ -0,0 +1,22 @@ + + + + + + + + + + + {{building.name}} + + + + + + + + + + + \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/details.wxss b/src/wxcamleader/miniprogram/pages/map/details.wxss new file mode 100644 index 0000000..967ad57 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/details.wxss @@ -0,0 +1,50 @@ +/* pages/map/details.wxss */ + +.description { + padding: 40rpx 40rpx; + line-height: 30px; + font-size: 30rpx; +} + +.swiper { + height: 40vh; +} + +.swiper-image { + width: 100%; + height:100%; +} + +.building { + height: 10vh; + display: flex; + margin: auto 20rpx; +} + +.buildingName { + margin: auto 15rpx; + width: 80%; + color: #079df2; + font-size: 50rpx; + white-space:nowrap; +} + +.nav_map { + margin: auto 10rpx; +} + +.nav_map image { + width: 80rpx; + height: 80rpx; +} + +.descript { + background: #f8f8f8; + width: 100%; + min-height: 49vh; +} + +.descript rich-text { + font-size: 30rpx; + color: #000; +} diff --git a/src/wxcamleader/miniprogram/pages/map/index.js b/src/wxcamleader/miniprogram/pages/map/index.js new file mode 100644 index 0000000..42271a7 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/index.js @@ -0,0 +1,102 @@ +//获取应用实例 +var app = getApp(); +Page({ + data: { + fullscreen: false, + latitude: 39.108974, + longitude: 117.352776, + buildlData: app.globalData.map, + windowHeight: "", + windowWidth: "", + isSelectedBuild: 0, + isSelectedBuildType: 0, + imgCDN: app.imgCDN, + islocation: true + }, + onLoad: function () { + wx.showShareMenu({ + withShareTicket: true + }) + var _this = this; + wx.getSystemInfo({ + success: function (res) { + //获取当前设备宽度与高度,用于定位控键的位置 + _this.setData({ + windowHeight: res.windowHeight, + windowWidth: res.windowWidth, + }) + console.log(res.windowWidth) + } + }) + //载入更新后的数据 + this.setData({ + buildlData: app.globalData.map + }) + }, + onShareAppMessage: function (res) { + if (res.from === 'button') { + // 来自页面内转发按钮 + console.log(res.target) + } + return { + title: app.globalData.introduce.name + ' - 校园导览', + path: '/pages/map/index', + success: function (res) { + // 转发成功 + }, + fail: function (res) { + // 转发失败 + } + } + }, + regionchange(e) { + // 视野变化 + // console.log(e.type) + }, + markertap(e) { + // 选中 其对应的框 + this.setData({ + isSelectedBuild: e.markerId, + }) + //this.markers_signal(); + console.log(e.detail.markerId); + if(e.detail.markerId == 2){ + wx.navigateTo({ + url:'../test/test', + }) + } +}, + markers_signal(e) { + console.log(e); + }, + navigateSearch() { + wx.navigateTo({ + url: 'search' + }) + }, + location: function () { + var _this = this + wx.getLocation({ + type: 'gcj02', // 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于 wx.openLocation 的坐标 + success: function (res) { + app.globalData.latitude = res.latitude; + app.globalData.longitude = res.longitude; + _this.setData({ + longitude: res.longitude, + latitude: res.latitude + }) + } + }) + }, + clickButton: function (e) { + //console.log(this.data.fullscreen) + //打印所有关于点击对象的信息 + this.setData({ fullscreen: !this.data.fullscreen }) + }, + changePage: function (event) { + this.setData({ + isSelectedBuildType: event.currentTarget.id, + isSelectedBuild: 0 + }); + } +}) \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/index.json b/src/wxcamleader/miniprogram/pages/map/index.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/index.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/index.wxml b/src/wxcamleader/miniprogram/pages/map/index.wxml new file mode 100644 index 0000000..5ed4b03 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/index.wxml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + {{item.name}} + + + 位置:{{item.floor}} + + + + + + + + + + \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/index.wxss b/src/wxcamleader/miniprogram/pages/map/index.wxss new file mode 100644 index 0000000..5119400 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/index.wxss @@ -0,0 +1,101 @@ +/* pages/map/map.wxss */ + +.building-item { + height: 50px; + border-bottom: 1px solid #e0e0e0; + padding: 10px; +} + +.top-swich { + background-color: #079df2; + height: 6vh; + color: white; + display: flex; + justify-content: space-around; +} + +::-webkit-scrollbar { + width: 0; + height: 0; + color: transparent; +} + +.top-swich-btn { + background-color: none; + letter-spacing: 3rpx; + height: 65rpx; + color: #fff; + font-size: 30rpx; +} + +.active { + border-bottom: solid white; + height: 50rpx; + display: inline-block; +} + +button { + font-size: 26rpx; + height: 6vh; +} + +.img-view { + height: 100%; + display: flex; +} + +.img { + width: 85%; + height: 100%; + display: flex; +} + +.img image { + width: 60px; + height: 90%; + margin: auto 7rpx; +} + +.item { + display: flex; + flex-direction: column; + margin: auto 0; +} + +.itemName { + margin: 0 20rpx; + font-size: 32rpx; +} + +.itemFloor { + margin: 0 20rpx; + font-size: 28rpx; + color: #555; +} + +.text { + margin: auto 15px; + width: 13%; +} + +.text image { + width: 70rpx; + height: 70rpx; +} + +.controls { + position: relative; + top: 65%; + left: 85%; + /* display: flex; */ +} + +.controls .img { + margin-top: 5px; + width: 80rpx; + height: 80rpx; +} + +.full { + top: 82%; +} diff --git a/src/wxcamleader/miniprogram/pages/map/polyline.js b/src/wxcamleader/miniprogram/pages/map/polyline.js new file mode 100644 index 0000000..d68231c --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/polyline.js @@ -0,0 +1,117 @@ +var app = getApp(); +var amapFile = require('../../utils/amap-wx.js'); +Page({ + data: { + latitude: null, + longitude: null, + markers: [], + distance: '', + polyline: [] + }, + onLoad: function (options) { + var _this = this; + _this.setData({ + longitude: app.globalData.longitude, + latitude: app.globalData.latitude + }) + _this.routing(options); + + var that = this; + var myAmapFun = new amapFile.AMapWX({key:'1cde263b006288ddde14d874b6dfc3e8'}); + myAmapFun.getRegeo({ + success: function(data){ + //成功回调 + }, + fail: function(info){ + //失败回调 + console.log(info) + } + }) + + wx.getLocation({ + type: 'gcj02', + success: function (res) { + app.globalData.latitude = res.latitude; + app.globalData.longitude = res.longitude; + _this.setData({ + latitude: res.latitude, + longitude: res.longitude + }); + _this.routing(options); + }, + fail: function () { + console.log("定位失败") + wx.showModal({ + title: '无法使用该功能', + content: '请点击右上角在“关于校园导览”设置中给予定位权限', + showCancel: false, + success: function (res) { + wx.navigateBack({ + delta: 1 + }) + return; + } + }) + } + }) + }, + routing: function (options){ + var _this = this; + let distance = Math.abs(_this.data.longitude - options.longitude) + Math.abs(_this.data.latitude - options.latitude) + console.log(distance); + var myAmapFun = new amapFile.AMapWX({ key: require('../../config.js').key }); + let routeData = { + origin: options.longitude + ',' + options.latitude, + destination: _this.data.longitude + ',' + _this.data.latitude, + success: function (data) { + var points = []; + if (data.paths && data.paths[0] && data.paths[0].steps) { + var steps = data.paths[0].steps; + for (var i = 0; i < steps.length; i++) { + var poLen = steps[i].polyline.split(';'); + for (var j = 0; j < poLen.length; j++) { + points.push({ + longitude: parseFloat(poLen[j].split(',')[0]), + latitude: parseFloat(poLen[j].split(',')[1]) + }) + } + } + } + _this.setData({ + markers: [{ + "width": "25", + "height": "35", + iconPath: "/img/mapicon_end.png", + latitude: options.latitude, + longitude: options.longitude + }, { + "width": "25", + "height": "35", + iconPath: "/img/mapicon_start.png", + latitude: _this.data.latitude, + longitude: _this.data.longitude + }], + polyline: [{ + points: points, + color: "#0091ff", + width: 6 + }] + }); + if (data.paths[0] && data.paths[0].distance) { + _this.setData({ + distance: data.paths[0].distance + '米' + }); + } + }, + fail: function (info) { + } + } + if (distance < 0.85) { + // getWalkingRoute 步行 + myAmapFun.getWalkingRoute(routeData) + } else { + // getDrivingRoute 驾车 + myAmapFun.getDrivingRoute(routeData) + } + } +}) \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/polyline.json b/src/wxcamleader/miniprogram/pages/map/polyline.json new file mode 100644 index 0000000..eae3193 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/polyline.json @@ -0,0 +1,3 @@ +{ + "navigationBarTitleText": "路径规划" +} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/polyline.wxml b/src/wxcamleader/miniprogram/pages/map/polyline.wxml new file mode 100644 index 0000000..d739874 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/polyline.wxml @@ -0,0 +1,9 @@ + + +{{distance}} + + + + diff --git a/src/wxcamleader/miniprogram/pages/map/polyline.wxss b/src/wxcamleader/miniprogram/pages/map/polyline.wxss new file mode 100644 index 0000000..272a22e --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/polyline.wxss @@ -0,0 +1,24 @@ +.navi_map { + width: auto; + height: 100vh; +} + +.distance { + position: absolute; + bottom: 30px; + right: 10px; + height: 30px; + line-height: 30px; + text-align: center; + padding: 3px 5px 3px 5px; + color: #fff; + background: #0091ff; + border-radius: 5px; +} +.map_container{ + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; +} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/search.js b/src/wxcamleader/miniprogram/pages/map/search.js new file mode 100644 index 0000000..dba8cfe --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/search.js @@ -0,0 +1,133 @@ +// pages/map/search.js +//获取应用实例 +var app = getApp(); +Page({ + + /** + * 页面的初始数据 + */ + data: { + keyword: null, + buildlData: app.globalData.map, + showData: null, + cursor: 0, + imgCDN: app.imgCDN + }, + + bindSearchInput: function(e) { + let showData = new Array(); + let searchdata = this.data.buildlData; + if (e.detail.cursor >= this.data.cursor) { + //输入文字 + let inputData = e.detail.value.replace(/(^\s*)|(\s*$)/g, "") + + if (inputData) { + let z = 0, + x = 100; + for (var b in searchdata) { + for (var i in searchdata[b].data) { + if (searchdata[b].data[i].name.indexOf(inputData) != -1 || (searchdata[b].data[i].floor && searchdata[b].data[i].floor.indexOf(inputData) != -1)) { + let build = searchdata[b].data[i]; + build.tid = b; + build.bid = i; + z = z + 1; + build.index = z; + showData.push(build); + } else if (searchdata[b].data[i].description.indexOf(inputData) != -1) { + let build = searchdata[b].data[i]; + build.tid = b; + build.bid = i; + x = x + 1; + build.index = x; + showData.push(build); + } + } + } + //冒泡排序 + for (var i = 0; i < showData.length; i++) { + for (var j = 0; j < showData.length - i - 1; j++) { + if (showData[j].index > showData[j + 1].index) { + var temp = showData[j]; + showData[j] = showData[j + 1]; + showData[j + 1] = temp; + console.log('交换' + showData[j].index + ':' + showData[j + 1].index) + } + } + } + if (inputData == 'gxgk') { + showData.push({ + name: "\u839e\u9999\u5e7f\u79d1" + }) + } + this.setData({ + showData: showData + }); + } + } else { + //删除文字 + console.log('删除文字') + this.setData({ + showData: null + }); + } + this.data.cursor = e.detail.cursor; + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function(options) {}, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function() { + + }, + reset: function() { + this.setData({ + keyword: null + }); + } +}) \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/search.json b/src/wxcamleader/miniprogram/pages/map/search.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/search.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/search.wxml b/src/wxcamleader/miniprogram/pages/map/search.wxml new file mode 100644 index 0000000..2363e87 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/search.wxml @@ -0,0 +1,35 @@ + + + + + + + +
+ +
+
+ + + +
+ + + + + + + + + {{item.name}} + + + {{item.floor}} + + + + + + + + \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/map/search.wxss b/src/wxcamleader/miniprogram/pages/map/search.wxss new file mode 100644 index 0000000..06f7538 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/map/search.wxss @@ -0,0 +1,16 @@ +@import 'index.wxss' + +.search { + width: 96%; + height: 80rpx; + background-color: #f5f5f5; + border-radius: 15px; + margin: 20rpx 2%; + display: flex; +} +.search-icon{ + margin:auto 20rpx; +} +.search-form{ + margin:auto 15rpx; width: 100%; +} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/test/test.js b/src/wxcamleader/miniprogram/pages/test/test.js new file mode 100644 index 0000000..ced2324 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/test/test.js @@ -0,0 +1,81 @@ +// pages/test/test.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + markers:[{ + iconPath:"/img/ico/jd.png", + id:1, + latitude:39.106471, + longitude:117.352597, + width:30, + height:30 + },{ + iconPath:"/img/ico/jd1.png", + id:2, + latitude:39.107099, + longitude:117.353149, + width:30, + height:30 + }] + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/test/test.json b/src/wxcamleader/miniprogram/pages/test/test.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/test/test.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/test/test.wxml b/src/wxcamleader/miniprogram/pages/test/test.wxml new file mode 100644 index 0000000..08891a4 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/test/test.wxml @@ -0,0 +1,10 @@ + + + diff --git a/src/wxcamleader/miniprogram/pages/test/test.wxss b/src/wxcamleader/miniprogram/pages/test/test.wxss new file mode 100644 index 0000000..902625f --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/test/test.wxss @@ -0,0 +1,5 @@ +/* pages/test/test.wxss */ +#mapp{ + height:100%; + width:100%; +} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/web-views/web-views.js b/src/wxcamleader/miniprogram/pages/web-views/web-views.js new file mode 100644 index 0000000..a46954c --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/web-views/web-views.js @@ -0,0 +1,68 @@ +// pages/web-views/web-views.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + url: 'www.gxgk.cc' //给予默认值,防止ios初次加载报错 + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.setData({ + url: encodeURI(options.url) + }) + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/web-views/web-views.json b/src/wxcamleader/miniprogram/pages/web-views/web-views.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/web-views/web-views.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/pages/web-views/web-views.wxml b/src/wxcamleader/miniprogram/pages/web-views/web-views.wxml new file mode 100644 index 0000000..1b4ee93 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/web-views/web-views.wxml @@ -0,0 +1,2 @@ + + diff --git a/src/wxcamleader/miniprogram/pages/web-views/web-views.wxss b/src/wxcamleader/miniprogram/pages/web-views/web-views.wxss new file mode 100644 index 0000000..051d7b2 --- /dev/null +++ b/src/wxcamleader/miniprogram/pages/web-views/web-views.wxss @@ -0,0 +1 @@ +/* pages/web-views/web-views.wxss */ \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/resources/cauc.js b/src/wxcamleader/miniprogram/resources/cauc.js new file mode 100644 index 0000000..b5e3e92 --- /dev/null +++ b/src/wxcamleader/miniprogram/resources/cauc.js @@ -0,0 +1,433 @@ +//学校简介 +module.exports.introduce = { + "shortName": "中航大", //学校名字两个字缩写 + "name": "中国民航大学", //学校名称 + "images": "校园导览/gdst.jpg", // 首页图片地址 + "share": "校园导览/share.jpg", //分享时展示图片的地址 + "latitude": "39.108815", + "longitude": "117.352772", + "img": ["校园导览/校门/北门.jpg", "校园导览/教学楼/全景.jpg"], //简介图片 + "description": "

 中国民航大学是中国民航局直属的,中国最顶尖的民航学府,素有“民航小清华”之称。

", + "mapCopyright": { name: "校园指路制作组", url: "" } +} +//学校地图数据 +module.exports.map = [ + { + "name": "景点", + "scale": 16, + "data": [ + { + "name": "图书馆", + "latitude": "39.107078", + "longitude": "117.353131", + "iconPath": "/img/ico/jd.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/景点/图书馆/图书馆1.jpg", + "校园导览/景点/图书馆/图书馆2.jpg", + "校园导览/景点/图书馆/图书馆3.jpg" + ], + "description": "

 广东科技学院图书馆建筑面积2.36万平方米,设有社会科学、自然科学、英语语言专题书库、计算机专题书库等七个大型书库,期刊、报纸、工具书、电子阅览室、新书阅览室等七个功能各异的阅览室,680座的大型学术报告厅一个,共拥有阅览座位1866个。

 图书馆馆藏丰富,现有馆藏图书279.96万册,其中纸质图书177.32万册,电子图书102.64万册,电子期刊1.1万多种,光盘音像资料6万余件。2017年订购纸质期刊600种,纸质报纸100种,基本形成了以学院教学学科专业为主的藏书和综合文献保障体系。

 在学院领导的正确指导和大力支持下,图书馆近年来完成了新书阅览室建设,完成了3楼、5楼自习区的升级改造,完成了报告厅的升级改造,完成了自主学习空间的建设。一系列的升级改造,拉开了图书馆学习空间改造的序幕,极大地改善了图书馆的学习阅览环境,提高了读者阅读、学习的舒适性,获得了师生一致的赞誉。

" + },{ + "name":"法学院", + "latitude":39.106471, + "longitude":117.352597, + "iconPath":"/img/ico/jd.png", + "width":30, + "height":30 + }, + { + "name": "体育馆", + "latitude": "39.106916", + "longitude": "117.355886", + "iconPath": "/img/ico/jd.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/景点/体育馆/体育馆1.jpg", + "校园导览/景点/体育馆/体育馆2.jpg", + "校园导览/景点/体育馆/体育馆3.jpg", + "校园导览/景点/体育馆/体育馆4.jpg" + ], + "description": " 广东科技学院体育馆坐落于学校中心,紧挨学校操场,临近学校7栋教学楼。室内设施现代化,装有中央空调,以及现代化舞台等配套设施。观众席有上下两层,最高可容纳3000人。我校体育馆作为一设施健全,现代化规模高的建筑,每年都会在馆内举办许多大型活动,如我校的迎新晚会,东莞篮球联赛的主场等。是我校标志性建筑之一。" + }, + { + "name": "西湖乐园", + "latitude": "39.10497", + "longitude": "117.355763", + "iconPath": "/img/ico/jd.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/景点/西湖乐园/西湖乐园3.jpg", + "校园导览/景点/西湖乐园/西湖乐园2.jpg", + "校园导览/景点/西湖乐园/西湖乐园1.jpg" + ], + "description": "西湖乐园" + } + ] + }, + { + "name": "教学楼", + "scale": 16, + "data": [ + { + "name": "1号教学楼", + "latitude": "39.105963", + "longitude": "117.353212", + "iconPath": "/img/ico/jxl.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/教学楼/1号教学楼.jpg" + ], + "description": " 1号教学楼有九层楼,左右两侧有电梯,正对着正门(北门),成拱形,左边是2号教学楼,右边是3号教学楼,中间与4、5号教学楼相连。1号教学楼一楼主要是学校社团部门的活动室,还有农行ATM机,校园银行(中国建设银行),中国电信、联通、移动店,广科报刊亭;2~6层楼为多媒体教室;7~9主要为实验室,有:语言实验室、公共实验室、会计多功能综合实验室、软件综合实验室,同声传译实验室,ERP实训室,NET实训室,国际商务英语模拟实训室,计算机基础技术实训室,数据开发实训室,还有管理办公室。" + }, + { + "name": "2号教学楼", + "latitude": "39.106449", + "longitude": "117.35235", + "iconPath": "/img/ico/jxl.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/教学楼/2号教学楼.jpg" + ], + "description": " 2号教学楼有六层楼,在1号教学楼的左边,创业楼的后面。" + }, + { + "name": "3号教学楼", + "latitude": "39.10485", + "longitude": "117.352777", + "iconPath": "/img/ico/jxl.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/教学楼/3号教学楼1.jpg", + "校园导览/教学楼/3号教学楼2.jpg" + ], + "description": " 3号教学楼有六层楼,在1号教学楼的右边。" + }, + { + "name": "4号教学楼", + "latitude": "39.104238", + "longitude": "117.352915", + "iconPath": "/img/ico/jxl.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/教学楼/4号教学楼1.jpg", + "校园导览/教学楼/4号教学楼2.jpg" + ], + "description": " 4栋教学楼位于2栋教学楼后方,且与2栋教学楼相连接。4栋教学楼在配套有现代多媒体教学设施,且全部装有空调的同时还配套有最新电脑设备,帮助学生学习最新现代信息技术。" + }, + { + "name": "5号教学楼", + "latitude": "39.101809", + "longitude": "117.35374", + "iconPath": "/img/ico/jxl.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/教学楼/5号教学楼1.jpg", + "校园导览/教学楼/5号教学楼2.jpg" + ], + "description": " 5栋教学楼位于3栋教学楼后方,且与3栋教学楼相连接。3栋教学楼在配套有现代多媒体教学设施,且全部装有空调,保证了学生学习环境和教师教学环境的质量。使学生能舒适专心地进行高质量学习。" + }, + ] + }, + { + "name": "校门", + "scale": 16, + "data": [ + { + "name": "北门", + "latitude": "39.114642", + "longitude": "117.34876", + "iconPath": "/img/ico/xm.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/校门/北门.jpg" + ], + "description": "北门" + }, + { + "name": "南门", + "latitude": "39.107847", + "longitude": "117.354828", + "iconPath": "/img/ico/xm.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/校门/南门2.jpg", + "校园导览/校门/南门3.jpg", + "校园导览/校门/南门1.jpg" + ], + "description": "南门" + }, + { + "name": "西门", + "latitude": "39.105958", + "longitude": "117.351209", + "iconPath": "/img/ico/xm.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/校门/雅苑门.jpg" + ], + "description": "雅苑门" + } + ] + }, + { + "scale": 16, + "name": "行政部门", + "data": [ + { + "name": "机器人研究所", + "floor": "创业楼301", + "latitude": "39.100547", + "longitude": "117.357268", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/创业楼/广科招生办301.jpg" + ], + "description": "创业楼301 广科招生办 Admissions Office" + }, + { + "name": "体育部", + "floor": "创业楼1202", + "latitude": "39.105038", + "longitude": "117.355197", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/创业楼/就业指导中心 1202.jpg" + ], + "description": "

广东科技学院结合社会发展需求,推进教学改章,鼓励学生参加各类社会实践活动,提高专业技能、综合素质与就业创业能力。学院依托东莞区域优势,与企业合作办学、合作育人,建成了200多家校外就业创业实习基地,为学生校外实习创造了良好条件。


学院就业指导中心树立为企业服务、为学生服务的理念,与东莞市智能制造协会、电商联合会等知名行业协会合作,引进行业龙头企业、标杆企业,为毕业生提供优质、对口、薪酬较高的就业岗位。就业工作呈现两个特色:一是搭建“政、校、行、企四位一体”


就业工作平台。市人力资源局、经信局、科技局、南城街道办等政府部门牵线搭桥,帮助学院整合企业资源。学院主动对接行业协会、行业标杆企业与龙头企业,引进大型骨干企业、倍增计划企业、高科技企业进校园招聘;二是以提高人才培养质量为目标,结合专业建设需求,就业工作主动为人才培养服务,力推校企合作。


多年来,广东科技学院的毕业生以综合素质好、职业素养高、实践能力强赢得用人单位的青睐,学院毕业生总体就业率均达98%以上。学院多次荣获广东省高校毕业生就业工作优秀院校、广东省普通高校毕业生就业工作先进集体、广东省民办高校就业竞争力十强等荣誉。


" + }, + { + "name": "学院办公室", + "floor": "行政楼513", + "latitude": "39.104259", + "longitude": "117.352893", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/行政楼/学院办公室 行政楼513.jpg" + ], + "description": "

学院办公室是学院综合性行政管理部门,在主管领导的领导下负责全院行政工作的组织、指导、协调、服务和监控。根据领导的指示,协调各处室,保证各项法规、制度、办法的贯彻执行。其主要职责是:


一、贯彻执行党的教育方针和国家的法律、法规,根据院领导的指示及学院有关规定处理日常工作。


二、负责学院工作计划、总结、报告、决议等文件的起草、印发;组织各系、处、室制订学年(学期)工作计划,撰写工作总结,并检查计划的执行情况。


三、负责院长办公会及全院性会议的筹备、召集与记录工作;负责全院性大型活动的策划、组织、宣传。


四、负责学院的外事工作;负责外出参观、学习、交流、公差、旅游联络协调工作。


五、负责督促检查各行政部门、各单位对学院行政工作目标、文件、会议决定事项、院长指示及各项规章制度的执行落实情况;深入基层调查研究,经常了解全院改革和教学、科研、管理等与全局有关的情况和问题,及时提出相应建议,供院领导参考。


六、负责学院行政公文的管理。做好校内外文件的收发、登记、传阅、催办、立卷、归档工作和公文印制发放工作,处理校内各单位的请示、报告。


七、负责接待群众来信来访,及时协调处理相关事宜,做好督促检查和回复工作。


八、负责上级领导及兄弟院校来校视察、参观、交流的接待工作。


九、掌握并正确使用学院印鉴,负责审定各处室印章的刻制及用印的监督,负责开具介绍信及有关证明。


十、负责各种报表的综合统计及审定报刊杂志的征订。负责审核各处室以学院名义上报或下发的文件资料。


十一、负责办公用品的发放和管理及会议室、接待室的管理和使用。


十二、负责院领导公务用车的调度与管理。


十三、负责院领导的后勤服务工作,负责办理院领导出访、出差的有关手续。


十四、完成院领导交办的其它工作。


" + }, + { + "name": "教务处", + "floor": "行政楼205", + "latitude": "39.102544", + "longitude": "117.354727", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/行政楼/教务处205.jpg" + ], + "description": "

 教务处是学院教学管理的职能部门,在主管教学副院长领导下开展工作,对全院教学活动进行计划、组织、协调、监控、调研,为相关教学单位和教师进行服务。教务处是学院各教学单位相互联系和沟通的枢纽,是保证人才培养质量的重要管理部门;同时也是学院行教学研究、推进教学改革的指导机构。

" + }, + { + "name": "心理辅导中心", + "floor": "图书馆F6", + "latitude": "39.101685", + "longitude": "117.357382", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/行政楼/心理辅导中心 图书馆F6.jpg" + ], + "description": "

 广东科技学院心理健康教育与辅导中心,隶属学生处,全面负责学院的大学生心理健康教育与辅导工作,目前共有专职心理教师4人、心灵关爱导师7人,以及学院、系学生会朋辈心理互助中心(学生干部机构)、心理健康发展协会(学生心理社团)和班级心理委员、宿舍心理委员五支学生心理工作队伍。为进一步加强中心的心理健康教育与辅导功能,在学院领导支持和关怀下,中心的设施设备逐步趋于完善。


 目前,中心设有温馨的心语室、心理测量室、心理舒缓室、团体心理训练室以及心灵书吧等功能室。中心本着优化心理品质、激发个人潜能、促进自我成长的理念,旨在真诚、热情地理解和服务于学生,全面普及心理健康知识,帮助学生排除心理困扰、增强心理适应能力和心理素质、努力开发个人潜能,促进学生全面发展。

" + }, + { + "name": "保卫室(武装部)", + "floor": "教学楼3栋", + "latitude": "39.108148", + "longitude": "117.354363", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/保卫室.jpg" + ], + "description": "

 广东科技学院社会治安综合治理办公室(简称“综治办”)是学院社会治安综合治理委员会下设的机构,与学院保卫处合署。在学院党委和行政的领导下,开展“创安、维稳、禁毒、消防、防邪”等工作。主要负责治安综合治理和治安防范、普法宣传教育和安全防范教育(防毒、防火、防其他事故)、安全检查和隐患排查、信息监控和舆情引导、交通消防和食品卫生安全监督、周边环境治理等。

" + }, + { + "name": "思想政治理论课教学部", + "floor": "教学楼3-205", + "latitude": "39.10729", + "longitude": "117.353125", + "iconPath": "/img/ico/xyfu.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/各系办公室/思政部 3-205.jpg" + ], + "description": "

思想政治理论课教学部(简称“思政部”)前身是公共基础部所属的思政教研室,2010年起成为学院直属的二级教学机构,负责全院大学生的思想政治理论和德育课教学与研究工作。思政部师资力量雄厚,教师职称结构、学历结构、学缘结构、年龄结构合理。思政部现有专任教师48人(专职教师47人、兼职教师1人),其中教授9人,副教授5人;具有博士学位教师5人,硕士学位教师35人,在读博士3人;省级教学名师1人、课程负责人1人、各类骨干教师5人,多人具有社会兼职。


思政部现设五个教研室,除开设国家规定的《马克思主义基本原理概论》、《中国近现代史纲要》等5门必修课外,还开设《莞邑文化概论》、《莞邑文化研习营》、《岭南文化概览》、《当代世界经济与政治》、《中西政治比较》、《合同法》、《中华人民共和国公司法》、《散户股票投资实战技能及其法律保护》、《刑事典型案例选讲》、《劳动法热点问题分析》、《刑法学》、《社会工作与志愿服务》、《社交礼仪》、《社会心理学》、《婚姻家庭心理学》、《生活中的传播》等多门选修课。


思政部积极开展教学、科研活动,教学科研成绩斐然。


在教学方面,曹美菊教授获评广东省高校思想政治理论课教师2014年度影响力人物,在2015年广东省首届民办高校“微党课”比赛中荣获一等奖;侯东栋老师在2016年广东省青年教师教学基本功比赛中荣获一等奖,王婕老师获得三等奖;徐泉海老师在2015年广东省青年教师教学基本功比赛中荣获二等奖;曹美菊教授、范海燕老师的微课分别获得全国微课大赛广东分赛区三等奖;在2015年学院讲课比赛中,曾祥辉老师荣获一等奖;同年学院说课比赛中,向前副教授获一等奖。每一学期学生评教,思政部全体老师均在90分以上,名列全校前茅,深受学生好评。


科研方面,李永芳教授申报的《国民革命基地视阈下的广东农会组织研究》获2016年广东省“十三五”社科规划课题立项,民办院校(含独立学院)仅有3项;2016年,我部教师申报的《莞邑文化的生成源流及其当代价值研究》获得广东高校重大科研项目;2017年我部向前副教授申报的《自媒体语境下本科院校思想政治理论课教学的实效性研究》获得广东省2017年省级德育项目立项;2015年,我部教师申报的《东莞文化旅游新业态研究》课题获东莞市2015年哲学社会科学规划课题立项,并获优秀结项;我部申报的实践育人机制建设课题《“莞邑文化研习营”的实践运作与网络传播》获广东省2015年省级德育创新项目重大项目立项,获配套资助经费10万元,并经专家组评审顺利开题;范海燕老师申报的《工学结合模式下高校思政课实践教学模式建构》获广东省2015年省级德育课题一般项目立项,并顺利结题。2016年,李新凤博士申报的《思政课实践教学模式新探索--以广东科技学院法律服务中心实践教学为例》获得广东省教育厅教改课题立项。我部教师指导的省级大学生创新创业项目成功立项15个,位居全院前列。近年来,我部教师在CSSCI来源期刊、北大中文核心期刊发表高层次论文数十篇,在省级一般刊物发表论文数百篇,多篇被人大复印资料转引。


课程建设方面,2015年我部共有四门课程获得院级优质课程立项,分别是徐泉海老师负责的《中国近现代史纲要》,向前老师负责的《形势与政策》、曹美菊教授负责的《毛泽东思想和中国特色社会主义理论体系概论》、张芙华教授负责的《莞邑文化概论》。2017年,范海燕老师负责的《思想道德修养与法律基础》获得院级精品资源共享课立项。


思政部贯彻党的教育方针,以提高大学生思想政治素质为核心,紧紧围绕我院“育产业精英”的培养目标,教学“贴近实际、贴近生活、贴近学生”。2014年我部率先提出提出了“莞邑文化”的概念,在学院内开设了第一门综合性地方课程——《莞邑文化概论》,将研究与教学相结合,全面呈现东莞历史、政治、经济、思想、科技等各方面文化的发展概况,通过挖掘本土特色文化资源,活化系列公共课程,作为思政课程改革的突破口,为学生普及地方文化常识的同时,培养爱乡爱国的情感,让思政课程真正接了地气。学院与虎门硝烟纪念馆、东江纵队纪念馆、袁崇焕纪念文化园等多个单位建立了思想政治教育实践基地,定期组织学生参观学习,成为我院的第二思政课堂。


思政教学紧密围绕学院培养目标,把思想教育与专业教学紧密结合,采取分专业针对性案例教学,让同学们在专业背景下体会到思想性、思辨性,把思想教育融入到专业分析中,积极探索符合我院特色的思想政治教育新路径,力争使每一个毕业生都能够“技能精湛,成熟成人”,不仅是“合格的公民”,还富有亲和力和感染力,人际和谐,成为具有团队精神的优秀毕业生。 思政部倡导主动尽责、自由愉悦的工作氛围,淡化行政主导,倡导人人参与管理,人人自我管理。部门成立有教学指导委员会、学术分委员会、考核与聘任委员会等三个专业委员会和行政、教学、科研、服务四个志愿服务小组,具体承担部门日常管理和业务运行工作。


" + }, + ] + }, + { + "name": "食堂", + "scale": 16, + "data": [ + { + "name": "南一食堂", + "latitude": "39.103575", + "longitude": "117.352881", + "iconPath": "/img/ico/st.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/食堂/一饭/一饭1.jpg", + "校园导览/食堂/一饭/一饭2.jpg", + "校园导览/食堂/一饭/一饭二楼1.jpg", + "校园导览/食堂/一饭/一饭二楼2.jpg" + ], + "description": "一号饭堂:位于博苑,学校唯一设有2层的饭堂,是从雅苑宿舍到教学楼的必经之路。是校内人流量最多的一个饭堂,饭菜味道大众化,适合多种人的口味,肉类丰富,种类繁多。有4毛钱和6毛钱的米饭窗口,如果打包需要加1块钱的外卖费,蔬菜跟肉类种类都是很多的,口味也大众化,而且也有炖汤提供,价格不一,最靠左边还有鸡扒饭可选择,一饭正门入口外卖摊位那里还有快餐,基本是客家人,也别有一番风味。第二层特色是自助餐,菜跟肉自己挑选,然后称重算钱,15块钱一斤,饭是免费的,可以吃多少打多少,另外还有煮面食的摊位。" + }, + { + "name": "南二食堂", + "latitude": "39.101772", + "longitude": "117.351573", + "iconPath": "/img/ico/st.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/食堂/二饭/二饭1.jpg", + "校园导览/食堂/二饭/二饭2.jpg" + ], + "description": "二号饭堂:位于南苑4号宿舍的一楼,接近图书馆,环境明亮,早餐有肠粉,菜色丰富,口感鲜美,特色是现煮粥,材料可自己选择。" + }, + { + "name": "南三食堂", + "latitude": "39.10329", + "longitude": "117.351733", + "iconPath": "/img/ico/st.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/食堂/三饭/三饭1.jpg", + "校园导览/食堂/三饭/三饭2.jpg", + "校园导览/食堂/三饭/三饭3.jpg" + ], + "description": "三号饭堂:三饭与二饭相邻,在南苑1.2号宿舍的一楼,有自助餐和汤粉蒸粉肠粉,三饭的特色是煲仔饭,材料可自己选择(田鸡、鸡肉等)菜色丰富,不过早餐是4个饭堂中种类最多的,味道也都挺不错的。" + }, + ] + }, + { + "scale": 16, + "name": "宿舍", + "data": [ + { + "name": "南一公寓", + "latitude": "39.103543", + "longitude": "117.353461", + "iconPath": "/img/ico/boy_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑男生/南苑1栋.jpg" + ], + "description": "南苑1栋" + }, + { + "name": "南苑2栋", + "latitude": "39.103198", + "longitude": "117.353412", + "iconPath": "/img/ico/boy_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑男生/南苑2栋.jpg" + ], + "description": "南苑2栋" + }, + { + "name": "南苑3栋", + "latitude": "39.103467", + "longitude": "117.353915", + "iconPath": "/img/ico/boy_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑男生/南苑3-4栋.jpg" + ], + "description": "南苑3栋" + }, + { + "name": "南苑4栋", + "latitude": "39.103299", + "longitude": "117.353919", + "iconPath": "/img/ico/boy_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑男生/南苑4栋.jpg" + ], + "description": "南苑4栋" + }, + { + "name": "南苑5栋", + "latitude": "39.102828", + "longitude": "117.3534", + "iconPath": "/img/ico/boy_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑男生/南苑5栋.jpg" + ], + "description": "南苑5栋" + }, + { + "name": "南苑6栋", + "latitude": "39.102527", + "longitude": "117.353382", + "iconPath": "/img/ico/girl_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑女生/南苑6栋.jpg" + ], + "description": "南苑6栋" + }, + { + "name": "南苑7栋", + "latitude": "39.102818", + "longitude": "117.353908", + "iconPath": "/img/ico/girl_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑女生/南苑7栋.jpg" + ], + "description": "南苑7栋" + }, + { + "name": "南苑8栋", + "latitude": "39.102518", + "longitude": "117.353906", + "iconPath": "/img/ico/girl_ss.png", + "width": "30", + "height": "30", + "img": [ + "校园导览/南苑8910/南苑1.jpg", + "校园导览/南苑8910/南苑2.jpg", + "校园导览/南苑8910/南苑3.jpg" + ], + "description": "南苑8栋" + }, + ] + } +] diff --git a/src/wxcamleader/miniprogram/sitemap.json b/src/wxcamleader/miniprogram/sitemap.json new file mode 100644 index 0000000..ca02add --- /dev/null +++ b/src/wxcamleader/miniprogram/sitemap.json @@ -0,0 +1,7 @@ +{ + "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", + "rules": [{ + "action": "allow", + "page": "*" + }] +} \ No newline at end of file diff --git a/src/wxcamleader/miniprogram/utils/amap-wx.js b/src/wxcamleader/miniprogram/utils/amap-wx.js new file mode 100644 index 0000000..c8dd42d --- /dev/null +++ b/src/wxcamleader/miniprogram/utils/amap-wx.js @@ -0,0 +1 @@ +function AMapWX(a) { this.key = a.key, this.requestConfig = { key: a.key, s: "rsx", platform: "WXJS", appname: a.key, sdkversion: "1.2.0", logversion: "2.0" } } AMapWX.prototype.getWxLocation = function (a, b) { wx.getLocation({ type: "gcj02", success: function (a) { var c = a.longitude + "," + a.latitude; wx.setStorage({ key: "userLocation", data: c }), b(c) }, fail: function (c) { wx.getStorage({ key: "userLocation", success: function (a) { a.data && b(a.data) } }), a.fail({ errCode: "0", errMsg: c.errMsg || "" }) } }) }, AMapWX.prototype.getRegeo = function (a) { function c(c) { var d = b.requestConfig; wx.request({ url: "https://restapi.amap.com/v3/geocode/regeo", data: { key: b.key, location: c, extensions: "all", s: d.s, platform: d.platform, appname: b.key, sdkversion: d.sdkversion, logversion: d.logversion }, method: "GET", header: { "content-type": "application/json" }, success: function (b) { var d, e, f, g, h, i, j, k; b.data.status && "1" == b.data.status ? (d = b.data.regeocode, e = d.addressComponent, f = [], g = d.roads[0].name + "附近", h = c.split(",")[0], i = c.split(",")[1], d.pois && d.pois[0] && (g = d.pois[0].name + "附近", j = d.pois[0].location, j && (h = parseFloat(j.split(",")[0]), i = parseFloat(j.split(",")[1]))), e.provice && f.push(e.provice), e.city && f.push(e.city), e.district && f.push(e.district), e.streetNumber && e.streetNumber.street && e.streetNumber.number ? (f.push(e.streetNumber.street), f.push(e.streetNumber.number)) : f.push(d.roads[0].name), f = f.join(""), k = [{ iconPath: a.iconPath, width: a.iconWidth, height: a.iconHeight, name: f, desc: g, longitude: h, latitude: i, id: 0, regeocodeData: d }], a.success(k)) : a.fail({ errCode: b.data.infocode, errMsg: b.data.info }) }, fail: function (b) { a.fail({ errCode: "0", errMsg: b.errMsg || "" }) } }) } var b = this; a.location ? c(a.location) : b.getWxLocation(a, function (a) { c(a) }) }, AMapWX.prototype.getWeather = function (a) { function d(d) { var e = "base"; a.type && "forecast" == a.type && (e = "all"), wx.request({ url: "https://restapi.amap.com/v3/weather/weatherInfo", data: { key: b.key, city: d, extensions: e, s: c.s, platform: c.platform, appname: b.key, sdkversion: c.sdkversion, logversion: c.logversion }, method: "GET", header: { "content-type": "application/json" }, success: function (b) { function c(a) { var b = { city: { text: "城市", data: a.city }, weather: { text: "天气", data: a.weather }, temperature: { text: "温度", data: a.temperature }, winddirection: { text: "风向", data: a.winddirection + "风" }, windpower: { text: "风力", data: a.windpower + "级" }, humidity: { text: "湿度", data: a.humidity + "%" } }; return b } var d, e; b.data.status && "1" == b.data.status ? b.data.lives ? (d = b.data.lives, d && d.length > 0 && (d = d[0], e = c(d), e["liveData"] = d, a.success(e))) : b.data.forecasts && b.data.forecasts[0] && a.success({ forecast: b.data.forecasts[0] }) : a.fail({ errCode: b.data.infocode, errMsg: b.data.info }) }, fail: function (b) { a.fail({ errCode: "0", errMsg: b.errMsg || "" }) } }) } function e(e) { wx.request({ url: "https://restapi.amap.com/v3/geocode/regeo", data: { key: b.key, location: e, extensions: "all", s: c.s, platform: c.platform, appname: b.key, sdkversion: c.sdkversion, logversion: c.logversion }, method: "GET", header: { "content-type": "application/json" }, success: function (b) { var c, e; b.data.status && "1" == b.data.status ? (e = b.data.regeocode, e.addressComponent ? c = e.addressComponent.adcode : e.aois && e.aois.length > 0 && (c = e.aois[0].adcode), d(c)) : a.fail({ errCode: b.data.infocode, errMsg: b.data.info }) }, fail: function (b) { a.fail({ errCode: "0", errMsg: b.errMsg || "" }) } }) } var b = this, c = b.requestConfig; a.city ? d(a.city) : b.getWxLocation(a, function (a) { e(a) }) }, AMapWX.prototype.getPoiAround = function (a) { function d(d) { var e = { key: b.key, location: d, s: c.s, platform: c.platform, appname: b.key, sdkversion: c.sdkversion, logversion: c.logversion }; a.querytypes && (e["types"] = a.querytypes), a.querykeywords && (e["keywords"] = a.querykeywords), wx.request({ url: "https://restapi.amap.com/v3/place/around", data: e, method: "GET", header: { "content-type": "application/json" }, success: function (b) { var c, d, e, f; if (b.data.status && "1" == b.data.status) { if (b = b.data, b && b.pois) { for (c = [], d = 0; d < b.pois.length; d++)e = 0 == d ? a.iconPathSelected : a.iconPath, c.push({ latitude: parseFloat(b.pois[d].location.split(",")[1]), longitude: parseFloat(b.pois[d].location.split(",")[0]), iconPath: e, width: 22, height: 32, id: d, name: b.pois[d].name, address: b.pois[d].address }); f = { markers: c, poisData: b.pois }, a.success(f) } } else a.fail({ errCode: b.data.infocode, errMsg: b.data.info }) }, fail: function (b) { a.fail({ errCode: "0", errMsg: b.errMsg || "" }) } }) } var b = this, c = b.requestConfig; a.location ? d(a.location) : b.getWxLocation(a, function (a) { d(a) }) }, AMapWX.prototype.getStaticmap = function (a) { function f(b) { c.push("location=" + b), a.zoom && c.push("zoom=" + a.zoom), a.size && c.push("size=" + a.size), a.scale && c.push("scale=" + a.scale), a.markers && c.push("markers=" + a.markers), a.labels && c.push("labels=" + a.labels), a.paths && c.push("paths=" + a.paths), a.traffic && c.push("traffic=" + a.traffic); var e = d + c.join("&"); a.success({ url: e }) } var e, b = this, c = [], d = "https://restapi.amap.com/v3/staticmap?"; c.push("key=" + b.key), e = b.requestConfig, c.push("s=" + e.s), c.push("platform=" + e.platform), c.push("appname=" + e.appname), c.push("sdkversion=" + e.sdkversion), c.push("logversion=" + e.logversion), a.location ? f(a.location) : b.getWxLocation(a, function (a) { f(a) }) }, AMapWX.prototype.getInputtips = function (a) { var b = this, c = b.requestConfig, d = { key: b.key, s: c.s, platform: c.platform, appname: b.key, sdkversion: c.sdkversion, logversion: c.logversion }; a.location && (d["location"] = a.location), a.keywords && (d["keywords"] = a.keywords), a.type && (d["type"] = a.type), a.city && (d["city"] = a.city), a.citylimit && (d["citylimit"] = a.citylimit), wx.request({ url: "https://restapi.amap.com/v3/assistant/inputtips", data: d, method: "GET", header: { "content-type": "application/json" }, success: function (b) { b && b.data && b.data.tips && a.success({ tips: b.data.tips }) }, fail: function (b) { a.fail({ errCode: "0", errMsg: b.errMsg || "" }) } }) }, AMapWX.prototype.getDrivingRoute = function (a) { var b = this, c = b.requestConfig, d = { key: b.key, s: c.s, platform: c.platform, appname: b.key, sdkversion: c.sdkversion, logversion: c.logversion }; a.origin && (d["origin"] = a.origin), a.destination && (d["destination"] = a.destination), a.strategy && (d["strategy"] = a.strategy), a.waypoints && (d["waypoints"] = a.waypoints), a.avoidpolygons && (d["avoidpolygons"] = a.avoidpolygons), a.avoidroad && (d["avoidroad"] = a.avoidroad), wx.request({ url: "https://restapi.amap.com/v3/direction/driving", data: d, method: "GET", header: { "content-type": "application/json" }, success: function (b) { b && b.data && b.data.route && a.success({ paths: b.data.route.paths, taxi_cost: b.data.route.taxi_cost || "" }) }, fail: function (b) { a.fail({ errCode: "0", errMsg: b.errMsg || "" }) } }) }, AMapWX.prototype.getWalkingRoute = function (a) { var b = this, c = b.requestConfig, d = { key: b.key, s: c.s, platform: c.platform, appname: b.key, sdkversion: c.sdkversion, logversion: c.logversion }; a.origin && (d["origin"] = a.origin), a.destination && (d["destination"] = a.destination), wx.request({ url: "https://restapi.amap.com/v3/direction/walking", data: d, method: "GET", header: { "content-type": "application/json" }, success: function (b) { b && b.data && b.data.route && a.success({ paths: b.data.route.paths }) }, fail: function (b) { a.fail({ errCode: "0", errMsg: b.errMsg || "" }) } }) }, AMapWX.prototype.getTransitRoute = function (a) { var b = this, c = b.requestConfig, d = { key: b.key, s: c.s, platform: c.platform, appname: b.key, sdkversion: c.sdkversion, logversion: c.logversion }; a.origin && (d["origin"] = a.origin), a.destination && (d["destination"] = a.destination), a.strategy && (d["strategy"] = a.strategy), a.city && (d["city"] = a.city), a.cityd && (d["cityd"] = a.cityd), wx.request({ url: "https://restapi.amap.com/v3/direction/transit/integrated", data: d, method: "GET", header: { "content-type": "application/json" }, success: function (b) { if (b && b.data && b.data.route) { var c = b.data.route; a.success({ distance: c.distance || "", taxi_cost: c.taxi_cost || "", transits: c.transits }) } }, fail: function (b) { a.fail({ errCode: "0", errMsg: b.errMsg || "" }) } }) }, AMapWX.prototype.getRidingRoute = function (a) { var b = this, c = b.requestConfig, d = { key: b.key, s: c.s, platform: c.platform, appname: b.key, sdkversion: c.sdkversion, logversion: c.logversion }; a.origin && (d["origin"] = a.origin), a.destination && (d["destination"] = a.destination), wx.request({ url: "https://restapi.amap.com/v3/direction/riding", data: d, method: "GET", header: { "content-type": "application/json" }, success: function (b) { b && b.data && b.data.route && a.success({ paths: b.data.route.paths }) }, fail: function (b) { a.fail({ errCode: "0", errMsg: b.errMsg || "" }) } }) }, module.exports.AMapWX = AMapWX; \ No newline at end of file diff --git a/src/wxcamleader/project.private.config.json b/src/wxcamleader/project.private.config.json new file mode 100644 index 0000000..864b354 --- /dev/null +++ b/src/wxcamleader/project.private.config.json @@ -0,0 +1,60 @@ +{ + "setting": { + "compileHotReLoad": true + }, + "condition": { + "miniprogram": { + "list": [ + { + "name": "db guide", + "pathName": "pages/databaseGuide/databaseGuide", + "query": "" + }, + { + "name": "pages/getOpenId/index", + "pathName": "pages/getOpenId/index", + "query": "", + "scene": null + }, + { + "name": "pages/deployService/index", + "pathName": "pages/deployService/index", + "query": "", + "scene": null + }, + { + "name": "pages/selectRecord/index", + "pathName": "pages/selectRecord/index", + "query": "", + "scene": null + }, + { + "name": "pages/sumRecordResult/index", + "pathName": "pages/sumRecordResult/index", + "query": "", + "scene": null + }, + { + "name": "pages/updateRecord/index", + "pathName": "pages/updateRecord/index", + "query": "", + "scene": null + }, + { + "name": "pages/updateRecordResult/index", + "pathName": "pages/updateRecordResult/index", + "query": "", + "scene": null + }, + { + "name": "pages/updateRecordSuccess/index", + "pathName": "pages/updateRecordSuccess/index", + "query": "", + "scene": null + } + ] + } + }, + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "projectname": "wxcamleader" +} \ No newline at end of file diff --git a/src/wxcamleader/uploadCloudFunction.sh b/src/wxcamleader/uploadCloudFunction.sh new file mode 100644 index 0000000..df311b3 --- /dev/null +++ b/src/wxcamleader/uploadCloudFunction.sh @@ -0,0 +1 @@ +${installPath} cloud functions deploy --e ${envId} --n quickstartFunctions --r --project ${projectPath} \ No newline at end of file