洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.9 KiB

10 months ago
9 months ago
10 months ago
9 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
9 months ago
  1. <template>
  2. <view class="pageBgImg pad">
  3. <view class="status_bar"></view>
  4. <view class="" style="height: 100rpx;"></view>
  5. <!-- <u-button @click="requestSingleFreshLocationFn">单次定位</u-button> -->
  6. <u-button @click="getInitFaceVerifyFn">人脸核身</u-button>
  7. <topInfo :carType="curObject.name" @changeSubject="changeSubject"></topInfo>
  8. <subject1 v-if="curObject.id==1"></subject1>
  9. <subject2 v-if="curObject.id==2"></subject2>
  10. <subject3 v-if="curObject.id==3"></subject3>
  11. <subject4 v-if="curObject.id==4"></subject4>
  12. </view>
  13. </template>
  14. <script>
  15. import topInfo from './comp/topInfo.vue'
  16. import subject1 from './comp/subject1.vue'
  17. import subject2 from './comp/subject2.vue'
  18. import subject3 from './comp/subject3.vue'
  19. import subject4 from './comp/subject4.vue'
  20. // import { requestSingleFreshLocation } from '@/common/js/qqLatLng.js'
  21. import { getInitFaceVerify } from '@/config/api.js'
  22. export default {
  23. components: { topInfo, subject1, subject2,subject3,subject4 },
  24. data() {
  25. return {
  26. curObject: {
  27. name: '科目一',
  28. id: 1
  29. }
  30. }
  31. },
  32. onLoad() {
  33. // #ifdef MP-WEIXIN
  34. // initEid();
  35. // #endif
  36. // const verifyPlugin = uni.requireNativePlugin('AP-FaceDetectModule');
  37. // var metaInfo = verifyPlugin.getMetaInfo();
  38. // console.log('插件在?')
  39. // console.log(verifyPlugin)
  40. },
  41. onShow() {
  42. this.getInitFaceVerifyFn()
  43. },
  44. methods: {
  45. // 切换科目
  46. changeSubject(val) {
  47. console.log(val)
  48. this.curObject = val
  49. },
  50. async getInitFaceVerifyFn() {
  51. const res = await getInitFaceVerify()
  52. console.log('人脸token')
  53. console.log(res)
  54. },
  55. async requestSingleFreshLocationFn() {
  56. let lanLng = await requestSingleFreshLocation()
  57. if(lanLng.sourceProvider=='fake') {
  58. this.$u.toast('不能执行该操作,禁止使用虚拟定位')
  59. }
  60. console.log(lanLng)
  61. console.log('lanlng')
  62. }
  63. }
  64. }
  65. </script>
  66. <style scoped lang="scss">
  67. </style>