diff --git a/scr/app.js b/scr/app.js deleted file mode 100644 index 1ed57c4..0000000 --- a/scr/app.js +++ /dev/null @@ -1,19 +0,0 @@ -// app.js -App({ - onLaunch() { - // 展示本地存储能力 - const logs = wx.getStorageSync('logs') || [] - logs.unshift(Date.now()) - wx.setStorageSync('logs', logs) - - // 登录 - wx.login({ - success: res => { - // 发送 res.code 到后台换取 openId, sessionKey, unionId - } - }) - }, - globalData: { - userInfo: null - } -}) diff --git a/scr/app.json b/scr/app.json deleted file mode 100644 index 993dba1..0000000 --- a/scr/app.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "pages":[ - "pages/index/index", - "pages/logs/logs" - ], - "window":{ - "backgroundTextStyle":"light", - "navigationBarBackgroundColor": "#fff", - "navigationBarTitleText": "Weixin", - "navigationBarTextStyle":"black" - }, - "style": "v2", - "sitemapLocation": "sitemap.json", - "permission": { - "scope.userLocation":{ - "desc": "点击确认" - } - } -} diff --git a/scr/app.wxss b/scr/app.wxss deleted file mode 100644 index 06c6fc9..0000000 --- a/scr/app.wxss +++ /dev/null @@ -1,10 +0,0 @@ -/**app.wxss**/ -.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/scr/pages/index/index.js b/scr/pages/index/index.js deleted file mode 100644 index 3ae9025..0000000 --- a/scr/pages/index/index.js +++ /dev/null @@ -1,140 +0,0 @@ -// miniprogram/pages/gao_de/gao_de.js -var amapFile = require('../../libs/amap-wx.js');//如:..­/..­/libs/amap-wx.js -Page({ - - /** - * 页面的初始数据 - */ - data: { - markers: [{ - iconPath: "../../img/mapicon_navi_s.png", - id: 0, - latitude: 39.989643, - longitude: 116.481028, - width: 23, - height: 33 - },{ - iconPath: "../../img/mapicon_navi_e.png", - id: 0, - latitude: 39.90816, - longitude: 116.434446, - width: 24, - height: 34 - }], - distance: '', - cost: '', - polyline: [] - }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - var that = this; - var myAmapFun = new amapFile.AMapWX({key: b090d6cfb5aa7ca17535c1625777307a}); - myAmapFun.getPoiAround({ - success: function(data){ - console.log(data) - //成功回调 - }, - fail: function(info){ - //失败回调 - console.log(info) - } - }) - //获取自己所在地址的定位 - myAmapFun.getRegeo({ - success: function(data){ - //成功回调 - console.log('---------') - - console.log(data) - }, - fail: function(info){ - //失败回调 - console.log(info) - } - }) - - //获取定位地点天气内容 - myAmapFun.getWeather({ - success: function(data){ - console.log(data,'123') - //成功回调 - }, - fail: function(info){ - //失败回调 - console.log(info) - } - }) - - //路线 - myAmapFun.getDrivingRoute({ - origin: '116.481028,39.989643', - destination: '116.434446,39.90816', - 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]) - }) - } - } - } - that.setData({ - polyline: [{ - points: points, - color: "#0091ff", - width: 6 - }] - }); - if(data.paths[0] && data.paths[0].distance){ - that.setData({ - distance: data.paths[0].distance + '米' - }); - } - if(data.taxi_cost){ - that.setData({ - cost: '打车约' + parseInt(data.taxi_cost) + '元' - }); - } - - }, - fail: function(info){ - - } - }) - - }, - goDetail: function(){ - wx.navigateTo({ - url: '../navigation_car_detail/navigation' - }) - }, - goToCar: function (e) { - wx.redirectTo({ - url: '../navigation_car/navigation' - }) - }, - goToBus: function (e) { - wx.redirectTo({ - url: '../navigation_bus/navigation' - }) - }, - goToRide: function (e) { - wx.redirectTo({ - url: '../navigation_ride/navigation' - }) - }, - goToWalk: function (e) { - wx.redirectTo({ - url: '../navigation_walk/navigation' - }) - }, - -}) diff --git a/scr/pages/index/index.wxml b/scr/pages/index/index.wxml deleted file mode 100644 index a4ee8a4..0000000 --- a/scr/pages/index/index.wxml +++ /dev/null @@ -1,15 +0,0 @@ - - 驾车 - 步行 - 公交 - 骑行 - - - - - - - {{distance}} - {{cost}} - 详情 - diff --git a/scr/pages/index/index.wxss b/scr/pages/index/index.wxss deleted file mode 100644 index 0c4cd5a..0000000 --- a/scr/pages/index/index.wxss +++ /dev/null @@ -1,48 +0,0 @@ -.flex-style{ - display: -webkit-box; - display: -webkit-flex; - display: flex; -} -.flex-item{ - height: 35px; - line-height: 35px; - text-align: center; - -webkit-box-flex: 1; - -webkit-flex: 1; - flex: 1 -} -.flex-item.active{ - color:#0091ff; -} -.map_box{ - position:absolute; - top: 35px; - bottom: 90px; - left: 0px; - right: 0px; -} -#navi_map{ - width: 100%; - height: 100%; -} -.text_box{ - position:absolute; - height: 90px; - bottom: 0px; - left: 0px; - right: 0px; -} -.text_box .text{ - margin: 15px; -} -.detail_button{ - position:absolute; - bottom: 30px; - right: 10px; - padding: 3px 5px; - color: #fff; - background: #0091ff; - width:50px; - text-align:center; - border-radius:5px; -} diff --git a/scr/pages/logs/logs.js b/scr/pages/logs/logs.js deleted file mode 100644 index 85f6aac..0000000 --- a/scr/pages/logs/logs.js +++ /dev/null @@ -1,18 +0,0 @@ -// logs.js -const util = require('../../utils/util.js') - -Page({ - data: { - logs: [] - }, - onLoad() { - this.setData({ - logs: (wx.getStorageSync('logs') || []).map(log => { - return { - date: util.formatTime(new Date(log)), - timeStamp: log - } - }) - }) - } -}) diff --git a/scr/pages/logs/logs.json b/scr/pages/logs/logs.json deleted file mode 100644 index 3ee76c1..0000000 --- a/scr/pages/logs/logs.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "navigationBarTitleText": "查看启动日志", - "usingComponents": {} -} \ No newline at end of file diff --git a/scr/pages/logs/logs.wxml b/scr/pages/logs/logs.wxml deleted file mode 100644 index 0b6b645..0000000 --- a/scr/pages/logs/logs.wxml +++ /dev/null @@ -1,6 +0,0 @@ - - - - {{index + 1}}. {{log.date}} - - diff --git a/scr/project.private.config.json b/scr/project.private.config.json deleted file mode 100644 index 5bc1aaf..0000000 --- a/scr/project.private.config.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "projectname": "scr", - "setting": { - "compileHotReLoad": true - } -} \ No newline at end of file diff --git a/scr/utils/util.js b/scr/utils/util.js deleted file mode 100644 index 764bc2c..0000000 --- a/scr/utils/util.js +++ /dev/null @@ -1,19 +0,0 @@ -const formatTime = date => { - const year = date.getFullYear() - const month = date.getMonth() + 1 - const day = date.getDate() - const hour = date.getHours() - const minute = date.getMinutes() - const second = date.getSeconds() - - return `${[year, month, day].map(formatNumber).join('/')} ${[hour, minute, second].map(formatNumber).join(':')}` -} - -const formatNumber = n => { - n = n.toString() - return n[1] ? n : `0${n}` -} - -module.exports = { - formatTime -} diff --git a/scr/wechat-weapp-mapdemo-master/.gitignore b/scr/wechat-weapp-mapdemo-master/.gitignore deleted file mode 100644 index 11e612e..0000000 --- a/scr/wechat-weapp-mapdemo-master/.gitignore +++ /dev/null @@ -1,19 +0,0 @@ -# Build and Release Folders -bin/ -bin-debug/ -bin-release/ -[Oo]bj/ # FlashDevelop obj -[Bb]in/ # FlashDevelop bin - -# Other files and folders -.settings/ - -# Executables -*.swf -*.air -*.ipa -*.apk - -# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties` -# should NOT be excluded as they contain compiler settings and other important -# information for Eclipse / Flash Builder. diff --git a/scr/wechat-weapp-mapdemo-master/README.md b/scr/wechat-weapp-mapdemo-master/README.md deleted file mode 100644 index eefda45..0000000 --- a/scr/wechat-weapp-mapdemo-master/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# wechat-weapp-mapdemo - -微信小程序开发mapdemo,地图导航、marker标注 - -版本信息: -微信web开发者工具 `v0.15.152900` - - -## Screenshot - - -![](./image/screenshot1.png) - -![](./image/screenshot2.png) - -![](./image/navigator.jpg) - -![](./image/screenshot-marker.png) - ---- - -## License - -MIT \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/app.js b/scr/wechat-weapp-mapdemo-master/app.js deleted file mode 100644 index 51ce356..0000000 --- a/scr/wechat-weapp-mapdemo-master/app.js +++ /dev/null @@ -1,30 +0,0 @@ -//app.js -App({ - onLaunch: function () { - //调用API从本地缓存中获取数据 - var logs = wx.getStorageSync('logs') || [] - logs.unshift(Date.now()) - wx.setStorageSync('logs', logs) - }, - getUserInfo:function(cb){ - var that = this; - if(this.globalData.userInfo){ - typeof cb == "function" && cb(this.globalData.userInfo) - }else{ - //调用登录接口 - wx.login({ - success: function () { - wx.getUserInfo({ - success: function (res) { - that.globalData.userInfo = res.userInfo; - typeof cb == "function" && cb(that.globalData.userInfo) - } - }) - } - }); - } - }, - globalData:{ - userInfo:null - } -}) diff --git a/scr/wechat-weapp-mapdemo-master/app.json b/scr/wechat-weapp-mapdemo-master/app.json deleted file mode 100644 index 365e62f..0000000 --- a/scr/wechat-weapp-mapdemo-master/app.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "pages":[ - "pages/login/login", - "pages/location/location", - "pages/Find directions/Find directions", - "pages/text/text", - "pages/ModifyMap/ModifyMap", - "pages/ModifyInformation/ModifyInformation", - "pages/ManageAccount/ManageAccount" - ], - "window":{ - "backgroundTextStyle":"light", - "navigationBarBackgroundColor": "#fff", - "navigationBarTitleText": "login", - "navigationBarTextStyle":"black" - }, - "tabBar": { - "color": "#dddddd", - "selectedColor": "#3cc51f", - "borderStyle": "black", - "backgroundColor": "#ffffff", - "list": [{ - "pagePath": "pages/location/location", - "iconPath": "image/wechat.png", - "selectedIconPath": "image/locate.png", - "text": "导航" - },{ - "pagePath": "pages/Find directions/Find directions", - "iconPath": "image/map.png", - "selectedIconPath": "image/map_active.png", - "text": "查询路线" - },{ - "pagePath": "pages/text/text", - "iconPath": "image/locate.png", - "selectedIconPath": "image/locateHL.png", - "text": "信息栏" - } - ] - }, - "debug": true - } - diff --git a/scr/wechat-weapp-mapdemo-master/app.wxss b/scr/wechat-weapp-mapdemo-master/app.wxss deleted file mode 100644 index 1d3b114..0000000 --- a/scr/wechat-weapp-mapdemo-master/app.wxss +++ /dev/null @@ -1,10 +0,0 @@ -/**app.wxss**/ -.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/scr/wechat-weapp-mapdemo-master/package.json b/scr/wechat-weapp-mapdemo-master/package.json deleted file mode 100644 index 6120692..0000000 --- a/scr/wechat-weapp-mapdemo-master/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "wechat-weapp-mapdemo", - "version": "1.0.0", - "description": "微信小程序demo,地图", - "main": "app.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/giscafer/wechat-weapp-mapdemo.git" - }, - "keywords": [ - "微信小程序demo" - ], - "author": "giscafer", - "license": "ISC", - "bugs": { - "url": "https://github.com/giscafer/wechat-weapp-mapdemo/issues" - }, - "homepage": "https://github.com/giscafer/wechat-weapp-mapdemo#readme", - "dependencies": { - "mapbox-gl": "^0.24.0" - } -} diff --git a/scr/wechat-weapp-mapdemo-master/project.config.json b/scr/wechat-weapp-mapdemo-master/project.config.json deleted file mode 100644 index fd7e676..0000000 --- a/scr/wechat-weapp-mapdemo-master/project.config.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "compileType": "miniprogram", - "setting": { - "coverView": true, - "es6": false, - "postcss": true, - "minified": true, - "enhance": true, - "showShadowRootInWxmlPanel": true, - "packNpmRelationList": [], - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "ignoreUploadUnusedFiles": true - }, - "condition": {}, - "editorSetting": { - "tabIndent": "insertSpaces", - "tabSize": 2 - }, - "libVersion": "2.27.0", - "packOptions": { - "ignore": [], - "include": [] - }, - "appid": "wx5e77d1bb9e24f179" -} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/project.private.config.json b/scr/wechat-weapp-mapdemo-master/project.private.config.json deleted file mode 100644 index 023a2fc..0000000 --- a/scr/wechat-weapp-mapdemo-master/project.private.config.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "projectname": "wechat-weapp-mapdemo-master", - "setting": { - "compileHotReLoad": false - } -} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/resources/gis-school.js b/scr/wechat-weapp-mapdemo-master/resources/gis-school.js deleted file mode 100644 index 04c361c..0000000 --- a/scr/wechat-weapp-mapdemo-master/resources/gis-school.js +++ /dev/null @@ -1,1118 +0,0 @@ -module.exports=[ - { - "id": 1, - "name": "北京大学", - "longitude": "116.316176", - "latitude": "39.997741" - }, - { - "id": 2, - "name": "西安科技大学", - "longitude": "108.968176", - "latitude": "34.239638" - }, - { - "id": 3, - "name": "西北农林科技大学", - "longitude": "108.075936", - "latitude": "34.270661" - }, - { - "id": 4, - "name": "陕西师范大学", - "longitude": "108.902888", - "latitude": "34.159134" - }, - { - "id": 5, - "name": "咸阳师范学院", - "longitude": "108.734502", - "latitude": "34.366822" - }, - { - "id": 6, - "name": "西北大学(太白校区)", - "longitude": "108.934224", - "latitude": "34.253588" - }, - { - "id": 7, - "name": "长安大学", - "longitude": "108.962926", - "latitude": "34.238489" - }, - { - "id": 8, - "name": "兰州大学", - "longitude": "103.86663", - "latitude": "36.051997" - }, - { - "id": 9, - "name": "甘肃农业大学", - "longitude": "103.707241", - "latitude": "36.096718" - }, - { - "id": 10, - "name": "西北师范大学", - "longitude": "103.744761", - "latitude": "36.104394" - }, - { - "id": 11, - "name": "甘肃林业职业技术学院", - "longitude": "105.918299", - "latitude": "34.48885" - }, - { - "id": 12, - "name": "兰州交通大学", - "longitude": "103.730911", - "latitude": "36.111356" - }, - { - "id": 13, - "name": "青海师范大学", - "longitude": "101.74888", - "latitude": "36.645819" - }, - { - "id": 14, - "name": "青海师范大学", - "longitude": "101.74888", - "latitude": "36.645819" - }, - { - "id": 15, - "name": "宁夏大学", - "longitude": "106.14383", - "latitude": "38.502388" - }, - { - "id": 16, - "name": "新疆农业大学", - "longitude": "87.573015", - "latitude": "43.818545" - }, - { - "id": 17, - "name": "新疆师范大学", - "longitude": "87.600303", - "latitude": "43.839824" - }, - { - "id": 18, - "name": "新疆大学", - "longitude": "87.622704", - "latitude": "43.772078" - }, - { - "id": 19, - "name": "昆明理工大学莲花校区", - "longitude": "102.70396", - "latitude": "25.066269" - }, - { - "id": 20, - "name": "西南林业大学", - "longitude": "102.75875", - "latitude": "25.063838" - }, - { - "id": 21, - "name": "昆明理工大学津桥学院", - "longitude": "102.660574", - "latitude": "25.078567" - }, - { - "id": 22, - "name": "昆明理工大学津桥学院", - "longitude": "102.660574", - "latitude": "25.078567" - }, - { - "id": 23, - "name": "云南师范大学本部", - "longitude": "102.702368", - "latitude": "25.060959" - }, - { - "id": 24, - "name": "昆明冶金高等专科学校(石江)", - "longitude": "102.448038", - "latitude": "24.888587" - }, - { - "id": 25, - "name": "云南大学", - "longitude": "102.709377", - "latitude": "25.06064" - }, - { - "id": 26, - "name": "云南能源职业技术学院", - "longitude": "103.834979", - "latitude": "25.549237" - }, - { - "id": 27, - "name": "云南国土资源职业学院小板桥校区", - "longitude": "102.797673", - "latitude": "24.976261" - }, - { - "id": 28, - "name": "贵州师范大学", - "longitude": "106.727435", - "latitude": "26.594053" - }, - { - "id": 29, - "name": "贵州大学", - "longitude": "106.679274", - "latitude": "26.450557" - }, - { - "id": 30, - "name": "西南交通大学(九里校区)", - "longitude": "104.059612", - "latitude": "30.704212" - }, - { - "id": 31, - "name": "成都信息工程学院", - "longitude": "103.996398", - "latitude": "30.585144" - }, - { - "id": 32, - "name": "西华师范大学华凤校区", - "longitude": "106.075406", - "latitude": "30.826496" - }, - { - "id": 33, - "name": "四川师范大学", - "longitude": "103.661761", - "latitude": "30.656568" - }, - { - "id": 34, - "name": "四川农业大学", - "longitude": "103.007339", - "latitude": "29.984534" - }, - { - "id": 35, - "name": "成都理工大学工程技术学院", - "longitude": "103.736131", - "latitude": "29.56571" - }, - { - "id": 36, - "name": "西南石油大学(成都校区)", - "longitude": "104.190488", - "latitude": "30.831667" - }, - { - "id": 37, - "name": "成都理工大学", - "longitude": "104.150675", - "latitude": "30.679034" - }, - { - "id": 38, - "name": "西南科技大学", - "longitude": "104.701712", - "latitude": "31.54063" - }, - { - "id": 39, - "name": "四川水利职业技术学院", - "longitude": "103.784939", - "latitude": "30.637554" - }, - { - "id": 40, - "name": "西南大学", - "longitude": "106.435313", - "latitude": "29.827724" - }, - { - "id": 41, - "name": "重庆交通大学", - "longitude": "106.578179", - "latitude": "29.49622" - }, - { - "id": 42, - "name": "重庆邮电大学", - "longitude": "106.613922", - "latitude": "29.53832" - }, - { - "id": 43, - "name": "重庆师范学院", - "longitude": "106.465916", - "latitude": "29.562619" - }, - { - "id": 44, - "name": "重庆师范学院", - "longitude": "106.465916", - "latitude": "29.562619" - }, - { - "id": 45, - "name": "广西师范学院", - "longitude": "108.354617", - "latitude": "22.839659" - }, - { - "id": 46, - "name": "桂林理工大学", - "longitude": "110.322879", - "latitude": "25.286816" - }, - { - "id": 47, - "name": "桂林理工大学博文管理学院", - "longitude": "110.312315", - "latitude": "25.071391" - }, - { - "id": 48, - "name": "钦州学院", - "longitude": "108.639405", - "latitude": "21.982842" - }, - { - "id": 49, - "name": "国立中山大学", - "longitude": "113.304724", - "latitude": "23.102257" - }, - { - "id": 50, - "name": "华南农业大学", - "longitude": "113.357925", - "latitude": "23.163307" - }, - { - "id": 51, - "name": "华南师范大学(正门)", - "longitude": "113.354527", - "latitude": "23.142099" - }, - { - "id": 52, - "name": "佛山科学技术学院", - "longitude": "113.113966", - "latitude": "23.024999" - }, - { - "id": 53, - "name": "广东嘉应学院", - "longitude": "116.134827", - "latitude": "24.33214" - }, - { - "id": 54, - "name": "广州大学", - "longitude": "113.3778", - "latitude": "23.043873" - }, - { - "id": 55, - "name": "广东工贸职业技术学院", - "longitude": "113.462491", - "latitude": "23.407151" - }, - { - "id": 56, - "name": "中南大学", - "longitude": "112.942655", - "latitude": "28.165898" - }, - { - "id": 57, - "name": "湖南科技大学", - "longitude": "112.929134", - "latitude": "27.89923" - }, - { - "id": 58, - "name": "衡阳师范学院", - "longitude": "112.63191", - "latitude": "26.874344" - }, - { - "id": 59, - "name": "湖南师范大学", - "longitude": "112.956563", - "latitude": "28.193059" - }, - { - "id": 60, - "name": "湖南城市学院", - "longitude": "112.396856", - "latitude": "28.547046" - }, - { - "id": 61, - "name": "中南林业科技大学", - "longitude": "113.004217", - "latitude": "28.138946" - }, - { - "id": 62, - "name": "武汉大学", - "longitude": "114.37139", - "latitude": "30.544742" - }, - { - "id": 63, - "name": "中国地质大学(武汉)", - "longitude": "114.409031", - "latitude": "30.526561" - }, - { - "id": 64, - "name": "武汉理工大学", - "longitude": "114.358518", - "latitude": "30.525667" - }, - { - "id": 65, - "name": "湖北大学", - "longitude": "114.3386", - "latitude": "30.584771" - }, - { - "id": 66, - "name": "华中农业大学", - "longitude": "114.364494", - "latitude": "30.480121" - }, - { - "id": 67, - "name": "湖北科技职业学院", - "longitude": "114.411275", - "latitude": "30.477686" - }, - { - "id": 68, - "name": "湖北科技职业学院", - "longitude": "114.411275", - "latitude": "30.477686" - }, - { - "id": 69, - "name": "湖北科技职业学院", - "longitude": "114.411275", - "latitude": "30.477686" - }, - { - "id": 70, - "name": "湖北科技职业学院", - "longitude": "114.411275", - "latitude": "30.477686" - }, - { - "id": 71, - "name": "中国地质大学江城学院", - "longitude": "114.341805", - "latitude": "30.355516" - }, - { - "id": 72, - "name": "长江大学", - "longitude": "112.221968", - "latitude": "30.338725" - }, - { - "id": 73, - "name": "湖北国土资源职业学院(东北门)", - "longitude": "114.057401", - "latitude": "30.325205" - }, - { - "id": 74, - "name": "许昌学院", - "longitude": "113.875257", - "latitude": "34.04855" - }, - { - "id": 75, - "name": "河南城建学院", - "longitude": "113.19581", - "latitude": "33.775585" - }, - { - "id": 76, - "name": "黄河水利职业技术学院", - "longitude": "114.340122", - "latitude": "34.812714" - }, - { - "id": 77, - "name": "南阳师院教育学院", - "longitude": "112.522623", - "latitude": "32.995848" - }, - { - "id": 78, - "name": "华北水利水电大学", - "longitude": "113.801654", - "latitude": "34.791358" - }, - { - "id": 79, - "name": "信阳师范学院-华锐学院", - "longitude": "114.045518", - "latitude": "32.147236" - }, - { - "id": 80, - "name": "信阳师范学院-华锐学院", - "longitude": "114.045518", - "latitude": "32.147236" - }, - { - "id": 81, - "name": "河南农业大学", - "longitude": "113.669781", - "latitude": "34.79138" - }, - { - "id": 82, - "name": "郑州大学(新校区)", - "longitude": "113.542962", - "latitude": "34.822975" - }, - { - "id": 83, - "name": "河南理工大学万方科技学院", - "longitude": "113.240591", - "latitude": "35.248056" - }, - { - "id": 84, - "name": "河南大学", - "longitude": "114.31496", - "latitude": "34.82336" - }, - { - "id": 85, - "name": "河南财经政法大学", - "longitude": "113.826659", - "latitude": "34.787689" - }, - { - "id": 86, - "name": "河南理工大学", - "longitude": "113.272211", - "latitude": "35.194323" - }, - { - "id": 87, - "name": "鲁东大学", - "longitude": "121.365593", - "latitude": "37.528502" - }, - { - "id": 88, - "name": "山东交通学院", - "longitude": "116.803805", - "latitude": "36.54318" - }, - { - "id": 89, - "name": "枣庄学院", - "longitude": "117.542936", - "latitude": "34.906593" - }, - { - "id": 90, - "name": "滨州学院", - "longitude": "117.995681", - "latitude": "37.391121" - }, - { - "id": 91, - "name": "聊城大学", - "longitude": "116.00266", - "latitude": "36.440279" - }, - { - "id": 92, - "name": "山东建筑大学", - "longitude": "117.191719", - "latitude": "36.688677" - }, - { - "id": 93, - "name": "山东农业大学(本部)", - "longitude": "117.125149", - "latitude": "36.20079" - }, - { - "id": 94, - "name": "山东师范大学", - "longitude": "117.048643", - "latitude": "36.657842" - }, - { - "id": 95, - "name": "山东科技大学", - "longitude": "120.13158", - "latitude": "36.005974" - }, - { - "id": 96, - "name": "山东科技大学", - "longitude": "120.13158", - "latitude": "36.005974" - }, - { - "id": 97, - "name": "中国石油大学", - "longitude": "120.182287", - "latitude": "35.951212" - }, - { - "id": 98, - "name": "江西农业大学", - "longitude": "115.839315", - "latitude": "28.768197" - }, - { - "id": 99, - "name": "赣南师范学院", - "longitude": "114.893787", - "latitude": "25.801247" - }, - { - "id": 100, - "name": "江西师范大学", - "longitude": "115.930063", - "latitude": "28.683728" - }, - { - "id": 101, - "name": "东华理工大学(广兰校区)", - "longitude": "115.832359", - "latitude": "28.725326" - }, - { - "id": 102, - "name": "江西理工大学", - "longitude": "114.935558", - "latitude": "25.860808" - }, - { - "id": 103, - "name": "江西信息应用职业技术学院", - "longitude": "115.913581", - "latitude": "28.59398" - }, - { - "id": 104, - "name": "福建师范大学", - "longitude": "119.315693", - "latitude": "26.042134" - }, - { - "id": 105, - "name": "福建师范大学协和学院", - "longitude": "119.213145", - "latitude": "26.028946" - }, - { - "id": 106, - "name": "闽江学院工业路校区", - "longitude": "119.286411", - "latitude": "26.071289" - }, - { - "id": 107, - "name": "集美大学", - "longitude": "118.106347", - "latitude": "24.577286" - }, - { - "id": 108, - "name": "泉州师范学院", - "longitude": "118.676072", - "latitude": "24.873525" - }, - { - "id": 109, - "name": "安徽农业大学", - "longitude": "117.264855", - "latitude": "31.86668" - }, - { - "id": 110, - "name": "安徽建筑大学南区", - "longitude": "117.229423", - "latitude": "31.749981" - }, - { - "id": 111, - "name": "合肥工业大学(屯溪路校区)", - "longitude": "117.302545", - "latitude": "31.849275" - }, - { - "id": 112, - "name": "池州学院", - "longitude": "117.572812", - "latitude": "30.650029" - }, - { - "id": 113, - "name": "安徽大学", - "longitude": "117.262098", - "latitude": "31.85077" - }, - { - "id": 114, - "name": "铜陵学院新校区", - "longitude": "117.852676", - "latitude": "30.97003" - }, - { - "id": 115, - "name": "安徽理工大学", - "longitude": "117.017248", - "latitude": "32.639648" - }, - { - "id": 116, - "name": "滁州学院(北校区)", - "longitude": "118.310258", - "latitude": "32.299393" - }, - { - "id": 117, - "name": "安徽科技学院(东华路)", - "longitude": "117.572961", - "latitude": "32.878498" - }, - { - "id": 118, - "name": "安徽师范大学南校区", - "longitude": "118.385586", - "latitude": "31.289755" - }, - { - "id": 119, - "name": "黑龙江信息技术职业学院(学院路...", - "longitude": "126.528409", - "latitude": "45.877985" - }, - { - "id": 120, - "name": "哈尔滨铁道职业技术学院", - "longitude": "126.633171", - "latitude": "45.706801" - }, - { - "id": 121, - "name": "哈尔滨师范大学", - "longitude": "126.566119", - "latitude": "45.867041" - }, - { - "id": 122, - "name": "黑龙江工程学院", - "longitude": "126.69621", - "latitude": "45.789833" - }, - { - "id": 123, - "name": "东北林业大学", - "longitude": "126.644728", - "latitude": "45.72658" - }, - { - "id": 124, - "name": "吉林大学", - "longitude": "125.269766", - "latitude": "43.912027" - }, - { - "id": 125, - "name": "东北师范大学", - "longitude": "125.337277", - "latitude": "43.867238" - }, - { - "id": 126, - "name": "吉林建筑大学", - "longitude": "125.413674", - "latitude": "43.801768" - }, - { - "id": 127, - "name": "长春师范大学", - "longitude": "125.402986", - "latitude": "43.921203" - }, - { - "id": 128, - "name": "吉林工程技术师范学院", - "longitude": "125.414453", - "latitude": "43.889344" - }, - { - "id": 129, - "name": "吉林工程技术师范学院", - "longitude": "125.414453", - "latitude": "43.889344" - }, - { - "id": 130, - "name": "吉林师范大学", - "longitude": "124.350798", - "latitude": "43.162921" - }, - { - "id": 131, - "name": "延边大学", - "longitude": "129.499039", - "latitude": "42.916793" - }, - { - "id": 132, - "name": "东北大学", - "longitude": "123.426007", - "latitude": "41.770841" - }, - { - "id": 133, - "name": "辽宁工程技术大学", - "longitude": "121.67119", - "latitude": "42.029827" - }, - { - "id": 134, - "name": "大连海事大学", - "longitude": "121.538757", - "latitude": "38.877552" - }, - { - "id": 135, - "name": "辽宁师范大学", - "longitude": "121.570587", - "latitude": "38.922313" - }, - { - "id": 136, - "name": "太原师范学院", - "longitude": "112.583794", - "latitude": "37.870068" - }, - { - "id": 137, - "name": "太原理工大学", - "longitude": "112.531074", - "latitude": "37.859706" - }, - { - "id": 138, - "name": "山西师范大学", - "longitude": "111.51236", - "latitude": "36.086532" - }, - { - "id": 139, - "name": "山西农业大学", - "longitude": "112.588682", - "latitude": "37.430004" - }, - { - "id": 140, - "name": "燕山大学", - "longitude": "119.544697", - "latitude": "39.910159" - }, - { - "id": 141, - "name": "河北工程大学", - "longitude": "114.507632", - "latitude": "36.577973" - }, - { - "id": 142, - "name": "河北师范大学(新校区)", - "longitude": "114.527955", - "latitude": "38.002" - }, - { - "id": 143, - "name": "河北联合大学", - "longitude": "114.43145", - "latitude": "38.094956" - }, - { - "id": 144, - "name": "河北联合大学", - "longitude": "114.43145", - "latitude": "38.094956" - }, - { - "id": 145, - "name": "中国地质大学长城学院", - "longitude": "115.493827", - "latitude": "38.820215" - }, - { - "id": 146, - "name": "邢台学院", - "longitude": "114.511934", - "latitude": "37.096848" - }, - { - "id": 147, - "name": "石家庄经济学院", - "longitude": "114.555047", - "latitude": "38.025888" - }, - { - "id": 148, - "name": "张家口学院", - "longitude": "114.875186", - "latitude": "40.848254" - }, - { - "id": 149, - "name": "河北联合大学轻工学院", - "longitude": "118.166972", - "latitude": "39.68311" - }, - { - "id": 150, - "name": "天津城建大学", - "longitude": "117.102435", - "latitude": "39.101432" - }, - { - "id": 151, - "name": "天津师范大学", - "longitude": "117.134162", - "latitude": "39.078287" - }, - { - "id": 152, - "name": "北京林业大学", - "longitude": "116.350675", - "latitude": "40.007593" - }, - { - "id": 153, - "name": "北京师范大学", - "longitude": "116.37377", - "latitude": "39.967216" - }, - { - "id": 154, - "name": "中国地质大学(北京)", - "longitude": "116.354123", - "latitude": "39.997161" - }, - { - "id": 155, - "name": "中国农业大学", - "longitude": "116.36421", - "latitude": "40.010529" - }, - { - "id": 156, - "name": "北京联合大学", - "longitude": "116.433812", - "latitude": "39.996166" - }, - { - "id": 157, - "name": "北京建筑大学", - "longitude": "116.34892", - "latitude": "39.941021" - }, - { - "id": 158, - "name": "北京工业职业技术学院", - "longitude": "116.128658", - "latitude": "39.965537" - }, - { - "id": 159, - "name": "首都师范大学", - "longitude": "116.31305", - "latitude": "39.936754" - }, - { - "id": 160, - "name": "北京北大方正软件技术学院第三教学楼", - "longitude": "116.747548", - "latitude": "39.621014" - }, - { - "id": 161, - "name": "浙江大学(玉泉校区)", - "longitude": "120.129649", - "latitude": "30.270067" - }, - { - "id": 162, - "name": "杭州师范大学(东南门)", - "longitude": "120.020273", - "latitude": "30.294339" - }, - { - "id": 163, - "name": "浙江农林大学", - "longitude": "119.735539", - "latitude": "30.262074" - }, - { - "id": 164, - "name": "华东师范大学", - "longitude": "121.45944", - "latitude": "31.034692" - }, - { - "id": 165, - "name": "同济大学", - "longitude": "121.507102", - "latitude": "31.288675" - }, - { - "id": 166, - "name": "上海师范大学(桂林路)", - "longitude": "121.423228", - "latitude": "31.167505" - }, - { - "id": 167, - "name": "南京大学", - "longitude": "118.783661", - "latitude": "32.064172" - }, - { - "id": 168, - "name": "东南大学", - "longitude": "118.800002", - "latitude": "32.061518" - }, - { - "id": 169, - "name": "南京航空航天大学", - "longitude": "118.823973", - "latitude": "32.040752" - }, - { - "id": 170, - "name": "南京林业大学", - "longitude": "118.819924", - "latitude": "32.08331" - }, - { - "id": 171, - "name": "南京师范大学(随园校区)", - "longitude": "118.775625", - "latitude": "32.059536" - }, - { - "id": 172, - "name": "南京工业大学", - "longitude": "118.650869", - "latitude": "32.077849" - }, - { - "id": 173, - "name": "南京信息工程大学(宁六路校区)", - "longitude": "118.729585", - "latitude": "32.210505" - }, - { - "id": 174, - "name": "南京晓庄学院(莫愁校区)", - "longitude": "118.75911", - "latitude": "32.042803" - }, - { - "id": 175, - "name": "南京邮电大学", - "longitude": "118.937391", - "latitude": "32.11451" - }, - { - "id": 176, - "name": "中国矿业大学(文昌校区)", - "longitude": "117.205304", - "latitude": "34.226185" - }, - { - "id": 177, - "name": "中国矿业大学(文昌校区)", - "longitude": "117.205304", - "latitude": "34.226185" - }, - { - "id": 178, - "name": "淮阴师范学院", - "longitude": "119.013622", - "latitude": "33.647564" - }, - { - "id": 179, - "name": "淮海工学院", - "longitude": "119.228426", - "latitude": "34.611902" - }, - { - "id": 180, - "name": "南京师范大学泰州学院", - "longitude": "119.947592", - "latitude": "32.481954" - }, - { - "id": 181, - "name": "江苏师范大学", - "longitude": "117.185967", - "latitude": "34.201676" - }, - { - "id": 182, - "name": "南通大学", - "longitude": "120.915932", - "latitude": "31.978858" - }, - { - "id": 183, - "name": "扬州职业大学", - "longitude": "119.387026", - "latitude": "32.401189" - }, - { - "id": 184, - "name": "扬州环境资源职业技术学院(念四校区)", - "longitude": "119.427223", - "latitude": "32.404161" - }, - { - "id": 185, - "name": "苏州科技学院", - "longitude": "120.583218", - "latitude": "31.255356" - }, - { - "id": 186, - "name": "地图说明", - "longitude": "103.053633", - "latitude": "44.733374" - } -] \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/style/weui.wxss b/scr/wechat-weapp-mapdemo-master/style/weui.wxss deleted file mode 100644 index 3d6cfac..0000000 --- a/scr/wechat-weapp-mapdemo-master/style/weui.wxss +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * WeUI v1.1.1 (https://github.com/weui/weui-wxss) - * Copyright 2017 Tencent, Inc. - * Licensed under the MIT license - */ -page{line-height:1.6;font-family:-apple-system-font,Helvetica Neue,sans-serif}icon{vertical-align:middle}.weui-cells{position:relative;margin-top:1.17647059em;background-color:#fff;line-height:1.41176471;font-size:17px}.weui-cells:before{top:0;border-top:1rpx solid #d9d9d9}.weui-cells:after,.weui-cells:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#d9d9d9}.weui-cells:after{bottom:0;border-bottom:1rpx solid #d9d9d9}.weui-cells__title{margin-top:.77em;margin-bottom:.3em;padding-left:15px;padding-right:15px;color:#999;font-size:14px}.weui-cells_after-title{margin-top:0}.weui-cells__tips{margin-top:.3em;color:#999;padding-left:15px;padding-right:15px;font-size:14px}.weui-cell{padding:10px 15px;position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-cell:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #d9d9d9;color:#d9d9d9;left:15px}.weui-cell:first-child:before{display:none}.weui-cell_active{background-color:#ececec}.weui-cell_primary{-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.weui-cell__bd{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-cell__ft{text-align:right;color:#999}.weui-cell_access{color:inherit}.weui-cell__ft_in-access{padding-right:13px;position:relative}.weui-cell__ft_in-access:after{content:" ";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:relative;top:-2px;position:absolute;top:50%;margin-top:-4px;right:2px}.weui-cell_link{color:#586c94;font-size:14px}.weui-cell_link:active{background-color:#ececec}.weui-cell_link:first-child:before{display:block}.weui-icon-radio{margin-left:3.2px;margin-right:3.2px}.weui-icon-checkbox_circle,.weui-icon-checkbox_success{margin-left:4.6px;margin-right:4.6px}.weui-check__label:active{background-color:#ececec}.weui-check{position:absolute;left:-9999px}.weui-check__hd_in-checkbox{padding-right:.35em}.weui-cell__ft_in-radio{padding-left:.35em}.weui-cell_input{padding-top:0;padding-bottom:0}.weui-label{width:105px;word-wrap:break-word;word-break:break-all}.weui-input{height:2.58823529em;min-height:2.58823529em;line-height:2.58823529em}.weui-toptips{position:fixed;-webkit-transform:translateZ(0);transform:translateZ(0);top:0;left:0;right:0;padding:5px;font-size:14px;text-align:center;color:#fff;z-index:5000;word-wrap:break-word;word-break:break-all}.weui-toptips_warn{background-color:#e64340}.weui-textarea{display:block;width:100%}.weui-textarea-counter{color:#b2b2b2;text-align:right}.weui-cell_warn,.weui-textarea-counter_warn{color:#e64340}.weui-form-preview{position:relative;background-color:#fff}.weui-form-preview:before{top:0;border-top:1rpx solid #d9d9d9}.weui-form-preview:after,.weui-form-preview:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#d9d9d9}.weui-form-preview:after{bottom:0;border-bottom:1rpx solid #d9d9d9}.weui-form-preview__value{font-size:14px}.weui-form-preview__value_in-hd{font-size:26px}.weui-form-preview__hd{position:relative;padding:10px 15px;text-align:right;line-height:2.5em}.weui-form-preview__hd:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1px;border-bottom:1rpx solid #d9d9d9;color:#d9d9d9;left:15px}.weui-form-preview__bd{padding:10px 15px;font-size:.9em;text-align:right;color:#999;line-height:2}.weui-form-preview__ft{position:relative;line-height:50px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-form-preview__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #d5d5d6;color:#d5d5d6}.weui-form-preview__item{overflow:hidden}.weui-form-preview__label{float:left;margin-right:1em;min-width:4em;color:#999;text-align:justify;text-align-last:justify}.weui-form-preview__value{display:block;overflow:hidden;word-break:normal;word-wrap:break-word}.weui-form-preview__btn{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3cc51f;text-align:center}.weui-form-preview__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1rpx solid #d5d5d6;color:#d5d5d6}.weui-form-preview__btn:first-child:after{display:none}.weui-form-preview__btn_active{background-color:#eee}.weui-form-preview__btn_default{color:#999}.weui-form-preview__btn_primary{color:#0bb20c}.weui-cell_select{padding:0}.weui-select{position:relative;padding-left:15px;padding-right:30px;height:2.58823529em;min-height:2.58823529em;line-height:2.58823529em;border-right:1rpx solid #d9d9d9}.weui-select:before{content:" ";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:relative;top:-2px;position:absolute;top:50%;right:15px;margin-top:-4px}.weui-select_in-select-after{padding-left:0}.weui-cell__bd_in-select-before,.weui-cell__hd_in-select-after{padding-left:15px}.weui-cell_vcode{padding-right:0}.weui-vcode-btn,.weui-vcode-img{margin-left:5px;height:2.58823529em;vertical-align:middle}.weui-vcode-btn{display:inline-block;padding:0 .6em 0 .7em;border-left:1px solid #e5e5e5;line-height:2.58823529em;font-size:17px;color:#3cc51f;white-space:nowrap}.weui-vcode-btn:active{color:#52a341}.weui-cell_switch{padding-top:6px;padding-bottom:6px}.weui-uploader__hd{display:-webkit-box;display:-webkit-flex;display:flex;padding-bottom:10px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-uploader__title{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-uploader__info{color:#b2b2b2}.weui-uploader__bd{margin-bottom:-4px;margin-right:-9px;overflow:hidden}.weui-uploader__file{float:left;margin-right:9px;margin-bottom:9px}.weui-uploader__img{display:block;width:79px;height:79px}.weui-uploader__file_status{position:relative}.weui-uploader__file_status:before{content:" ";position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5)}.weui-uploader__file-content{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff}.weui-uploader__input-box{float:left;position:relative;margin-right:9px;margin-bottom:9px;width:77px;height:77px;border:1px solid #d9d9d9}.weui-uploader__input-box:after,.weui-uploader__input-box:before{content:" ";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#d9d9d9}.weui-uploader__input-box:before{width:2px;height:39.5px}.weui-uploader__input-box:after{width:39.5px;height:2px}.weui-uploader__input-box:active{border-color:#999}.weui-uploader__input-box:active:after,.weui-uploader__input-box:active:before{background-color:#999}.weui-uploader__input{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;opacity:0}.weui-article{padding:20px 15px;font-size:15px}.weui-article__section{margin-bottom:1.5em}.weui-article__h1{font-size:18px;font-weight:400;margin-bottom:.9em}.weui-article__h2{font-size:16px;font-weight:400;margin-bottom:.34em}.weui-article__h3{font-weight:400;font-size:15px;margin-bottom:.34em}.weui-article__p{margin:0 0 .8em}.weui-msg{padding-top:36px;text-align:center}.weui-msg__link{display:inline;color:#586c94}.weui-msg__icon-area{margin-bottom:30px}.weui-msg__text-area{margin-bottom:25px;padding:0 20px}.weui-msg__title{margin-bottom:5px;font-weight:400;font-size:20px}.weui-msg__desc{font-size:14px;color:#999}.weui-msg__opr-area{margin-bottom:25px}.weui-msg__extra-area{margin-bottom:15px;font-size:14px;color:#999}@media screen and (min-height:438px){.weui-msg__extra-area{position:fixed;left:0;bottom:0;width:100%;text-align:center}}.weui-flex{display:-webkit-box;display:-webkit-flex;display:flex}.weui-flex__item{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-btn{margin-top:15px}.weui-btn:first-child{margin-top:0}.weui-btn-area{margin:1.17647059em 15px .3em}.weui-agree{display:block;padding:.5em 15px;font-size:13px}.weui-agree__text{color:#999}.weui-agree__link{display:inline;color:#586c94}.weui-agree__checkbox{position:absolute;left:-9999px}.weui-agree__checkbox-icon{position:relative;top:2px;display:inline-block;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:11px;height:11px}.weui-agree__checkbox-icon-check{position:absolute;top:1px;left:1px}.weui-footer{color:#999;font-size:14px;text-align:center}.weui-footer_fixed-bottom{position:fixed;bottom:.52em;left:0;right:0}.weui-footer__links{font-size:0}.weui-footer__link{display:inline-block;vertical-align:top;margin:0 .62em;position:relative;font-size:14px;color:#586c94}.weui-footer__link:before{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1rpx solid #c7c7c7;color:#c7c7c7;left:-.65em;top:.36em;bottom:.36em}.weui-footer__link:first-child:before{display:none}.weui-footer__text{padding:0 .34em;font-size:12px}.weui-grids{border-top:1rpx solid #d9d9d9;border-left:1rpx solid #d9d9d9;overflow:hidden}.weui-grid{position:relative;float:left;padding:20px 10px;width:33.33333333%;box-sizing:border-box;border-right:1rpx solid #d9d9d9;border-bottom:1rpx solid #d9d9d9}.weui-grid_active{background-color:#ececec}.weui-grid__icon{display:block;width:28px;height:28px;margin:0 auto}.weui-grid__label{margin-top:5px;display:block;text-align:center;color:#000;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.weui-loading{margin:0 5px;width:20px;height:20px;display:inline-block;vertical-align:middle;-webkit-animation:a 1s steps(12) infinite;animation:a 1s steps(12) infinite;background:transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat;background-size:100%}.weui-loading.weui-loading_transparent{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect xmlns='http://www.w3.org/2000/svg' width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.56)' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.5)' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.43)' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.38)' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.32)' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.28)' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.25)' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.2)' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.17)' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.14)' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.1)' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.03)' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E")}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.weui-badge{display:inline-block;padding:.15em .4em;min-width:8px;border-radius:18px;background-color:#e64340;color:#fff;line-height:1.2;text-align:center;font-size:12px;vertical-align:middle}.weui-badge_dot{padding:.4em;min-width:0}.weui-loadmore{width:65%;margin:1.5em auto;line-height:1.6em;font-size:14px;text-align:center}.weui-loadmore__tips{display:inline-block;vertical-align:middle}.weui-loadmore_line{border-top:1px solid #e5e5e5;margin-top:2.4em}.weui-loadmore__tips_in-line{position:relative;top:-.9em;padding:0 .55em;background-color:#fff;color:#999}.weui-loadmore__tips_in-dot{position:relative;padding:0 .16em;width:4px;height:1.6em}.weui-loadmore__tips_in-dot:before{content:" ";position:absolute;top:50%;left:50%;margin-top:-1px;margin-left:-2px;width:4px;height:4px;border-radius:50%;background-color:#e5e5e5}.weui-panel{background-color:#fff;margin-top:10px;position:relative;overflow:hidden}.weui-panel:first-child{margin-top:0}.weui-panel:before{top:0;border-top:1rpx solid #e5e5e5}.weui-panel:after,.weui-panel:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}.weui-panel:after{bottom:0;border-bottom:1rpx solid #e5e5e5}.weui-panel__hd{padding:14px 15px 10px;color:#999;font-size:13px;position:relative}.weui-panel__hd:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1px;border-bottom:1rpx solid #e5e5e5;color:#e5e5e5;left:15px}.weui-media-box{padding:15px;position:relative}.weui-media-box:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #e5e5e5;color:#e5e5e5;left:15px}.weui-media-box:first-child:before{display:none}.weui-media-box__title{font-weight:400;font-size:17px;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-wrap:break-word;word-break:break-all}.weui-media-box__desc{color:#999;font-size:13px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weui-media-box__info{margin-top:15px;padding-bottom:5px;font-size:13px;color:#cecece;line-height:1em;list-style:none;overflow:hidden}.weui-media-box__info__meta{float:left;padding-right:1em}.weui-media-box__info__meta_extra{padding-left:1em;border-left:1px solid #cecece}.weui-media-box__title_in-text{margin-bottom:8px}.weui-media-box_appmsg{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-media-box__thumb{width:100%;height:100%;vertical-align:top}.weui-media-box__hd_in-appmsg{margin-right:.8em;width:60px;height:60px;line-height:60px;text-align:center}.weui-media-box__bd_in-appmsg{-webkit-box-flex:1;-webkit-flex:1;flex:1;min-width:0}.weui-media-box_small-appmsg{padding:0}.weui-cells_in-small-appmsg{margin-top:0}.weui-cells_in-small-appmsg:before{display:none}.weui-progress{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-progress__bar{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-progress__opr{margin-left:15px;font-size:0}.weui-navbar{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;z-index:500;top:0;width:100%;border-bottom:1rpx solid #ccc}.weui-navbar__item{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:13px 0;text-align:center;font-size:0}.weui-navbar__item.weui-bar__item_on{color:#1aad19}.weui-navbar__slider{position:absolute;content:" ";left:0;bottom:0;width:6em;height:3px;background-color:#1aad19;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.weui-navbar__title{display:inline-block;font-size:15px;max-width:8em;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.weui-tab{position:relative;height:100%}.weui-tab__panel{box-sizing:border-box;height:100%;padding-top:50px;overflow:auto;-webkit-overflow-scrolling:touch}.weui-search-bar{position:relative;padding:8px 10px;display:-webkit-box;display:-webkit-flex;display:flex;box-sizing:border-box;background-color:#efeff4;border-top:1rpx solid #d7d6dc;border-bottom:1rpx solid #d7d6dc}.weui-icon-search{margin-right:8px;font-size:inherit}.weui-icon-search_in-box{position:absolute;left:10px;top:7px}.weui-search-bar__text{display:inline-block;font-size:14px;vertical-align:middle}.weui-search-bar__form{position:relative;-webkit-box-flex:1;-webkit-flex:auto;flex:auto;border-radius:5px;background:#fff;border:1rpx solid #e6e6ea}.weui-search-bar__box{position:relative;padding-left:30px;padding-right:30px;width:100%;box-sizing:border-box;z-index:1}.weui-search-bar__input{height:28px;line-height:28px;font-size:14px}.weui-icon-clear{position:absolute;top:0;right:0;padding:7px 8px;font-size:0}.weui-search-bar__label{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;border-radius:3px;text-align:center;color:#9b9b9b;background:#fff;line-height:28px}.weui-search-bar__cancel-btn{margin-left:10px;line-height:28px;color:#09bb07;white-space:nowrap} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/utils/util.js b/scr/wechat-weapp-mapdemo-master/utils/util.js deleted file mode 100644 index 54ea2f6..0000000 --- a/scr/wechat-weapp-mapdemo-master/utils/util.js +++ /dev/null @@ -1,21 +0,0 @@ -function formatTime(date) { - var year = date.getFullYear() - var month = date.getMonth() + 1 - var day = date.getDate() - - var hour = date.getHours() - var minute = date.getMinutes() - var second = date.getSeconds(); - - - return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':') -} - -function formatNumber(n) { - n = n.toString() - return n[1] ? n : '0' + n -} - -module.exports = { - formatTime: formatTime -} diff --git a/scr/.eslintrc.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/.eslintrc.js similarity index 100% rename from scr/.eslintrc.js rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/.eslintrc.js diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/README.md b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/README.md new file mode 100644 index 0000000..e097b0c --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/README.md @@ -0,0 +1,12 @@ +# 云开发 quickstart + +这是云开发的快速启动指引,其中演示了如何上手使用云开发的三大基础能力: + +- 数据库:一个既可在小程序前端操作,也能在云函数中读写的 JSON 文档型数据库 +- 文件存储:在小程序前端直接上传/下载云端文件,在云开发控制台可视化管理 +- 云函数:在云端运行的代码,微信私有协议天然鉴权,开发者只需编写业务逻辑代码 + +## 参考文档 + +- [云开发文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/getting-started.html) + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/cloud/useroption/config.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/cloud/useroption/config.json new file mode 100644 index 0000000..5ecc33e --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/cloud/useroption/config.json @@ -0,0 +1,6 @@ +{ + "permissions": { + "openapi": [ + ] + } +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/cloud/useroption/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/cloud/useroption/index.js new file mode 100644 index 0000000..3bc31f0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/cloud/useroption/index.js @@ -0,0 +1,83 @@ +// 云函数入口文件 +const cloud = require('wx-server-sdk') + +cloud.init() + +// 云函数入口函数 +exports.main = async (event, context) => { + const wxContext = cloud.getWXContext() + + //写有关于数据库操作的地方 + //获取数据库的连接对象 + const db = cloud.database(); + + //在一个云函数里面有4种数据库操作。所以要先判断是什么操作:增删改查 + + //增 + if(event.option=='add'){ + return await db.collection('users').add({ + //花括号里面是你要添加的对象 + data:event.addData + //可添加多条或一条 + //event:包含传过来的所有数据的一个对象 + }); + } +//删 +else if(event.option=="deleteuser"){ + return await db.collection('users').where({ + //将要删除的值赋给name + User_ID:event.delUser_ID + }).remove(); +} +else if(event.option=="deleteusers"){ + return await db.collection('users').where({ + //将要删除的值赋给name + User_College:event.delUser_College, + User_Grade:event.delUser_Grade, + User_Class:event.delUser_Class + }).remove(); +} +//查 +else if(event.option=="getID"){ + return await db.collection('users').where({ + User_ID:event.getUser_ID + }).get({ + success:function(res){ + return res + } + }) +} + +else if(event.option=="getCollege"){ + return await db.collection('users').where({ + User_College:event.getUser_College, + User_Grade:event.getUser_Grade, + User_Class:event.getUser_Class + }).get({ + success:function(res){ + return res + } + }) +} + +else if(event.option=="getusers"){ + return await db.collection('users').where({ + }).get({ + success:function(res){ + return res + } + }) +} + +//改 +else if(event.option=="update"){ + return await db.collection('users').where({ + User_ID:event.updateUser_ID + }).update({ + data:{ + User_College:event.updateUser_College + } + }) +} + +} diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/cloud/useroption/package.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/cloud/useroption/package.json new file mode 100644 index 0000000..35b0810 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/cloud/useroption/package.json @@ -0,0 +1,14 @@ +{ + "name": "useroption", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "wx-server-sdk": "~2.6.3" + } +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/app.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/app.js new file mode 100644 index 0000000..404830d --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/app.js @@ -0,0 +1,20 @@ +// app.js +App({ + onLaunch: function () { + if (!wx.cloud) { + console.error('请使用 2.2.3 或以上的基础库以使用云能力'); + } else { + wx.cloud.init({ + // env 参数说明: + // env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源 + // 此处请填入环境 ID, 环境 ID 可打开云控制台查看 + // 如不填则使用默认环境(第一个创建的环境) + // env: 'my-env-id', + env:'cloud1-5gsqi02q8e4bd2dc', + traceUser: true, + }); + } + + this.globalData = {}; + } +}); diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/app.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/app.json new file mode 100644 index 0000000..7e4763b --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/app.json @@ -0,0 +1,63 @@ +{ + "pages": [ + "pages/login/login", + "pages/location/location", + "pages/Find directions/Find directions", + "pages/text/text", + "pages/ModifyMap/ModifyMap", + "pages/ModifyInformation/ModifyInformation", + "pages/ManageAccount/ManageAccount", + "pages/index/index", + "pages/adduser/index", + "pages/addusers/index", + "pages/adduserssuccess/index", + "pages/delete/index", + "pages/deleteuser/index", + "pages/deleteusers/index", + "pages/deleteuserssuccess/index", + "pages/selectusers/index", + "pages/selectusers(ID)/index", + "pages/selectusers(college)/index", + "pages/selectuserss/index", + "pages/selectuserssuccess/index", + "pages/updateusers/index", + "pages/updateuserssuccess/index", + "pages/index_hjf/index_hjf", + "pages/index1/index1", + "pages/adlogin/adlogin", + "pages/login_1/login_1" + ], + "window": { + "backgroundColor": "#F6F6F6", + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#F6F6F6", + "navigationBarTitleText": "管理用户", + "navigationBarTextStyle": "black" + }, + "tabBar": { + "color": "#dddddd", + "selectedColor": "#3cc51f", + "borderStyle": "black", + "backgroundColor": "#ffffff", + "list": [{ + "pagePath": "pages/location/location", + "iconPath": "image/wechat.png", + "selectedIconPath": "image/locate.png", + "text": "导航" + },{ + "pagePath": "pages/Find directions/Find directions", + "iconPath": "image/map.png", + "selectedIconPath": "image/map_active.png", + "text": "查询路线" + },{ + "pagePath": "pages/text/text", + "iconPath": "image/locate.png", + "selectedIconPath": "image/locateHL.png", + "text": "信息栏" + } + ] + }, + "debug": true, + "sitemapLocation": "sitemap.json", + "style": "v2" +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/app.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/app.wxss new file mode 100644 index 0000000..df96b0e --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/app.wxss @@ -0,0 +1,27 @@ +/**app.wxss**/ +.container { + display: flex; + flex-direction: column; + align-items: center; + box-sizing: border-box; +} + +button { + background: initial; +} + +button:focus{ + outline: 0; +} + +button::after{ + border: none; +} + + +page { + background: #f6f6f6; + display: flex; + flex-direction: column; + justify-content: flex-start; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.js new file mode 100644 index 0000000..f5ca0c1 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.js @@ -0,0 +1,37 @@ +// miniprogram/components/cloudTipModal/index.js +const { isMac } = require('../../envList.js'); + +Component({ + + /** + * 页面的初始数据 + */ + data: { + showUploadTip: false, + tipText: isMac ? 'sh ./uploadCloudFunction.sh' : './uploadCloudFunction.bat' + }, + properties: { + showUploadTipProps: Boolean + }, + observers: { + showUploadTipProps: function(showUploadTipProps) { + this.setData({ + showUploadTip: showUploadTipProps + }); + } + }, + methods: { + onChangeShowUploadTip() { + this.setData({ + showUploadTip: !this.data.showUploadTip + }); + }, + + copyShell() { + wx.setClipboardData({ + data: this.data.tipText, + }); + }, + } + +}); diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.json new file mode 100644 index 0000000..4575d1b --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "component": true +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.wxml new file mode 100644 index 0000000..5611267 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.wxml @@ -0,0 +1,13 @@ + + + + + 体验前需部署云资源 + 请开启调试器进入终端窗口,复制并运行以下命令 + + {{tipText}} + 复制 + + 已执行命令 + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.wxss new file mode 100644 index 0000000..ae36531 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/components/cloudTipModal/index.wxss @@ -0,0 +1,57 @@ +.install_tip_back { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + background-color: rgba(0,0,0,0.4); + z-index: 1; +} + +.install_tip_detail { + position: fixed; + background-color: white; + right: 0; + bottom: 0; + left: 0; + top: 60%; + border-radius: 40rpx 40rpx 0 0; + padding: 50rpx; + z-index: 9; +} + +.install_tip_detail_title { + font-weight: 400; + font-size: 40rpx; + text-align: center; +} + +.install_tip_detail_tip { + font-size: 25rpx; + color: rgba(0,0,0,0.4); + margin-top: 20rpx; + text-align: center; +} + +.install_tip_detail_shell { + margin: 70rpx 0; + display: flex; + justify-content: center; +} + +.install_tip_detail_copy { + color: #546488; + margin-left: 10rpx; +} + +.install_tip_detail_button { + color: #07C160; + font-weight: 500; + background-color: rgba(0,0,0,0.1); + width: 60%; + text-align: center; + height: 90rpx; + line-height: 90rpx; + border-radius: 10rpx; + margin: 0 auto; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/envList.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/envList.js new file mode 100644 index 0000000..949c90a --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/envList.js @@ -0,0 +1,6 @@ +const envList = [{"envId":"cloud1-7gnkwzfv6ba72e50","alias":"cloud1"}] +const isMac = false +module.exports = { + envList, + isMac +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/image/arrowright.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/arrowright.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/arrowright.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/arrowright.png diff --git a/scr/wechat-weapp-mapdemo-master/image/icon64_appwx_logo.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/icon64_appwx_logo.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/icon64_appwx_logo.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/icon64_appwx_logo.png diff --git a/scr/wechat-weapp-mapdemo-master/image/locate.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/locate.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/locate.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/locate.png diff --git a/scr/wechat-weapp-mapdemo-master/image/locateHL.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/locateHL.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/locateHL.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/locateHL.png diff --git a/scr/wechat-weapp-mapdemo-master/image/location-control.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/location-control.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/location-control.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/location-control.png diff --git a/scr/wechat-weapp-mapdemo-master/image/location.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/location.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/location.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/location.png diff --git a/scr/wechat-weapp-mapdemo-master/image/logo.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/logo.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/logo.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/logo.png diff --git a/scr/wechat-weapp-mapdemo-master/image/map.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/map.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/map.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/map.png diff --git a/scr/wechat-weapp-mapdemo-master/image/map_active.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/map_active.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/map_active.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/map_active.png diff --git a/scr/wechat-weapp-mapdemo-master/image/navigator.jpg b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/navigator.jpg similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/navigator.jpg rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/navigator.jpg diff --git a/scr/wechat-weapp-mapdemo-master/image/pause.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/pause.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/pause.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/pause.png diff --git a/scr/wechat-weapp-mapdemo-master/image/play.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/play.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/play.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/play.png diff --git a/scr/wechat-weapp-mapdemo-master/image/plus.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/plus.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/plus.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/plus.png diff --git a/scr/wechat-weapp-mapdemo-master/image/record.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/record.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/record.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/record.png diff --git a/scr/wechat-weapp-mapdemo-master/image/screenshot-marker.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/screenshot-marker.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/screenshot-marker.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/screenshot-marker.png diff --git a/scr/wechat-weapp-mapdemo-master/image/screenshot1.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/screenshot1.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/screenshot1.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/screenshot1.png diff --git a/scr/wechat-weapp-mapdemo-master/image/screenshot2.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/screenshot2.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/screenshot2.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/screenshot2.png diff --git a/scr/wechat-weapp-mapdemo-master/image/stop.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/stop.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/stop.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/stop.png diff --git a/scr/wechat-weapp-mapdemo-master/image/trash.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/trash.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/trash.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/trash.png diff --git a/scr/wechat-weapp-mapdemo-master/image/wechat.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/wechat.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/wechat.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/wechat.png diff --git a/scr/wechat-weapp-mapdemo-master/image/wechatHL.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/wechatHL.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/image/wechatHL.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/image/wechatHL.png diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/arrow.svg b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/arrow.svg new file mode 100644 index 0000000..cd32a7d --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/arrow.svg @@ -0,0 +1,11 @@ + + + ☀ iOS/☀ 图标/线型/icons_outlined_arrow@3x + + + + + + + + \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/database.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/database.png new file mode 100644 index 0000000..d0499c1 Binary files /dev/null and b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/database.png differ diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/deploy_step1.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/deploy_step1.png new file mode 100644 index 0000000..738b71c Binary files /dev/null and b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/deploy_step1.png differ diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/deploy_step2.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/deploy_step2.png new file mode 100644 index 0000000..d77faab Binary files /dev/null and b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/deploy_step2.png differ diff --git a/scr/wechat-weapp-mapdemo-master/images/dh.jpg b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/dh.jpg similarity index 100% rename from scr/wechat-weapp-mapdemo-master/images/dh.jpg rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/dh.jpg diff --git a/scr/wechat-weapp-mapdemo-master/images/gps.jpg b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/gps.jpg similarity index 100% rename from scr/wechat-weapp-mapdemo-master/images/gps.jpg rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/gps.jpg diff --git a/scr/wechat-weapp-mapdemo-master/images/hxLocation.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/hxLocation.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/images/hxLocation.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/hxLocation.png diff --git a/scr/wechat-weapp-mapdemo-master/images/logo1.png b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/logo1.png similarity index 100% rename from scr/wechat-weapp-mapdemo-master/images/logo1.png rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/logo1.png diff --git a/scr/wechat-weapp-mapdemo-master/images/sxaubg.jpg b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/sxaubg.jpg similarity index 100% rename from scr/wechat-weapp-mapdemo-master/images/sxaubg.jpg rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/sxaubg.jpg diff --git a/scr/wechat-weapp-mapdemo-master/images/xm.jpg b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/xm.jpg similarity index 100% rename from scr/wechat-weapp-mapdemo-master/images/xm.jpg rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/images/xm.jpg diff --git a/scr/wechat-weapp-mapdemo-master/pages/Find directions/Find directions.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/Find directions/Find directions.js similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/Find directions/Find directions.js rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/Find directions/Find directions.js diff --git a/scr/wechat-weapp-mapdemo-master/pages/Find directions/Find directions.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/Find directions/Find directions.json similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/Find directions/Find directions.json rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/Find directions/Find directions.json diff --git a/scr/wechat-weapp-mapdemo-master/pages/Find directions/Find directions.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/Find directions/Find directions.wxml similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/Find directions/Find directions.wxml rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/Find directions/Find directions.wxml diff --git a/scr/wechat-weapp-mapdemo-master/pages/Find directions/Find directions.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/Find directions/Find directions.wxss similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/Find directions/Find directions.wxss rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/Find directions/Find directions.wxss diff --git a/scr/wechat-weapp-mapdemo-master/pages/ManageAccount/ManageAccount.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ManageAccount/ManageAccount.js similarity index 85% rename from scr/wechat-weapp-mapdemo-master/pages/ManageAccount/ManageAccount.js rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ManageAccount/ManageAccount.js index 923b075..c2440af 100644 --- a/scr/wechat-weapp-mapdemo-master/pages/ManageAccount/ManageAccount.js +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ManageAccount/ManageAccount.js @@ -17,7 +17,7 @@ Page({ //account account() { wx.navigateTo({ - url: '/pages/ManageAccount/ManageAccount' + url: '/pages/index/index' }) } }) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/ManageAccount/ManageAccount.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ManageAccount/ManageAccount.json similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/ManageAccount/ManageAccount.json rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ManageAccount/ManageAccount.json diff --git a/scr/wechat-weapp-mapdemo-master/pages/ManageAccount/ManageAccount.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ManageAccount/ManageAccount.wxml similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/ManageAccount/ManageAccount.wxml rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ManageAccount/ManageAccount.wxml diff --git a/scr/wechat-weapp-mapdemo-master/pages/ManageAccount/ManageAccount.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ManageAccount/ManageAccount.wxss similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/ManageAccount/ManageAccount.wxss rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ManageAccount/ManageAccount.wxss diff --git a/scr/wechat-weapp-mapdemo-master/pages/ModifyInformation/ModifyInformation.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyInformation/ModifyInformation.js similarity index 85% rename from scr/wechat-weapp-mapdemo-master/pages/ModifyInformation/ModifyInformation.js rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyInformation/ModifyInformation.js index 923b075..c2440af 100644 --- a/scr/wechat-weapp-mapdemo-master/pages/ModifyInformation/ModifyInformation.js +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyInformation/ModifyInformation.js @@ -17,7 +17,7 @@ Page({ //account account() { wx.navigateTo({ - url: '/pages/ManageAccount/ManageAccount' + url: '/pages/index/index' }) } }) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/ModifyInformation/ModifyInformation.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyInformation/ModifyInformation.json similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/ModifyInformation/ModifyInformation.json rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyInformation/ModifyInformation.json diff --git a/scr/wechat-weapp-mapdemo-master/pages/ModifyInformation/ModifyInformation.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyInformation/ModifyInformation.wxml similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/ModifyInformation/ModifyInformation.wxml rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyInformation/ModifyInformation.wxml diff --git a/scr/wechat-weapp-mapdemo-master/pages/ModifyInformation/ModifyInformation.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyInformation/ModifyInformation.wxss similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/ModifyInformation/ModifyInformation.wxss rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyInformation/ModifyInformation.wxss diff --git a/scr/wechat-weapp-mapdemo-master/pages/ModifyMap/ModifyMap.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyMap/ModifyMap.js similarity index 85% rename from scr/wechat-weapp-mapdemo-master/pages/ModifyMap/ModifyMap.js rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyMap/ModifyMap.js index 923b075..c2440af 100644 --- a/scr/wechat-weapp-mapdemo-master/pages/ModifyMap/ModifyMap.js +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyMap/ModifyMap.js @@ -17,7 +17,7 @@ Page({ //account account() { wx.navigateTo({ - url: '/pages/ManageAccount/ManageAccount' + url: '/pages/index/index' }) } }) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/ModifyMap/ModifyMap.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyMap/ModifyMap.json similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/ModifyMap/ModifyMap.json rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyMap/ModifyMap.json diff --git a/scr/wechat-weapp-mapdemo-master/pages/ModifyMap/ModifyMap.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyMap/ModifyMap.wxml similarity index 56% rename from scr/wechat-weapp-mapdemo-master/pages/ModifyMap/ModifyMap.wxml rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyMap/ModifyMap.wxml index 4ba3dee..2d8dd68 100644 --- a/scr/wechat-weapp-mapdemo-master/pages/ModifyMap/ModifyMap.wxml +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyMap/ModifyMap.wxml @@ -1,5 +1,5 @@ - - - + + + \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/ModifyMap/ModifyMap.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyMap/ModifyMap.wxss similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/ModifyMap/ModifyMap.wxss rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/ModifyMap/ModifyMap.wxss diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduser/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduser/index.js new file mode 100644 index 0000000..84bccd3 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduser/index.js @@ -0,0 +1,89 @@ +// pages/index/index.js +//连接数据库 +const db = wx.cloud.database() +Page({ + + + /** + * 页面的初始数据 + */ + data: { + User_ID:'', + User_College:'', + User_Key:'', + User_Class:'', + User_Grade:'' + }, + + //监听并修改用户名和年龄的输入 + inputID:function(e){ + this.setData({ + User_ID:e.detail.value + }) + }, + + inputCollege:function(e){ + this.setData({ + User_College:e.detail.value + }) + }, + + inputGrade:function(e){ + this.setData({ + User_Grade:e.detail.value + }) + }, + + inputClass:function(e){ + this.setData({ + User_Class:e.detail.value + }) + }, + + inputKey:function(e){ + this.setData({ + User_Key:e.detail.value + }) + }, + //使用云函数 + //插入数据(增) + add:function(e){ + //要添加的数据是一个对象 + // var user={ + // username:this.data.username, + // age:this.data.age + // }; + + console.log(e); + wx.cloud.callFunction({ + name: 'useroption', + data: { + option: 'add', + addData:{ + User_ID:this.data.User_ID, + User_College:this.data.User_College, + User_Grade:this.data.User_Grade, + User_Class:this.data.User_Class, + User_Key:this.data.User_Key + } + }, + success: res => { + wx.showToast({ + title: '用户添加成功', + }) + console.log("添加成功") + console.log(res) + }, + fail:err => { + wx.showToast({ + title: '用户添加失败', + }) + } + }) + }, + getback:function(){ + wx.navigateBack({ + delta:1, + }) + } +}) diff --git a/scr/wechat-weapp-mapdemo-master/pages/location/location.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduser/index.json similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/location/location.json rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduser/index.json diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduser/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduser/index.wxml new file mode 100644 index 0000000..fa4839b --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduser/index.wxml @@ -0,0 +1,35 @@ + + + + + + + + + + \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduser/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduser/index.wxss new file mode 100644 index 0000000..41625a0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduser/index.wxss @@ -0,0 +1,100 @@ +/* pages/addusers/index.wxss */ + +page { + padding-top: 54rpx; + background-color: #f6f6f6; + padding-bottom: 60rpx; +} + +.button { + margin-top: 50px; + margin-left: 50px; + margin-right: 50px; +} + +.title { + font-family: PingFang SC; + font-weight: 500; + color: #000000; + font-size: 44rpx; + margin-bottom: 40rpx; +} + +.top_tip { + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 400; + color: #888888; + margin-bottom: 28rpx; +} + +.power { + margin-top: 30rpx; + border-radius: 5px; + background-color: white; + width: 93%; + padding-bottom: 1rpx; +} + +.power_info { + display: flex; + padding: 30rpx 25rpx; + align-items: center; + justify-content: space-between; +} + +.power_info_more { + width: 30rpx; + height: 30rpx; + transform: rotate(90deg); +} + +.power_info_less { + width: 30rpx; + height: 30rpx; + transform: rotate(270deg); +} + +.power_info_text { + display: flex; + flex-direction: column; +} + +.power_info_text_title { + margin-bottom: 10rpx; + font-weight: 400; + font-size: 35rpx; +} + +.power_info_text_tip { + color: rgba(0, 0, 0, 0.4); + font-size: 25rpx; +} + +.power_item { + padding: 30rpx 25rpx; + display: flex; + justify-content: space-between; +} + +.power_item_title { + font-size: 30rpx; +} + +.power_item_icon { + width: 30rpx; + height: 30rpx; +} + +.line { + width: 95%; + margin: 0 auto; + height: 2rpx; + background-color: rgba(0, 0, 0, 0.1); +} + +.environment { + color: rgba(0, 0, 0, 0.4); + font-size: 24rpx; + margin-top: 25%; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/addusers/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/addusers/index.js new file mode 100644 index 0000000..9bdf998 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/addusers/index.js @@ -0,0 +1,88 @@ +// pages/addusers/index.js +const db = wx.cloud.database() +Page({ + + + /** + * 页面的初始数据 + */ + data: { + User_ID:'', + User_College:'', + User_Key:'', + User_Class:'', + User_Grade:'' + }, + + //监听并修改用户名和年龄的输入 + inputID:function(e){ + this.setData({ + User_ID:e.detail.value + }) + }, + + inputCollege:function(e){ + this.setData({ + User_College:e.detail.value + }) + }, + + inputGrade:function(e){ + this.setData({ + User_Grade:e.detail.value + }) + }, + + inputClass:function(e){ + this.setData({ + User_Class:e.detail.value + }) + }, + + inputKey:function(e){ + this.setData({ + User_Key:e.detail.value + }) + }, + //使用云函数 + //插入数据(增) + add:function(e){ + //要添加的数据是一个对象 + // var user={ + // username:this.data.username, + // age:this.data.age + // }; + + console.log(e); + wx.cloud.callFunction({ + name: 'useroption', + data: { + option: 'add', + addData:{ + User_ID:this.data.User_ID, + User_College:this.data.User_College, + User_Grade:this.data.User_Grade, + User_Class:this.data.User_Class, + User_Key:this.data.User_Key + } + }, + success: res => { + wx.showToast({ + title: '用户添加成功', + }) + console.log("添加成功") + console.log(res) + }, + fail:err => { + wx.showToast({ + title: '用户添加失败', + }) + } + }) + }, + getback:function(){ + wx.navigateBack({ + delta:1, + }) + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/login/login.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/addusers/index.json similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/login/login.json rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/addusers/index.json diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/addusers/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/addusers/index.wxml new file mode 100644 index 0000000..7dc62bb --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/addusers/index.wxml @@ -0,0 +1,36 @@ + + + + + + + + + + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/addusers/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/addusers/index.wxss new file mode 100644 index 0000000..41625a0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/addusers/index.wxss @@ -0,0 +1,100 @@ +/* pages/addusers/index.wxss */ + +page { + padding-top: 54rpx; + background-color: #f6f6f6; + padding-bottom: 60rpx; +} + +.button { + margin-top: 50px; + margin-left: 50px; + margin-right: 50px; +} + +.title { + font-family: PingFang SC; + font-weight: 500; + color: #000000; + font-size: 44rpx; + margin-bottom: 40rpx; +} + +.top_tip { + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 400; + color: #888888; + margin-bottom: 28rpx; +} + +.power { + margin-top: 30rpx; + border-radius: 5px; + background-color: white; + width: 93%; + padding-bottom: 1rpx; +} + +.power_info { + display: flex; + padding: 30rpx 25rpx; + align-items: center; + justify-content: space-between; +} + +.power_info_more { + width: 30rpx; + height: 30rpx; + transform: rotate(90deg); +} + +.power_info_less { + width: 30rpx; + height: 30rpx; + transform: rotate(270deg); +} + +.power_info_text { + display: flex; + flex-direction: column; +} + +.power_info_text_title { + margin-bottom: 10rpx; + font-weight: 400; + font-size: 35rpx; +} + +.power_info_text_tip { + color: rgba(0, 0, 0, 0.4); + font-size: 25rpx; +} + +.power_item { + padding: 30rpx 25rpx; + display: flex; + justify-content: space-between; +} + +.power_item_title { + font-size: 30rpx; +} + +.power_item_icon { + width: 30rpx; + height: 30rpx; +} + +.line { + width: 95%; + margin: 0 auto; + height: 2rpx; + background-color: rgba(0, 0, 0, 0.1); +} + +.environment { + color: rgba(0, 0, 0, 0.4); + font-size: 24rpx; + margin-top: 25%; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduserssuccess/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduserssuccess/index.js new file mode 100644 index 0000000..791d6ca --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduserssuccess/index.js @@ -0,0 +1,66 @@ +// pages/adduserssuccess/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/text/text.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduserssuccess/index.json similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/text/text.json rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduserssuccess/index.json diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduserssuccess/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduserssuccess/index.wxml new file mode 100644 index 0000000..42fae23 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduserssuccess/index.wxml @@ -0,0 +1,2 @@ + +pages/adduserssuccess/index.wxml diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduserssuccess/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduserssuccess/index.wxss new file mode 100644 index 0000000..52e5065 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adduserssuccess/index.wxss @@ -0,0 +1 @@ +/* pages/adduserssuccess/index.wxss */ \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.js new file mode 100644 index 0000000..43163fd --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.js @@ -0,0 +1,82 @@ +// pages/adlogin/adlogin.js +Page({ + data: { + account:'', + password:'' + }, + + //获取输入的账号 + getAccount(evt) { + //console.log('账号', evt.detail.value) + this.setData({ + account: evt.detail.value + }) + }, + + //获取管理员输入的密码 + getPassword(event) { + // console.log('密码', event.detail.value) + this.setData({ + password: event.detail.value + }) + }, + +//点击管理员登陆 + guanliyuanlogin() { + + let account = this.data.account + let password = this.data.password + console.log('管理员账号', account, '管理员密码', password) + if (account.length < 4) { + wx.showToast({ + icon: 'none', + title: '账号至少4位', + }) + return + } + if (password.length < 4) { + wx.showToast({ + icon: 'none', + title: '密码至少4位', + }) + return + } + + + //管理员登陆 + wx.cloud.database().collection('manager').where({ + account: account + }).get({ + success(res) { + console.log("获取数据成功", res) + let manager = res.data[0] + console.log("manager", manager) + if (password == manager.password) { + console.log('登陆成功') + wx.showToast({ + title: '登陆成功', + }) + // wx.navigateTo({ + // url: '../home/home?name=' + user.name, + // }) + wx.navigateTo({ + url: '../ModifyMap/ModifyMap', + }) + //保存管理员登陆状态 + wx.setStorageSync('manager', manager) + } else { + console.log('登陆失败') + wx.showToast({ + icon: 'none', + title: '账号或密码不正确', + }) + } + }, + fail(res) { + console.log("获取数据失败", res) + } + }) + + } + + }) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.wxml new file mode 100644 index 0000000..75ad50d --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.wxml @@ -0,0 +1,5 @@ +输入管理员账号 + +输入管理员密码 + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.wxss new file mode 100644 index 0000000..01d4bfe --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/adlogin/adlogin.wxss @@ -0,0 +1,5 @@ +/* pages/adlogin/adlogin.wxss */ +.input{ + border: 1px solid gainsboro; + margin: 20rpx; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.js new file mode 100644 index 0000000..9e6333e --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.js @@ -0,0 +1,14 @@ +// pages/delete/index.js +const db = wx.cloud.database() +Page({ + removeuser:function(){ + wx.navigateTo({ + url: '/pages/deleteuser/index', + }) + }, + removeusers:function(){ + wx.navigateTo({ + url: '/pages/deleteusers/index', + }) + }, +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.wxml new file mode 100644 index 0000000..3ba3a34 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.wxml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.wxss new file mode 100644 index 0000000..35ab744 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/delete/index.wxss @@ -0,0 +1,100 @@ +/* pages/delete/index.wxss */ +page { + padding-top: 54rpx; + background-color: #f6f6f6; + padding-bottom: 60rpx; +} + +.button { + margin-top: 50px; + margin-left: 50px; + margin-right: 50px; +} + + +.title { + font-family: PingFang SC; + font-weight: 500; + color: #000000; + font-size: 44rpx; + margin-bottom: 40rpx; +} + +.top_tip { + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 400; + color: #888888; + margin-bottom: 28rpx; +} + +.power { + margin-top: 30rpx; + border-radius: 5px; + background-color: white; + width: 93%; + padding-bottom: 1rpx; +} + +.power_info { + display: flex; + padding: 30rpx 25rpx; + align-items: center; + justify-content: space-between; +} + +.power_info_more { + width: 30rpx; + height: 30rpx; + transform: rotate(90deg); +} + +.power_info_less { + width: 30rpx; + height: 30rpx; + transform: rotate(270deg); +} + +.power_info_text { + display: flex; + flex-direction: column; +} + +.power_info_text_title { + margin-bottom: 10rpx; + font-weight: 400; + font-size: 35rpx; +} + +.power_info_text_tip { + color: rgba(0, 0, 0, 0.4); + font-size: 25rpx; +} + +.power_item { + padding: 30rpx 25rpx; + display: flex; + justify-content: space-between; +} + +.power_item_title { + font-size: 30rpx; +} + +.power_item_icon { + width: 30rpx; + height: 30rpx; +} + +.line { + width: 95%; + margin: 0 auto; + height: 2rpx; + background-color: rgba(0, 0, 0, 0.1); +} + +.environment { + color: rgba(0, 0, 0, 0.4); + font-size: 24rpx; + margin-top: 25%; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.js new file mode 100644 index 0000000..c5ec9a8 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.js @@ -0,0 +1,34 @@ +// pages/deleteuser/index.js +Page({ + inputdelID:function(e){ + this.setData({ + delUser_ID:e.detail.value + }) + }, + removeDataFn:function(){ + wx.cloud.callFunction({ + name: 'useroption', + data: { + option: 'deleteuser', + //要删除的数据 + delUser_ID:this.data.delUser_ID + }, + success: res => { + wx.showToast({ + title: '用户删除成功', + }) + console.log(res) + }, + fail: err => { + wx.showToast({ + title: '用户删除失败', + }) + } + }) + }, + getback:function(){ + wx.navigateBack({ + delta:2, + }) + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.wxml new file mode 100644 index 0000000..f48e51b --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.wxml @@ -0,0 +1,10 @@ + + + + + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.wxss new file mode 100644 index 0000000..2b3c0a2 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuser/index.wxss @@ -0,0 +1,100 @@ +/* pages/deleteuser/index.wxss */ + +page { + padding-top: 54rpx; + background-color: #f6f6f6; + padding-bottom: 60rpx; +} + +.button { + margin-top: 50px; + margin-left: 50px; + margin-right: 50px; +} + +.title { + font-family: PingFang SC; + font-weight: 500; + color: #000000; + font-size: 44rpx; + margin-bottom: 40rpx; +} + +.top_tip { + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 400; + color: #888888; + margin-bottom: 28rpx; +} + +.power { + margin-top: 30rpx; + border-radius: 5px; + background-color: white; + width: 93%; + padding-bottom: 1rpx; +} + +.power_info { + display: flex; + padding: 30rpx 25rpx; + align-items: center; + justify-content: space-between; +} + +.power_info_more { + width: 30rpx; + height: 30rpx; + transform: rotate(90deg); +} + +.power_info_less { + width: 30rpx; + height: 30rpx; + transform: rotate(270deg); +} + +.power_info_text { + display: flex; + flex-direction: column; +} + +.power_info_text_title { + margin-bottom: 10rpx; + font-weight: 400; + font-size: 35rpx; +} + +.power_info_text_tip { + color: rgba(0, 0, 0, 0.4); + font-size: 25rpx; +} + +.power_item { + padding: 30rpx 25rpx; + display: flex; + justify-content: space-between; +} + +.power_item_title { + font-size: 30rpx; +} + +.power_item_icon { + width: 30rpx; + height: 30rpx; +} + +.line { + width: 95%; + margin: 0 auto; + height: 2rpx; + background-color: rgba(0, 0, 0, 0.1); +} + +.environment { + color: rgba(0, 0, 0, 0.4); + font-size: 24rpx; + margin-top: 25%; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.js new file mode 100644 index 0000000..8d384d1 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.js @@ -0,0 +1,46 @@ +// pages/deleteusers/index.js +Page({ + inputdelCollege:function(e){ + this.setData({ + delUser_College:e.detail.value, + }) + }, + inputdelGrade:function(e){ + this.setData({ + delUser_Grade:e.detail.value, + }) + }, + inputdelClass:function(e){ + this.setData({ + delUser_Class:e.detail.value, + }) + }, + removeDataFn:function(){ + wx.cloud.callFunction({ + name: 'useroption', + data: { + option: 'deleteusers', + //要删除的数据 + delUser_College:this.data.delUser_College, + delUser_Grade:this.data.delUser_Grade, + delUser_Class:this.data.delUser_Class + }, + success: res => { + wx.showToast({ + title: '用户删除成功', + }) + console.log(res) + }, + fail: err => { + wx.showToast({ + title: '用户删除失败', + }) + } + }) + }, + getback:function(){ + wx.navigateBack({ + delta:2, + }) + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.wxml new file mode 100644 index 0000000..416b368 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.wxml @@ -0,0 +1,20 @@ + + + + + + + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.wxss new file mode 100644 index 0000000..bff6131 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteusers/index.wxss @@ -0,0 +1,100 @@ +/* pages/deleteusers/index.wxss */ + +page { + padding-top: 54rpx; + background-color: #f6f6f6; + padding-bottom: 60rpx; +} + +.button { + margin-top: 50px; + margin-left: 50px; + margin-right: 50px; +} + +.title { + font-family: PingFang SC; + font-weight: 500; + color: #000000; + font-size: 44rpx; + margin-bottom: 40rpx; +} + +.top_tip { + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 400; + color: #888888; + margin-bottom: 28rpx; +} + +.power { + margin-top: 30rpx; + border-radius: 5px; + background-color: white; + width: 93%; + padding-bottom: 1rpx; +} + +.power_info { + display: flex; + padding: 30rpx 25rpx; + align-items: center; + justify-content: space-between; +} + +.power_info_more { + width: 30rpx; + height: 30rpx; + transform: rotate(90deg); +} + +.power_info_less { + width: 30rpx; + height: 30rpx; + transform: rotate(270deg); +} + +.power_info_text { + display: flex; + flex-direction: column; +} + +.power_info_text_title { + margin-bottom: 10rpx; + font-weight: 400; + font-size: 35rpx; +} + +.power_info_text_tip { + color: rgba(0, 0, 0, 0.4); + font-size: 25rpx; +} + +.power_item { + padding: 30rpx 25rpx; + display: flex; + justify-content: space-between; +} + +.power_item_title { + font-size: 30rpx; +} + +.power_item_icon { + width: 30rpx; + height: 30rpx; +} + +.line { + width: 95%; + margin: 0 auto; + height: 2rpx; + background-color: rgba(0, 0, 0, 0.1); +} + +.environment { + color: rgba(0, 0, 0, 0.4); + font-size: 24rpx; + margin-top: 25%; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.js new file mode 100644 index 0000000..ab6c037 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.js @@ -0,0 +1,66 @@ +// pages/deleteuserssuccess/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.wxml new file mode 100644 index 0000000..4b74ca1 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.wxml @@ -0,0 +1,2 @@ + +pages/deleteuserssuccess/index.wxml diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.wxss new file mode 100644 index 0000000..df3ce64 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/deleteuserssuccess/index.wxss @@ -0,0 +1 @@ +/* pages/deleteuserssuccess/index.wxss */ \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.js new file mode 100644 index 0000000..0ab33e6 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.js @@ -0,0 +1,66 @@ +// pages/home/home.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.wxml new file mode 100644 index 0000000..cc4fafe --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.wxml @@ -0,0 +1,2 @@ + +pages/home/home.wxml diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.wxss new file mode 100644 index 0000000..bc0eec7 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/home/home.wxss @@ -0,0 +1 @@ +/* pages/home/home.wxss */ \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.js new file mode 100644 index 0000000..7213097 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.js @@ -0,0 +1,70 @@ +// pages/index/index.js +//连接数据库 +const db = wx.cloud.database() +Page({ + data: { + loginOK: false + }, + //map + map() { + wx.navigateTo({ + url: '/pages/ModifyMap/ModifyMap', + }) + }, + //information + information() { + wx.navigateTo({ + url: '/pages/ModifyInformation/ModifyInformation', + }) + }, + //account + account() { + wx.navigateTo({ + url: '/pages/index/index' + }) + }, + + + /** + * 页面的初始数据 + */ + + + + //使用云函数 + //插入数据(增) + add:function(e){ + wx.navigateTo({ + url: '/pages/adduser/index', + }) + }, + + //删除数据(删) + removeDataFn:function(){ + wx.navigateTo({ + url: '/pages/delete/index', + }) + }, + + + //查询数据(查) + searchDataNameFn:function(){ + wx.navigateTo({ + url: '/pages/selectusers/index', + }) + }, + + + //修改数据(改) + updateDataFn(){ + wx.navigateTo({ + url: '/pages/updateusers/index', + }) + }, + //返回 + getback:function(){ + wx.navigateBack({ + delta: 1, + }) + }, +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.json new file mode 100644 index 0000000..3ea1434 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.json @@ -0,0 +1,5 @@ +{ + "usingComponents": { + "cloud-tip-modal": "/components/cloudTipModal/index" + } +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.wxml new file mode 100644 index 0000000..bf08593 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.wxml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.wxss new file mode 100644 index 0000000..9589666 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index/index.wxss @@ -0,0 +1,101 @@ +/**index.wxss**/ + +page { + padding-top: 54rpx; + background-color: #f6f6f6; + padding-bottom: 60rpx; +} + +.button { + margin-top: 50px; + margin-left: 50px; + margin-right: 50px; +} + + +.title { + font-family: PingFang SC; + font-weight: 500; + color: #000000; + font-size: 44rpx; + margin-bottom: 40rpx; +} + +.top_tip { + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 400; + color: #888888; + margin-bottom: 28rpx; +} + +.power { + margin-top: 30rpx; + border-radius: 5px; + background-color: white; + width: 93%; + padding-bottom: 1rpx; +} + +.power_info { + display: flex; + padding: 30rpx 25rpx; + align-items: center; + justify-content: space-between; +} + +.power_info_more { + width: 30rpx; + height: 30rpx; + transform: rotate(90deg); +} + +.power_info_less { + width: 30rpx; + height: 30rpx; + transform: rotate(270deg); +} + +.power_info_text { + display: flex; + flex-direction: column; +} + +.power_info_text_title { + margin-bottom: 10rpx; + font-weight: 400; + font-size: 35rpx; +} + +.power_info_text_tip { + color: rgba(0, 0, 0, 0.4); + font-size: 25rpx; +} + +.power_item { + padding: 30rpx 25rpx; + display: flex; + justify-content: space-between; +} + +.power_item_title { + font-size: 30rpx; +} + +.power_item_icon { + width: 30rpx; + height: 30rpx; +} + +.line { + width: 95%; + margin: 0 auto; + height: 2rpx; + background-color: rgba(0, 0, 0, 0.1); +} + +.environment { + color: rgba(0, 0, 0, 0.4); + font-size: 24rpx; + margin-top: 25%; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.js new file mode 100644 index 0000000..cb26b78 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.js @@ -0,0 +1,90 @@ +Page({ + data: { + name: '', + account: '', + password: '' + }, + //获取用户名 + getName(event) { + console.log('获取输入的用户名', event.detail.value) + this.setData({ + name: event.detail.value + }) + }, + //获取用户账号 + getAccount(event) { + console.log('获取输入的账号', event.detail.value) + this.setData({ + account: event.detail.value + }) + }, + // 获取密码 + getPassword(event) { + console.log('获取输入的密码', event.detail.value) + this.setData({ + password: event.detail.value + }) + }, + + //注册 + adzhuce() { + let name = this.data.name + let account = this.data.account + let password = this.data.password + console.log("点击了注册") + console.log("name", name) + console.log("account", account) + console.log("password", password) + //校验用户名 + if (name.length < 2) { + wx.showToast({ + icon: 'none', + title: '用户名至少2位', + }) + return + } + if (name.length > 10) { + wx.showToast({ + icon: 'none', + title: '用户名最多10位', + }) + return + } + //校验账号 + if (account.length < 4) { + wx.showToast({ + icon: 'none', + title: '账号至少4位', + }) + return + } + //校验密码 + if (password.length < 4) { + wx.showToast({ + icon: 'none', + title: '密码至少4位', + }) + return + } + //注册功能的实现 + wx.cloud.database().collection('manager').add({ + data: { + name: name, + account: account, + password: password + }, + success(res) { + console.log('注册成功', res) + wx.showToast({ + title: '注册成功', + }) + wx.navigateTo({ + url: '../adlogin/adlogin', + }) + }, + fail(res) { + console.log('注册失败', res) + } + }) + } + }) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.wxml new file mode 100644 index 0000000..bd53fbc --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.wxml @@ -0,0 +1,8 @@ + +输入管理员用户名 + +输入管理员用户账号 + +输入管理员密码 + + \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.wxss new file mode 100644 index 0000000..02428e2 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index1/index1.wxss @@ -0,0 +1,5 @@ +/**index.wxss**/ +.input{ + border: 1px solid gainsboro; + margin: 15rpx; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.js new file mode 100644 index 0000000..0795310 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.js @@ -0,0 +1,90 @@ +Page({ + data: { + name: '', + zhanghao: '', + mima: '' + }, + //获取用户名 + getName(event) { + console.log('获取输入的用户名', event.detail.value) + this.setData({ + name: event.detail.value + }) + }, + //获取用户账号 + getZhangHao(event) { + console.log('获取输入的账号', event.detail.value) + this.setData({ + zhanghao: event.detail.value + }) + }, + // 获取密码 + getMiMa(event) { + console.log('获取输入的密码', event.detail.value) + this.setData({ + mima: event.detail.value + }) + }, + + //注册 + zhuce() { + let name = this.data.name + let zhanghao = this.data.zhanghao + let mima = this.data.mima + console.log("点击了注册") + console.log("name", name) + console.log("zhanghao", zhanghao) + console.log("mima", mima) + //校验用户名 + if (name.length < 2) { + wx.showToast({ + icon: 'none', + title: '用户名至少2位', + }) + return + } + if (name.length > 10) { + wx.showToast({ + icon: 'none', + title: '用户名最多10位', + }) + return + } + //校验账号 + if (zhanghao.length < 4) { + wx.showToast({ + icon: 'none', + title: '账号至少4位', + }) + return + } + //校验密码 + if (mima.length < 4) { + wx.showToast({ + icon: 'none', + title: '密码至少4位', + }) + return + } + //注册功能的实现 + wx.cloud.database().collection('user').add({ + data: { + name: name, + zhanghao: zhanghao, + mima: mima + }, + success(res) { + console.log('注册成功', res) + wx.showToast({ + title: '注册成功', + }) + wx.navigateTo({ + url: '../login_1/login_1', + }) + }, + fail(res) { + console.log('注册失败', res) + } + }) + } + }) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.wxml new file mode 100644 index 0000000..8697e97 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.wxml @@ -0,0 +1,8 @@ + +输入用户名 + +输入用户账号 + +输入密码 + + \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.wxss new file mode 100644 index 0000000..02428e2 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/index_hjf/index_hjf.wxss @@ -0,0 +1,5 @@ +/**index.wxss**/ +.input{ + border: 1px solid gainsboro; + margin: 15rpx; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/location/location.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/location/location.js similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/location/location.js rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/location/location.js diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/location/location.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/location/location.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/location/location.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/location/location.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/location/location.wxml similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/location/location.wxml rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/location/location.wxml diff --git a/scr/wechat-weapp-mapdemo-master/pages/location/location.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/location/location.wxss similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/location/location.wxss rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/location/location.wxss diff --git a/scr/wechat-weapp-mapdemo-master/pages/login/login.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login/login.js similarity index 53% rename from scr/wechat-weapp-mapdemo-master/pages/login/login.js rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login/login.js index 91c3f1c..3bc5b0f 100644 --- a/scr/wechat-weapp-mapdemo-master/pages/login/login.js +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login/login.js @@ -5,7 +5,8 @@ Page({ user_name:'', user_password:'' }, -//输入用户名 + + //输入用户名 userNameChange: function (e) { this.data.user_name = e.detail.value; }, @@ -13,7 +14,28 @@ Page({ userPasswordChange: function (e) { this.data.user_password = e.detail.value; }, - showLive: function () { + denglu() { + wx.navigateTo({ + url: '/pages/login_1/login_1', + }) + }, + + zhuce() { + wx.navigateTo({ + url: '/pages/index_hjf/index_hjf', + }) + }, + guanliyuandenglu() { + wx.navigateTo({ + url: '/pages/adlogin/adlogin', + }) + }, + adzhuce() { + wx.navigateTo({ + url: '/pages/index1/index1', + }) + }, + /*showLive: function () { wx.reLaunch({ url: '../Find directions/Find directions', }) @@ -24,5 +46,5 @@ Page({ url:'../ModifyMap/ModifyMap' } ) - } + }*/ }) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login/login.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login/login.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login/login.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/login/login.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login/login.wxml similarity index 51% rename from scr/wechat-weapp-mapdemo-master/pages/login/login.wxml rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login/login.wxml index 326cad0..b8f69d0 100644 --- a/scr/wechat-weapp-mapdemo-master/pages/login/login.wxml +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login/login.wxml @@ -1,7 +1,8 @@ 错误提示 - 登录 + + - - + + + + + + + + - - + + 注册,忘记密码请联系qq:xx diff --git a/scr/wechat-weapp-mapdemo-master/pages/login/login.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login/login.wxss similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/login/login.wxss rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login/login.wxss diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.js new file mode 100644 index 0000000..e00ec9d --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.js @@ -0,0 +1,97 @@ +// pages/login/login.js +Page({ + data: { + zhanghao: '', + mima: '' + }, + + + //获取输入的账号 + getZhanghao(event) { + //console.log('账号', event.detail.value) + this.setData({ + zhanghao: event.detail.value + }) + }, + + + //获取输入的密码 + getMima(event) { + // console.log('密码', event.detail.value) + this.setData({ + mima: event.detail.value + }) + }, + + //点击登陆 + login() { + let zhanghao = this.data.zhanghao + let mima = this.data.mima + console.log('账号', zhanghao, '密码', mima) + if(this.data.zhanghao == '') { + wx.showToast({ + title: '请输入账号!', + icon: 'none' + }) + return + } + if(this.data.mima == '') { + wx.showToast({ + title: '请输入密码!', + icon: 'none' + }) + return + } + if (zhanghao.length < 4) { + wx.showToast({ + icon: 'none', + title: '账号至少4位', + }) + return + } + if (mima.length < 4) { + wx.showToast({ + icon: 'none', + title: '密码至少4位', + }) + return + } + + //登陆 + wx.cloud.database().collection('user').where({ + zhanghao: zhanghao + }).get({ + success(res) { + console.log("获取数据成功", res) + let user = res.data[0] + console.log("user", user) + if (mima == user.mima) { + console.log('登陆成功') + wx.reLaunch({ + url: '../Find directions/Find directions', + }) + wx.showToast({ + title: '登陆成功', + }) + // wx.navigateTo({ + // url: '../home/home?name=' + user.name, + // }) + + //保存用户登陆状态 + wx.setStorageSync('user', user) + } else { + console.log('登陆失败') + wx.showToast({ + icon: 'none', + title: '账号或密码不正确', + }) + } + }, + fail(res) { + console.log("获取数据失败", res) + } + }) + + } + + }) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.wxml new file mode 100644 index 0000000..6cdf64c --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.wxml @@ -0,0 +1,8 @@ + +输入账号 + +输入密码 + + + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.wxss new file mode 100644 index 0000000..2c01333 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/login_1/login_1.wxss @@ -0,0 +1,5 @@ +/* pages/login/login.wxss */ +.input{ + border: 1px solid gainsboro; + margin: 20rpx; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/logs/logs.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/logs/logs.js similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/logs/logs.js rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/logs/logs.js diff --git a/scr/wechat-weapp-mapdemo-master/pages/logs/logs.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/logs/logs.wxml similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/logs/logs.wxml rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/logs/logs.wxml diff --git a/scr/wechat-weapp-mapdemo-master/pages/map/map.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/map/map.js similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/map/map.js rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/map/map.js diff --git a/scr/wechat-weapp-mapdemo-master/pages/map/map.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/map/map.json similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/map/map.json rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/map/map.json diff --git a/scr/wechat-weapp-mapdemo-master/pages/map/map.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/map/map.wxml similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/map/map.wxml rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/map/map.wxml diff --git a/scr/wechat-weapp-mapdemo-master/pages/map/map.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/map/map.wxss similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/map/map.wxss rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/map/map.wxss diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.js new file mode 100644 index 0000000..6e1d89d --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.js @@ -0,0 +1,66 @@ +// pages/me/me.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.wxml new file mode 100644 index 0000000..61fba4d --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.wxml @@ -0,0 +1,2 @@ + +pages/me/me.wxml diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.wxss new file mode 100644 index 0000000..d31a0bf --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me/me.wxss @@ -0,0 +1 @@ +/* pages/me/me.wxss */ \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.js new file mode 100644 index 0000000..49984f8 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.js @@ -0,0 +1,66 @@ +// pages/me1/me1.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.wxml new file mode 100644 index 0000000..e503e08 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.wxml @@ -0,0 +1,2 @@ + +pages/me1/me1.wxml diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.wxss new file mode 100644 index 0000000..9d3cbad --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/me1/me1.wxss @@ -0,0 +1 @@ +/* pages/me1/me1.wxss */ \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.js new file mode 100644 index 0000000..c5fc052 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.js @@ -0,0 +1,36 @@ +// pages/selectusers/index.js +Page({ + inputgetID:function(e){ + this.setData({ + getUser_ID:e.detail.value + }) + }, + searchDataNameFn:function(){ + wx.cloud.callFunction({ + name: 'useroption', + data: { + option: 'getID', + getUser_ID:this.data.getUser_ID + }, + success: res => { + this.setData({ + array: res.result.data + }) + wx.showToast({ + title: '用户查询成功', + }) + console.log(res.result.data) + }, + fail: err => { + wx.showToast({ + title: '用户查询失败', + }) + } + }) + }, + getback:function(){ + wx.navigateBack({ + delta:2, + }) + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.wxml new file mode 100644 index 0000000..4e95312 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.wxml @@ -0,0 +1,31 @@ + + + + + + + + 用户库 + + 年级 + 院系 + 班级 + 学号 + + + + {{item.User_College}} + {{item.User_Grade}} + {{item.User_Class}} + {{item.User_ID}} + + + + + + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.wxss new file mode 100644 index 0000000..541b7d5 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(ID)/index.wxss @@ -0,0 +1,145 @@ +/* pages/selectusers/index.wxss */ +/* pages/selectusers(college)/index.wxss */ + +page { + padding-top: 54rpx; + background-color: #f6f6f6; + padding-bottom: 60rpx; +} + +.button { + margin-top: 50px; + margin-left: 50px; + margin-right: 50px; +} + + +.title { + font-family: PingFang SC; + font-weight: 500; + color: #000000; + font-size: 44rpx; + margin-bottom: 40rpx; +} + +.top_tip { + font-size: 28rpx; + color: rgba(0, 0, 0, 0.5); + width: 90%; + text-align: left; + margin-top: 30rpx; + margin-left: 20rpx; +} + +.power { + margin-top: 30rpx; + border-radius: 5px; + background-color: white; + width: 93%; + padding-bottom: 1rpx; +} + +.power_info { + display: flex; + padding: 30rpx 25rpx; + align-items: center; + justify-content: space-between; +} + +.power_info_more { + width: 30rpx; + height: 30rpx; + transform: rotate(90deg); +} + +.power_info_less { + width: 30rpx; + height: 30rpx; + transform: rotate(270deg); +} + +.power_info_text { + display: flex; + flex-direction: column; +} + +.power_info_text_title { + margin-bottom: 10rpx; + font-weight: 400; + font-size: 35rpx; +} + +.power_info_text_tip { + color: rgba(0, 0, 0, 0.4); + font-size: 25rpx; +} + +.power_item { + padding: 30rpx 25rpx; + display: flex; + justify-content: space-between; +} + +.power_item_title { + font-size: 30rpx; +} + +.power_item_icon { + width: 30rpx; + height: 30rpx; +} + +.line { + width: 95%; + margin: 0 auto; + height: 2rpx; + background-color: rgba(0, 0, 0, 0.1); +} + +.environment { + color: rgba(0, 0, 0, 0.4); + font-size: 24rpx; + margin-top: 25%; +} + +.code_box { + text-align: center; + background-color: white; + margin-top: 30rpx; + padding: 17rpx; +} + +.code_box_title { + color: rgba(0, 0, 0, 0.5); + font-size: 26rpx; + margin-bottom: 20rpx; + text-align: left; +} + +.code_box_record { + display: flex; +} + +.code_box_record_title { + width: 33%; + font-size: 26rpx; + color: rgba(0, 0, 0, 0.5); + padding: 20rpx 0; +} + +.code_box_record_detail { + width: 33%; + font-size: 26rpx; + padding: 20rpx 0; +} + +.button { + width: 300rpx; + text-align: center; + margin: 20% auto 0 auto; + height: 80rpx; + color: white; + border-radius: 5px; + line-height: 80rpx; + background-color: #07c160; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.js new file mode 100644 index 0000000..8df6942 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.js @@ -0,0 +1,48 @@ +// pages/selectusers(college)/index.js +Page({ + inputgetCollege:function(e){ + this.setData({ + getUser_College:e.detail.value + }) + }, + inputgetGrade:function(e){ + this.setData({ + getUser_Grade:e.detail.value + }) + }, + inputgetClass:function(e){ + this.setData({ + getUser_Class:e.detail.value + }) + }, + searchDataNameFn:function(){ + wx.cloud.callFunction({ + name: 'useroption', + data: { + option: 'getCollege', + getUser_College:this.data.getUser_College, + getUser_Grade:this.data.getUser_Grade, + getUser_Class:this.data.getUser_Class + }, + success: res => { + this.setData({ + array: res.result.data + }) + wx.showToast({ + title: '用户查询成功', + }) + console.log(res.result.data) + }, + fail: err => { + wx.showToast({ + title: '用户查询失败', + }) + } + }) + }, + getback:function(){ + wx.navigateBack({ + delta:2, + }) + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.wxml new file mode 100644 index 0000000..2d27ab7 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.wxml @@ -0,0 +1,41 @@ + + + + + + + + + + 用户库 + + 年级 + 院系 + 班级 + 学号 + + + + {{item.User_College}} + {{item.User_Grade}} + {{item.User_Class}} + {{item.User_ID}} + + + + + + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.wxss new file mode 100644 index 0000000..d670baa --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers(college)/index.wxss @@ -0,0 +1,144 @@ +/* pages/selectusers(college)/index.wxss */ + +page { + padding-top: 54rpx; + background-color: #f6f6f6; + padding-bottom: 60rpx; +} + +.button { + margin-top: 50px; + margin-left: 50px; + margin-right: 50px; +} + + +.title { + font-family: PingFang SC; + font-weight: 500; + color: #000000; + font-size: 44rpx; + margin-bottom: 40rpx; +} + +.top_tip { + font-size: 28rpx; + color: rgba(0, 0, 0, 0.5); + width: 90%; + text-align: left; + margin-top: 30rpx; + margin-left: 20rpx; +} + +.power { + margin-top: 30rpx; + border-radius: 5px; + background-color: white; + width: 93%; + padding-bottom: 1rpx; +} + +.power_info { + display: flex; + padding: 30rpx 25rpx; + align-items: center; + justify-content: space-between; +} + +.power_info_more { + width: 30rpx; + height: 30rpx; + transform: rotate(90deg); +} + +.power_info_less { + width: 30rpx; + height: 30rpx; + transform: rotate(270deg); +} + +.power_info_text { + display: flex; + flex-direction: column; +} + +.power_info_text_title { + margin-bottom: 10rpx; + font-weight: 400; + font-size: 35rpx; +} + +.power_info_text_tip { + color: rgba(0, 0, 0, 0.4); + font-size: 25rpx; +} + +.power_item { + padding: 30rpx 25rpx; + display: flex; + justify-content: space-between; +} + +.power_item_title { + font-size: 30rpx; +} + +.power_item_icon { + width: 30rpx; + height: 30rpx; +} + +.line { + width: 95%; + margin: 0 auto; + height: 2rpx; + background-color: rgba(0, 0, 0, 0.1); +} + +.environment { + color: rgba(0, 0, 0, 0.4); + font-size: 24rpx; + margin-top: 25%; +} + +.code_box { + text-align: center; + background-color: white; + margin-top: 30rpx; + padding: 17rpx; +} + +.code_box_title { + color: rgba(0, 0, 0, 0.5); + font-size: 26rpx; + margin-bottom: 20rpx; + text-align: left; +} + +.code_box_record { + display: flex; +} + +.code_box_record_title { + width: 33%; + font-size: 26rpx; + color: rgba(0, 0, 0, 0.5); + padding: 20rpx 0; +} + +.code_box_record_detail { + width: 33%; + font-size: 26rpx; + padding: 20rpx 0; +} + +.button { + width: 300rpx; + text-align: center; + margin: 20% auto 0 auto; + height: 80rpx; + color: white; + border-radius: 5px; + line-height: 80rpx; + background-color: #07c160; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.js new file mode 100644 index 0000000..998b938 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.js @@ -0,0 +1,22 @@ +// pages/selectusers/index.js +const db = wx.cloud.database() +Page({ + //查询数据(查) + searchID:function(){ + wx.navigateTo({ + url: '/pages/selectusers(ID)/index', + }) + }, + + searchCollege:function(){ + wx.navigateTo({ + url: '/pages/selectusers(college)/index', + }) + }, + + search:function(){ + wx.navigateTo({ + url: '/pages/selectuserss/index', + }) + }, +}) diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.wxml new file mode 100644 index 0000000..cf209a6 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.wxml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.wxss new file mode 100644 index 0000000..1a73360 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectusers/index.wxss @@ -0,0 +1,101 @@ +/* pages/selectusers/index.wxss */ + +page { + padding-top: 54rpx; + background-color: #f6f6f6; + padding-bottom: 60rpx; +} + +.button { + margin-top: 50px; + margin-left: 50px; + margin-right: 50px; +} + + +.title { + font-family: PingFang SC; + font-weight: 500; + color: #000000; + font-size: 44rpx; + margin-bottom: 40rpx; +} + +.top_tip { + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 400; + color: #888888; + margin-bottom: 28rpx; +} + +.power { + margin-top: 30rpx; + border-radius: 5px; + background-color: white; + width: 93%; + padding-bottom: 1rpx; +} + +.power_info { + display: flex; + padding: 30rpx 25rpx; + align-items: center; + justify-content: space-between; +} + +.power_info_more { + width: 30rpx; + height: 30rpx; + transform: rotate(90deg); +} + +.power_info_less { + width: 30rpx; + height: 30rpx; + transform: rotate(270deg); +} + +.power_info_text { + display: flex; + flex-direction: column; +} + +.power_info_text_title { + margin-bottom: 10rpx; + font-weight: 400; + font-size: 35rpx; +} + +.power_info_text_tip { + color: rgba(0, 0, 0, 0.4); + font-size: 25rpx; +} + +.power_item { + padding: 30rpx 25rpx; + display: flex; + justify-content: space-between; +} + +.power_item_title { + font-size: 30rpx; +} + +.power_item_icon { + width: 30rpx; + height: 30rpx; +} + +.line { + width: 95%; + margin: 0 auto; + height: 2rpx; + background-color: rgba(0, 0, 0, 0.1); +} + +.environment { + color: rgba(0, 0, 0, 0.4); + font-size: 24rpx; + margin-top: 25%; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.js new file mode 100644 index 0000000..fa90b3b --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.js @@ -0,0 +1,30 @@ +// pages/selectuserss/index.js +Page({ + searchDataNameFn:function(){ + wx.cloud.callFunction({ + name: 'useroption', + data: { + option: 'getusers', + }, + success: res => { + this.setData({ + array: res.result.data + }) + wx.showToast({ + title: '用户查询成功', + }) + console.log(res.result.data) + }, + fail: err => { + wx.showToast({ + title: '用户查询失败', + }) + } + }) + }, + getback:function(){ + wx.navigateBack({ + delta:2, + }) + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.wxml new file mode 100644 index 0000000..10829ee --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.wxml @@ -0,0 +1,20 @@ + + + + 用户库 + + 年级 + 院系 + 班级 + 学号 + + + + {{item.User_College}} + {{item.User_Grade}} + {{item.User_Class}} + {{item.User_ID}} + + + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.wxss new file mode 100644 index 0000000..2ec4ff6 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserss/index.wxss @@ -0,0 +1,145 @@ +/* pages/selectuserss/index.wxss */ +/* pages/selectusers(college)/index.wxss */ + +page { + padding-top: 54rpx; + background-color: #f6f6f6; + padding-bottom: 60rpx; +} + +.button { + margin-top: 50px; + margin-left: 50px; + margin-right: 50px; +} + + +.title { + font-family: PingFang SC; + font-weight: 500; + color: #000000; + font-size: 44rpx; + margin-bottom: 40rpx; +} + +.top_tip { + font-size: 28rpx; + color: rgba(0, 0, 0, 0.5); + width: 90%; + text-align: left; + margin-top: 30rpx; + margin-left: 20rpx; +} + +.power { + margin-top: 30rpx; + border-radius: 5px; + background-color: white; + width: 93%; + padding-bottom: 1rpx; +} + +.power_info { + display: flex; + padding: 30rpx 25rpx; + align-items: center; + justify-content: space-between; +} + +.power_info_more { + width: 30rpx; + height: 30rpx; + transform: rotate(90deg); +} + +.power_info_less { + width: 30rpx; + height: 30rpx; + transform: rotate(270deg); +} + +.power_info_text { + display: flex; + flex-direction: column; +} + +.power_info_text_title { + margin-bottom: 10rpx; + font-weight: 400; + font-size: 35rpx; +} + +.power_info_text_tip { + color: rgba(0, 0, 0, 0.4); + font-size: 25rpx; +} + +.power_item { + padding: 30rpx 25rpx; + display: flex; + justify-content: space-between; +} + +.power_item_title { + font-size: 30rpx; +} + +.power_item_icon { + width: 30rpx; + height: 30rpx; +} + +.line { + width: 95%; + margin: 0 auto; + height: 2rpx; + background-color: rgba(0, 0, 0, 0.1); +} + +.environment { + color: rgba(0, 0, 0, 0.4); + font-size: 24rpx; + margin-top: 25%; +} + +.code_box { + text-align: center; + background-color: white; + margin-top: 30rpx; + padding: 17rpx; +} + +.code_box_title { + color: rgba(0, 0, 0, 0.5); + font-size: 26rpx; + margin-bottom: 20rpx; + text-align: left; +} + +.code_box_record { + display: flex; +} + +.code_box_record_title { + width: 33%; + font-size: 26rpx; + color: rgba(0, 0, 0, 0.5); + padding: 20rpx 0; +} + +.code_box_record_detail { + width: 33%; + font-size: 26rpx; + padding: 20rpx 0; +} + +.button { + width: 300rpx; + text-align: center; + margin: 20% auto 0 auto; + height: 80rpx; + color: white; + border-radius: 5px; + line-height: 80rpx; + background-color: #07c160; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.js new file mode 100644 index 0000000..ac586a6 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.js @@ -0,0 +1,66 @@ +// pages/selectuserssuccess/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.wxml new file mode 100644 index 0000000..9976e30 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.wxml @@ -0,0 +1,2 @@ + +pages/selectuserssuccess/index.wxml diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.wxss new file mode 100644 index 0000000..1edae2e --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/selectuserssuccess/index.wxss @@ -0,0 +1 @@ +/* pages/selectuserssuccess/index.wxss */ \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/text/text.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/text/text.js similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/text/text.js rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/text/text.js diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/text/text.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/text/text.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/text/text.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/pages/text/text.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/text/text.wxml similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/text/text.wxml rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/text/text.wxml diff --git a/scr/wechat-weapp-mapdemo-master/pages/text/text.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/text/text.wxss similarity index 100% rename from scr/wechat-weapp-mapdemo-master/pages/text/text.wxss rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/text/text.wxss diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.js new file mode 100644 index 0000000..0702779 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.js @@ -0,0 +1,46 @@ +// pages/updateusers/index.js +Page({ + //修改数据(改) + inputupdateID:function(e){ + this.setData({ + updateUser_ID:e.detail.value + }) + }, + inputupdateCollege:function(e){ + this.setData({ + updateUser_College:e.detail.value + }) + }, + inputupdateKey:function(e){ + this.setData({ + updateUser_Key:e.detail.value + }) + }, + updateDataFn(){ + wx.cloud.callFunction({ + name: 'useroption', + data: { + option: 'update', + updateUser_ID:this.data.updateUser_ID, + updateUser_College:this.data.updateUser_College, + updateUser_Key:this.data.updateUser_Key + }, + success: res => { + wx.showToast({ + title: '用户修改成功', + }) + console.log(res) + }, + fail:err => { + wx.showToast({ + title: '用户修改失败', + }) + } + }) + }, + getback:function(){ + wx.navigateBack({ + delta:1, + }) + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.wxml new file mode 100644 index 0000000..82a32f7 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.wxml @@ -0,0 +1,24 @@ + + + + + + + + + + + + diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.wxss new file mode 100644 index 0000000..3d1e9e7 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateusers/index.wxss @@ -0,0 +1,100 @@ +/* pages/updateusers/index.wxss */ + +page { + padding-top: 54rpx; + background-color: #f6f6f6; + padding-bottom: 60rpx; +} + +.button { + margin-top: 50px; + margin-left: 50px; + margin-right: 50px; +} + +.title { + font-family: PingFang SC; + font-weight: 500; + color: #000000; + font-size: 44rpx; + margin-bottom: 40rpx; +} + +.top_tip { + font-size: 28rpx; + font-family: PingFang SC; + font-weight: 400; + color: #888888; + margin-bottom: 28rpx; +} + +.power { + margin-top: 30rpx; + border-radius: 5px; + background-color: white; + width: 93%; + padding-bottom: 1rpx; +} + +.power_info { + display: flex; + padding: 30rpx 25rpx; + align-items: center; + justify-content: space-between; +} + +.power_info_more { + width: 30rpx; + height: 30rpx; + transform: rotate(90deg); +} + +.power_info_less { + width: 30rpx; + height: 30rpx; + transform: rotate(270deg); +} + +.power_info_text { + display: flex; + flex-direction: column; +} + +.power_info_text_title { + margin-bottom: 10rpx; + font-weight: 400; + font-size: 35rpx; +} + +.power_info_text_tip { + color: rgba(0, 0, 0, 0.4); + font-size: 25rpx; +} + +.power_item { + padding: 30rpx 25rpx; + display: flex; + justify-content: space-between; +} + +.power_item_title { + font-size: 30rpx; +} + +.power_item_icon { + width: 30rpx; + height: 30rpx; +} + +.line { + width: 95%; + margin: 0 auto; + height: 2rpx; + background-color: rgba(0, 0, 0, 0.1); +} + +.environment { + color: rgba(0, 0, 0, 0.4); + font-size: 24rpx; + margin-top: 25%; +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.js b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.js new file mode 100644 index 0000000..ae7c08b --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.js @@ -0,0 +1,66 @@ +// pages/updateuserssuccess/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.wxml b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.wxml new file mode 100644 index 0000000..8a0c4ef --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.wxml @@ -0,0 +1,2 @@ + +pages/updateuserssuccess/index.wxml diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.wxss b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.wxss new file mode 100644 index 0000000..dc6e650 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/pages/updateuserssuccess/index.wxss @@ -0,0 +1 @@ +/* pages/updateuserssuccess/index.wxss */ \ No newline at end of file diff --git a/scr/sitemap.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/sitemap.json similarity index 79% rename from scr/sitemap.json rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/sitemap.json index ca02add..27b2b26 100644 --- a/scr/sitemap.json +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/miniprogram/sitemap.json @@ -1,7 +1,7 @@ { "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", "rules": [{ - "action": "allow", - "page": "*" + "action": "allow", + "page": "*" }] } \ No newline at end of file diff --git a/scr/project.config.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/project.config.json similarity index 56% rename from scr/project.config.json rename to scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/project.config.json index 5c7f847..3c8db05 100644 --- a/scr/project.config.json +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/project.config.json @@ -1,49 +1,78 @@ { - "description": "项目配置文件", - "packOptions": { - "ignore": [], - "include": [] - }, + "miniprogramRoot": "miniprogram/", + "cloudfunctionRoot": "cloud/", "setting": { - "bundle": false, - "userConfirmedBundleSwitch": false, "urlCheck": true, - "scopeDataCheck": false, - "coverView": true, "es6": true, + "enhance": true, "postcss": true, - "compileHotReLoad": false, - "lazyloadPlaceholderEnable": false, "preloadBackgroundData": false, "minified": true, + "newFeature": true, + "coverView": true, + "nodeModules": false, "autoAudits": false, - "newFeature": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, "uglifyFileName": false, + "checkInvalidKey": true, + "checkSiteMap": true, "uploadWithSourceMap": true, - "useIsolateContext": true, - "nodeModules": false, - "enhance": true, + "compileHotReLoad": false, + "lazyloadPlaceholderEnable": false, "useMultiFrameRuntime": true, "useApiHook": true, "useApiHostProcess": true, - "showShadowRootInWxmlPanel": true, - "packNpmManually": false, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, "enableEngineNative": false, + "useIsolateContext": true, + "userConfirmedBundleSwitch": false, + "packNpmManually": false, "packNpmRelationList": [], "minifyWXSS": true, + "disableUseStrict": false, "showES6CompileOption": false, + "useCompilerPlugins": false, "minifyWXML": true, - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" + "ignoreUploadUnusedFiles": true + }, + "appid": "wx5e77d1bb9e24f179", + "projectname": "quickstart-wx-cloud", + "libVersion": "2.14.1", + "cloudfunctionTemplateRoot": "cloudfunctionTemplate/", + "condition": { + "search": { + "list": [] + }, + "conversation": { + "list": [] + }, + "plugin": { + "list": [] + }, + "game": { + "list": [] + }, + "miniprogram": { + "list": [ + { + "id": -1, + "name": "db guide", + "pathName": "pages/databaseGuide/databaseGuide" + } + ] } }, + "srcMiniprogramRoot": "miniprogram/", "compileType": "miniprogram", - "libVersion": "2.19.4", - "appid": "wx5871b0202e96c9d3", - "projectname": "miniprogram-92", - "condition": {}, + "packOptions": { + "ignore": [], + "include": [] + }, "editorSetting": { "tabIndent": "insertSpaces", "tabSize": 2 diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/project.private.config.json b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/project.private.config.json new file mode 100644 index 0000000..bd3e184 --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/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": "%E6%A0%A1%E5%9B%AD%E5%AF%BC%E8%88%AA%EF%BC%88%E7%AE%A1%E7%90%86%E7%94%A8%E6%88%B7%EF%BC%89" +} \ No newline at end of file diff --git a/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/uploadCloudFunction.bat b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/uploadCloudFunction.bat new file mode 100644 index 0000000..5f7850c --- /dev/null +++ b/scr/wechat-weapp-mapdemo-master/wechat-weapp-mapdemo-master - 副本/uploadCloudFunction.bat @@ -0,0 +1 @@ +"E:\С\΢web߹\cli.bat" cloud functions deploy --e cloud1-7gnkwzfv6ba72e50 --n quickstartFunctions --r --project "E:\У԰û" --report_first --report \ No newline at end of file