InstallChrome.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <div>
  3. <img :src=" imgUrl ? imgUrl : btnUrl " alt class="install_chrome" @click="clickOpenChrome()" />
  4. </div>
  5. </template>
  6. <script>
  7. let btnUrl = require('../static/svg/icon-install-chrome.svg');
  8. export default {
  9. name: 'install_chrome',
  10. props: {
  11. imgUrl: {
  12. type: String,
  13. default: '',
  14. }
  15. },
  16. data() {
  17. return {
  18. btnUrl,
  19. }
  20. },
  21. methods: {
  22. clickOpenChrome() {
  23. window.open('https://www.google.com/chrome')
  24. // let extParams = this.isMobile() ? {} : { status: this.reportStatus }
  25. // Report.reportLog({
  26. // baseInfo: {
  27. // appVersionCode: this.appVersionCode,
  28. // mid: this.mid,
  29. // pageSource: Report.pageSource.newUserLandingPage,
  30. // appType,
  31. // machineCode: this.mid
  32. // },
  33. // params: {
  34. // eventData: {
  35. // businessType: Report.businessType.buttonClick,
  36. // objectType: Report.objectType.installButton,
  37. // postId: this.detail.postId,
  38. // srcContentId: this.detail.srcContentId,
  39. // senderId: this.detail.srcUserId,
  40. // },
  41. // extParams: extParams
  42. // }
  43. // })
  44. },
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .install_chrome{
  50. cursor: pointer;
  51. }
  52. </style>