朱秀平 1 년 전
부모
커밋
3b82b3235e
33개의 변경된 파일74개의 추가작업 그리고 63개의 파일을 삭제
  1. 5 5
      App.vue
  2. 7 6
      manifest.json
  3. 59 49
      pages/index/index.vue
  4. BIN
      unpackage/dist/build/web.zip
  5. 1 1
      unpackage/dist/build/web/index.html
  6. 0 0
      unpackage/dist/build/web/static/js/chunk-vendors.-v1.0.0-1743409234003.js
  7. 0 1
      unpackage/dist/build/web/static/js/index.-v1.0.0-1736911552785.js
  8. 1 0
      unpackage/dist/build/web/static/js/index.-v1.0.0-1743409234003.js
  9. 0 0
      unpackage/dist/build/web/static/js/pages-gongyuxiangqing-gongyuxiangqing.-v1.0.0-1743409234003.js
  10. 0 0
      unpackage/dist/build/web/static/js/pages-huoquCode-huoquCode.-v1.0.0-1743409234003.js
  11. 0 0
      unpackage/dist/build/web/static/js/pages-huoquanshibai-huoquanshibai.-v1.0.0-1743409234003.js
  12. 0 1
      unpackage/dist/build/web/static/js/pages-index-index.-v1.0.0-1736911552785.js
  13. 1 0
      unpackage/dist/build/web/static/js/pages-index-index.-v1.0.0-1743409234003.js
  14. 0 0
      unpackage/dist/build/web/static/js/pages-index-index~pages-liuchengManger-detail-teach_detail~pages-liuchengManger-liu_manage~pages-liu~84f00681.-v1.0.0-1743409234003.js
  15. 0 0
      unpackage/dist/build/web/static/js/pages-index-index~pages-my_orderlist-my_orderlist~pages-order_mark-order_mark~pages-order_room-order_room.-v1.0.0-1743409234003.js
  16. 0 0
      unpackage/dist/build/web/static/js/pages-index-index~pages-my_orderlist-my_orderlist~pages-order_room-order_room.-v1.0.0-1743409234003.js
  17. 0 0
      unpackage/dist/build/web/static/js/pages-liuchengManger-detail-teach_detail.-v1.0.0-1743409234003.js
  18. 0 0
      unpackage/dist/build/web/static/js/pages-liuchengManger-detail-teach_detail~pages-liuchengManger-liu_manage~pages-liuchengO-detail-teac~646efc90.-v1.0.0-1743409234003.js
  19. 0 0
      unpackage/dist/build/web/static/js/pages-liuchengManger-detail-teach_detail~pages-liuchengO-detail-teach_detail~pages-liuchengO-liu_oth~7842fc60.-v1.0.0-1743409234003.js
  20. 0 0
      unpackage/dist/build/web/static/js/pages-liuchengManger-liu_manage.-v1.0.0-1743409234003.js
  21. 0 0
      unpackage/dist/build/web/static/js/pages-liuchengManger-liu_manage~pages-liuchengO-liu_other~pages-liuchengTeacher-liu_teach.-v1.0.0-1743409234003.js
  22. 0 0
      unpackage/dist/build/web/static/js/pages-liuchengO-detail-teach_detail.-v1.0.0-1743409234003.js
  23. 0 0
      unpackage/dist/build/web/static/js/pages-liuchengO-liu_other.-v1.0.0-1743409234003.js
  24. 0 0
      unpackage/dist/build/web/static/js/pages-liuchengTeacher-detail-teach_detail.-v1.0.0-1743409234003.js
  25. 0 0
      unpackage/dist/build/web/static/js/pages-liuchengTeacher-liu_teach.-v1.0.0-1743409234003.js
  26. 0 0
      unpackage/dist/build/web/static/js/pages-my_orderlist-my_orderlist.-v1.0.0-1743409234003.js
  27. 0 0
      unpackage/dist/build/web/static/js/pages-my_orderlist-my_orderlist~pages-order_mark-order_mark~pages-submit_order-submit_order.-v1.0.0-1743409234003.js
  28. 0 0
      unpackage/dist/build/web/static/js/pages-myself-myself.-v1.0.0-1743409234003.js
  29. 0 0
      unpackage/dist/build/web/static/js/pages-order_mark-order_mark.-v1.0.0-1743409234003.js
  30. 0 0
      unpackage/dist/build/web/static/js/pages-order_room-order_room.-v1.0.0-1743409234003.js
  31. 0 0
      unpackage/dist/build/web/static/js/pages-ruzhuxuzhi-ruzhuxuzhi.-v1.0.0-1743409234003.js
  32. 0 0
      unpackage/dist/build/web/static/js/pages-submit_order-submit_order.-v1.0.0-1743409234003.js
  33. 0 0
      unpackage/dist/build/web/static/js/pages-zhifuchenggong-zhifuchenggong.-v1.0.0-1743409234003.js

+ 5 - 5
App.vue

@@ -10,11 +10,11 @@
 			// alert(localStorage.getItem('errorMsg')+'token')
 			if(localStorage.getItem('token')=='null'){
 				// alert(333)
-				window.location.href ='https://open.wecard.qq.com/connect/oauth/authorize?app_key=4FD5599032819781&response_type=code&scope=snsapi_userinfo&ocode=1015730314&redirect_uri=https://chtech.ncjti.edu.cn/hotel/ihotel/auto/appletLogin/login&state=https://chtech.ncjti.edu.cn/hotel/ihotel/auto/appletLogin/login';
-				// window.location.href ='https://open.wecard.qq.com/connect/oauth/authorize?app_key=4FD5599032819781&response_type=code&scope=snsapi_userinfo&ocode=1015730314&redirect_uri=https://chtech.ncjti.edu.cn/testingServer/ihotel/auto/appletLogin/login&state=https://chtech.ncjti.edu.cn/testingServer/ihotel/auto/appletLogin/login';
+				// window.location.href ='https://open.wecard.qq.com/connect/oauth/authorize?app_key=4FD5599032819781&response_type=code&scope=snsapi_userinfo&ocode=1015730314&redirect_uri=https://chtech.ncjti.edu.cn/hotel/ihotel/auto/appletLogin/login&state=https://chtech.ncjti.edu.cn/hotel/ihotel/auto/appletLogin/login';
+				//// window.location.href ='https://open.wecard.qq.com/connect/oauth/authorize?app_key=4FD5599032819781&response_type=code&scope=snsapi_userinfo&ocode=1015730314&redirect_uri=https://chtech.ncjti.edu.cn/testingServer/ihotel/auto/appletLogin/login&state=https://chtech.ncjti.edu.cn/testingServer/ihotel/auto/appletLogin/login';
 			}else if(localStorage.getItem('token')=='null' && localStorage.getItem('errorMsg')=='null') {
 				
-				window.location.href ='https://open.wecard.qq.com/connect/oauth/authorize?app_key=4FD5599032819781&response_type=code&scope=snsapi_userinfo&ocode=1015730314&redirect_uri=https://chtech.ncjti.edu.cn/hotel/ihotel/auto/appletLogin/login&state=https://chtech.ncjti.edu.cn/hotel/ihotel/auto/appletLogin/login';
+				// window.location.href ='https://open.wecard.qq.com/connect/oauth/authorize?app_key=4FD5599032819781&response_type=code&scope=snsapi_userinfo&ocode=1015730314&redirect_uri=https://chtech.ncjti.edu.cn/hotel/ihotel/auto/appletLogin/login&state=https://chtech.ncjti.edu.cn/hotel/ihotel/auto/appletLogin/login';
 			} else if (localStorage.getItem('token')=='null' && localStorage.getItem('errorMsg')=='获取用户信息失败') {
 				uni.navigateTo({
 					url:'pages/huoquanshibai/huoquanshibai'
@@ -24,7 +24,7 @@
 			if((!localStorage.getItem('openId2')&&localStorage.getItem('code')) || (localStorage.getItem('openId2')=='null'&&localStorage.getItem('code'))){
 				this.getOpenId()
 			}else if(localStorage.getItem('code')=='null'|| localStorage.getItem('code')=='undefined' || localStorage.getItem('code')==null){
-				window.location.href ='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd87cbe1db0437303&redirect_uri=https%3A%2F%2Fchtech.ncjti.edu.cn%2Fhotel%2Fh5%2F&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect';
+				// window.location.href ='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd87cbe1db0437303&redirect_uri=https%3A%2F%2Fchtech.ncjti.edu.cn%2Fhotel%2Fh5%2F&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect';
 			}
 		},
 		methods:{
@@ -34,7 +34,7 @@
 					if (res.success) {
 						localStorage.setItem('openId2',res.message)
 					} else if(res.code=='500'){
-						window.location.href ='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd87cbe1db0437303&redirect_uri=https%3A%2F%2Fchtech.ncjti.edu.cn%2Fhotel%2Fh5%2F&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect';
+						// window.location.href ='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd87cbe1db0437303&redirect_uri=https%3A%2F%2Fchtech.ncjti.edu.cn%2Fhotel%2Fh5%2F&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect';
 					}
 				}).catch((err) => {
 				});

+ 7 - 6
manifest.json

@@ -45,7 +45,8 @@
             "ios" : {},
             /* ios打包配置 */
             "sdkConfigs" : {
-                "maps" : {}
+                "maps" : {},
+                "geolocation" : {}
             }
         }
     },
@@ -72,11 +73,11 @@
             "proxy" : {
                 //使用代理
                 // https://chtech.ncjti.edu.cn/hotel/ihotel-api/ihotel/roomType/list
-				// /testingServer/ihotel/auto
+                // /testingServer/ihotel/auto
                 "/hotel/ihotel/auto/" : {
                     "target" : "https://chtech.ncjti.edu.cn/hotel/ihotel/auto/", //目标地址
-                    // "target" : "https://chtech.ncjti.edu.cn/testingServer/ihotel/auto/", //测试地址
 
+                    // "target" : "https://chtech.ncjti.edu.cn/testingServer/ihotel/auto/", //测试地址
                     // "target" : "http://192.168.161.190:8090/ihotel/auto", //目标地址
                     "changeOrigin" : true,
                     "secure" : true, // 设置支持https协议的代理
@@ -91,15 +92,15 @@
         "sdkConfigs" : {
             "maps" : {
                 "qqmap" : {
-                    "key" : "BJUBZ-4V3CD-G7Q4K-HFQBZ-AJI6K-WLFAF"
+                    "key" : "CFLBZ-DRHW6-4KJSW-EITQY-LAJQ2-WLBWM"
                 }
             }
         },
         "router" : {
-            "base" : "/hotel/h5"//正式
-            // "base" : "/testingServer/h5" //测试
+            "base" : "/hotel/h5" //正式
         }
     }
 }
+// "base" : "/testingServer/h5" //测试
 // "base" : "/ihotel"
 

+ 59 - 49
pages/index/index.vue

@@ -22,7 +22,7 @@
 			<a href="https://uri.amap.com/marker?position=115.387261,28.788671&name=南昌交通学院智慧公寓">
 				<image class="uni-map" @click="mapDaohang('115.387261','28.788671')" src="../../static/index/index_map.svg"></image>
 			</a>
-			<br><text class="uni-body2">距离我{{distance}}km</text>
+			<!-- <br><text class="uni-body2">距离我{{distance}}km</text> -->
 		</view>
 		<!-- 第二层工具 -->
 		<!-- <view class="item-list">
@@ -358,7 +358,7 @@
 			}
 		},
 		onShow() {
-			this.getLocationInfo()
+			// this.getLocationInfo()
 			this.getAllset()
 		},
 		onLoad() {
@@ -390,48 +390,49 @@
 				this.startWeek = getDate(new Date()).sWeek
 				this.endWeek = getDate(new Date(),1).eWeek
 			}, 1)
-			this.getLocationInfo()
+			// this.getLocationInfo()
 			//   wx请求获取位置权限
 			this.getAuthorize()
 				.then(() => {
-					//   同意后获取
-					this.getLocationInfo();
+					  同意后获取
+					// this.getLocationInfo();
 				})
 				.catch(() => {
-					const that = this;
-					uni.getLocation({
-						type: "gcj02",
-						success: function(res) {
-							// alert(res.latitude)
-							// 暂时
-							that.longitude = res.longitude;
-							that.latitude = res.latitude;
-							var long = 0;
-							var lat = 0;
-							//小数点保留六位  经度
-							if (that.longitude.toString().indexOf('.') > 0) {
-								const longlatsplit = that.longitude.toString().split('.');
-								if (longlatsplit.length >= 2) {
-									long = parseFloat(longlatsplit[0] === "" ? 0 : longlatsplit[0]) + parseFloat("." + longlatsplit[1].slice(0,6));
-								}
-							}
-							if (that.latitude.toString().indexOf('.') > 0) {
-								const longlatsplit1 = that.latitude.toString().split('.');
-								if (longlatsplit1.length >= 2) {
-									lat = parseFloat(longlatsplit1[0] === "" ? 0 : longlatsplit1[0]) + parseFloat("." + longlatsplit1[1].slice(0,6));
-								}
-							}
-							that.distance = that.getMapDistance(lat,long,'28.788671','115.387261');
-							that.markers = [{
-								id: "",
-								latitude: res.latitude,
-								longitude: res.longitude,
-								iconPath: "../../static/img/phone.png",
-								width: that.markerHeight, //宽
-								height: that.markerHeight, //高
-							}, ];
-						},
-					});
+					// const that = this;
+					// uni.getLocation({
+					// 	type: "gcj02",
+					// 	success: function(res) {
+					// 		console.log(res,'经纬度22')
+					// 		alert(res.latitude)
+					// 		// 暂时
+					// 		that.longitude = res.longitude;
+					// 		that.latitude = res.latitude;
+					// 		var long = 0;
+					// 		var lat = 0;
+					// 		//小数点保留六位  经度
+					// 		if (that.longitude.toString().indexOf('.') > 0) {
+					// 			const longlatsplit = that.longitude.toString().split('.');
+					// 			if (longlatsplit.length >= 2) {
+					// 				long = parseFloat(longlatsplit[0] === "" ? 0 : longlatsplit[0]) + parseFloat("." + longlatsplit[1].slice(0,6));
+					// 			}
+					// 		}
+					// 		if (that.latitude.toString().indexOf('.') > 0) {
+					// 			const longlatsplit1 = that.latitude.toString().split('.');
+					// 			if (longlatsplit1.length >= 2) {
+					// 				lat = parseFloat(longlatsplit1[0] === "" ? 0 : longlatsplit1[0]) + parseFloat("." + longlatsplit1[1].slice(0,6));
+					// 			}
+					// 		}
+					// 		that.distance = that.getMapDistance(lat,long,'28.788671','115.387261');
+					// 		that.markers = [{
+					// 			id: "",
+					// 			latitude: res.latitude,
+					// 			longitude: res.longitude,
+					// 			iconPath: "../../static/img/phone.png",
+					// 			width: that.markerHeight, //宽
+					// 			height: that.markerHeight, //高
+					// 		}, ];
+					// 	},
+					// });
 					//   不同意给出弹框,再次确认
 					// this.openConfirm()
 					// 	.then(() => {
@@ -1047,7 +1048,7 @@
 				}) // 传参带入号码即可
 			},
 			
-			//   初次位置授权
+			//   初次位置授权//uni-app不可用
 			getAuthorize() {
 				return new Promise((resolve, reject) => {
 					uni.authorize({
@@ -1063,12 +1064,17 @@
 			},
 			// 确认授权后,获取用户位置
 			getLocationInfo() {
+				uni.showToast({
+					title: '获取',
+					icon:'none'
+				});
 				const that = this;
 				uni.getLocation({
-					type: "wgs84",
-					geocode: true,
-					highAccuracyExpireTime: 100,
+					type: "gcj02",//gcj02,wgs84
+					// geocode: true,
+					// highAccuracyExpireTime: 100,
 					success: function(res) {
+						alert('location',res)
 						// 暂时
 						that.longitude = res.longitude; //118.787575;
 						that.latitude = res.latitude; //32.05024;
@@ -1100,14 +1106,18 @@
 							height: that.markerHeight, //高
 						}, ];
 					},
-					fail: function () {
-										uni.showToast({
-										    title: '获取地址失败,将导致部分功能不可用',
-											icon:'none'
-										});
-									}
+					fail: function (err) {
+						uni.showModal({
+							content:'获取地址失败,将导致部分功能不可用'+JSON.stringify(err),
+						})
+						// uni.showToast({
+						// 	title: '获取地址失败,将导致部分功能不可用'+JSON.stringify(err),
+						// 	icon:'none'
+						// });
+					}
 				});
 			},
+			// 天地图获取经纬度
 			// 拒绝授权后,弹框提示是否手动打开位置授权
 			openConfirm() {
 				return new Promise((resolve, reject) => {

BIN
unpackage/dist/build/web.zip


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
unpackage/dist/build/web/index.html


unpackage/dist/build/web/static/js/chunk-vendors.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/chunk-vendors.-v1.0.0-1743409234003.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
unpackage/dist/build/web/static/js/index.-v1.0.0-1736911552785.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 0
unpackage/dist/build/web/static/js/index.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-gongyuxiangqing-gongyuxiangqing.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-gongyuxiangqing-gongyuxiangqing.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-huoquCode-huoquCode.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-huoquCode-huoquCode.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-huoquanshibai-huoquanshibai.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-huoquanshibai-huoquanshibai.-v1.0.0-1743409234003.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 1
unpackage/dist/build/web/static/js/pages-index-index.-v1.0.0-1736911552785.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 0
unpackage/dist/build/web/static/js/pages-index-index.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-index-index~pages-liuchengManger-detail-teach_detail~pages-liuchengManger-liu_manage~pages-liu~84f00681.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-index-index~pages-liuchengManger-detail-teach_detail~pages-liuchengManger-liu_manage~pages-liu~84f00681.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-index-index~pages-my_orderlist-my_orderlist~pages-order_mark-order_mark~pages-order_room-order_room.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-index-index~pages-my_orderlist-my_orderlist~pages-order_mark-order_mark~pages-order_room-order_room.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-index-index~pages-my_orderlist-my_orderlist~pages-order_room-order_room.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-index-index~pages-my_orderlist-my_orderlist~pages-order_room-order_room.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-liuchengManger-detail-teach_detail.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-liuchengManger-detail-teach_detail.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-liuchengManger-detail-teach_detail~pages-liuchengManger-liu_manage~pages-liuchengO-detail-teac~646efc90.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-liuchengManger-detail-teach_detail~pages-liuchengManger-liu_manage~pages-liuchengO-detail-teac~646efc90.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-liuchengManger-detail-teach_detail~pages-liuchengO-detail-teach_detail~pages-liuchengO-liu_oth~7842fc60.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-liuchengManger-detail-teach_detail~pages-liuchengO-detail-teach_detail~pages-liuchengO-liu_oth~7842fc60.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-liuchengManger-liu_manage.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-liuchengManger-liu_manage.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-liuchengManger-liu_manage~pages-liuchengO-liu_other~pages-liuchengTeacher-liu_teach.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-liuchengManger-liu_manage~pages-liuchengO-liu_other~pages-liuchengTeacher-liu_teach.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-liuchengO-detail-teach_detail.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-liuchengO-detail-teach_detail.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-liuchengO-liu_other.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-liuchengO-liu_other.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-liuchengTeacher-detail-teach_detail.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-liuchengTeacher-detail-teach_detail.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-liuchengTeacher-liu_teach.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-liuchengTeacher-liu_teach.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-my_orderlist-my_orderlist.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-my_orderlist-my_orderlist.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-my_orderlist-my_orderlist~pages-order_mark-order_mark~pages-submit_order-submit_order.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-my_orderlist-my_orderlist~pages-order_mark-order_mark~pages-submit_order-submit_order.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-myself-myself.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-myself-myself.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-order_mark-order_mark.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-order_mark-order_mark.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-order_room-order_room.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-order_room-order_room.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-ruzhuxuzhi-ruzhuxuzhi.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-ruzhuxuzhi-ruzhuxuzhi.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-submit_order-submit_order.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-submit_order-submit_order.-v1.0.0-1743409234003.js


unpackage/dist/build/web/static/js/pages-zhifuchenggong-zhifuchenggong.-v1.0.0-1736911552785.js → unpackage/dist/build/web/static/js/pages-zhifuchenggong-zhifuchenggong.-v1.0.0-1743409234003.js