diff --git a/App.vue b/App.vue
index aafd85b..ab62577 100644
--- a/App.vue
+++ b/App.vue
@@ -1,14 +1,12 @@
+
+
\ No newline at end of file
diff --git a/components/own-share/readme.md b/components/own-share/readme.md
new file mode 100644
index 0000000..efe51da
--- /dev/null
+++ b/components/own-share/readme.md
@@ -0,0 +1,59 @@
+### 使用方法
+ 本组件依赖于 uni-popup 组件 跟 uni-transtion 组件
+
+
+``` js
+
+
+
+ //先引入组件
+ import ownShare from '@/components/own-share/own-share.vue'
+ //然后使用
+ components:{
+ ownShare
+ }
+
+ //打开分享
+ this.$nextTick(()=>{
+ this.$refs.share.open()
+ })
+ //关闭分享
+ this.$nextTick(()=>{
+ this.$refs.share.close()
+ })
+ //当然也可以用 easycom 直接使用
+```
+参数 分享只用于app
+
+| 参数 | 类型 | 是否必填 |
+| ---- | ---- | ---- |
+| shareSummary | String | 只分享内容时必填 |
+| shareImage | String | 只分享图片时必填 |
+| shareTitle | String | 否 |
+| shareHref | String | 分享图文时必填 |
+| miniProgram | Object | 分享小程序必填 |
+
+miniProgram参数 [详情](https://uniapp.dcloud.io/api/plugins/share?id=share)
+
+| 参数 | 类型 | 是否必填 |
+| ---- | ---- | ---- |
+| id | String | 微信小程序原始id |
+| path | String | 点击链接进入的页面 |
+| type | Number | 微信小程序版本类型 |
+| webUrl | String | 兼容低版本的网页链接 |
+
+| 事件 | 说明 |
+| ---- | ---- |
+| shareSuccess | 成功回调 |
+| shareFail | 失败回调 |
+
+----
+**图标链接写在组件里面请自行修改(请看示例项目)**
+
+
+[了解更多uniapp分享,请参考官网](https://uniapp.dcloud.io/api/plugins/share)
+
+
diff --git a/components/plant/landInfo.vue b/components/plant/landInfo.vue
index 658f532..a14cf34 100644
--- a/components/plant/landInfo.vue
+++ b/components/plant/landInfo.vue
@@ -19,12 +19,13 @@
-
+
+
土地面积: {{info.total_area}}亩
@@ -33,22 +34,20 @@
种子品牌: {{}}
-->
-
-
-
-
-
-
+
- 播种时间: {{info.create_time}}
+ 土地负责人: {{info.master_name}}
+
+
+ 土地负责人: {{info.master_phone}}
+
+
@@ -63,9 +62,9 @@
info: Object,
})
-
+
const perviewFn = (url) => {
-
+
uni.previewImage({
urls: [url]
})
diff --git a/components/return/index.vue b/components/return/index.vue
new file mode 100644
index 0000000..f4ea37d
--- /dev/null
+++ b/components/return/index.vue
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+ {{name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/uni-popup/uni-popup.vue b/components/uni-popup/uni-popup.vue
new file mode 100644
index 0000000..2b764a9
--- /dev/null
+++ b/components/uni-popup/uni-popup.vue
@@ -0,0 +1,264 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/uni-transition/uni-transition.vue b/components/uni-transition/uni-transition.vue
new file mode 100644
index 0000000..0543b44
--- /dev/null
+++ b/components/uni-transition/uni-transition.vue
@@ -0,0 +1,278 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index 3df60bf..75f6217 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,101 +1,112 @@
{
- "name" : "种植溯源",
- "appid" : "__UNI__D087881",
- "description" : "",
- "versionName" : "1.0.1",
- "versionCode" : "100",
- "transformPx" : false,
- /* 5+App特有相关 */
- "app-plus" : {
- "usingComponents" : true,
- "nvueStyleCompiler" : "uni-app",
- "compilerVersion" : 3,
- "screenOrientation":["portrait-primary","portrait-secondary","landscape-primary","landscape-secondary"],
- "splashscreen" : {
- "alwaysShowBeforeRender" : true,
- "waiting" : true,
- "autoclose" : true,
- "delay" : 0
- },
- /* 模块配置 */
- "modules" : {
- "Geolocation" : {},
- "Maps" : {},
- "LivePusher" : {},
- "VideoPlayer" : {},
- "Barcode" : {},
- "Camera" : {}
- },
- /* 应用发布信息 */
- "distribute" : {
- /* android打包配置 */
- "android" : {
- "permissions" : [
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- ],
- "minSdkVersion" : 21
- },
- /* ios打包配置 */
- "ios" : {
- "dSYMs" : false
- },
- /* SDK配置 */
- "sdkConfigs" : {
- "ad" : {},
- "geolocation" : {
- "amap" : {
- "name" : "amapC2GgorTaY",
- "__platform__" : [ "android" ],
- "appkey_ios" : "b0c21bc6b220aa882bad8ffb6bce8829",
- "appkey_android" : "b0c21bc6b220aa882bad8ffb6bce8829"
- }
- },
- "maps" : {
- "amap" : {
- "name" : "amapC2GgorTaY",
- "appkey_ios" : "b0c21bc6b220aa882bad8ffb6bce8829",
- "appkey_android" : "b0c21bc6b220aa882bad8ffb6bce8829"
- }
- }
- }
- }
- },
- /* 快应用特有相关 */
- "quickapp" : {},
- /* 小程序特有相关 */
- "mp-weixin" : {
- "appid" : "",
- "setting" : {
- "urlCheck" : false
- },
- "usingComponents" : true
- },
- "mp-alipay" : {
- "usingComponents" : true
- },
- "mp-baidu" : {
- "usingComponents" : true
- },
- "mp-toutiao" : {
- "usingComponents" : true
- },
- "uniStatistics" : {
- "enable" : false
- },
- "vueVersion" : "3"
-}
+ "name": "种植溯源",
+ "appid": "__UNI__D087881",
+ "description": "",
+ "versionName": "1.0.1",
+ "versionCode": "100",
+ "transformPx": false,
+ /* 5+App特有相关 */
+ "app-plus": {
+ "usingComponents": true,
+ "nvueStyleCompiler": "uni-app",
+ "compilerVersion": 3,
+ "screenOrientation": [
+ "portrait-primary",
+ "portrait-secondary",
+ "landscape-primary",
+ "landscape-secondary"
+ ],
+ "splashscreen": {
+ "alwaysShowBeforeRender": true,
+ "waiting": true,
+ "autoclose": true,
+ "delay": 0
+ },
+ /* 模块配置 */
+ "modules": {
+ "Geolocation": {},
+ "Maps": {},
+ "LivePusher": {},
+ "VideoPlayer": {},
+ "Barcode": {},
+ "Camera": {},
+ "UniMP": {
+ "description": "uni小程序"
+ }
+ },
+ /* 应用发布信息 */
+ "distribute": {
+ /* android打包配置 */
+ "android": {
+ "permissions": [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ],
+ "minSdkVersion": 21
+ },
+ /* ios打包配置 */
+ "ios": {
+ "dSYMs": false
+ },
+ /* SDK配置 */
+ "sdkConfigs": {
+ "ad": {},
+ "geolocation": {
+ "amap": {
+ "name": "amap_18982406440DFVLElaO",
+ "__platform__": ["android"],
+ "appkey_ios": "4e6789b864fe1a2d76b98e38158f20f2",
+ "appkey_android": "a230d943475443eb29fc3871fbef8605"
+ },
+ "system": {
+ "__platform__": ["ios", "android"]
+ }
+ },
+ "maps": {
+ "amap": {
+ "name": "4e6789b864fe1a2d76b98e38158f20f2",
+ "appkey_ios": "a230d943475443eb29fc3871fbef8605",
+ "appkey_android": "a230d943475443eb29fc3871fbef8605"
+ }
+ }
+ }
+ }
+ },
+ /* 快应用特有相关 */
+ "quickapp": {},
+ /* 小程序特有相关 */
+ "mp-weixin": {
+ "appid": "",
+ "setting": {
+ "urlCheck": false
+ },
+ "usingComponents": true
+ },
+ "mp-alipay": {
+ "usingComponents": true
+ },
+ "mp-baidu": {
+ "usingComponents": true
+ },
+ "mp-toutiao": {
+ "usingComponents": true
+ },
+ "uniStatistics": {
+ "enable": false
+ },
+ "vueVersion": "3"
+}
\ No newline at end of file
diff --git a/pages/Login/login.vue b/pages/Login/login.vue
index b608ab7..390cd35 100644
--- a/pages/Login/login.vue
+++ b/pages/Login/login.vue
@@ -1,6 +1,4 @@
-
-
@@ -18,7 +16,7 @@
-
@@ -27,9 +25,14 @@
-
+ placeholder="请输入密码" border="surround" v-model="formData.password" >
+
+
+
+
用户注册
@@ -49,7 +52,6 @@
diff --git a/pages/husbandryForm/irrigate.vue b/pages/husbandryForm/irrigate.vue
index 66fc79c..ca119d9 100644
--- a/pages/husbandryForm/irrigate.vue
+++ b/pages/husbandryForm/irrigate.vue
@@ -6,28 +6,28 @@
-
+
-
+
-
+
-
+
-
+
@@ -49,7 +49,8 @@
-
+
diff --git a/pages/husbandryForm/sow.vue b/pages/husbandryForm/sow.vue
index 8b57208..2d395bc 100644
--- a/pages/husbandryForm/sow.vue
+++ b/pages/husbandryForm/sow.vue
@@ -54,7 +54,7 @@
-
+
@@ -142,13 +142,8 @@
required: true,
message: '请填写开始日期',
trigger: ['blur', 'change']
- }],
- remark: [{
- type: 'string',
- required: true,
- message: '请填写备注信息',
- trigger: ['blur', 'change']
}]
+
}
})
@@ -198,12 +193,12 @@
if (valid) {
data.formData.land_id = task_id.value
console.log('表单通过');
- data.formData.pic = JSON.stringify(pic)
- if (data.formData.pic.length == 0) {
-
+ if (pic.length == 0) {
uni.$u.toast('请上传图片')
return
}
+ data.formData.pic = JSON.stringify(pic)
+
// 表单验证通过,执行提交操作
addplant(data.formData).then((res) => {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index cd6222b..51a8a7c 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,14 +1,24 @@
+
+
+
+
+
+
+
搜索
-
+
+
+
{{item.title}}
@@ -35,7 +45,7 @@
- 地址: {{item.town_name}}{{item.village_name}}{{item.group_name}}
+ 地址: {{item.address}}
@@ -71,10 +81,20 @@
reactive,
onMounted
} from "vue"
-
+ import Myindex from '@/components/return/index.vue';
+ import store from "@/store/index.js"
import {
landlist
} from '@/api/api.js'
+ onLoad(()=>{
+ // console.log(store.state.userInfo)
+ if (!store.state.userInfo) {
+ uni.redirectTo({
+ url:'/pages/Login/login'
+ })
+
+ }
+ })
onShow(() => {
list()
})
@@ -111,17 +131,19 @@
});
}
const list = () => {
+ datalist.splice(0)
fomData.page_no = 1
getlist()
}
const getlist = () => {
landlist(fomData).then((res) => {
if (res.code == 1) {
- datalist.splice(0, datalist.length, ...res.data);
- fomData.page_no += fomData.page_no
-
+ datalist.push(...res.data)
+ fomData.page_no = fomData.page_no + 1
+
+
}
-
+
})
}
@@ -142,9 +164,10 @@
})
-