info.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view class="content">
  3. <view class="main-item flex" @click="navTo('/pages/info/xttz')">
  4. <view class="main-item-icon"><image src="../../static/icon/info1.png" mode=""></image></view>
  5. <view class="main-item-font">系统通知</view>
  6. </view>
  7. <view class="main-item flex" @click="navTo('/pages/info/articleList?id=4')">
  8. <view class="main-item-icon"><image src="../../static/icon/info2.png" mode=""></image></view>
  9. <view class="main-item-font">平台公告</view>
  10. </view>
  11. <button open-type="contact" class="main-item flex">
  12. <view class="main-item-icon"><image src="../../static/icon/info3.png" mode=""></image></view>
  13. <view class="main-item-font">联系客服</view>
  14. </button>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {};
  21. },
  22. onLoad() {},
  23. onShow() {},
  24. onReachBottom() {},
  25. onReady() {},
  26. methods: {
  27. navTo(url) {
  28. uni.navigateTo({
  29. url
  30. });
  31. }
  32. }
  33. };
  34. </script>
  35. <style lang="scss">
  36. page,
  37. .content {
  38. min-height: 100%;
  39. height: auto;
  40. background: #ffffff;
  41. }
  42. .main-item::after {
  43. border: none;
  44. }
  45. .main-item {
  46. color: #333;
  47. background-color: transparent;
  48. height: auto;
  49. padding: 38rpx 0;
  50. margin: 0 32rpx;
  51. justify-content: start;
  52. border-bottom: 1px solid #f5f5f5;
  53. .main-item-icon {
  54. width: 88rpx;
  55. height: 88rpx;
  56. border-radius: 50%;
  57. image {
  58. width: 100%;
  59. height: 100%;
  60. border-radius: 50%;
  61. }
  62. }
  63. .main-item-font {
  64. margin-left: 26rpx;
  65. font-size: 30rpx;
  66. font-family: PingFang SC;
  67. font-weight: bold;
  68. color: #333333;
  69. }
  70. }
  71. </style>