notice.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view class="container"><!-- bgColor="#EFF4FA" color="#333" -->
  3. <u-notice-bar direction="column" mode="link" fontSize='3.733vw' :text="text" @click="onClick" />
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'notice',
  9. data() {
  10. return {
  11. text: []
  12. };
  13. },
  14. created() {
  15. this.getList()
  16. },
  17. methods: {
  18. getList() {
  19. this.$Http.basic({
  20. "classname": "system.message.Message",
  21. "method": "queryMessage",
  22. "content": {
  23. "nocache": true,
  24. "pageNumber": 1,
  25. "pageSize": 3,
  26. "pageTotal": 1,
  27. "type": "应用",
  28. "where": {}
  29. }
  30. }).then(res => {
  31. console.log("滚动消息", res)
  32. if (this.cutoff(res.msg)) return;
  33. this.text = ["阿萨德阿萨德撒旦法撒旦法撒旦法阿sdf sdf sdf sdf sd sdf sd撒旦法撒奋斗哥就阿萨德佛欧舒丹是的三", '水电费水电费水电费撒旦法打发士大夫撒旦法', '水电费水电费第三方胜多负少大防守打法的是']
  34. })
  35. },
  36. onClick(index) {
  37. console.log(index)
  38. }
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. .container {
  44. /deep/ .uicon-volume span,
  45. /deep/ .uicon-arrow-right span {
  46. font-size: 3.733vw;
  47. }
  48. }
  49. </style>