Procházet zdrojové kódy

面试邀请定位

潘超林 před 19 hodinami
rodič
revize
7b6304044f

+ 16 - 14
TUIKit/components/TUIChat/message-list/interview-application.vue

@@ -112,10 +112,6 @@
               placeholder="联系电话"
             />
           </div>
-          <!-- <div class="item">
-            <div class="label">信息费:</div>
-            <div style="color: red">{{ userInfo.hc ? userInfo.hc : 0 }}元</div>
-          </div> -->
           <div
             :class="[
               'evaluate-content-button',
@@ -179,14 +175,21 @@ export default {
     },
     mapAddress: {
       handler(val) {
-        this.addressObj = val;
-        let list = this.addressObj.location.split(",");
-        this.params.interviewAddress =
-          this.addressObj.district +
-          this.addressObj.address +
-          this.addressObj.name;
-        this.params.lng = list[0];
-        this.params.lat = list[1];
+        console.log('vvv',val);
+        
+        if (val) {
+          this.addressObj = val;
+          let list = this.addressObj.location.split(",");
+          this.params.interviewAddress =
+            this.addressObj.district +
+            this.addressObj.address +
+            this.addressObj.name;
+          this.params.lng = list[0];
+          this.params.lat = list[1];
+
+          console.log('xxxxxx',this.params);
+          
+        }
       },
       immediate: true,
       deep: true,
@@ -195,7 +198,7 @@ export default {
   methods: {
     inputClick() {
       uni.navigateTo({
-        url: `/pages/merChantSide/map`,
+        url: `/pages/map/map`,
       });
     },
     replaceInputlxr(val) {
@@ -222,7 +225,6 @@ export default {
 
       this.params.companyUserId = uni.getStorageSync("userId");
       this.params.recruitUserId = this.userInfo.recruitUserId;
-
       this.params.interviewTime = this.params.date + " " + this.params.time;
       this.params.postId = this.userInfo.postId;
       this.params.resumeId = this.userInfo.resumeId;

+ 4 - 3
TUIKit/components/TUIChat/message-list/message-elements/message-custom.vue

@@ -11,10 +11,12 @@
           </div>
           <div>
             <span style="font-weight: 500; font-size: 32rpx; color: #333333"
-              >咨询奖励</span
+              > {{isCustom.title}}</span
             >
+           
+           
             <span style="font-weight: 400; font-size: 36rpx; color: #cd2121">
-              ¥5</span
+              ¥ {{isCustom.amount}}</span
             >
           </div>
         </div>
@@ -68,7 +70,6 @@
         </div>
         <div class="xian"></div>
         <div class="phone_footer">
-          <!-- <span style="color: #04c4ab">信息费:4HC</span> -->
           <span>等待接受</span>
         </div>
       </div>

+ 128 - 116
manifest.json

@@ -1,34 +1,34 @@
 {
-    "name": "消息",
-    "appid": "__UNI__EC201C9",
-    "description": "",
-    "versionName": "1.0.0",
-    "versionCode": "100",
-    "transformPx": false,
-    "sassImplementationName": "node-sass",
+    "name" : "消息",
+    "appid" : "__UNI__EC201C9",
+    "description" : "",
+    "versionName" : "1.0.0",
+    "versionCode" : "100",
+    "transformPx" : false,
+    "sassImplementationName" : "node-sass",
     /* 5+App特有相关 */
-    "app-plus": {
-        "usingComponents": true,
-        "nvueStyleCompiler": "uni-app",
-        "compilerVersion": 3,
-        "splashscreen": {
-            "alwaysShowBeforeRender": true,
-            "waiting": true,
-            "autoclose": true,
-            "delay": 0
+    "app-plus" : {
+        "usingComponents" : true,
+        "nvueStyleCompiler" : "uni-app",
+        "compilerVersion" : 3,
+        "splashscreen" : {
+            "alwaysShowBeforeRender" : true,
+            "waiting" : true,
+            "autoclose" : true,
+            "delay" : 0
         },
         /* 模块配置 */
-        "modules": {
-            "Push": {},
-            "Record": {},
-            "VideoPlayer": {},
-            "Camera": {}
+        "modules" : {
+            "Push" : {},
+            "Record" : {},
+            "VideoPlayer" : {},
+            "Camera" : {}
         },
         /* 应用发布信息 */
-        "distribute": {
+        "distribute" : {
             /* android打包配置 */
-            "android": {
-                "permissions": [
+            "android" : {
+                "permissions" : [
                     "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
                     "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
                     "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
@@ -47,103 +47,110 @@
                 ]
             },
             /* ios打包配置 */
-            "ios": {
-                "capabilities": {
-                    "entitlements": {
-                        "com.apple.security.application-groups": [
-                            ""
-                        ]
+            "ios" : {
+                "capabilities" : {
+                    "entitlements" : {
+                        "com.apple.security.application-groups" : [ "" ]
                     }
                 },
-                "dSYMs": false
+                "dSYMs" : false
             },
             /* SDK配置 */
-            "sdkConfigs": {
-                "push": {},
-                "ad": {}
+            "sdkConfigs" : {
+                "push" : {},
+                "ad" : {}
             }
         },
-        "nativePlugins": {
-            "TencentCloud-TIMPush": {
-                "TIMPushAppGroupID": "0",
-                "com.hihonor.push.app_id": "0",
-                "com.vivo.push.api_key": "0",
-                "com.vivo.push.app_id": "0",
-                "__plugin_info__": {
-                    "name": "【官方】uni-app 推送插件 TencentCloud-TIMPush",
-                    "description": "腾讯云即时通信 IM Push 插件,目前推送支持小米、华为、荣耀、OPPO、vivo、魅族、APNs、一加、realme、iQOO 和 苹果等厂商通道。",
-                    "platforms": "Android,iOS",
-                    "url": "https://ext.dcloud.net.cn/plugin?id=16428",
-                    "android_package_name": "",
-                    "ios_bundle_id": "",
-                    "isCloud": true,
-                    "bought": 1,
-                    "pid": "16428",
-                    "parameters": {
-                        "TIMPushAppGroupID": {
-                            "des": "iOS平台的AppGroupID",
-                            "key": "TIMPushAppGroupID",
-                            "value": ""
+        "nativePlugins" : {
+            "TencentCloud-TIMPush" : {
+                "TIMPushAppGroupID" : "0",
+                "com.hihonor.push.app_id" : "0",
+                "com.vivo.push.api_key" : "0",
+                "com.vivo.push.app_id" : "0",
+                "__plugin_info__" : {
+                    "name" : "【官方】uni-app 推送插件 TencentCloud-TIMPush",
+                    "description" : "腾讯云即时通信 IM Push 插件,目前推送支持小米、华为、荣耀、OPPO、vivo、魅族、APNs、一加、realme、iQOO 和 苹果等厂商通道。",
+                    "platforms" : "Android,iOS",
+                    "url" : "https://ext.dcloud.net.cn/plugin?id=16428",
+                    "android_package_name" : "",
+                    "ios_bundle_id" : "",
+                    "isCloud" : true,
+                    "bought" : 1,
+                    "pid" : "16428",
+                    "parameters" : {
+                        "TIMPushAppGroupID" : {
+                            "des" : "iOS平台的AppGroupID",
+                            "key" : "TIMPushAppGroupID",
+                            "value" : ""
                         },
-                        "com.hihonor.push.app_id": {
-                            "des": "Honor推送 app_id",
-                            "key": "com.hihonor.push.app_id",
-                            "value": ""
+                        "com.hihonor.push.app_id" : {
+                            "des" : "Honor推送 app_id",
+                            "key" : "com.hihonor.push.app_id",
+                            "value" : ""
                         },
-                        "com.vivo.push.api_key": {
-                            "des": "VIVO推送 api_key",
-                            "key": "",
-                            "value": ""
+                        "com.vivo.push.api_key" : {
+                            "des" : "VIVO推送 api_key",
+                            "key" : "",
+                            "value" : ""
                         },
-                        "com.vivo.push.app_id": {
-                            "des": "VIVO推送 app_id",
-                            "key": "",
-                            "value": ""
+                        "com.vivo.push.app_id" : {
+                            "des" : "VIVO推送 app_id",
+                            "key" : "",
+                            "value" : ""
                         }
                     }
                 }
             },
-            "TencentCloud-TUICallKit": {
-                "__plugin_info__": {
-                    "name": "【官方】腾讯云音视频通话插件TencentCloud-TUICallKit",
-                    "description": "TUICallKit 是腾讯云官方推出的音视频通话插件,支持 1v1 通话和群组通话,并提供“类微信\"的 UI 交互,开发者仅需三个 API 就可实现。",
-                    "platforms": "Android,iOS",
-                    "url": "https://ext.dcloud.net.cn/plugin?id=9035",
-                    "android_package_name": "",
-                    "ios_bundle_id": "",
-                    "isCloud": true,
-                    "bought": 1,
-                    "pid": "9035",
-                    "parameters": {}
+            "TencentCloud-TUICallKit" : {
+                "__plugin_info__" : {
+                    "name" : "【官方】腾讯云音视频通话插件TencentCloud-TUICallKit",
+                    "description" : "TUICallKit 是腾讯云官方推出的音视频通话插件,支持 1v1 通话和群组通话,并提供“类微信\"的 UI 交互,开发者仅需三个 API 就可实现。",
+                    "platforms" : "Android,iOS",
+                    "url" : "https://ext.dcloud.net.cn/plugin?id=9035",
+                    "android_package_name" : "",
+                    "ios_bundle_id" : "",
+                    "isCloud" : true,
+                    "bought" : 1,
+                    "pid" : "9035",
+                    "parameters" : {}
                 }
             }
         }
     },
     /* 快应用特有相关 */
-    "quickapp": {},
+    "quickapp" : {},
     /* H5 特有相关 :关闭 treeshaking 是为了规避 uni[methond]() is not a function 的问题 */
-    "h5": {
-        "devServer": {
-            "port": 8080,
-            "disableHostCheck": true,
-            "proxy": {
-                "/dev-api": {
+    "h5" : {
+        "devServer" : {
+            "port" : 8080,
+            "disableHostCheck" : true,
+            "proxy" : {
+                "/dev-api" : {
                     // "target": "http://47.109.135.147:30000",
-                    "target": "http://192.168.0.17:30000",
+                    "target" : "http://192.168.0.17:30000",
                     // "target": "https://applet-dev.qianzhi-y.com/api",
-                    "changeOrigin": true,
-                    "secure": false,
-                    "pathRewrite": {
-                        "^/dev-api": ""
+                    "changeOrigin" : true,
+                    "secure" : false,
+                    "pathRewrite" : {
+                        "^/dev-api" : ""
                     }
                 }
             },
-            "https": false
+            "https" : false
         },
-        "template": "index.html",
-        "router": {
-            "base": "./",
-            "mode": "hash"
+        "template" : "index.html",
+        "router" : {
+            "base" : "./",
+            "mode" : "hash"
+        },
+        "sdkConfigs" : {
+            "maps" : {
+                "amap" : {
+                    "key" : "2e75f4c22217359628e22c2e170b4778",
+                    "securityJsCode" : "aae243a4d33170d5331abec91fe2cd0c",
+                    "serviceHost" : ""
+                }
+            }
         }
     },
     // "optimization" : {
@@ -173,29 +180,34 @@
     //     "mode" : "hash"
     // }
     /* 小程序特有相关 */
-    "mp-weixin": {
-        "libVersion": "latest",
-        "appid": "",
-        "setting": {
-            "urlCheck": false,
-            "es6": true,
-            "minified": true,
-            "ignoreDevUnusedFiles": false,
-            "ignoreUploadUnusedFiles": false
+    "mp-weixin" : {
+        "libVersion" : "latest",
+        "appid" : "",
+        "setting" : {
+            "urlCheck" : false,
+            "es6" : true,
+            "minified" : true,
+            "ignoreDevUnusedFiles" : false,
+            "ignoreUploadUnusedFiles" : false
         },
-        "usingComponents": true
+        "usingComponents" : true,
+        "permission" : {
+            "scope.userLocation" : {
+                "desc" : ""
+            }
+        }
     },
-    "mp-alipay": {
-        "usingComponents": true
+    "mp-alipay" : {
+        "usingComponents" : true
     },
-    "mp-baidu": {
-        "usingComponents": true
+    "mp-baidu" : {
+        "usingComponents" : true
     },
-    "mp-toutiao": {
-        "usingComponents": true
+    "mp-toutiao" : {
+        "usingComponents" : true
     },
-    "uniStatistics": {
-        "enable": false
+    "uniStatistics" : {
+        "enable" : false
     },
-    "vueVersion": "2"
-}
+    "vueVersion" : "2"
+}

+ 6 - 0
pages.json

@@ -7,6 +7,12 @@
       }
     },
     {
+      "path": "pages/map/map",
+      "style": {
+        "navigationStyle": "custom"
+      }
+    },
+    {
       "path": "TUIKit/components/TUIConversation/index",
       "style": {
         "navigationStyle": "custom"

+ 58 - 0
pages/map/map.vue

@@ -0,0 +1,58 @@
+<!--
+ * @Author: suyuanyuan 1205763462@qq.com
+ * @Date: 2024-05-10 11:04:34
+ * @LastEditors: suyuanyuan 1205763462@qq.com
+ * @LastEditTime: 2024-05-10 13:49:26
+ * @FilePath: \qzcloud-h5\pages\broadband\map\index.vue
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+-->
+<template>
+  <view class="map-box">
+    <map-Point
+      @commitCheck="commitCheck"
+      :mapKey="mapKey"
+      :showResetting="showResetting"
+      :listIco="listIco"
+      :orientationIco="orientationIco"
+      :resettingIco="resettingIco"
+    ></map-Point>
+  </view>
+</template>
+
+<script>
+import mapPoint from "@/uni_modules/map-Point/components/map-Point/map-Point.vue";
+export default {
+  components: { mapPoint },
+  data() {
+    return {
+      mapKey: "513a86ab1ef90efebd0767716078f61e",
+      address: "",
+      latitude: "",
+      longitude: "",
+      listIco:
+        "https://mp-6a7d27e4-49d1-42f7-b4bc-37bc5964c0a8.cdn.bspapp.com/item-inx.png",
+      orientationIco:
+        "https://mp-6a7d27e4-49d1-42f7-b4bc-37bc5964c0a8.cdn.bspapp.com/map-inx.png",
+      resettingIco:
+        "https://mp-6a7d27e4-49d1-42f7-b4bc-37bc5964c0a8.cdn.bspapp.com/position.png",
+      showResetting: true,
+    };
+  },
+  methods: {
+    commitCheck(e) {
+      
+      uni.$emit("commitMapClick", e);
+      uni.navigateBack({
+        delta: 1,
+      });
+    },
+  },
+};
+</script>
+
+<style lang="scss">
+.map-box {
+  height: 100vh;
+  width: 100vw;
+}
+</style>

+ 16 - 0
uni_modules/map-Point/changelog.md

@@ -0,0 +1,16 @@
+## 2.0.0(2024-03-25)
+- 修复--定位复位不搜索附件地址
+## 1.0.0(2024-03-23)
+- 实现了拖动
+- 实现了拖动搜索附近pois
+- 实现搜索附近pois
+- 实现搜索关键字
+- 定位复位
+- 动态配置复位定位功能显示
+- 回调【地址名称、地址详情、地址定位、省、市、区】
+- 动态配置key
+- 动态配置定位复位图标
+- 动态配置定位图标
+- 动态配置列表图标
+ ## 2.0.0(2024-03-25)
+- 修复--定位复位不搜索附件地址

+ 655 - 0
uni_modules/map-Point/components/map-Point/amap-wx.js

@@ -0,0 +1,655 @@
+function AMapWX(a) {
+	this.key = a.key;
+	this.requestConfig = {
+		key: a.key,
+	};
+	this.MeRequestConfig = {
+		key: a.key,
+		serviceName: "https://restapi.amap.com/rest/me"
+	}
+}
+AMapWX.prototype.getWxLocation = function(a, b) {
+	wx.getLocation({
+		type: "gcj02",
+		success: function(c) {
+			c = c.longitude + "," + c.latitude;
+			wx.setStorage({
+				key: "userLocation",
+				data: c
+			});
+			b(c)
+		},
+		fail: function(c) {
+			wx.getStorage({
+				key: "userLocation",
+				success: function(d) {
+					d.data && b(d.data)
+				}
+			});
+			a.fail({
+				errCode: "0",
+				errMsg: c.errMsg || ""
+			})
+		}
+	})
+};
+AMapWX.prototype.getMEKeywordsSearch = function(a) {
+	if (!a.options) return a.fail({
+		errCode: "0",
+		errMsg: "\u7f3a\u5c11\u5fc5\u8981\u53c2\u6570"
+	});
+	var b = a.options,
+		c = this.MeRequestConfig,
+		d = {
+			key: c.key,
+			s: "rsx",
+			platform: "WXJS",
+			appname: a.key,
+			sdkversion: "1.2.0",
+			logversion: "2.0"
+		};
+	b.layerId && (d.layerId = b.layerId);
+	b.keywords && (d.keywords = b.keywords);
+	b.city && (d.city = b.city);
+	b.filter && (d.filter = b.filter);
+	b.sortrule && (d.sortrule = b.sortrule);
+	b.pageNum && (d.pageNum = b.pageNum);
+	b.pageSize && (d.pageSize = b.pageSize);
+	b.sig && (d.sig =
+		b.sig);
+	wx.request({
+		url: c.serviceName + "/cpoint/datasearch/local",
+		data: d,
+		method: "GET",
+		header: {
+			"content-type": "application/json"
+		},
+		success: function(e) {
+			(e = e.data) && e.status && "1" === e.status && 0 === e.code ? a.success(e.data) : a.fail({
+				errCode: "0",
+				errMsg: e
+			})
+		},
+		fail: function(e) {
+			a.fail({
+				errCode: "0",
+				errMsg: e.errMsg || ""
+			})
+		}
+	})
+};
+AMapWX.prototype.getMEIdSearch = function(a) {
+	if (!a.options) return a.fail({
+		errCode: "0",
+		errMsg: "\u7f3a\u5c11\u5fc5\u8981\u53c2\u6570"
+	});
+	var b = a.options,
+		c = this.MeRequestConfig,
+		d = {
+			key: c.key,
+			s: "rsx",
+			platform: "WXJS",
+			appname: a.key,
+			sdkversion: "1.2.0",
+			logversion: "2.0"
+		};
+	b.layerId && (d.layerId = b.layerId);
+	b.id && (d.id = b.id);
+	b.sig && (d.sig = b.sig);
+	wx.request({
+		url: c.serviceName + "/cpoint/datasearch/id",
+		data: d,
+		method: "GET",
+		header: {
+			"content-type": "application/json"
+		},
+		success: function(e) {
+			(e = e.data) && e.status && "1" === e.status &&
+				0 === e.code ? a.success(e.data) : a.fail({
+					errCode: "0",
+					errMsg: e
+				})
+		},
+		fail: function(e) {
+			a.fail({
+				errCode: "0",
+				errMsg: e.errMsg || ""
+			})
+		}
+	})
+};
+AMapWX.prototype.getMEPolygonSearch = function(a) {
+	if (!a.options) return a.fail({
+		errCode: "0",
+		errMsg: "\u7f3a\u5c11\u5fc5\u8981\u53c2\u6570"
+	});
+	var b = a.options,
+		c = this.MeRequestConfig,
+		d = {
+			key: c.key,
+			s: "rsx",
+			platform: "WXJS",
+			appname: a.key,
+			sdkversion: "1.2.0",
+			logversion: "2.0"
+		};
+	b.layerId && (d.layerId = b.layerId);
+	b.keywords && (d.keywords = b.keywords);
+	b.polygon && (d.polygon = b.polygon);
+	b.filter && (d.filter = b.filter);
+	b.sortrule && (d.sortrule = b.sortrule);
+	b.pageNum && (d.pageNum = b.pageNum);
+	b.pageSize && (d.pageSize = b.pageSize);
+	b.sig && (d.sig = b.sig);
+	wx.request({
+		url: c.serviceName + "/cpoint/datasearch/polygon",
+		data: d,
+		method: "GET",
+		header: {
+			"content-type": "application/json"
+		},
+		success: function(e) {
+			(e = e.data) && e.status && "1" === e.status && 0 === e.code ? a.success(e.data) : a.fail({
+				errCode: "0",
+				errMsg: e
+			})
+		},
+		fail: function(e) {
+			a.fail({
+				errCode: "0",
+				errMsg: e.errMsg || ""
+			})
+		}
+	})
+};
+AMapWX.prototype.getMEaroundSearch = function(a) {
+	if (!a.options) return a.fail({
+		errCode: "0",
+		errMsg: "\u7f3a\u5c11\u5fc5\u8981\u53c2\u6570"
+	});
+	var b = a.options,
+		c = this.MeRequestConfig,
+		d = {
+			key: c.key,
+			s: "rsx",
+			platform: "WXJS",
+			appname: a.key,
+			sdkversion: "1.2.0",
+			logversion: "2.0"
+		};
+	b.layerId && (d.layerId = b.layerId);
+	b.keywords && (d.keywords = b.keywords);
+	b.center && (d.center = b.center);
+	b.radius && (d.radius = b.radius);
+	b.filter && (d.filter = b.filter);
+	b.sortrule && (d.sortrule = b.sortrule);
+	b.pageNum && (d.pageNum = b.pageNum);
+	b.pageSize &&
+		(d.pageSize = b.pageSize);
+	b.sig && (d.sig = b.sig);
+	wx.request({
+		url: c.serviceName + "/cpoint/datasearch/around",
+		data: d,
+		method: "GET",
+		header: {
+			"content-type": "application/json"
+		},
+		success: function(e) {
+			(e = e.data) && e.status && "1" === e.status && 0 === e.code ? a.success(e.data) : a.fail({
+				errCode: "0",
+				errMsg: e
+			})
+		},
+		fail: function(e) {
+			a.fail({
+				errCode: "0",
+				errMsg: e.errMsg || ""
+			})
+		}
+	})
+};
+AMapWX.prototype.getGeo = function(a) {
+	var b = this.requestConfig,
+		c = a.options;
+	b = {
+		key: this.key,
+		extensions: "all",
+		s: b.s,
+		platform: b.platform,
+		appname: this.key,
+		sdkversion: b.sdkversion,
+		logversion: b.logversion
+	};
+	c.address && (b.address = c.address);
+	c.city && (b.city = c.city);
+	c.batch && (b.batch = c.batch);
+	c.sig && (b.sig = c.sig);
+	wx.request({
+		url: "https://restapi.amap.com/v3/geocode/geo",
+		data: b,
+		method: "GET",
+		header: {
+			"content-type": "application/json"
+		},
+		success: function(d) {
+			(d = d.data) && d.status && "1" === d.status ? a.success(d) : a.fail({
+				errCode: "0",
+				errMsg: d
+			})
+		},
+		fail: function(d) {
+			a.fail({
+				errCode: "0",
+				errMsg: d.errMsg || ""
+			})
+		}
+	})
+};
+AMapWX.prototype.getRegeo = function(a) {
+	function b(d) {
+		var e = c.requestConfig;
+		wx.request({
+			url: "https://restapi.amap.com/v3/geocode/regeo",
+			data: {
+				key: c.key,
+				location: d,
+				extensions: "all",
+				s: e.s,
+				platform: e.platform,
+				appname: c.key,
+				sdkversion: e.sdkversion,
+				logversion: e.logversion
+			},
+			method: "GET",
+			header: {
+				"content-type": "application/json"
+			},
+			success: function(g) {
+				if (g.data.status && "1" == g.data.status) {
+					g = g.data.regeocode;
+					var h = g.addressComponent,
+						f = [],
+						k = g.roads[0].name + "\u9644\u8fd1",
+						m = d.split(",")[0],
+						n = d.split(",")[1];
+					if (g.pois &&
+						g.pois[0]) {
+						k = g.pois[0].name + "\u9644\u8fd1";
+						var l = g.pois[0].location;
+						l && (m = parseFloat(l.split(",")[0]), n = parseFloat(l.split(",")[1]))
+					}
+					h.provice && f.push(h.provice);
+					h.city && f.push(h.city);
+					h.district && f.push(h.district);
+					h.streetNumber && h.streetNumber.street && h.streetNumber.number ? (f.push(h
+						.streetNumber.street), f.push(h.streetNumber.number)) : f.push(g.roads[0]
+						.name);
+					f = f.join("");
+					a.success([{
+						iconPath: a.iconPath,
+						width: a.iconWidth,
+						height: a.iconHeight,
+						name: f,
+						desc: k,
+						longitude: m,
+						latitude: n,
+						id: 0,
+						regeocodeData: g
+					}])
+				} else a.fail({
+					errCode: g.data.infocode,
+					errMsg: g.data.info
+				})
+			},
+			fail: function(g) {
+				a.fail({
+					errCode: "0",
+					errMsg: g.errMsg || ""
+				})
+			}
+		})
+	}
+	var c = this;
+	a.location ? b(a.location) : c.getWxLocation(a, function(d) {
+		b(d)
+	})
+};
+AMapWX.prototype.getWeather = function(a) {
+	function b(g) {
+		var h = "base";
+		a.type && "forecast" == a.type && (h = "all");
+		wx.request({
+			url: "https://restapi.amap.com/v3/weather/weatherInfo",
+			data: {
+				key: d.key,
+				city: g,
+				extensions: h,
+				s: e.s,
+				platform: e.platform,
+				appname: d.key,
+				sdkversion: e.sdkversion,
+				logversion: e.logversion
+			},
+			method: "GET",
+			header: {
+				"content-type": "application/json"
+			},
+			success: function(f) {
+				if (f.data.status && "1" == f.data.status)
+					if (f.data.lives) {
+						if ((f = f.data.lives) && 0 < f.length) {
+							f = f[0];
+							var k = {
+								city: {
+									text: "\u57ce\u5e02",
+									data: f.city
+								},
+								weather: {
+									text: "\u5929\u6c14",
+									data: f.weather
+								},
+								temperature: {
+									text: "\u6e29\u5ea6",
+									data: f.temperature
+								},
+								winddirection: {
+									text: "\u98ce\u5411",
+									data: f.winddirection + "\u98ce"
+								},
+								windpower: {
+									text: "\u98ce\u529b",
+									data: f.windpower + "\u7ea7"
+								},
+								humidity: {
+									text: "\u6e7f\u5ea6",
+									data: f.humidity + "%"
+								}
+							};
+							k.liveData = f;
+							a.success(k)
+						}
+					} else f.data.forecasts && f.data.forecasts[0] && a.success({
+						forecast: f.data.forecasts[0]
+					});
+				else a.fail({
+					errCode: f.data.infocode,
+					errMsg: f.data.info
+				})
+			},
+			fail: function(f) {
+				a.fail({
+					errCode: "0",
+					errMsg: f.errMsg || ""
+				})
+			}
+		})
+	}
+
+	function c(g) {
+		wx.request({
+			url: "https://restapi.amap.com/v3/geocode/regeo",
+			data: {
+				key: d.key,
+				location: g,
+				extensions: "all",
+				s: e.s,
+				platform: e.platform,
+				appname: d.key,
+				sdkversion: e.sdkversion,
+				logversion: e.logversion
+			},
+			method: "GET",
+			header: {
+				"content-type": "application/json"
+			},
+			success: function(h) {
+				if (h.data.status && "1" == h.data.status) {
+					h = h.data.regeocode;
+					if (h.addressComponent) var f = h.addressComponent.adcode;
+					else h.aois && 0 < h.aois.length && (f = h.aois[0].adcode);
+					b(f)
+				} else a.fail({
+					errCode: h.data.infocode,
+					errMsg: h.data.info
+				})
+			},
+			fail: function(h) {
+				a.fail({
+					errCode: "0",
+					errMsg: h.errMsg || ""
+				})
+			}
+		})
+	}
+	var d = this,
+		e = d.requestConfig;
+	a.city ? b(a.city) : d.getWxLocation(a, function(g) {
+		c(g)
+	})
+};
+AMapWX.prototype.getPoiAround = function(a) {
+	function b(e) {
+		e = {
+			key: c.key,
+			location: e,
+			s: d.s,
+			platform: d.platform,
+			appname: c.key,
+			sdkversion: d.sdkversion,
+			logversion: d.logversion
+		};
+		a.querytypes && (e.types = a.querytypes);
+		a.querykeywords && (e.keywords = a.querykeywords);
+		a.page && (e.page = a.page);
+		wx.request({
+			url: "https://restapi.amap.com/v3/place/around",
+			data: e,
+			method: "GET",
+			header: {
+				"content-type": "application/json"
+			},
+			success: function(g) {
+				if (g.data.status && "1" == g.data.status) {
+					if ((g = g.data) && g.pois) {
+						for (var h = [], f = 0; f < g.pois.length; f++) {
+							var k = 0 ==
+								f ? a.iconPathSelected : a.iconPath;
+							h.push({
+								latitude: parseFloat(g.pois[f].location.split(",")[1]),
+								longitude: parseFloat(g.pois[f].location.split(",")[0]),
+								iconPath: k,
+								width: 22,
+								height: 32,
+								id: f,
+								name: g.pois[f].name,
+								address: g.pois[f].address
+							})
+						}
+						a.success({
+							markers: h,
+							poisData: g.pois,
+							count:g.count
+						})
+					}
+				} else a.fail({
+					errCode: g.data.infocode,
+					errMsg: g.data.info
+				})
+			},
+			fail: function(g) {
+				a.fail({
+					errCode: "0",
+					errMsg: g.errMsg || ""
+				})
+			}
+		})
+	}
+	var c = this,
+		d = c.requestConfig;
+	a.location ? b(a.location) : c.getWxLocation(a, function(e) {
+		b(e)
+	})
+};
+AMapWX.prototype.getStaticmap = function(a) {
+	function b(e) {
+		c.push("location=" + e);
+		a.zoom && c.push("zoom=" + a.zoom);
+		a.size && c.push("size=" + a.size);
+		a.scale && c.push("scale=" + a.scale);
+		a.markers && c.push("markers=" + a.markers);
+		a.labels && c.push("labels=" + a.labels);
+		a.paths && c.push("paths=" + a.paths);
+		a.traffic && c.push("traffic=" + a.traffic);
+		e = "https://restapi.amap.com/v3/staticmap?" + c.join("&");
+		a.success({
+			url: e
+		})
+	}
+	var c = [];
+	c.push("key=" + this.key);
+	var d = this.requestConfig;
+	c.push("s=" + d.s);
+	c.push("platform=" + d.platform);
+	c.push("appname=" + d.appname);
+	c.push("sdkversion=" + d.sdkversion);
+	c.push("logversion=" + d.logversion);
+	a.location ? b(a.location) : this.getWxLocation(a, function(e) {
+		b(e)
+	})
+};
+AMapWX.prototype.getInputtips = function(a) {
+	var b = Object.assign({}, this.requestConfig);
+	a.location && (b.location = a.location);
+	a.keywords && (b.keywords = a.keywords);
+	a.type && (b.type = a.type);
+	a.city && (b.city = a.city);
+	a.citylimit && (b.citylimit = a.citylimit);
+	wx.request({
+		url: "https://restapi.amap.com/v3/assistant/inputtips",
+		data: b,
+		method: "GET",
+		header: {
+			"content-type": "application/json"
+		},
+		success: function(c) {
+			c && c.data && c.data.tips && a.success({
+				tips: c.data.tips
+			})
+		},
+		fail: function(c) {
+			a.fail({
+				errCode: "0",
+				errMsg: c.errMsg ||
+					""
+			})
+		}
+	})
+};
+AMapWX.prototype.getDrivingRoute = function(a) {
+	var b = Object.assign({}, this.requestConfig);
+	a.origin && (b.origin = a.origin);
+	a.destination && (b.destination = a.destination);
+	a.strategy && (b.strategy = a.strategy);
+	a.waypoints && (b.waypoints = a.waypoints);
+	a.avoidpolygons && (b.avoidpolygons = a.avoidpolygons);
+	a.avoidroad && (b.avoidroad = a.avoidroad);
+	wx.request({
+		url: "https://restapi.amap.com/v3/direction/driving",
+		data: b,
+		method: "GET",
+		header: {
+			"content-type": "application/json"
+		},
+		success: function(c) {
+			c && c.data && c.data.route && a.success({
+				paths: c.data.route.paths,
+				taxi_cost: c.data.route.taxi_cost || ""
+			})
+		},
+		fail: function(c) {
+			a.fail({
+				errCode: "0",
+				errMsg: c.errMsg || ""
+			})
+		}
+	})
+};
+AMapWX.prototype.getWalkingRoute = function(a) {
+	var b = Object.assign({}, this.requestConfig);
+	a.origin && (b.origin = a.origin);
+	a.destination && (b.destination = a.destination);
+	wx.request({
+		url: "https://restapi.amap.com/v3/direction/walking",
+		data: b,
+		method: "GET",
+		header: {
+			"content-type": "application/json"
+		},
+		success: function(c) {
+			c && c.data && c.data.route && a.success({
+				paths: c.data.route.paths
+			})
+		},
+		fail: function(c) {
+			a.fail({
+				errCode: "0",
+				errMsg: c.errMsg || ""
+			})
+		}
+	})
+};
+AMapWX.prototype.getTransitRoute = function(a) {
+	var b = Object.assign({}, this.requestConfig);
+	a.origin && (b.origin = a.origin);
+	a.destination && (b.destination = a.destination);
+	a.strategy && (b.strategy = a.strategy);
+	a.city && (b.city = a.city);
+	a.cityd && (b.cityd = a.cityd);
+	wx.request({
+		url: "https://restapi.amap.com/v3/direction/transit/integrated",
+		data: b,
+		method: "GET",
+		header: {
+			"content-type": "application/json"
+		},
+		success: function(c) {
+			c && c.data && c.data.route && (c = c.data.route, a.success({
+				distance: c.distance || "",
+				taxi_cost: c.taxi_cost ||
+					"",
+				transits: c.transits
+			}))
+		},
+		fail: function(c) {
+			a.fail({
+				errCode: "0",
+				errMsg: c.errMsg || ""
+			})
+		}
+	})
+};
+AMapWX.prototype.getRidingRoute = function(a) {
+	var b = Object.assign({}, this.requestConfig);
+	a.origin && (b.origin = a.origin);
+	a.destination && (b.destination = a.destination);
+	wx.request({
+		url: "https://restapi.amap.com/v3/direction/riding",
+		data: b,
+		method: "GET",
+		header: {
+			"content-type": "application/json"
+		},
+		success: function(c) {
+			c && c.data && c.data.route && a.success({
+				paths: c.data.route.paths
+			})
+		},
+		fail: function(c) {
+			a.fail({
+				errCode: "0",
+				errMsg: c.errMsg || ""
+			})
+		}
+	})
+};
+module.exports.AMapWX = AMapWX;

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 939 - 0
uni_modules/map-Point/components/map-Point/map-Point.vue


+ 86 - 0
uni_modules/map-Point/package.json

@@ -0,0 +1,86 @@
+{
+  "id": "map-Point",
+  "displayName": "高德地图--地图选点uni_modules插件",
+  "version": "2.0.0",
+  "description": "一款基于高德地图api封装的地图选点组件,移动选点、搜索选点,返回省市区",
+  "keywords": [
+    "高德地图选点",
+    "高德地图",
+    "h5地图",
+    "小程序地图",
+    "app地图"
+],
+  "repository": "",
+"engines": {
+  },
+  "dcloudext": {
+    "type": "component-vue",
+    "sale": {
+      "regular": {
+        "price": "0.00"
+      },
+      "sourcecode": {
+        "price": "0.00"
+      }
+    },
+    "contact": {
+      "qq": ""
+    },
+    "declaration": {
+      "ads": "无",
+      "data": "插件不采集任何数据",
+      "permissions": " 无"
+    },
+    "npmurl": ""
+  },
+  "uni_modules": {
+    "dependencies": [],
+    "encrypt": [],
+    "platforms": {
+      "cloud": {
+        "tcb": "y",
+        "aliyun": "y",
+        "alipay": "y"
+      },
+      "client": {
+        "Vue": {
+          "vue2": "y",
+          "vue3": "u"
+        },
+        "App": {
+          "app-vue": "y",
+          "app-nvue": "u",
+          "app-uvue": "u"
+        },
+        "H5-mobile": {
+          "Safari": "u",
+          "Android Browser": "y",
+          "微信浏览器(Android)": "y",
+          "QQ浏览器(Android)": "y"
+        },
+        "H5-pc": {
+          "Chrome": "y",
+          "IE": "u",
+          "Edge": "y",
+          "Firefox": "y",
+          "Safari": "y"
+        },
+        "小程序": {
+          "微信": "y",
+          "阿里": "y",
+          "百度": "y",
+          "字节跳动": "y",
+          "QQ": "u",
+          "钉钉": "y",
+          "快手": "y",
+          "飞书": "y",
+          "京东": "u"
+        },
+        "快应用": {
+          "华为": "u",
+          "联盟": "u"
+        }
+      }
+    }
+  }
+}

+ 115 - 0
uni_modules/map-Point/readme.md

@@ -0,0 +1,115 @@
+###使用
+
+```
+1.<template>
+
+<map-Point @commitCheck="commitCheck" :mapKey='mapKey' :showResetting='showResetting' :listIco='listIco' :orientationIco='orientationIco' :resettingIco='resettingIco'></map-Point>
+
+2.<script>
+
+export default {
+	data() {
+		return {
+			mapKey:'737965f92c797efb5447a4d658328513',
+			address: '',
+			latitude: '',
+			longitude: '',
+			listIco:'https://mp-6a7d27e4-49d1-42f7-b4bc-37bc5964c0a8.cdn.bspapp.com/item-inx.png',
+			orientationIco:'https://mp-6a7d27e4-49d1-42f7-b4bc-37bc5964c0a8.cdn.bspapp.com/map-inx.png',
+			resettingIco:"https://mp-6a7d27e4-49d1-42f7-b4bc-37bc5964c0a8.cdn.bspapp.com/position.png",
+			showResetting:true
+		};
+	},
+	methods: {
+		commitCheck(e) {
+			console.log(e, 565);
+			uni.$emit('commitCheck', e);
+			uni.navigateBack({
+				delta: 1
+			});
+		}
+	}
+};
+
+```
+### 属性说明
+
+| 属性名           | 类型     | 默认值   | 说明              |
+|-----------------|----------|----------|-----------------------|
+| mapKey       	  | String   | " "      | 高德Web服务Key必须传             |
+| resettingIco    | String   | base64   | 定位复位图标--图标必传--app不支持base64           |
+| orientationIco  | String   | base64   | 定位图标--图标必传--app不支持base64               |
+| listIco         | String   | base64   | 列表图标--图标必传--app不支持base64   |
+| showResetting   | Boolean  | true     | 复位定位功能显示      |
+
+注意:
+1. mapKey的高德Web服务Key是我的个人注册测试使用的,使用次数有限,大家换成自己的
+
+###事件说明
+
+| 事件名        | 说明                  | 返回值 |
+|---------------|----------------------|--------|
+| @commitCheck  | 选中地址的确认地址回调 | data,详情见下方说明 |
+
+#### @commitCheck 返回值 data 说明 
+
+| 值      | 类型    | 说明  |
+| ------- | ------ | ----- |
+| id      | String | 地址id |
+| name    | String | 地点名称|
+| address | String | 地点详细地址|
+| province| String | 省   |
+| city    | String | 市 |
+| district| String | 区 |
+| location| String | 经纬度坐标 |
+
+###注意:微信小程序使用
+```
+1.运行微信小程序使用--在【manifest.json】配置自己的微信小程序appid
+
+2.在manifest.json中声明定位
+			 /* 小程序特有相关 */
+		"mp-weixin" : {
+			"appid" : "",
+			"setting" : {
+				"urlCheck" : false,
+				"es6" : true,
+				"postcss" : true,
+				"minified" : true
+			},
+			"usingComponents" : true,
+			"permission" : {
+				"scope.userLocation" : {
+					"desc" : "定位"
+				}
+			},
+			"requiredPrivateInfos" : [
+				"getLocation", //使用uni.getlocation才需声明
+				"startLocationUpdate", //必要
+				"onLocationChange" //必要
+			]
+		},
+
+
+```
+
+
+###注意:h5使用
+
+- 1.h5使用
+		必须去高德申请Web端的ksy和密钥
+- 2.然后再【manifest.json】配置定位地图
+		1.选择高德
+		2.把申请的web的key配置在key那里
+		3.把申请的web的秘钥配置在securityJsCode那里
+		4.运行
+- 3.注意:去[高德开发申请网站](https://console.amap.com/dev/key/app)区申请
+		可以使用我的测试key配置体验--注意是测试有次数限制,尽量用自己的
+		key:'6fd9d6c8b1015a6d9f9454d5df596a0f'
+		code:'dc3a5f4976a6b06d3cf3ab280f672a17'
+
+
+###有不懂可以
+```
+有任何疑问可以  加qq1848961270  备注插件名称
+```