混凝土运输管理微信小程序、替班
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.4 KiB

1 week ago
  1. <template>
  2. <view class="content">
  3. <view style="margin: 32rpx auto 0rpx; width: calc(100vw - 64rpx);">
  4. <view>
  5. <p style="text-indent: 1em; color: #555; font-size: 30rpx; font-weight: normal; line-height: 1.5;">
  6. {{notice.context}}
  7. </p>
  8. </view>
  9. <view class="re-empty" v-if="!notice">
  10. <view>暂无数据</view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. notice: {}
  20. }
  21. },
  22. onShow() {
  23. this.loadNotice()
  24. },
  25. methods: {
  26. clickBanner(){ uni.navigateTo({ url: '/pages/login/login' }) },
  27. loadNotice(){
  28. this.$httpGet("/api/admin/notice", {}, (res) => {
  29. console.log('[/admin/notice]', res);
  30. if(res.data){
  31. this.notice=res.data
  32. }
  33. })
  34. }
  35. }
  36. }
  37. </script>
  38. <style>
  39. page{
  40. background-color: #f5f5f5;
  41. }
  42. .head{
  43. height: 60rpx;
  44. line-height: 60rpx;
  45. padding: 0 40rpx;
  46. background-color: #fff;
  47. }
  48. .item-card{
  49. width: calc(100vw - 60rpx);
  50. height: calc(236rpx - 60rpx);
  51. background: #ffffff;
  52. padding: 30rpx;
  53. font-size: 24rpx;
  54. line-height: 42rpx;
  55. color: #333333;
  56. }
  57. .item-button{
  58. position: absolute;
  59. left: 533rpx;
  60. top: 134.42rpx;
  61. width: 182rpx;
  62. height: 52rpx;
  63. line-height: 52rpx;
  64. border-radius: 8rpx;
  65. opacity: 1;
  66. box-sizing: border-box;
  67. border: 2rpx solid #F70303;
  68. font-size: 28rpx;
  69. font-weight: normal;
  70. text-align: center;
  71. letter-spacing: 0px;
  72. color: #F70303;
  73. }
  74. </style>