install.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <view class="notice flex" v-show="isShow">
  3. <image src="../../static/image/common/warn.png" mode="" class="cha" @click="closeClick"></image>
  4. <image src="../../static/image/common/120.png" mode="" class="logo"></image>
  5. <!-- Get On-Demand Highlights,Interactive<br/> Live Stats only on the App -->
  6. <p class="font24" v-html="$t('common.installText')"></p>
  7. <!-- INSTALL -->
  8. <text @click="installClick" class="font28">{{ $t('common.install') }}</text>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. name: "install",
  14. data() {
  15. return {
  16. isShow: true
  17. };
  18. },
  19. computed: {
  20. system() {
  21. return this.$store.state.system || {}
  22. },
  23. },
  24. created() {
  25. if (this.$route.meta.name == 'pages-Match-Match' && this.$route.query.flag == 'app') {
  26. this.isShow = false
  27. uni.hideTabBar()
  28. }
  29. },
  30. methods: {
  31. installClick() {
  32. this.$toUrl('/download/google')
  33. // if (this.system.h5_mandatory_update_type == '0') {
  34. // window.location.href = this.$store.state.system.android_download_google_url
  35. // }
  36. // if (this.system.h5_mandatory_update_type == '1') {
  37. // window.location.href = this.$store.state.system.domain_h5_name
  38. // }
  39. // if (this.system.h5_mandatory_update_type == '2') {
  40. // window.location.href = this.$store.state.system.androidDownloadUrl
  41. // }
  42. // gtag('event', 'install_app', {
  43. // 'install_app': '0'
  44. // });
  45. },
  46. closeClick() {
  47. this.isShow = false
  48. }
  49. }
  50. }
  51. </script>
  52. <style lang="scss">
  53. .notice {
  54. padding: 20rpx 14rpx;
  55. background: linear-gradient(222.28deg, #f8f8fa, #ebf2fa);
  56. .cha {
  57. min-width: 36rpx;
  58. max-width: 36rpx;
  59. height: 36rpx;
  60. }
  61. .logo {
  62. min-width: 68rpx;
  63. max-width: 68rpx;
  64. height: 68rpx;
  65. }
  66. text {
  67. text-decoration: none;
  68. color: #fff;
  69. background-color: rgba(91, 105, 150, 1);
  70. padding: 10rpx 20rpx;
  71. border-radius: 10rpx;
  72. white-space: nowrap;
  73. }
  74. }
  75. </style>