diff --git a/pages/massif/add_farming.vue b/pages/massif/add_farming.vue
index 9809fef..d6c8508 100644
--- a/pages/massif/add_farming.vue
+++ b/pages/massif/add_farming.vue
@@ -209,7 +209,7 @@ export default {
farmingTime:{label:"操作日期",styleType:"parallel",type:"calendar"},
farmingPlanId:{label:"种植计划",type:"select",columns:[],value:[]},
images:{label:"农事图片",type:"upImg",num:3},
- farmingRemarks:{label:"产品介绍",type:"textarea"},
+ farmingRemarks:{label:"备注",type:"textarea"},
},
formData:{
farmingType:"",
diff --git a/pages/massif/mana/farmRecord.vue b/pages/massif/mana/farmRecord.vue
index c54ad5a..cec0730 100644
--- a/pages/massif/mana/farmRecord.vue
+++ b/pages/massif/mana/farmRecord.vue
@@ -88,6 +88,7 @@
负责人:{{v.principal}} 记录时间:{{v.time}}
+
diff --git a/pages/massif/mana/index.vue b/pages/massif/mana/index.vue
index bfb9376..82f1f62 100644
--- a/pages/massif/mana/index.vue
+++ b/pages/massif/mana/index.vue
@@ -68,6 +68,7 @@ export default {
var points=await this.getDetail()
this.maps=amap.$getAppMap()
+
this.maps.setMapType(plus.maps.MapType.MAPTYPE_SATELLITE)
if(points.length>0){
var bound=computeArea(points)
@@ -80,7 +81,13 @@ export default {
polygon.setFillOpacity(0.3)
this.maps.addOverlay(polygon)
}else{
- this.maps.centerAndZoom(new plus.maps.Point(102.712251,25.040609),10)
+ this.maps.getUserLocation((state,point)=>{
+ if(state==0){
+ this.maps.centerAndZoom(new plus.maps.Point(point.longitude, point.latitude),10)
+ }else{
+ this.maps.centerAndZoom(new plus.maps.Point(102.712251,25.040609),10)
+ }
+ })
}
/* #endif */
diff --git a/pages/massif/mana/plantPlan.vue b/pages/massif/mana/plantPlan.vue
index 538706a..8de30e4 100644
--- a/pages/massif/mana/plantPlan.vue
+++ b/pages/massif/mana/plantPlan.vue
@@ -203,20 +203,28 @@ export default {
})
},
//结束种植
- async finishPlant(index){
- var res=await request("/api/plantPlan/finishPlant",{
- params:{plantPlanId:this.list[index].id}
+ finishPlant(index){
+ uni.showModal({
+ title:"提示",
+ content:"确定结束种植!",
+ success: async e=>{
+ if(e.confirm){
+ var res=await request("/api/plantPlan/finishPlant",{
+ params:{plantPlanId:this.list[index].id}
+ })
+ if(res.statu){
+ uni.showToast({title:"结束成功!",duration:1500})
+ this.list[index].status=2
+ }else{
+ uni.showModal({
+ title:"提示",
+ content:res.msg||"结束种植失败!",
+ showCancel:false,
+ })
+ }
+ }
+ }
})
- if(res.statu){
- uni.showToast({title:"结束成功!",duration:1500})
- this.list[index].status=2
- }else{
- uni.showModal({
- title:"提示",
- content:res.msg||"结束种植失败!",
- showCancel:false,
- })
- }
},
//跳转新增采收页面
toAdd(plantId){
diff --git a/uni_modules/d-form/components/d-form/d-form.vue b/uni_modules/d-form/components/d-form/d-form.vue
index 925510e..82fa985 100644
--- a/uni_modules/d-form/components/d-form/d-form.vue
+++ b/uni_modules/d-form/components/d-form/d-form.vue
@@ -498,7 +498,13 @@ import {computeArea} from '@/common/utils'
this.maps.centerAndZoom(new plus.maps.Point(bound.center.longitude, bound.center.latitude),10)
this.drawOver(true)
}else{
- this.maps.centerAndZoom(new plus.maps.Point(102.712251,25.040609),10)
+ this.maps.getUserLocation((state,point)=>{
+ if(state==0){
+ this.maps.centerAndZoom(new plus.maps.Point(point.longitude, point.latitude),10)
+ }else{
+ this.maps.centerAndZoom(new plus.maps.Point(102.712251,25.040609),10)
+ }
+ })
}
this.maps.onclick=(e)=>{
console.log("zoom",this.maps.getZoom())