check.vue 948 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <view>
  3. <button @click="zhuce">活体</button>
  4. <button @click="success">成功</button>
  5. <button @click="fail">失败</button>
  6. <button @click="huidiao">回调</button>
  7. </view>
  8. </template>
  9. <script>
  10. import {
  11. updateKhjbxx,
  12. infoKhjbxx,
  13. GetLrByZjhm,
  14. SaveKhjbxx,
  15. GetUrl
  16. } from '@/api/kh.js'
  17. export default {
  18. name: "my-file",
  19. data() {
  20. return {};
  21. },
  22. watch: {
  23. },
  24. mounted() {
  25. },
  26. methods: {
  27. zhuce() {
  28. let param = {
  29. id: '730766',
  30. url: this.config.redirectUrl
  31. }
  32. GetUrl(param).then(res => {
  33. if (res.code == 200) {
  34. window.open(res.data.url, '_self');
  35. } else {
  36. toast('该功能暂未开放')
  37. // uni.navigateBack()
  38. }
  39. })
  40. },
  41. success() {
  42. uni.navigateTo({
  43. url: '/pages/living/success'
  44. })
  45. },
  46. fail() {
  47. uni.navigateTo({
  48. url: '/pages/living/fail'
  49. })
  50. },
  51. huidiao() {
  52. }
  53. }
  54. }
  55. </script>
  56. <style>
  57. </style>