index.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <view :style="{ minHeight: sys.windowHeight + 'px' }"
  3. :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
  4. <tm-menubars title="消息列表" :shadow="0" :showback="true"></tm-menubars>
  5. <view class="tou C1b1b1b pb-30">
  6. <view class="flex-center"><tm-segTabs :list="list" v-model="active"></tm-segTabs></view>
  7. </view>
  8. <tm-card
  9. title="冬季的羽绒 | 蓬松、轻盈、温暖"
  10. :content="text"
  11. :btnColor="['primary', 'red']"
  12. statusColor="red"
  13. >
  14. <template v-slot:content="{ text }">
  15. <view>
  16. <tm-images src="../../static/img/60.png" mode="widthFix"></tm-images>
  17. <view class="py-24 tetx-size-m wenzi">考虑到居家、出行等各类环境下的保暖需求,身穿系列服装即便身处于日渐冷冽的户外,也能感受随性自</view>
  18. <view class="gengduo">
  19. <tm-listitem title="查看详情"></tm-listitem>
  20. </view>
  21. </view>
  22. </template>
  23. </tm-card>
  24. <!-- 弹出层消息 -->
  25. <tm-message ref="toast"></tm-message>
  26. </view>
  27. </template>
  28. <script>
  29. import{myRequest} from '@/api/request.js'
  30. export default {
  31. data() {
  32. return {
  33. active: 0,
  34. list: ['活动消息', '服务消息', '系统消息'],
  35. text:
  36. '路透社援引消息人士的话称,立陶宛外长兰茨贝尔吉斯最近向总统瑙塞达提议,将台驻立陶宛机构中文名称中的“台湾”改为“台湾人民”,想以此缓和与中国的紧张关系。这已经不是立陶宛方面第一次就更名问题放出风声,此前'
  37. };
  38. },
  39. onLoad() {
  40. },
  41. created() {
  42. this.sys = uni.getSystemInfoSync();
  43. },
  44. methods: {
  45. aa(num){
  46. if(num==1){
  47. this.checked1=true;
  48. this.checked2=false;
  49. this.checked3=false;
  50. }else if(num==2){
  51. this.checked1=false;
  52. this.checked2=true;
  53. this.checked3=false;
  54. }else if(num==3){
  55. this.checked1=false;
  56. this.checked2=false;
  57. this.checked3=true;
  58. }
  59. },
  60. },
  61. }
  62. </script>
  63. <style lang="scss">
  64. /deep/ .tm-menubars .body{
  65. background-color: #1b1b1b !important;
  66. }
  67. /deep/ .zhuti{padding: 10px 10px;}
  68. /deep/ .kuang{margin:0 !important;padding: 0px !important;}
  69. /deep/ .tm-segTabs{border: 1px solid #303030;border-radius: 5px;width: 70%;height:40px;}
  70. /deep/ .tm-segTabs-item{margin-top: 4px !important;}
  71. /deep/ .tm-segTabs-bg-bar{margin-top: 6px !important;background: #0178FD !important;border-radius: 2px !important;}
  72. .wenzi{color: #AAAAAA;}
  73. /deep/ .tm-card{
  74. padding-bottom: 30px !important;
  75. }
  76. /deep/ .gengduo .grey-darken-4{
  77. background: #1B1B1B !important;
  78. padding: 0 !important;
  79. margin: 0 !important;
  80. position: absolute;
  81. top: 20px;
  82. width: 100%;
  83. }
  84. </style>