完善功能
This commit is contained in:
@ -28,16 +28,30 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 子女 -->
|
||||
<!-- 子女1 -->
|
||||
<view v-if="id == 3 || id == 4"
|
||||
@click="handleTakePhoto('child')"
|
||||
@click="handleTakePhoto('child1')"
|
||||
class="photo-item" style="display: flex; align-items: center; justify-content: space-between; padding: 30rpx; background-color: #ffffff; border-radius: 12rpx; margin: 20rpx;">
|
||||
<view style="display: flex; align-items: center;">
|
||||
<image src="https://xh.stnav.com/uploads/sport/face2.png" style="width: 90rpx; height: 90rpx; margin-right: 20rpx;"></image>
|
||||
<view>子女录入</view>
|
||||
<view>子女1录入</view>
|
||||
</view>
|
||||
<view style="display: flex; align-items: center;">
|
||||
<text style="color: #666; font-size: 28rpx; margin-right: 10rpx;">{{ childFace ? '已录入' : '去录入' }}</text>
|
||||
<text style="color: #666; font-size: 28rpx; margin-right: 10rpx;">{{ child1Face ? '已录入' : '去录入' }}</text>
|
||||
<image src="/static/icon/right.png" style="width: 32rpx; height: 32rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 子女2 -->
|
||||
<view v-if="id == 4"
|
||||
@click="handleTakePhoto('child2')"
|
||||
class="photo-item" style="display: flex; align-items: center; justify-content: space-between; padding: 30rpx; background-color: #ffffff; border-radius: 12rpx; margin: 20rpx;">
|
||||
<view style="display: flex; align-items: center;">
|
||||
<image src="https://xh.stnav.com/uploads/sport/face2.png" style="width: 90rpx; height: 90rpx; margin-right: 20rpx;"></image>
|
||||
<view>子女2录入</view>
|
||||
</view>
|
||||
<view style="display: flex; align-items: center;">
|
||||
<text style="color: #666; font-size: 28rpx; margin-right: 10rpx;">{{ child2Face ? '已录入' : '去录入' }}</text>
|
||||
<image src="/static/icon/right.png" style="width: 32rpx; height: 32rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
@ -57,7 +71,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 亲子卡2 -->
|
||||
<view v-if="id == 4"
|
||||
<view v-if="id == 3 || id == 4"
|
||||
@click="handleTakePhoto('parent2')"
|
||||
class="photo-item" style="display: flex; align-items: center; justify-content: space-between; padding: 30rpx; background-color: #ffffff; border-radius: 12rpx; margin: 20rpx;">
|
||||
<view style="display: flex; align-items: center;">
|
||||
@ -80,7 +94,8 @@
|
||||
order_id: 0,
|
||||
youthFace: '',
|
||||
adultFace: '',
|
||||
childFace: '',
|
||||
child1Face: '',
|
||||
child2Face: '',
|
||||
parent1Face: '',
|
||||
parent2Face: '',
|
||||
}
|
||||
@ -103,7 +118,14 @@
|
||||
if (result.data && result.data.face_url) {
|
||||
self.youthFace = result.data.face_url;
|
||||
self.adultFace = result.data.face_url;
|
||||
self.childFace = result.data.face_url;
|
||||
}
|
||||
|
||||
if (result.data && result.data.face_url) {
|
||||
self.child1Face = result.data.face_url;
|
||||
}
|
||||
|
||||
if (result.data && result.data.face_url1) {
|
||||
self.child2Face = result.data.face_url1;
|
||||
}
|
||||
|
||||
if (result.data && result.data.parent.length > 0) {
|
||||
@ -135,9 +157,16 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
if (type === 'child' && this.childFace) {
|
||||
if (type === 'child1' && this.child1Face) {
|
||||
uni.previewImage({
|
||||
urls: [this.childFace]
|
||||
urls: [this.child1Face]
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
if (type === 'child2' && this.child2Face) {
|
||||
uni.previewImage({
|
||||
urls: [this.child2Face]
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user