notice.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <template>
  2. <view>
  3. <!--标题栏-->
  4. <bar-title bgColor="bg-white" isBack>
  5. <block slot="content">通知助手</block>
  6. </bar-title>
  7. <!--卡片区域-->
  8. <view class="zaiui-cart-view-box">
  9. <view class="text-gray text-center">3月30日 15:30</view>
  10. <!--内容-->
  11. <view class="bg-white margin-top radius card-view" @tap="tapCard">
  12. <view class="cu-avatar head-img" :style="[{backgroundImage:'url('+ bg_img +')'}]"/>
  13. <view class="zaiui-content-view">
  14. <view class="text-black text-cut">全网首发iPhone11系列低至4349</view>
  15. <view class="text-gray text-sm text-cut margin-tb-sm">苹果官方货源机,送1年苹果原厂配件质保!</view>
  16. <view class="solid-line"/>
  17. <view class="text-gray text-sm margin-top-sm view-text-box">
  18. <text class="text-black">查看详情</text>
  19. <text class="cuIcon-right"/>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="zaiui-cart-view-box">
  25. <view class="text-gray text-center">3月30日 15:35</view>
  26. <!--内容-->
  27. <view class="bg-white margin-top radius card-view">
  28. <view class="zaiui-content-view">
  29. <view class="text-black text-cut">品质生活的必备神器</view>
  30. <view class="text-gray text-sm text-cut margin-tb-sm">都2020了,你也该用上了</view>
  31. <view class="solid-line"/>
  32. <view class="text-gray text-sm margin-top-sm view-text-box">
  33. <text class="text-black">查看详情</text>
  34. <text class="cuIcon-right"/>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="zaiui-cart-view-box">
  40. <view class="text-gray text-center">3月30日 15:40</view>
  41. <!--内容-->
  42. <view class="bg-white margin-top radius card-view">
  43. <view class="zaiui-content-view">
  44. <view class="text-black text-cut">买得起的K30 Pro和98寸4K电视来了</view>
  45. <view class="text-gray text-sm text-cut margin-tb-sm">这次你有借口换个大房子啦!</view>
  46. <view class="solid-line"/>
  47. <view class="text-gray text-sm margin-top-sm view-text-box">
  48. <text class="text-black">查看详情</text>
  49. <text class="cuIcon-right"/>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. import barTitle from '@/components/zaiui-common/basics/bar-title';
  58. import _tool from '@/static/zaiui/util/tools.js'; //工具函数
  59. export default {
  60. components: {
  61. barTitle
  62. },
  63. data() {
  64. return {
  65. bg_img: '/static/images/home/goods/1.png',
  66. }
  67. },
  68. onLoad() {
  69. },
  70. onReady() {
  71. _tool.setBarColor(true);
  72. uni.pageScrollTo({
  73. scrollTop: 0,
  74. duration: 0
  75. });
  76. },
  77. methods: {
  78. tapCard() {
  79. uni.navigateTo({
  80. url: '/pages/news/details'
  81. });
  82. }
  83. }
  84. }
  85. </script>
  86. <style lang="scss">
  87. /* #ifdef APP-PLUS */
  88. @import "../../static/colorui/main.css";
  89. @import "../../static/colorui/icon.css";
  90. @import "../../static/zaiui/style/app.scss";
  91. /* #endif */
  92. .zaiui-cart-view-box {
  93. padding: 36.36upx 27.27upx;
  94. .card-view {
  95. position: relative;
  96. border-radius: 18.18upx;
  97. .head-img {
  98. width: 100%;
  99. height: 236.36upx;
  100. border-radius: 9.09upx 9.09upx 0 0;
  101. }
  102. .zaiui-content-view {
  103. padding: 27.27upx;
  104. .view-text-box {
  105. position: relative;
  106. .cuIcon-right {
  107. position: absolute;
  108. top: 5.45upx;
  109. right: 0;
  110. }
  111. }
  112. }
  113. }
  114. }
  115. </style>