selectedBulletin.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="container selectedBulletin-container" v-if="isUserBindingPhoneNumber">
  3. <web-view :src="linkurl" v-if="linkurl">
  4. <cover-view class="search-view">
  5. <cover-view class="search-view-box" @click="lookBulletinMessage">
  6. <cover-view>点此提交您的专题需求</cover-view>
  7. </cover-view>
  8. </cover-view>
  9. </web-view>
  10. </view>
  11. <not-have-login v-else />
  12. </template>
  13. <script>
  14. import { Report, User, Reports, FreeButton } from "@/config/api.js";
  15. import notHaveLogin from "@/components/notHaveLogin.vue";
  16. export default {
  17. components: { notHaveLogin },
  18. data() {
  19. return {
  20. linkurl: "",
  21. };
  22. },
  23. methods: {
  24. /* 获取详情 */
  25. async getDetail() {
  26. const res = await Reports.getCollectionDetail();
  27. if (res.Ret === 200) {
  28. this.linkurl = res.Data.HttpUrl;
  29. }
  30. },
  31. // 精选看板留言
  32. lookBulletinMessage() {
  33. uni.navigateTo({
  34. url: "/reportPages/bulletinMessage/bulletinMessage",
  35. });
  36. },
  37. },
  38. onLoad() {
  39. this.getDetail();
  40. },
  41. onShow() {},
  42. };
  43. </script>
  44. <style lang="scss" scoped>
  45. .selectedBulletin-container {
  46. background-color: #fff;
  47. padding-bottom: 200rpx;
  48. padding-bottom: calc(200rpx + constant(safe-area-inset-bottom));
  49. padding-bottom: calc(200rpx + env(safe-area-inset-bottom));
  50. .search-view {
  51. position: fixed;
  52. width: 100%;
  53. height: 126rpx;
  54. background: #fff;
  55. z-index: 99999;
  56. font-size: 32rpx;
  57. box-sizing: border-box;
  58. .search-view-box {
  59. display: flex;
  60. align-items: center;
  61. justify-content: center;
  62. background: #376cbb;
  63. color: #fff;
  64. height: 126rpx;
  65. z-index: 99999;
  66. }
  67. .search-icon {
  68. width: 147rpx;
  69. height: 40rpx;
  70. margin: 0 15rpx;
  71. z-index: 99999;
  72. }
  73. }
  74. }
  75. </style>