This commit is contained in:
曹辉 2022-11-10 11:42:23 +08:00
parent f33b63b567
commit a2a2bea165
2 changed files with 21 additions and 20 deletions

View File

@ -46,9 +46,9 @@
{{item.totalPrice}}
</view>
</view>
<view class="anniu">
<!-- <view class="anniu">
<view class="evaluate">查看评价</view>
</view>
</view> -->
</view>
</view>
</view>

View File

@ -5,10 +5,10 @@
护理员到岗照片
</view>
<view class="uppicture" @tap='uploadonDutyPictureUrl'>
<view class="choice" v-if="!list.onDutyPictureUrl">
<view class="choice" v-if="!onDutyPictureUrl">
选择图片
</view>
<image v-else :src="list.onDutyPictureUrl" mode=""></image>
<image v-else :src="onDutyPictureUrl" mode=""></image>
<!-- <u-upload class="slot-btn" width="530" height="130" ></u-upload> -->
</view>
</view>
@ -29,10 +29,10 @@
服务结束照片
</view>
<view class="uppicture" @tap='uploadserviceEndPictureUrl'>
<view class="choice" v-if="!list.serviceEndPictureUrl">
<view class="choice" v-if="!serviceEndPictureUrl">
选择图片
</view>
<image v-else :src="list.serviceEndPictureUrl" mode=""></image>
<image v-else :src="serviceEndPictureUrl" mode=""></image>
<!-- <u-upload class="slot-btn" width="530" height="130" ></u-upload> -->
</view>
</view>
@ -44,11 +44,11 @@
我确认已接受服务
</view>
<view class="uppicture" @tap='show=true'>
<image v-if="!list.userSignaturePictureUrl" style="width: 36rpx;height: 36rpx;margin:8% 0 0 35%"
<image v-if="!userSignaturePictureUrl" style="width: 36rpx;height: 36rpx;margin:8% 0 0 35%"
src="../../static/autograph.png" mode="">
</image>
<span v-if="!list.userSignaturePictureUrl">点此签名</span>
<image v-else :src="list.userSignaturePictureUrl" mode=""></image>
<span v-if="!userSignaturePictureUrl">点此签名</span>
<image v-else :src="userSignaturePictureUrl" mode=""></image>
<!-- <u-upload class="slot-btn" :action="action" :file-list="fileList" width="620" height="130"></u-upload> -->
</view>
</view>
@ -58,7 +58,7 @@
</view>
</view>
<u-mask :show="show" @click="show = false">
<signature @userSignaturePictureUrl='userSignaturePictureUrl' @click.native.stop
<signature @userSignaturePictureUrl='userSignaturePicture' @click.native.stop
style='position:absolute;bottom:0%;width: 100%;height: 800rpx;'></signature>
</u-mask>
<u-toast ref="uToast" />
@ -79,6 +79,9 @@
return {
show: false,
orderNo: null,
onDutyPictureUrl: null,
serviceEndPictureUrl: null,
userSignaturePictureUrl: null,
list: {
id: null,
onDutyPictureUrl: null,
@ -89,10 +92,8 @@
},
methods: {
//
userSignaturePictureUrl(data) {
var that = this
this.list.userSignaturePictureUrl = data
let blob = this.dataURLtoBlob(data);
userSignaturePicture(data) {
this.userSignaturePictureUrl = data
this.show = false
},
// /base64
@ -117,7 +118,7 @@
sizeType: ['original'],
sourceType: ['album'],
success(res) {
that.list.serviceEndPictureUrl = res.tempFilePaths[0]
that.serviceEndPictureUrl = res.tempFilePaths[0]
}
})
},
@ -128,7 +129,7 @@
sizeType: ['original'],
sourceType: ['album'],
success(res) {
that.list.onDutyPictureUrl = res.tempFilePaths[0]
that.onDutyPictureUrl = res.tempFilePaths[0]
}
})
},
@ -137,7 +138,7 @@
let that = this
uni.uploadFile({
url: baseurl + '/nurseApplet/uploadFile/uploadPictureUrl',
filePath: that.list.serviceEndPictureUrl,
filePath: that.serviceEndPictureUrl,
name: 'file',
formData: {
'orderNo': that.orderNo
@ -147,7 +148,7 @@
that.list.serviceEndPictureUrl = JSON.parse(res.data).imgUrl
uni.uploadFile({
url: baseurl + '/nurseApplet/uploadFile/uploadPictureUrl',
filePath: that.list.userSignaturePictureUrl,
filePath: that.userSignaturePictureUrl,
name: 'file',
formData: {
'orderNo': that.orderNo
@ -157,7 +158,7 @@
that.list.userSignaturePictureUrl = JSON.parse(res.data).imgUrl
uni.uploadFile({
url: baseurl + '/nurseApplet/uploadFile/uploadPictureUrl',
filePath: that.list.onDutyPictureUrl,
filePath: that.onDutyPictureUrl,
name: 'file',
formData: {
'orderNo': that.orderNo
@ -165,7 +166,7 @@
timeout: 5000,
success(res) {
that.list.onDutyPictureUrl = JSON.parse(res.data).imgUrl
orderConfirm(this.list).then(res => {
orderConfirm(that.list).then(res => {
if (res.code == 200) {
that.$refs.uToast.show({
title: '服务完成',