diff --git a/components/alger-simg/alger-simg.vue b/components/alger-simg/alger-simg.vue
new file mode 100644
index 0000000..2f5bc70
--- /dev/null
+++ b/components/alger-simg/alger-simg.vue
@@ -0,0 +1,253 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 分享图片
+
+ 保存图片
+ 保存全部图片
+
+
+
+
+
+
+
+
diff --git a/main.js b/main.js
index 4a51478..a72eab0 100644
--- a/main.js
+++ b/main.js
@@ -26,3 +26,11 @@ import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app)
app.$mount()
+
+//main.js
+Vue.prototype.$showimg = function (data) {
+ uni.navigateTo({
+ url: '/pages/showimg/showimg?imgs=' + JSON.stringify(data.imgs) + '¤t=' + data.current,
+ animationType: "fade-in",
+ })
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..8f41ce3
--- /dev/null
+++ b/package.json
@@ -0,0 +1,19 @@
+{
+ "id": "alger-simg",
+ "name": "图片预览(使用简单 长按可保存分享 插件)",
+ "version": "1.1.0",
+ "description": "图片预览(使用简单) 可以双指缩放 可以保存分享",
+ "keywords": [
+ "图片",
+ "image",
+ "img",
+ "图片预览",
+ "大图"
+ ],
+ "dcloudext": {
+ "category": [
+ "前端组件",
+ "通用组件"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 594c5f8..b825c9c 100644
--- a/pages.json
+++ b/pages.json
@@ -1,114 +1,123 @@
-{
- "easycom": {
- "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue",
- "^cpn-(.*)": "@/components/cpn-$1.vue"
- },
- "pages": [{
- "path": "pages/enter/enter",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/home/home",
- "style": {
- "navigationStyle": "custom",
- "navigationBarTextStyle": "black"
- }
- },
- {
- "path": "pages/list/list",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/todayNursing/todayNursing",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/nursingCalendar/nursingCalendar",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/map/map",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/detailNursing/detailNursing",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/setting/setting",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/login/login",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "uview-ui/components/u-avatar-cropper/u-avatar-cropper",
- "style": {
- "navigationBarTitleText": "头像裁剪",
- "navigationBarBackgroundColor": "#000000"
- }
- }
- ],
- "subPackages": [{
- "root": "package_sub",
- "pages": [{
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "分包页面sub_index"
- }
- }]
- }],
- "globalStyle": {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "uni-app",
- "navigationBarBackgroundColor": "#F8F8F8",
- "backgroundColor": "#F8F8F8"
- },
- "tabBar": {
- "color": "#ABAEBE",
- "selectedColor": "#1479FF",
- "list": [{
- "iconPath": "/static/tabbar/home.png",
- "selectedIconPath": "/static/tabbar/home-active.png",
- "pagePath": "pages/home/home",
- "text": "首页"
- },
- {
- "iconPath": "/static/tabbar/notification.png",
- "selectedIconPath": "/static/tabbar/notification-active.png",
- "pagePath": "pages/todayNursing/todayNursing",
- "text": "今日护理"
- },
- {
- "iconPath": "/static/tabbar/canlendar.png",
- "selectedIconPath": "/static/tabbar/canlendar-active.png",
- "pagePath": "pages/nursingCalendar/nursingCalendar",
- "text": "护理日历"
- },
- {
- "iconPath": "/static/tabbar/list.png",
- "selectedIconPath": "/static/tabbar/list-active.png",
- "pagePath": "pages/list/list",
- "text": "护理列表"
- }
-
- ]
- }
+{
+ "easycom": {
+ "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue",
+ "^cpn-(.*)": "@/components/cpn-$1.vue"
+ },
+ "pages": [{
+ "path": "pages/enter/enter",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/home/home",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTextStyle": "black"
+ }
+ },
+ {
+ "path": "pages/list/list",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/todayNursing/todayNursing",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/nursingCalendar/nursingCalendar",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/map/map",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/detailNursing/detailNursing",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/setting/setting",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/login/login",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "uview-ui/components/u-avatar-cropper/u-avatar-cropper",
+ "style": {
+ "navigationBarTitleText": "头像裁剪",
+ "navigationBarBackgroundColor": "#000000"
+ }
+ }, {
+ "path": "pages/showimg/showimg",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "app-plus": {
+ "animationType": "fade-in",
+ "animationDuration": 300
+ }
+ }
+ }
+ ],
+ "subPackages": [{
+ "root": "package_sub",
+ "pages": [{
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "分包页面sub_index"
+ }
+ }]
+ }],
+ "globalStyle": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "uni-app",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8"
+ },
+ "tabBar": {
+ "color": "#ABAEBE",
+ "selectedColor": "#1479FF",
+ "list": [{
+ "iconPath": "/static/tabbar/home.png",
+ "selectedIconPath": "/static/tabbar/home-active.png",
+ "pagePath": "pages/home/home",
+ "text": "首页"
+ },
+ {
+ "iconPath": "/static/tabbar/notification.png",
+ "selectedIconPath": "/static/tabbar/notification-active.png",
+ "pagePath": "pages/todayNursing/todayNursing",
+ "text": "今日护理"
+ },
+ {
+ "iconPath": "/static/tabbar/canlendar.png",
+ "selectedIconPath": "/static/tabbar/canlendar-active.png",
+ "pagePath": "pages/nursingCalendar/nursingCalendar",
+ "text": "护理日历"
+ },
+ {
+ "iconPath": "/static/tabbar/list.png",
+ "selectedIconPath": "/static/tabbar/list-active.png",
+ "pagePath": "pages/list/list",
+ "text": "护理列表"
+ }
+
+ ]
+ }
}
diff --git a/pages/detailNursing/detailNursing.vue b/pages/detailNursing/detailNursing.vue
index 60a7ab3..7ad7850 100644
--- a/pages/detailNursing/detailNursing.vue
+++ b/pages/detailNursing/detailNursing.vue
@@ -1,872 +1,884 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{detail.customer.name}}
-
- {{ageComputed(detail.customer.idcard)}}岁
-
- {{detail.customer.sex}}
- 机构护理
-
-
-
-
-
- 待护理
-
-
-
- 进行中
-
-
-
- 已完成
-
-
-
-
-
-
-
-
-
- 委托人:{{detail.customer.contact_name}}
-
-
-
- {{ addressFormat(detail.customer.customer_address) }}
-
-
-
- {{detail.customer.phone}}
-
-
-
- 更新定位
-
-
-
-
-
-
-
- 今日护理
-
-
-
-
- 护理明细
- 实际时长
-
-
-
-
- {{item.info.name}}
-
-
-
-
- 分钟
-
-
-
-
-
-
-
-
- 过程打卡
- ({{detail.logs_count + 1}})
-
-
- 签到
- {{dateFormat(time,'HH:mm:ss')}}
-
-
- 签退
- {{dateFormat(time,'HH:mm:ss')}}
-
-
- 更新定位
- {{dateFormat(time,'HH:mm:ss')}}
-
-
- 护理已完成
-
-
-
-
-
- 定位时间:{{dateFormat(location.time,'HH:mm:ss')}} {{location.address}}
-
-
-
-
-
- 打卡记录
-
-
-
-
-
-
-
-
-
- {{typeFormat(item.type)}}
- {{item.created_at}}
- {{item.address}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/showimg/showimg.vue b/pages/showimg/showimg.vue
new file mode 100644
index 0000000..2f5bc70
--- /dev/null
+++ b/pages/showimg/showimg.vue
@@ -0,0 +1,253 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 分享图片
+
+ 保存图片
+ 保存全部图片
+
+
+
+
+
+
+
+