diff --git a/App.vue b/App.vue
index bec52b3..0b4cbf3 100644
--- a/App.vue
+++ b/App.vue
@@ -9,54 +9,15 @@
diff --git a/androidPrivacy.json b/androidPrivacy.json
index 2dd0b22..78574c0 100644
--- a/androidPrivacy.json
+++ b/androidPrivacy.json
@@ -1,37 +1,37 @@
{
- "version" : "1",
- "prompt" : "template",
- "title" : "服务协议和隐私政策",
- "message" : "请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
你可阅读《服务协议》和《隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
- "buttonAccept" : "同意并接受",
- "buttonRefuse" : "暂不同意",
- "hrefLoader" : "system|default",
- "second" : {
- "title" : "确认提示",
- "message" : "进入应用前,你需先同意《服务协议》和《隐私政策》,否则将退出应用。",
- "buttonAccept" : "同意并继续",
- "buttonRefuse" : "退出应用"
- },
- "disagreeMode" : {
- "support" : false,
- "loadNativePlugins" : false,
- "visitorEntry" : true,
- "showAlways" : true
- },
- "styles" : {
- "backgroundColor" : "#ffffff",
- "borderRadius" : "5px",
- "title" : {
- "color" : "#000000"
- },
- "buttonAccept" : {
- "color" : "#000000"
- },
- "buttonRefuse" : {
- "color" : "#000000"
- },
- "buttonVisitor" : {
- "color" : "#000000"
- }
- }
+ "version": "1",
+ "prompt": "template",
+ "title": "用户协议与隐私政策",
+ "message": "请你务必审慎阅读、充分理解“用户协议与隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
你可阅读《用户协议与隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
+ "buttonAccept": "同意并接受",
+ "buttonRefuse": "暂不同意",
+ "hrefLoader": "system|default",
+ "second": {
+ "title": "确认提示",
+ "message": "进入应用前,你需先同意《用户协议与隐私政策》,否则将退出应用。",
+ "buttonAccept": "同意并继续",
+ "buttonRefuse": "退出应用"
+ },
+ "disagreeMode": {
+ "support": false,
+ "loadNativePlugins": false,
+ "visitorEntry": false,
+ "showAlways": false
+ },
+ "styles": {
+ "backgroundColor": "#ffffff",
+ "borderRadius": "5px",
+ "title": {
+ "color": "#000000"
+ },
+ "buttonAccept": {
+ "color": "#000000"
+ },
+ "buttonRefuse": {
+ "color": "#000000"
+ },
+ "buttonVisitor": {
+ "color": "#000000"
+ }
+ }
}
diff --git a/api/Modifyinformation/Modifyinformation.js b/api/Modifyinformation/Modifyinformation.js
index da9821b..349999e 100644
--- a/api/Modifyinformation/Modifyinformation.js
+++ b/api/Modifyinformation/Modifyinformation.js
@@ -1,12 +1,13 @@
import request from "../request.js"
-export function userPassWord(data) {
+export function updateNursePersonCheck(data) {
return request({
- url: `/nurseApp/personLogin/userPassWord`,
+ url: `/nurseApplet/personCenter/updateNursePersonCheck`,
method: 'POST',
data,
})
}
+
export function updateHeadAvatarHead(userId, File) {
return request({
url: `/nurseApp/personLogin/updateHeadAvatarHead?userId=${userId}&File=${File}`,
@@ -20,3 +21,18 @@ export function nursePerson(phonenumber, password) {
method: 'GET'
})
}
+
+export function nurseAppLoginSysUser(data) {
+ return request({
+ url: `/nurseApp/personLogin/nurseAppLoginSysUser`,
+ method: 'POST',
+ data,
+ })
+}
+
+export function personNurseStationLists(pageNum,pageSize) {
+ return request({
+ url: `/nurseApp/personLogin/personNurseStationLists?pageNum=${pageNum}&pageSize=${pageSize}`,
+ method: 'get'
+ })
+}
diff --git a/api/MyBenefits/MyBenefits.js b/api/MyBenefits/MyBenefits.js
new file mode 100644
index 0000000..257131f
--- /dev/null
+++ b/api/MyBenefits/MyBenefits.js
@@ -0,0 +1,17 @@
+import request from "../request.js"
+
+//个人中心 我的收益 金额
+export function personRevenue(nurseStationPersonId, monthTime, monthStartTime, monthEndTime) {
+ return request({
+ url: `/nurseApplet/personCenter/personRevenue?nurseStationPersonId=${nurseStationPersonId}&&monthTime=${monthTime}&&monthStartTime=${monthStartTime}&&monthEndTime=${monthEndTime}`,
+ method: 'GET'
+ })
+}
+
+// 个人中心 我的收益 订单列表分页
+export function personRevenueDetails(pageNum, pageSize, nurseStationPersonId, monthTime, monthStartTime, monthEndTime) {
+ return request({
+ url: `/nurseApplet/personCenter/personRevenueDetails?pageNum=${pageNum}&&pageSize=${pageSize}&&nurseStationPersonId=${nurseStationPersonId}&&monthTime=${monthTime}&&monthStartTime=${monthStartTime}&&monthEndTime=${monthEndTime}`,
+ method: 'GET',
+ })
+}
diff --git a/api/Mymission.js b/api/Mymission/Mymission.js
similarity index 55%
rename from api/Mymission.js
rename to api/Mymission/Mymission.js
index 838f627..f8c5d0a 100644
--- a/api/Mymission.js
+++ b/api/Mymission/Mymission.js
@@ -1,9 +1,19 @@
-import request from "./request.js"
+import request from "../request.js"
-
-export function selectMission(nursePersonId, orderStatus, pageNum, pageSize,nurseItemName) {
+//工单list
+export function selectMission(nursePersonId, orderStatus, pageNum, pageSize, nurseItemName) {
return request({
url: `/nurseApp/personLogin/selectMission?nursePersonId=${nursePersonId}&orderStatus=${orderStatus}&pageNum=${pageNum}&pageSize=${pageSize}&nurseItemName=${nurseItemName}`,
method: 'GET'
})
}
+
+
+//接单
+export function receiveOrders(data) {
+ return request({
+ url: `/nurseApplet/personWorkOrder/receiveOrders`,
+ method: 'post',
+ data
+ })
+}
diff --git a/api/homepage/index.js b/api/homepage/index.js
new file mode 100644
index 0000000..a7e6a4a
--- /dev/null
+++ b/api/homepage/index.js
@@ -0,0 +1,9 @@
+import request from "../request.js"
+
+//
+export function selectOrderByNursePersonCount(nurseStationPersonId) {
+ return request({
+ url: `/nurseApp/personLogin/selectOrderByNursePersonCount?nurseStationPersonId=${nurseStationPersonId}`,
+ method: 'GET'
+ })
+}
diff --git a/api/personnal/personal.js b/api/personnal/personal.js
index b8e825d..a59e092 100644
--- a/api/personnal/personal.js
+++ b/api/personnal/personal.js
@@ -1,7 +1,18 @@
import request from "../request.js"
-export function nursePerson(phonenumber,password) {
+
+//个人信息查询护理站人员的个人信息
+export function nurseAppletPersonCenter(nursePersonId) {
return request({
- url: `/nurseApp/personLogin/nursePerson?phonenumber=${phonenumber}&stationPersonPassword=${password}`,
+ url: `/nurseApplet/personCenter/nurseAppletPersonCenter?nursePersonId=${nursePersonId}`,
method: 'GET'
})
}
+
+// 护理员App和小程序护理员修改状态
+export function updateNursePersonWorkStatus(data) {
+ return request({
+ url: `/nurseApplet/personCenter/updateNursePersonWorkStatus`,
+ method: 'post',
+ data
+ })
+}
diff --git a/api/request.js b/api/request.js
index 31de474..02bfd08 100644
--- a/api/request.js
+++ b/api/request.js
@@ -16,29 +16,16 @@ var request = function(config) {
success(res) {
if (res.data.code == 9999) {
uni.removeStorageSync('token');
- // uni.reLaunch({
+ uni.removeStorageSync('nursePersonId');
+ uni.removeStorageSync('phone');
+ uni.reLaunch({
+ url: '/pages/login/login'
+ })
+ } else if (res.data.code == 500) {
+ // uni.removeStorageSync('nursePersonId');
+ // uni.navigateTo({
// url: '/pages/login/login'
// })
- uni.showModal({
- title: "登录提示",
- content: '登录失效,请重新登录',
- success(res1) {
- if (res1.confirm) {
- uni.navigateTo({
- url: '/pages/login/login'
- })
- } else if (res1.cancel) {
- uni.reLaunch({
- url: '/pages/homepage/homepage'
- })
- }
- },
- fail(err1) {
- uni.reLaunch({
- url: '/pages/homepage/homepage'
- })
- }
- })
}
uni.hideLoading();
resolve(res.data)
diff --git a/api/startup.js b/api/startup/index.js
similarity index 78%
rename from api/startup.js
rename to api/startup/index.js
index b4bdb03..b442c9f 100644
--- a/api/startup.js
+++ b/api/startup/index.js
@@ -1,5 +1,4 @@
-import request from "./request.js"
-
+import request from "../request.js"
export function appFileInfoByOneId() {
return request({
diff --git a/api/taskDetails.js b/api/taskDetails.js
deleted file mode 100644
index 876dff8..0000000
--- a/api/taskDetails.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import request from "./request.js"
-
-// 任务详情
-
-export function taskDetails(orderDetailsId) {
- return request({
- url: `/nurseApp/personLogin/taskDetails?&orderDetailsId=${orderDetailsId}`,
- method: 'GET'
- })
-}
-
diff --git a/api/taskDetails/taskDetails.js b/api/taskDetails/taskDetails.js
new file mode 100644
index 0000000..b8616a0
--- /dev/null
+++ b/api/taskDetails/taskDetails.js
@@ -0,0 +1,9 @@
+import request from "../request.js"
+
+// 任务详情
+export function taskDetails(orderDetailsId) {
+ return request({
+ url: `/nurseApp/personLogin/taskDetails?orderNo=${orderDetailsId}`,
+ method: 'GET'
+ })
+}
diff --git a/api/taskReturn/index.js b/api/taskReturn/index.js
index 386b64c..a534cc0 100644
--- a/api/taskReturn/index.js
+++ b/api/taskReturn/index.js
@@ -1,9 +1,10 @@
import request from "../request.js"
-export function orderFallback(orderNo, taskReturnReason) {
+export function orderFallback(data) {
return request({
- url: `/nurseApp/personLogin/orderFallback?orderNo=${orderNo}&taskReturnReason=${taskReturnReason}`,
- method: 'POST'
+ url: `/nurseApp/personLogin/orderFallback`,
+ method: 'POST',
+ data
})
}
diff --git a/manifest.json b/manifest.json
index 2e69341..9c415f1 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,9 +1,9 @@
{
- "name" : "泉医到家护理员APP",
+ "name" : "泉医助手",
"appid" : "__UNI__EE607B0",
"description" : "",
- "versionName" : "1.0.5",
- "versionCode" : 105,
+ "versionName" : "1.0.6",
+ "versionCode" : 106,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
@@ -19,7 +19,8 @@
/* 模块配置 */
"modules" : {
"Geolocation" : {},
- "Maps" : {}
+ "Maps" : {},
+ "Camera" : {}
},
/* 应用发布信息 */
"distribute" : {
diff --git a/pages.json b/pages.json
index 4b39cb7..6ee6c31 100644
--- a/pages.json
+++ b/pages.json
@@ -4,85 +4,82 @@
},
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
- "path": "pages/startup/startup",
- "style": {
- "navigationBarTitleText": "启动页",
- "navigationStyle": "custom"
- }
- },{
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录",
- "navigationBarBackgroundColor": "#ffffff", //背景颜色
"navigationStyle": "custom"
}
- },
- {
- "path": "pages/confirmCompletion/confirmCompletion",
+ }, {
+ "path": "pages/startup/startup",
"style": {
- "navigationBarTitleText": "完成确认",
- "navigationBarBackgroundColor": "#ffffff" //背景颜色
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom"
+ }
+ }, {
+ "path": "pages/Healthknowledge/Healthknowledge",
+ "style": {
+ "navigationBarTitleText": "护理新闻",
+ "enablePullDownRefresh": false
+ }
+ }, {
+ "path": "pages/MyBenefits/MyBenefits",
+ "style": {
+ "navigationBarTitleText": "我的收益",
+ "enablePullDownRefresh": false
+ }
+ }, {
+ "path": "pages/Modifyinformation/Modifyinformation",
+ "style": {
+ "navigationBarTitleText": "修改信息",
+ "enablePullDownRefresh": false
+ // "navigationBarTextStyle": "white"
}
}, {
"path": "pages/personal/personal",
"style": {
"navigationBarTitleText": "个人信息",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#4C7BC9",
- "navigationBarTextStyle": "white"
+ "navigationStyle": "custom"
}
}, {
- "path": "pages/forgotPassword/forgotPassword",
+ "path": "pages/Mymission/Mymission",
"style": {
- "navigationBarTitleText": "忘记密码",
- "navigationBarBackgroundColor": "#ffffff" //背景颜色
+ "navigationBarTitleText": "我的工单",
+ "onReachBottomDistance": 20, //距离底部多远时触发 单位为px
+ "enablePullDownRefresh": true //设置参数为true
}
}, {
- "path": "pages/register/register",
+ "path": "pages/taskDetails/taskDetails",
"style": {
- "navigationBarTitleText": "注册账号",
- "navigationBarBackgroundColor": "#ffffff" //背景颜色
+ "navigationBarTitleText": "工单信息",
+ "enablePullDownRefresh": false
}
}, {
"path": "pages/homepage/homepage",
"style": {
- "navigationBarTitleText": "泉医到家",
- "navigationBarBackgroundColor": "#ffffff" //背景颜色
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom"
}
- },
- {
+ }, {
+ "path": "pages/confirmCompletion/confirmCompletion",
+ "style": {
+ "navigationBarTitleText": "当前工单",
+ "enablePullDownRefresh": false
+ }
+ }, {
"path": "pages/taskReturn/taskReturn",
"style": {
- "navigationBarTitleText": "任务退回",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#ffffff" //背景颜色
+ "navigationBarTitleText": "退回原因",
+ "enablePullDownRefresh": false
}
-
}, {
- "path": "pages/Mymission/Mymission",
+ "path": "pages/forgotPassword/forgotPassword",
"style": {
- "navigationBarTitleText": "我的任务",
- "navigationBarBackgroundColor": "#ffffff", //背景颜色
- "onReachBottomDistance": 20, //距离底部多远时触发 单位为px
- "enablePullDownRefresh": true //设置参数为true
+ "navigationBarTitleText": "忘记密码"
}
-
}, {
- "path": "pages/taskDetails/taskDetails",
+ "path": "pages/register/register",
"style": {
- "navigationBarTitleText": "任务详情",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#ffffff" //背景颜色
- }
-
- },
- {
- "path": "pages/Modifyinformation/Modifyinformation",
- "style": {
- "navigationBarTitleText": "修改信息",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#ffffff" //背景颜色
- // "navigationBarTextStyle": "white"
+ "navigationBarTitleText": "注册"
}
}, {
"path": "pages/signature/signature",
@@ -90,14 +87,51 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
-
+ }, {
+ "path": "pages/RevenueDetails/RevenueDetails",
+ "style": {
+ "navigationBarTitleText": "收益信息",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/RevenueDetails/RevenueDetails",
+ "style": {
+ "navigationBarTitleText": "收益信息",
+ "enablePullDownRefresh": false
+ }
+ }, {
+ "path": "pages/study/study",
+ "style": {
+ "navigationBarTitleText": "泉医助手",
+ "enablePullDownRefresh": false
+ }
}
],
"globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "uni-app",
- "navigationBarBackgroundColor": "#F8F8F8",
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "",
+ "navigationBarBackgroundColor": "#4271B9",
"backgroundColor": "#F8F8F8"
},
- "uniIdRouter": {}
+ "uniIdRouter": {},
+ "tabBar": {
+ "color": "#7A7E83",
+ "selectedColor": "#435950",
+ "borderStyle": "black",
+ "backgroundColor": "#ffffff",
+ "list": [{
+ "pagePath": "pages/homepage/homepage",
+ "iconPath": "static/homepagew.png",
+ "selectedIconPath": "static/homepagews.png",
+ "text": "首页"
+ },
+ {
+ "pagePath": "pages/personal/personal",
+ "iconPath": "static/userw.png",
+ "selectedIconPath": "static/users.png",
+ "text": "我的"
+ }
+ ]
+ }
}
diff --git a/pages/Healthknowledge/Healthknowledge.vue b/pages/Healthknowledge/Healthknowledge.vue
new file mode 100644
index 0000000..7b9bf6b
--- /dev/null
+++ b/pages/Healthknowledge/Healthknowledge.vue
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+ 护理 I 致力于打造专业护理人才
+
+ 生活小窍门,是指人们在日常生活中总结出来的知识和经验,和生活小常识非常相似
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/Modifyinformation/Modifyinformation.scss b/pages/Modifyinformation/Modifyinformation.scss
index 9135d1c..c533e1a 100644
--- a/pages/Modifyinformation/Modifyinformation.scss
+++ b/pages/Modifyinformation/Modifyinformation.scss
@@ -1,25 +1,19 @@
-.app {
- background-color: #F4F5F7;
+ .app {
width: 100%;
- height: 100vh;
color: #000000;
- padding: 3%;
- font-size: 34rpx;
- .title{
- font-size: 28rpx;
- margin: 20rpx 20rpx 0;
- }
+ padding: 2%;
+ font-size: 30rpx;
+
.finish {
- width: 217rpx;
+ width: 496rpx;
+ background: #4271B9;
+ border-radius: 5rpx;
color: #FFFFFF;
height: 68rpx;
line-height: 68rpx;
text-align: center;
- position: absolute;
- top: 70%;
- left: 70%;
+ margin: 100rpx auto;
background: #4C7BC9;
- border-radius: 26rpx;
}
.centercontent {
@@ -29,8 +23,10 @@
border-radius: 20rpx;
margin: 0 auto;
padding-bottom: 10rpx;
+
.content {
line-height: 100rpx;
+
.name {
margin-left: 20rpx;
height: 100rpx;
@@ -42,55 +38,128 @@
display: inline-block;
width: 20%;
}
-
+ text{
+ width: 80%;
+ font-size: 30rpx;
+ }
input {
position: absolute;
top: 50%;
transform: translateY(-50%);
line-height: 100rpx;
display: inline-block;
- width: 80%;
- font-size: 34rpx;
-
+ width: 75%;
+ font-size: 30rpx;
}
}
.nursetype {
- padding-bottom: 20rpx;
- border: none;line-height: 50rpx;margin: 20rpx 20rpx;
- }
- }
-
- .Commodity {
- line-height: 130rpx;
margin-left: 20rpx;
- border-bottom: 1rpx solid #D8D4D4;
- position: relative;
-
- .picture {
- position: absolute;
- right: 10%;
- top: 50%;
- transform: translateY(-50%);
- width: 110rpx;
- height: 110rpx;
- border-radius: 50%;
- }
-
- .pictureA {
- position: absolute;
- right: 2%;
- top: 50%;
- transform: translateY(-50%);
- width: 18rpx;
- height: 27rpx;
- }
-
- .head {
- line-height: 140rpx;
- margin-left: 5%;
- display: inline-block;
+ line-height: 100rpx;
+ border-bottom: 1rpx solid #D8D4D4;
+ .rate {
+ margin: 30rpx auto;
+ width: 650rpx;
+ background: #FFFFFF;
+ border: 1px solid #E6E6E6;
+ border-radius: 5rpx;
+ color: #E6E6E6;
+ background: #FFFFFF;
+ .itemimgs {
+ display: inline-block;
+ width: 200rpx;
+ height: 200rpx;
+ margin: 0 0 10rpx 10rpx;
+ position: relative;
+ .delimg {
+ position: absolute;
+ top: 10rpx;
+ right: 10rpx;
+ width: 40rpx;
+ height: 40rpx;
+ z-index: 999;
+ }
+
+ .itemimg {
+ width: 200rpx;
+ height: 200rpx;
+ }
+ }
+
+ .item {
+ display: inline-block;
+ margin-bottom: 20rpx;
+ width: 200rpx;
+ margin: 0 0 0 2%;
+ height: 212rpx;
+ border: 1rpx dashed #E6E6E6;
+ border-radius: 5rpx;
+ position: relative;
+
+ .title {
+ width: 100%;
+ font-size: 30rpx;
+ color: #969394;
+ line-height: 70rpx;
+ text-align:center;
+ position: absolute;
+ top: 58%;
+ }
+
+ image {
+ position: absolute;
+ left: 50%;
+ top: 20%;
+ transform: translateX(-50%);
+ width: 89rpx;
+ height: 68rpx;
+ }
+ }
+ }
+ .upload {
+ margin: 30rpx auto;
+ width: 650rpx;
+ height: 255rpx;
+ background: #FFFFFF;
+ border: 1px solid #E6E6E6;
+ border-radius: 5rpx;
+ color: #E6E6E6;
+ position: relative;
+ view{
+ width: 50%;
+ position: absolute;
+ top:50%;
+ left: 50%;
+ transform: translate(-50%,-50%);
+ }
+ }
}
}
}
+
+ .Commodity {
+ background-color: #F4F5F7;
+ height: 330rpx;
+ position: relative;
+
+ view {
+ text-align: center;
+ position: absolute;
+ top: 240rpx;
+ font-size: 26rpx;
+ width: 100%;
+ text-align: center;
+ }
+
+ .picture {
+ border: 4px solid #6DD8FC;
+ position: absolute;
+ left: 50%;
+ top: 50rpx;
+ transform: translateX(-50%);
+ width: 160rpx;
+ height: 160rpx;
+ border-radius: 50%;
+ }
+ }
}
\ No newline at end of file
diff --git a/pages/Modifyinformation/Modifyinformation.vue b/pages/Modifyinformation/Modifyinformation.vue
index 2963ceb..87172c8 100644
--- a/pages/Modifyinformation/Modifyinformation.vue
+++ b/pages/Modifyinformation/Modifyinformation.vue
@@ -1,72 +1,136 @@
-
-
- 头像
-
-
+
+
+
+
+ 点击编辑头像
+
+
- 姓名:
-
+ 姓名:
+
+ 性别:
+ {{appPersonallist.sex}}
+
+
+
+ 年龄:
+
+
+
- 电话:
-
+ 手机号:
+
+
+
+ 家庭住址:
+ {{appPersonallist.address}}
+
护理站:
- {{uitem.nurseStationName}}
- ,
+
+ {{uitem.nurseStationName}}
+ ,
+
+ 职称级别:
+
+ {{appPersonallist.positionalTitleLevelvalue}}
+
+
+
+ 擅长项目:
+
+
+
+
+
+ 证书上传:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 拍摄上传
+
+
+
+
-
- 注:只可修改姓名和头像
-
- 完成
-
-
+ 提交
+
+
-
+
+
diff --git a/pages/Mymission/Mymission.vue b/pages/Mymission/Mymission.vue
index bf5d6a9..e368bdf 100644
--- a/pages/Mymission/Mymission.vue
+++ b/pages/Mymission/Mymission.vue
@@ -1,182 +1,209 @@
-
-
-
+
+
+
+
+
+ 全部工单
+
+
+
+
+
+
+ 当前工单
+
+
+
+
+
+
+ 已完成工单
+
+
-
-
- {{item.name}}
-
-
-
- {{item.serviceDate}} {{item.serviceStartTime}}-{{item.serviceEndTime}}
- 待完成
+
+
+
+
+ {{item.nurseItemName}}
-
-
-
- {{item.nurseItemName}}
-
-
- 服务时长:{{item.itemServeDurationUnit}}
-
-
- ¥{{item.totalPrice}}
-
-
-
- 详情
- 去完成
+
+
+
+ + {{item.orderCommissionAmount}}
+
+
+ + 0
+
-
- {{item.serviceDate}} {{item.serviceStartTime}}-{{item.serviceEndTime}}
- 已完成
-
-
-
-
- {{item.nurseItemName}}
-
-
- 服务时长:{{item.itemServeDurationUnit}}
-
-
- ¥{{item.totalPrice}}
-
-
-
+
+
+
+ {{item.serviceDate}}
+ {{item.serviceStartTime}}
-
-
-
-
-
-
- 暂无待完成服务
+
+
+ {{item.serviceAddress}}
+
+
+
+ 导航
-
-
-
-
- 暂无已完成服务
+
+
+ 退回
+
+
+ 接单
+
+
+ 去完成
+
+
+
+
+
+
diff --git a/pages/confirmCompletion/confirmCompletion.vue b/pages/confirmCompletion/confirmCompletion.vue
index 0280440..a418df4 100644
--- a/pages/confirmCompletion/confirmCompletion.vue
+++ b/pages/confirmCompletion/confirmCompletion.vue
@@ -1,65 +1,111 @@
-
-
- 护理员到岗照片
-
-
-
- 拍摄照片
+
+
+
+
+ {{itemlist.nurseItemName}}
-
-
-
-
-
-
-
- 服务结束照片
-
-
-
- 拍摄照片
+
+
+ ¥{{itemlist.orderCommissionAmount}}
+
+
+ ¥ 0
+
+
+
+
+
+ 时间: {{itemlist.serviceDate}}
+ {{itemlist.serviceStartTime}}
+
+
+ 地点:{{itemlist.serviceAddress}}
-
-
-
-
- 用户签名确认
+
+
+
+
+ 资料上传
+
-
- 我确认已接受服务
+
+
+ 护理员到岗照片
+
+
+
+ 拍摄照片
+
+
+
+
-
-
-
- 点此签名
-
-
+
+
+
+ 服务结束照片
+
+
+
+ 拍摄照片
+
+
+
+
+
+
+
+ 用户签名
+
+
+
+
+
+ 点此签名
+
+
+
-
-
- 去完成
-
+
+ 完成
+
+
+
+ 是否确认完成当前工单?
+
+
+ 否
+
+
+ 是
+
+
+
-
+
+
+
@@ -77,15 +123,17 @@
},
data() {
return {
- show: false,
- orderNo: null,
+ itemlist: null, //信息list
+ finishshow: false, //是否完成
+ show: false, //签名
+ orderNo: null, //订单编号
onDutyPictureUrl: null,
serviceEndPictureUrl: null,
userSignaturePictureUrl: null,
list: {
res: {},
id: null,
- serviceLocationName:null,
+ serviceLocationName: null,
onDutyPictureUrl: null,
serviceEndPictureUrl: null,
userSignaturePictureUrl: null,
@@ -137,6 +185,7 @@
},
//完成
buyfinish() {
+ this.finishshow = true
if (this.serviceEndPictureUrl && this.userSignaturePictureUrl && this.onDutyPictureUrl) {
let that = this
uni.uploadFile({
@@ -170,6 +219,7 @@
success(res) {
that.list.onDutyPictureUrl = JSON.parse(res.data)
.imgUrl
+ that.list.orderNo = that.itemlist.orderNo
orderConfirm(that.list).then(res => {
if (res.code == 200) {
that.$refs.uToast.show({
@@ -208,8 +258,11 @@
},
},
onLoad(options) {
+ this.itemlist = JSON.parse(options.list)
this.list.id = options.orderDetailsId
- this.orderNo = options.orderNo
+ this.orderNo = this.itemlist.orderNo
+ },
+ onShow() {
var that = this
uni.getLocation({
type: 'gcj02',
@@ -248,101 +301,191 @@
})
}
});
- },
+ }
}
diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue
index 4100759..f2be809 100644
--- a/pages/homepage/homepage.vue
+++ b/pages/homepage/homepage.vue
@@ -1,88 +1,284 @@
-
-
-
-
- 我的任务
-
+
+
+
+
+ 立即处理
-
-
-
- 个人信息
+
+
+
+ {{selectOrderByNursePersonCountlist.notFinishCount}}项
+
+
+ 0项
+
+
+ 待处理
+
+
+
+
+ {{selectOrderByNursePersonCountlist.completeCount}}项
+
+
+ 0项
+
+
+ 已完成
+
+
+
+
+
+
+ 在线学习
+
+
+
+
+
+
+
+
+
+ 护理新闻
+
+
+ 查看更多
+
+
+
+
+
+
+ 护理 I 致力于打造专业护理人才
+
+
+ 生活小窍门,是指人们在日常生活中总结出来的知识和经验,和生活小常识非常相似
+
-
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 02eff99..69be368 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -36,7 +36,7 @@
checked: false,
phonenumber: '',
password: '',
- userId: '',
+ timer: null,
};
},
//获取到传值
@@ -50,21 +50,22 @@
login() {
var that = this
appLogin(this.phonenumber, this.password).then(res => {
- console.log(res)
if (res.code == 200) {
- uni.setStorageSync("phonenumber", that.phonenumber)
- uni.setStorageSync("password", that.password)
uni.setStorageSync("nursePersonId", res.data.nursePersonId)
+ uni.setStorageSync("phone", res.data.phone)
that.$refs.uToast.show({
title: '登录成功',
type: 'success',
duration: '1500'
})
- setTimeout(() => {
+ if (that.timer) {
+ clearTimeout(that.timer)
+ }
+ that.timer = setTimeout(e => {
uni.reLaunch({
url: '/pages/homepage/homepage',
})
- }, 1500);
+ }, 1500)
} else {
that.$refs.uToast.show({
title: res.msg,
diff --git a/pages/personal/personal.vue b/pages/personal/personal.vue
index 1f12b67..7df4d92 100644
--- a/pages/personal/personal.vue
+++ b/pages/personal/personal.vue
@@ -1,264 +1,343 @@
-
-
-
+
+
+
+
+
+ {{Personallist.nursePersonName}}
-
-
+
+ {{Personallist.phone}}
-
-
- {{appPersonallist.userName}}
+
+
+
-
+
+
修改信息
-
-
-
- 姓名:{{appPersonallist.nickName}}
-
-
- 电话:{{appPersonallist.phonenumber }}
-
-
- 护理站:
- {{uitem.nurseStationName}}
- ,
-
-
-
- 退出账号
+
+
+
+ 登录
-
-
+
+
+
+
+ 离线
+
+
+
+
+
+
+
+ 我的收益
+
+
+
+
+
+ 我的学习
+
+
+
+
+
+ 我的考试
+
+
+
+
+
+ 退出账号
+
+
+
-
diff --git a/pages/signature/signature.vue b/pages/signature/signature.vue
index d8d66d8..5a97667 100644
--- a/pages/signature/signature.vue
+++ b/pages/signature/signature.vue
@@ -1,15 +1,13 @@
-
-
+
+
-
-
diff --git a/pages/study/study.vue b/pages/study/study.vue
new file mode 100644
index 0000000..78c38d4
--- /dev/null
+++ b/pages/study/study.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+ 敬请期待
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/taskDetails/taskDetails.scss b/pages/taskDetails/taskDetails.scss
index 287d302..9ed5bca 100644
--- a/pages/taskDetails/taskDetails.scss
+++ b/pages/taskDetails/taskDetails.scss
@@ -1,120 +1,107 @@
-.app {
- padding: 0;
- height: 100vh;
- padding: 3%;
- .img{
- line-height: 90rpx;
- view{
- font-size: 32rpx;
- padding: 20rpx 0;
- }
- image{
- width: 100%;
- height: 700rpx;
- }
- }
- .details {
- width: 100%;
- height: 250rpx;
- background: #FFFFFF;
+ .app {
+ .btnsuccess,
+ .btnreturn {
+ width: 496rpx;
+ height: 70rpx;
+ border-radius: 5rpx;
+ text-align: center;
+ line-height: 70rpx;
+ font-size: 32rpx;
+ }
+
+ .btnsuccess {
+ margin: 100rpx auto 0;
+ background: #4271B9;
+ color: #fff;
+ }
+
+ .btnreturn {
+ margin: 25rpx auto 0;
+ color: #4271B9;
+ border: 1px solid #4271B9;
+ }
+
+ .top {
+ padding-bottom: 40rpx;
+ background-color: #fff;
+ width: 96%;
+ margin: 15rpx auto 0;
+ color: #333333;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
- border-radius: 20rpx;
- margin: 0 auto;
- position: relative;
+ border-radius: 5rpx;
- image {
- width: 170rpx;
- height: 170rpx;
- border-radius: 10rpx;
- margin: 20rpx 0 0 30rpx;
- }
+ .content {
+ padding: 0 50rpx;
+ font-size: 30rpx;
- .detailsinfo {
- width: 60%;
- height: 200rpx;
- border-radius: 10rpx;
- position: absolute;
- top: 12%;
- left: 35%;
-
- .change {
- width: 100%;
- color: #000000;
- font-size: 34rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+ .item {
+ line-height: 60rpx;
}
.time {
- width: 100%;
- font-size: 32rpx;
- color: #999999;
- position: absolute;
- top: 32%;
+ line-height: 90rpx;
}
- .price {
- width: 100%;
- font-size: 30rpx;
- color: #D43953;
- position: absolute;
- top: 65%;
+ .address {
+ position: relative;
+ line-height: 45rpx;
+ .text {
+ width: 80%;
+ }
+
+ .daohang {
+ position: absolute;
+ top: 50%;
+ transform: translateY(-50%);
+ right: 10rpx;
+ display: inline-block;
+ width: 100rpx;
+ }
+
+ .p {
+ padding-left: 30rpx;
+ font-size: 24rpx;
+ color: #EA706A;
+ }
+
+ image {
+ position: absolute;
+ top: 50%;
+ left: 0rpx;
+ transform: translateY(-40%);
+ width: 25rpx;
+ height: 25rpx;
+ }
}
}
}
- .info {
- width: 100%;
- background: #FFFFFF;
- box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
- border-radius: 20rpx;
- position: relative;
- top: 20rpx;
-
-
- .item {
- line-height: 110rpx;
- border-bottom: 1rpx solid #D8D4D4;
- font-size: 32rpx;
- color: #000000;
- margin-left: 30rpx;
- }
- }
-
- .submit {
- width: 100%;
+ .title {
+ border-bottom: 1rpx solid #E6E6E6;
+ display: flex;
height: 100rpx;
- height: 68rpx;
- font-size: 32rpx;
- color: #FFFFFF;
- text-align: center;
- position: fixed;
- bottom: 80rpx;
- // background-color: red;
- left: 15%;
- // padding: 20rpx;
-
- .return {
- width: 216rpx;
- height: 68rpx;
- background: #E1AE3C;
- border-radius: 26rpx;
- line-height: 68rpx;
- display: inline-block;
-
-
+ line-height: 100rpx;
+ width: 100%;
+ position: relative;
+ .righttext{
+ position: absolute;
+ right:20rpx;
+ top:50%;
+ transform: translateY(-50%);
+ font-size: 34rpx;
+ color: #EA706A;
+ }
+ .text {
+ font-size: 34rpx;
+ line-height: 100rpx;
+ padding-left: 18rpx;
}
- .finish {
- width: 217rpx;
- height: 68rpx;
- line-height: 68rpx;
- background: #4C7BC9;
- border-radius: 26rpx;
- display: inline-block;
- margin-left: 30rpx;
-
+ image {
+ margin: 50rpx 0 0 35rpx;
+ transform: translateY(-50%);
+ width: 40rpx;
+ height: 40rpx;
}
}
}
\ No newline at end of file
diff --git a/pages/taskDetails/taskDetails.vue b/pages/taskDetails/taskDetails.vue
index 931f3dd..ca875d7 100644
--- a/pages/taskDetails/taskDetails.vue
+++ b/pages/taskDetails/taskDetails.vue
@@ -1,96 +1,187 @@
-
-
-
-
-
+
+
+
+
+
{{list.nurseItemName}}
+
+
+ ¥{{list.orderCommissionAmount}}
+
+
+ ¥ 0
+
+
+
+
+
+ 单号:
+ {{list.orderNo}}
+
- 服务时长: {{list.itemServeDurationUnit}}
+ 时间:{{list.serviceDate}}
+ {{list.serviceStartTime}}
-
- ¥ {{list.totalPrice}}
+
+ 地点:{{list.serviceAddress}}
-
-
- 姓名: {{list.patientName}}
+
+
+
+
+ 用户信息
+
-
- 电话:{{list.phone}}
-
-
- 地址:{{list.serviceAddress}}
+
+
+ 姓名:
+ {{list.patientName}}
+
+
+ 年龄:{{list.age}}
+ {{list.age}}
+
+
+ 电话:
+ {{list.phone}}
+
+
+
+ 住址:
+ {{list.address}}
+
+
+
+ 导航
+
+
+
+ 是否失能:{{list.disablingCondition=="NOT_DISABLED"?'未失能':''}}
+ {{list.disablingCondition=="DISABLED"?'已失能':''}}
+
+
+ 失能情况:
+ {{list.disablingReason}}
+
-
-
- 护理员到岗照片
-
-
-
-
-
- 服务结束照片
-
-
-
-
-
- 签名
-
-
-
-
-
- 任务退回
-
-
+
+
去完成
-
+
+ 接单
+
+
+ 退回
+
+
+
diff --git a/pages/taskReturn/taskReturn.vue b/pages/taskReturn/taskReturn.vue
index 47849ea..975051a 100644
--- a/pages/taskReturn/taskReturn.vue
+++ b/pages/taskReturn/taskReturn.vue
@@ -1,98 +1,235 @@
-
-
-
- 退回原因
+
+
+
+
+
+ {{tasklist.nurseItemName}}
+
+
+
+ ¥{{tasklist.orderCommissionAmount}}
+
+
+ ¥ 0
+
+
-
-
+
+
+ 单号:
+ {{tasklist.orderNo}}
+
+
+ 时间:{{tasklist.serviceDate}}
+ {{tasklist.serviceStartTime}}
+
+
+ 地点:{{tasklist.serviceAddress}}
+
-
-
- 确定
+
+
+
+
+ 拒绝原因(多选)
+
+
+
+ {{item.name}}
+
+
+
+
+
+ 立即提交
diff --git a/pages/upicker/u-picker.vue b/pages/upicker/u-picker.vue
new file mode 100644
index 0000000..d0277a6
--- /dev/null
+++ b/pages/upicker/u-picker.vue
@@ -0,0 +1,695 @@
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+ {{ item.label }}
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ {{ item }}
+ 年
+
+
+
+
+ {{ formatNumber(item) }}
+ 月
+
+
+
+
+ {{ formatNumber(item) }}
+ 日
+
+
+
+
+ {{ formatNumber(item) }}
+ 时
+
+
+
+
+ {{ formatNumber(item) }}
+ 分
+
+
+
+
+ {{ formatNumber(item) }}
+ 秒
+
+
+
+
+
+
+ {{ getItemValue(item, 'selector') }}
+
+
+
+
+
+
+ {{ getItemValue(item1, 'multiSelector') }}
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
diff --git a/pages/v-sign/changelog.md b/pages/v-sign/changelog.md
new file mode 100644
index 0000000..17deb52
--- /dev/null
+++ b/pages/v-sign/changelog.md
@@ -0,0 +1,48 @@
+## 0.5.2(2022-06-10)
+- canvas 默认设置 disable-scroll 属性为true, 当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新
+## 0.5.1(2022-05-27)
+- 取消属性 width, height 默认值
+## 0.5.0(2022-05-27)
+- 新增 v-sgin 组件获取坐标信息数组方法 `getLineData`
+- 新增 v-sign 组件事件触发 @clear, @revoke, @end
+- 修复撤销操作重设背景色导致线条消失问题
+## 0.4.0(2022-05-15)
+- 新增属性 bgColor 设置画布背景色,修复导出图片无背景色问题
+## 0.3.4(2022-03-30)
+修复 v-sign-action 子组件 svg 加载报错
+## 0.3.3(2022-03-30)
+修复 v-sign-action 子组件 svg 加载报错
+## 0.3.2(2022-01-12)
+- 修复多组件共存绘制问题
+## 0.3.1(2021-12-14)
+- 【新增】保存 png 图片方法 saveImage;
+- 【修改】 控件子组件保存按钮动作由保存为临时文件路径改为保存图片
+## 0.3.0(2021-12-11)
+- 添加颜色选择器组件
+## 0.2.0(2021-12-10)
+- 修改为 uni_modules 规范
+## 0.1.7 (2021-12-09)
+
+- 画笔组件优化
+
+## 0.1.6 (2021-12-08)
+
+- 画笔样式优化
+
+## 0.1.5 (2021-12-08)
+
+- 画笔子组件样式修改,支持circle、line 两种样式
+
+## 0.1.4 (2021-12-08)
+
+- 添加画笔子组件
+
+## 0.1.3 (2021-12-02)
+
+- 添加按钮控件子组件
+
+## 0.1.0 (2021-11-28)
+
+- 支持线宽、颜色自定义,自定义画布样式
+- 支持画布清空、撤回、保存图片
+- 事件 init 暴露清空、撤回、保存图片方法
\ No newline at end of file
diff --git a/pages/v-sign/components/v-sign-action/v-sign-action.vue b/pages/v-sign/components/v-sign-action/v-sign-action.vue
new file mode 100644
index 0000000..06984d0
--- /dev/null
+++ b/pages/v-sign/components/v-sign-action/v-sign-action.vue
@@ -0,0 +1,165 @@
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
diff --git a/pages/v-sign/components/v-sign-color/v-sign-color.vue b/pages/v-sign/components/v-sign-color/v-sign-color.vue
new file mode 100644
index 0000000..f335349
--- /dev/null
+++ b/pages/v-sign/components/v-sign-color/v-sign-color.vue
@@ -0,0 +1,212 @@
+
+
+
+
+
+ {{ tick && currentIndex === index ? '✓' : '' }}
+
+
+
+
+
+
+
+
+
diff --git a/pages/v-sign/components/v-sign-pen/v-sign-pen.vue b/pages/v-sign/components/v-sign-pen/v-sign-pen.vue
new file mode 100644
index 0000000..41786a3
--- /dev/null
+++ b/pages/v-sign/components/v-sign-pen/v-sign-pen.vue
@@ -0,0 +1,215 @@
+
+
+ {{ label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/v-sign/components/v-sign/v-sign.vue b/pages/v-sign/components/v-sign/v-sign.vue
new file mode 100644
index 0000000..3377e64
--- /dev/null
+++ b/pages/v-sign/components/v-sign/v-sign.vue
@@ -0,0 +1,314 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/v-sign/package.json b/pages/v-sign/package.json
new file mode 100644
index 0000000..e78eb3d
--- /dev/null
+++ b/pages/v-sign/package.json
@@ -0,0 +1,83 @@
+{
+ "id": "v-sign",
+ "displayName": "canvas 手写 签名 签字 画板组件",
+ "version": "0.5.2",
+ "description": "基于 canvas 实现;1. 支持线条、背景色自定义样式;2. 支持撤回、清空、导出图片等功能;3. 内置按钮、画笔等子组件。",
+ "keywords": [
+ "canvas",
+ "签名",
+ "签字",
+ "电子签名",
+ "signature"
+],
+ "repository": "https://github.com/jizai1125/v-sign",
+"engines": {
+ },
+ "dcloudext": {
+ "category": [
+ "前端组件",
+ "通用组件"
+ ],
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "插件不采集任何数据",
+ "permissions": "无"
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "Vue": {
+ "vue2": "y",
+ "vue3": "n"
+ },
+ "App": {
+ "app-vue": "u",
+ "app-nvue": "u"
+ },
+ "H5-mobile": {
+ "Safari": "y",
+ "Android Browser": "y",
+ "微信浏览器(Android)": "y",
+ "QQ浏览器(Android)": "y"
+ },
+ "H5-pc": {
+ "Chrome": "y",
+ "IE": "y",
+ "Edge": "y",
+ "Firefox": "y",
+ "Safari": "y"
+ },
+ "小程序": {
+ "微信": "y",
+ "阿里": "y",
+ "百度": "y",
+ "字节跳动": "y",
+ "QQ": "y"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/pages/v-sign/readme.md b/pages/v-sign/readme.md
new file mode 100644
index 0000000..696e33d
--- /dev/null
+++ b/pages/v-sign/readme.md
@@ -0,0 +1,245 @@
+# v-sign 手写签名
+
+**如有问题或者建议,欢迎留言或加群联系我(群号:736123963)!!!将保持维护!!!**
+
+
+
+## 快速使用
+
+基础示例,具体说明见下方 API,**若需要使用内置子组件,见下方子组件说明。**
+
+```html
+
+
+
+
+```
+
+## API
+
+### 属性 (Props)
+
+| 属性名 | 类型 | 默认值 | 说明 |
+| :---------: | :-----------: | :-----------: | :--------------------------: |
+| cid | String | v-sign-时间戳 | canvas id |
+| width | String/Number | - | canvas 宽度,Number 单位 rpx |
+| height | String/Number | - | canvas 高度,Number 单位 rpx |
+| customStyle | Object | - | canvas 自定义样式 |
+| lineWidth | Number | 4 | 线宽,单位 px |
+| lineColor | String | #333 | 线颜色 |
+| bgColor | String | #fff | 画布背景颜色 |
+
+### 事件(Events)
+
+| 事件称名 | 说明 | 返回值 |
+| :------: | :------------------------------------------------------------: | :--------------------------------: |
+| @init | 创建完 canvas 实例后触发,向外提供 canvas 实例,撤回,清空方法 | Object:具体见下方事件回调参数说明 |
+| @clear | 清空画布后触发 | - |
+| @revoke | 撤销操作后触发 | 坐标信息数组 |
+| @end | 每次绘制结束后触发 | 坐标信息数组 |
+
+### 事件回调参数说明
+
+#### **`init(ctx: SignContext)`**
+
+可以通过该事件回调暴露的 clear、revoke 等方法操作画布。
+
+```java
+interface SignContext {
+ // canvas 实例
+ ctx: object;
+ // 清空画布
+ clear(): void;
+ // 撤回
+ revoke(): void;
+ // 保存 png 图片,文件名 filename 配置仅支持 h5
+ saveImage(filename: string): Promise