修改
This commit is contained in:
parent
32821c9704
commit
c61114b4e2
@ -14,29 +14,8 @@ var request = function(config) {
|
||||
// token: uni.getStorageSync('token')
|
||||
// },
|
||||
success(res) {
|
||||
// if (res.data.code == 20002) {
|
||||
// uni.showModal({
|
||||
// title: "登录提示",
|
||||
// content: res.data.message,
|
||||
// success(res1) {
|
||||
// if (res1.confirm) {
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/user/login/login'
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// } else {
|
||||
// if (res.data.success) {
|
||||
uni.hideLoading();
|
||||
resolve(res.data)
|
||||
// } else {
|
||||
// uni.showToast({
|
||||
// title: res.data.message,
|
||||
// icon: "none"
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
},
|
||||
fail(err) {
|
||||
uni.hideLoading();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name" : "NurseStationPersonApp",
|
||||
"name" : "泉医到家护理员APP",
|
||||
"appid" : "__UNI__EE607B0",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.0",
|
||||
@ -41,9 +41,13 @@
|
||||
]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios" : {},
|
||||
"ios" : {
|
||||
"dSYMs" : false
|
||||
},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs" : {},
|
||||
"sdkConfigs" : {
|
||||
"ad" : {}
|
||||
},
|
||||
"icons" : {
|
||||
"android" : {
|
||||
"hdpi" : "unpackage/res/icons/72x72.png",
|
||||
|
||||
@ -4,11 +4,13 @@
|
||||
height: 100vh;
|
||||
color: #000000;
|
||||
padding: 3%;
|
||||
font-size: 36rpx;
|
||||
|
||||
font-size: 34rpx;
|
||||
.title{
|
||||
font-size: 28rpx;
|
||||
margin: 20rpx 20rpx 0;
|
||||
}
|
||||
.finish {
|
||||
width: 217rpx;
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
height: 68rpx;
|
||||
line-height: 68rpx;
|
||||
@ -26,11 +28,9 @@
|
||||
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
||||
border-radius: 20rpx;
|
||||
margin: 0 auto;
|
||||
|
||||
|
||||
padding-bottom: 10rpx;
|
||||
.content {
|
||||
line-height: 100rpx;
|
||||
|
||||
.name {
|
||||
margin-left: 20rpx;
|
||||
height: 100rpx;
|
||||
@ -50,7 +50,7 @@
|
||||
line-height: 100rpx;
|
||||
display: inline-block;
|
||||
width: 80%;
|
||||
font-size: 36rpx;
|
||||
font-size: 34rpx;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,24 +7,28 @@
|
||||
<image class="pictureA" src="../../static/jiantou.png" mode=""></image>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="name">
|
||||
<span class="">
|
||||
昵称:
|
||||
</span>
|
||||
<input type="text" maxlength="10" placeholder="请填写" v-model="appPersonallist.userName" />
|
||||
</view>
|
||||
<view class="name">
|
||||
<span>姓名:</span>
|
||||
<input type="text" maxlength="10" placeholder="请输入" v-model="appPersonallist.nickName" />
|
||||
</view>
|
||||
<!-- <view class="name">
|
||||
<span>电话:</span>
|
||||
<input type="text" maxlength="11" placeholder="请输入" v-model="appPersonallist.phonenumber" />
|
||||
</view> -->
|
||||
<!-- <view class="nursetype name" style="border: none;" @tap='show=true'>
|
||||
护理站:{{getNurseStationName(appPersonallist)}}
|
||||
</view> -->
|
||||
<view class="name">
|
||||
<span class="">
|
||||
账号:
|
||||
</span>
|
||||
<input type="text" disabled maxlength="10" placeholder="请填写" v-model="appPersonallist.userName" />
|
||||
</view>
|
||||
<view class="name">
|
||||
<span>电话:</span>
|
||||
<input disabled type="text" maxlength="11" placeholder="请输入"
|
||||
v-model="appPersonallist.phonenumber" />
|
||||
</view>
|
||||
<view class="nursetype name" style="border: none;line-height: 50rpx;margin: 20rpx 20rpx;">
|
||||
护理站:{{getNurseStationName(appPersonallist)}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="title">
|
||||
注:只可修改姓名和头像
|
||||
</view>
|
||||
<view class="finish" @tap="gofinish()">完成
|
||||
</view>
|
||||
@ -88,12 +92,11 @@
|
||||
var that = this;
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ['original'],
|
||||
sourceType: ['album'],
|
||||
success(res) {
|
||||
that.appPersonallist.avatar = res.tempFilePaths[0]
|
||||
that.img = res.tempFilePaths[0]
|
||||
that.image = res.tempFilePaths[0]
|
||||
that.image = true
|
||||
}
|
||||
})
|
||||
},
|
||||
@ -108,11 +111,14 @@
|
||||
if (this.image) {
|
||||
uni.uploadFile({
|
||||
url: baseurl + '/nurseApp/personLogin/updateHeadAvatarHead',
|
||||
filePath: that.image, //file: 二进制(filePath)
|
||||
filePath: that.img, //file: 二进制(filePath)
|
||||
name: 'file',
|
||||
formData: { //多余值
|
||||
'userId': that.appPersonallist.userId,
|
||||
},
|
||||
header: {
|
||||
'content-type': 'multipart/form-data'
|
||||
},
|
||||
timeout: 5000,
|
||||
success(res) {
|
||||
that.appPersonallist.avatar = JSON.parse(res.data).imgUrl
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
</view>
|
||||
<view class="uppicture" @tap='uploadonDutyPictureUrl'>
|
||||
<view class="choice" v-if="!onDutyPictureUrl">
|
||||
选择图片
|
||||
拍摄照片
|
||||
</view>
|
||||
<image v-else :src="onDutyPictureUrl" mode=""></image>
|
||||
<!-- <u-upload class="slot-btn" width="530" height="130" ></u-upload> -->
|
||||
@ -30,13 +30,13 @@
|
||||
</view>
|
||||
<view class="uppicture" @tap='uploadserviceEndPictureUrl'>
|
||||
<view class="choice" v-if="!serviceEndPictureUrl">
|
||||
选择图片
|
||||
拍摄照片
|
||||
</view>
|
||||
<image v-else :src="serviceEndPictureUrl" mode=""></image>
|
||||
<!-- <u-upload class="slot-btn" width="530" height="130" ></u-upload> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="picture" style="height: 350rpx;">
|
||||
<view class="picture" style="height: 730rpx;">
|
||||
<view class="attendantImg" style="border-bottom: 1rpx solid #BAB7B8;">
|
||||
用户签名确认
|
||||
</view>
|
||||
@ -115,8 +115,7 @@
|
||||
var that = this;
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ['original'],
|
||||
sourceType: ['album'],
|
||||
sourceType: ['camera'],
|
||||
success(res) {
|
||||
that.serviceEndPictureUrl = res.tempFilePaths[0]
|
||||
}
|
||||
@ -126,8 +125,7 @@
|
||||
var that = this;
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
sizeType: ['original'],
|
||||
sourceType: ['album'],
|
||||
sourceType: ['camera'],
|
||||
success(res) {
|
||||
that.onDutyPictureUrl = res.tempFilePaths[0]
|
||||
}
|
||||
@ -135,6 +133,7 @@
|
||||
},
|
||||
//完成
|
||||
buyfinish() {
|
||||
if (this.serviceEndPictureUrl && this.userSignaturePictureUrl && this.onDutyPictureUrl) {
|
||||
let that = this
|
||||
uni.uploadFile({
|
||||
url: baseurl + '/nurseApplet/uploadFile/uploadPictureUrl',
|
||||
@ -165,7 +164,8 @@
|
||||
},
|
||||
timeout: 5000,
|
||||
success(res) {
|
||||
that.list.onDutyPictureUrl = JSON.parse(res.data).imgUrl
|
||||
that.list.onDutyPictureUrl = JSON.parse(res.data)
|
||||
.imgUrl
|
||||
orderConfirm(that.list).then(res => {
|
||||
if (res.code == 200) {
|
||||
that.$refs.uToast.show({
|
||||
@ -191,6 +191,13 @@
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '请上传全部照片并用户签名确认',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
onLoad(options) {
|
||||
@ -202,20 +209,16 @@
|
||||
|
||||
<style lang="scss">
|
||||
.app {
|
||||
// height: 100%;
|
||||
padding: 3%;
|
||||
font-size: 36rpx;
|
||||
height: 100vh;
|
||||
background-image: linear-gradient(to bottom, #F4F5F7, #ffffff);
|
||||
|
||||
.picture {
|
||||
width: 95%;
|
||||
height: 272rpx;
|
||||
height: 630rpx;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
||||
border-radius: 20px;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 20rpx;
|
||||
margin: 20rpx auto 0;
|
||||
|
||||
.attendantImg {
|
||||
color: #000000;
|
||||
@ -231,13 +234,13 @@
|
||||
.uppicture {
|
||||
border: 1rpx dashed #818181;
|
||||
width: 90%;
|
||||
height: 150rpx;
|
||||
height: 500rpx;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 150rpx;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.choice {
|
||||
@ -280,6 +283,7 @@
|
||||
}
|
||||
|
||||
.submit {
|
||||
width: 32%;
|
||||
height: 68rpx;
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
@ -287,13 +291,12 @@
|
||||
margin-left: 60%;
|
||||
|
||||
.finish {
|
||||
width: 217rpx;
|
||||
width: 100%;
|
||||
height: 68rpx;
|
||||
line-height: 68rpx;
|
||||
background: #4C7BC9;
|
||||
border-radius: 26rpx;
|
||||
margin-left: 30rpx;
|
||||
|
||||
margin-top: 100rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
<view class="item">
|
||||
电话:{{appPersonallist.phonenumber }}
|
||||
</view>
|
||||
<view class="item" style="border:none;border-radius:0 0 20rpx 20rpx;"
|
||||
<view class="item" style="border:none;border-radius:0 0 20rpx 20rpx;line-height:50rpx;padding: 20rpx 3%;"
|
||||
v-if="appPersonallist.nurseStationSysUserVOList">
|
||||
护理站: {{appPersonallist.nurseStationSysUserVOList[0].nurseStationName}}
|
||||
</view>
|
||||
@ -133,7 +133,7 @@
|
||||
<style lang="scss">
|
||||
.app {
|
||||
padding: 0;
|
||||
font-size: 35rpx;
|
||||
font-size: 32rpx;
|
||||
height: 100vh;
|
||||
|
||||
.signout {
|
||||
|
||||
@ -25,19 +25,19 @@
|
||||
地址:{{list.serviceAddress}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="img" v-if="list.COMPLETE=='COMPLETE'">
|
||||
<view class="img" v-if="list.orderStatus=='COMPLETE'">
|
||||
<view class="">
|
||||
护理员到岗照片
|
||||
</view>
|
||||
<image :src="baseurl+list.onDutyPictureUrl" mode=""></image>
|
||||
</view>
|
||||
<view class="img" v-if="list.COMPLETE=='COMPLETE'">
|
||||
<view class="img" v-if="list.orderStatus=='COMPLETE'">
|
||||
<view class="" >
|
||||
服务结束照片
|
||||
</view>
|
||||
<image :src="baseurl+list.serviceEndPictureUrl" mode=""></image>
|
||||
</view>
|
||||
<view class="img" v-if="list.COMPLETE=='COMPLETE'">
|
||||
<view class="img" v-if="list.orderStatus=='COMPLETE'">
|
||||
<view class="">
|
||||
签名
|
||||
</view>
|
||||
|
||||
BIN
static/1024.png
BIN
static/1024.png
Binary file not shown.
|
Before Width: | Height: | Size: 180 KiB After Width: | Height: | Size: 121 KiB |
Loading…
Reference in New Issue
Block a user