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