添加人脸识别
This commit is contained in:
@ -133,6 +133,11 @@
|
||||
|
||||
<block v-if="item.order_status >= 2">
|
||||
<button class="theme-btn del-btn" @click="onDelOrder(item.id)">删除订单</button>
|
||||
</block>
|
||||
|
||||
<!-- 在篮球场下且订单是已预约有个人脸录入 -->
|
||||
<block v-if="item.order_status == 1 && ballType == 2 && item.face_status == 0">
|
||||
<button class="theme-btn pay-btn" @click="onTakePhoto(item.id)">人脸录入</button>
|
||||
</block>
|
||||
</block>
|
||||
</view>
|
||||
@ -251,6 +256,10 @@
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
if (e.type) {
|
||||
this.ballType = e.type;
|
||||
}
|
||||
|
||||
if (typeof e.dataType != 'undefined') {
|
||||
this.dataType = e.dataType;
|
||||
}
|
||||
@ -572,6 +581,12 @@
|
||||
uni.navigateTo({
|
||||
url: `/bundle/reserve/details?id=${ground_id}&typeId=${this.ballType}`
|
||||
});
|
||||
},
|
||||
|
||||
onTakePhoto(order_id) {
|
||||
uni.navigateTo({
|
||||
url: `/bundle/face/face-info?order_id=${order_id}`
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user