USER-20230908AJ\Administrator 2 сар өмнө
parent
commit
7b90ff75e0
4 өөрчлөгдсөн 51 нэмэгдсэн , 10 устгасан
  1. 7 0
      package-lock.json
  2. 1 0
      package.json
  3. 38 10
      pages/task/task.vue
  4. 5 0
      yarn.lock

+ 7 - 0
package-lock.json

@@ -5,6 +5,7 @@
   "packages": {
     "": {
       "dependencies": {
+        "@amap/amap-jsapi-loader": "^1.0.1",
         "@types/three": "^0.181.0",
         "3d-force-graph": "^1.79.0",
         "animate.css": "^4.1.1",
@@ -26,6 +27,12 @@
         "vue-waterfall-easy": "^2.4.4"
       }
     },
+    "node_modules/@amap/amap-jsapi-loader": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz",
+      "integrity": "sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw==",
+      "license": "MIT"
+    },
     "node_modules/@babel/parser": {
       "version": "7.19.0",
       "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.19.0.tgz",

+ 1 - 0
package.json

@@ -1,5 +1,6 @@
 {
   "dependencies": {
+    "@amap/amap-jsapi-loader": "^1.0.1",
     "@types/three": "^0.181.0",
     "3d-force-graph": "^1.79.0",
     "animate.css": "^4.1.1",

+ 38 - 10
pages/task/task.vue

@@ -126,27 +126,55 @@ export default {
   mounted() {
   },
   methods: {
-    setOrderMoney() {
-
+    setLocation(res){
+      console.log("收到监听",res)
+      this.propertyData.address=res.address
+      this.propertyData.lat=res.lat
+      this.propertyData.lng=res.lng
+      this.propertyData.complexName=res.complexName
+      this.districtOption.forEach(item=>{
+        if(res.districtName===item.name){
+          this.propertyData.district=item.id
+        }
+      })
+    },
+    getValuationOption(){
+      if(this.propertyData.houseType===""){
+        this.propertyData.houseType=0
+      }
+      getValuationOption({"modelType":this.propertyData.modelType}).then(res=>{
+        if(res.code===0){
+          if(this.propertyData.modelType===1){
+            this.houseTypeOption=res.data.houseTypeOption
+          }else if(this.propertyData.modelType===3){
+            this.levelOption=res.data.levelOption
+            this.transferMethodOption=res.data.transferMethodOption
+            this.landUseOption=res.data.landUseOption
+            this.landSourceOption=res.data.landSourceOption
+            this.propertyData.land_source=this.landSourceOption[0].id
+          }
+        }
+      })
     },
-    goToMoney() {
-      // uni.navigateTo({
-      //   url: '/page_subpack/recharge/index'
-      // });
+    predictProperty(){
+      console.log('aaaaaaaaaaaaaaaaaaa')
+      predictProperty(this.propertyData).then(res=>{
+        if(res.code===0){
+          this.propertyRes=res.data
+        }else {
+          tools.error(res.msg)
+        }
+      })
     },
     async getMessage() {
 
     },
 
-    setConsent() {
 
-    },
     getMemberInfo() {
 
     },
-    getModelOption() {
 
-    },
     getVerifiedCode() {
 
     },

+ 5 - 0
yarn.lock

@@ -2,6 +2,11 @@
 # yarn lockfile v1
 
 
+"@amap/amap-jsapi-loader@^1.0.1":
+  version "1.0.1"
+  resolved "https://registry.npmjs.org/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz"
+  integrity sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw==
+
 "@babel/parser@^7.18.4":
   version "7.19.0"
   resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.19.0.tgz"