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 @@ + + + + + \ 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 @@