contactUs.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="body">
  3. <view class="content uni-column">
  4. <view class="uni-column uni-jcc top">
  5. <my-topbar :title="title" :showBack="true" @btnBackClick="btnBack"></my-topbar>
  6. <view class="top-content uni-row">
  7. </view>
  8. </view>
  9. <view class="main uni-column">
  10. <web-view class="webView" :fullscreen="false" :src="contactUrl"></web-view>
  11. <!-- <iframe :src="contactUrl" class="iframe" frameborder="0"></iframe> -->
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import {
  18. mapState,
  19. mapGetters
  20. } from 'vuex';
  21. import tools from '/utils/tools.js';
  22. // import card from '/utils/card.js';
  23. // import {
  24. // checkResCode
  25. // } from '/utils/api.js';
  26. export default {
  27. data() {
  28. return {
  29. queryObj: {},
  30. queryString: "",
  31. title: "联系我们",
  32. contactUrl: "https://www.colormaprun.com/info/contact.html"
  33. }
  34. },
  35. computed: {
  36. ...mapState([
  37. 'username', // 映射 this.username 为 store.state.username
  38. 'userlevel',
  39. 'token'
  40. ]),
  41. ...mapGetters([
  42. 'metadata'
  43. ]),
  44. },
  45. onLoad(query) {
  46. // console.log(query);
  47. this.queryObj = query;
  48. this.queryString = tools.objectToQueryString(this.queryObj);
  49. // console.log(queryString);
  50. },
  51. methods: {
  52. // getBannerStyle() {
  53. // return card.getBannerStyle(this.actRs);
  54. // },
  55. btnBack() {
  56. const url = "/pages/actManage/index";
  57. tools.appAction(url, "uni.switchTab");
  58. },
  59. }
  60. }
  61. </script>
  62. <style scoped>
  63. .top {
  64. height: 36px;
  65. flex-shrink: 0;
  66. background: rgb(255, 195, 0, 0.26);
  67. }
  68. .main {
  69. }
  70. /deep/ iframe {
  71. width: 100vw !important;
  72. height: calc(100vh - 36px) !important;
  73. border: 0 !important;
  74. }
  75. </style>