洛阳学员端
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.

71 lines
1.9 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 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">单次定位1</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, GetDescribeFaceVerify } 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. },
  37. onShow() {
  38. // this.getInitFaceVerifyFn()
  39. },
  40. methods: {
  41. // 切换科目
  42. changeSubject(val) {
  43. console.log(val)
  44. this.curObject = val
  45. },
  46. async requestSingleFreshLocationFn() {
  47. let lanLng = await requestSingleFreshLocation()
  48. if(lanLng.location.sourceProvider=='fake') {
  49. this.$u.toast('不能执行该操作,禁止使用虚拟定位')
  50. }
  51. console.log(lanLng)
  52. console.log('lanlng')
  53. uni.getLocation({
  54. type: 'wgs84',
  55. success: function (res) {
  56. console.log('当前位置的经度:' + res.longitude);
  57. console.log('当前位置的纬度:' + res.latitude);
  58. }
  59. });
  60. }
  61. }
  62. }
  63. </script>
  64. <style scoped lang="scss">
  65. </style>