Browse Source

冲突解决

lihongxiao 1 năm trước cách đây
mục cha
commit
ef63d99976

+ 34 - 0
common/router/modules/routes.js

@@ -5,6 +5,40 @@ const routes = [{
 			title: '登录',
 		},
 	},
+	{
+		path: "/pages/login/xieyi",
+		name: 'xieyi',
+			meta: {
+				title: '用户协议',
+			},
+		},{
+		path: "/pages/login/mimi",
+		name: 'mimi',
+			meta: {
+				title: '隐秘协议',
+			},
+		},
+		{
+		path: "/pages/login/resetpassword",
+		name: 'resetpassword',
+			meta: {
+				title: '忘记密码',
+			},
+		},
+		{
+		path: "/pages/login/register",
+		name: 'register',
+			meta: {
+				title: '注册',
+			},
+		},
+		{
+			path: "/pages/login/settled",
+			name: 'settled',
+			meta: {
+				title: '申请入驻',
+			},
+		},
 	{
 		path: "/pages/login/loginOauth2",
 		name: 'oauth2Login',

+ 3 - 1
common/service/config.service.js

@@ -2,7 +2,9 @@ let BASE_URL = ''
 
 
 if (process.env.NODE_ENV == 'development') {
-	BASE_URL = 'http://192.168.0.36:8080/jeecg-boot' // 开发环境
+	// BASE_URL = 'http://192.168.0.36:8080/jeecg-boot' // 开发环境
+    BASE_URL = 'http://192.168.0.52:8080/jeecg-boot' // 开发环境
+
 } else {
 	BASE_URL = 'http://boot.jeecg.org:8080/jeecg-boot' // 生产环境
 }

+ 16 - 6
manifest.json

@@ -9,16 +9,18 @@
         /* 5+App特有相关 */
         "modules" : {
             "Maps" : {},
-            "Push" : {},
-            "Barcode" : {}
-            "Push" : {},
-            "Geolocation" : {},
-            "Maps" : {}
+            "Barcode" : {},
+            "Geolocation" : {}
         },
         /* 模块配置 */
         "distribute" : {
             /* 应用发布信息 */
             "android" : {
+                "network" : {
+                    "wifiState" : true,
+                    "fineLocation" : true,
+                    "coarseLocation" : true
+                },
                 /* android打包配置 */
                 "permissions" : [
                     "<uses-feature android:name=\"android.hardware.camera\"/>",
@@ -48,6 +50,10 @@
                 ]
             },
             "ios" : {
+                "privacy" : {
+                    "LocationWhenInUse" : true,
+                    "LocationAlways" : true
+                },
                 "privacyDescription" : {
                     "NSCameraUsageDescription" : "用于扫码功能"
                 }
@@ -57,6 +63,7 @@
                 "ad" : {},
                 "maps" : {
                     "amap" : {
+                        "apiKey" : "18c5a399a406896c5aa53d808e401294",
                         "name" : "amap_15513573860CluPH7RHj",
                         "appkey_ios" : "18c5a399a406896c5aa53d808e401294",
                         "appkey_android" : "18c5a399a406896c5aa53d808e401294"
@@ -83,12 +90,15 @@
     "quickapp" : {},
     /* 快应用特有相关 */
     "mp-weixin" : {
-        "appid" : "wx2ba5c5690b35d173",
+        "appid" : "wxe57ddfbe230bcfba",
         "setting" : {
             "urlCheck" : false,
             "es6" : true
         },
         "permission" : {
+            "Geolocation" : {
+                "desc" : "你的位置信息将用于地图显示"
+            },
             "scope.userLocation" : {
                 "desc" : "有定位功能需要导航定位"
             }

+ 58 - 43
pages/component/map.vue

@@ -1,11 +1,13 @@
 <template>
-    <view class="content">
-        <map id="amap" style="width: 100%; height: 208upx;"></map>
+    <view class="page-section page-section-gap">
+        <map style="width: 100%; height: 218upx;" :latitude="latitude" :longitude="longitude"></map>
+        <!-- <map  id="map"  style="width: 100%; height: 300px;" :latitude="latitude" :longitude="longitude" :markers="covers"> -->
+        <!-- </map> -->
     </view>
 </template>
 
 <script>
-import AMapLoader from '@amap/amap-jsapi-loader';
+// import AMapLoader from '@amap/amap-jsapi-loader';
 // window._AMapSecurityConfig = {
 //     securityJsCode: "d62687dd438cfadd859bbab66d8e41a2",
 // };
@@ -14,53 +16,66 @@ export default {
         return {
             map: null,
             marker: null,
+            id:0, // 使用 marker点击事件 需要填写id
+			title: 'map',
+			latitude: 39.909,
+			longitude: 116.39742,
+			covers: [{
+				latitude: 39.909,
+				longitude: 116.39742,
+				iconPath: '../../../static/location.png'
+			}, {
+				latitude: 39.90,
+				longitude: 116.39,
+				iconPath: '../../../static/location.png'
+			}]
         };
     },
     onReady() {
-        this.initMap();
+        // this.initMap();
     },
     methods: {
-        initMap() {
-            console.log(222);
+        // initMap() {
+        //     console.log(222);
             
-            AMapLoader.load({
-                key: "18c5a399a406896c5aa53d808e401294", // 申请好的Web端开发者Key,首次调用 load 时必填
-                version: '2.0', // 指定要加载的API的版本号,默认为 1.4.15
-            }).then((AMap) => {
-                this.map = new AMap.Map('amap', {
-                    zoom: 11, // 初始化地图层级
-                    center: [116.397428, 39.90923], // 初始化地图中心点位置
-                });
-                // this.map.on('click', (e) => {
-                //     lngLatLng.value = e.lnglat.lng;
-                //     lngLatLat.value =  e.lnglat.lat;
-                //     console.log(lngLatLng.value, lngLatLat.value);
-                //     // positionArr.value = [lngLatLng.value, lngLatLat.value]
-                //     // addressValue.value = ""
-                //     // if (marker.value) {
-                //     //     marker.value.setPosition([lngLatLng.value, lngLatLat.value]);  // 更新Marker位置
-                //     // }
-                //     // this.emit('back', positionArr.value)
-                // })
+        //     AMapLoader.load({
+        //         key: "18c5a399a406896c5aa53d808e401294", // 申请好的Web端开发者Key,首次调用 load 时必填
+        //         version: '2.0', // 指定要加载的API的版本号,默认为 1.4.15
+        //     }).then((AMap) => {
+        //         this.map = new AMap.Map('amap', {
+        //             zoom: 11, // 初始化地图层级
+        //             center: [116.397428, 39.90923], // 初始化地图中心点位置
+        //         });
+        //         // this.map.on('click', (e) => {
+        //         //     lngLatLng.value = e.lnglat.lng;
+        //         //     lngLatLat.value =  e.lnglat.lat;
+        //         //     console.log(lngLatLng.value, lngLatLat.value);
+        //         //     // positionArr.value = [lngLatLng.value, lngLatLat.value]
+        //         //     // addressValue.value = ""
+        //         //     // if (marker.value) {
+        //         //     //     marker.value.setPosition([lngLatLng.value, lngLatLat.value]);  // 更新Marker位置
+        //         //     // }
+        //         //     // this.emit('back', positionArr.value)
+        //         // })
 
-                // let auto = new AMap.AutoComplete({
-                //     city: "太原市", // 限定城市,默认全国
-                //     input: "search_input",
-                // })
-                // let placeSearch = new AMap.PlaceSearch({
-                //     city: "太原市",
-                //     map: this.map
-                // });
-                //  // 标点位置
-                // marker.value = new AMap.Marker({
-                //     position: [113.392517, 22.517024], //经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
-                //     map: this.map, // 当操作完成时,应该将结果展示在哪个地图上
-                // })
-                // map.add(marker)
-            }).catch(e => {
-                console.error(e);
-            });
-        }
+        //         // let auto = new AMap.AutoComplete({
+        //         //     city: "太原市", // 限定城市,默认全国
+        //         //     input: "search_input",
+        //         // })
+        //         // let placeSearch = new AMap.PlaceSearch({
+        //         //     city: "太原市",
+        //         //     map: this.map
+        //         // });
+        //         //  // 标点位置
+        //         // marker.value = new AMap.Marker({
+        //         //     position: [113.392517, 22.517024], //经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
+        //         //     map: this.map, // 当操作完成时,应该将结果展示在哪个地图上
+        //         // })
+        //         // map.add(marker)
+        //     }).catch(e => {
+        //         console.error(e);
+        //     });
+        // }
     }
 }
 </script>

+ 2 - 2
pages/login/settled.vue

@@ -246,11 +246,11 @@
         </view>
         <view v-if="tab == 2" class="padding flex sub-bottom">
             <button class="cu-btn round line-blue  shadow"  @click="tab = 1">上一步</button>
-            <button style="margin-left: 12upx;width:78%" class="cu-btn bg-blue round " @click="tab=3">保存并下一步</button>
+            <button style="margin-left: 12upx;width:77%" class="cu-btn bg-blue round " @click="tab=3">保存并下一步</button>
         </view>
         <view v-if="tab == 3" class="padding flex sub-bottom">
             <button class="cu-btn round line-blue  shadow"  @click="tab = 2">上一步</button>
-            <button style="margin-left: 12upx;width:78%" class="cu-btn bg-blue round " @click="sumbit">提交审核</button>
+            <button style="margin-left: 12upx;width:77%" class="cu-btn bg-blue round " @click="sumbit">提交审核</button>
         </view>
         <view class="cu-load load-modal" v-if="lodingshow">
             <image src="/static/logo.png" mode="aspectFit"></image>