<template>
  <view class="pages">
    <web-view ref="webview" :src="https" @message="handleGetMessage"></web-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      https: '',
    }
  },
  onLoad(option) {
    this.https = decodeURIComponent(option.https)
    console.log('http:' + option.https)
  },
  methods: {
    handleGetMessage: function (e) {
      console.log(e)
      console.log('正在人脸识别中')
      if (e.detail.data[0].result === 'success') {
        uni.navigateBack()
      }
    },
  },
}
</script>

<style lang="scss" scoped></style>
