xuxueyang
2024-07-26 8c9fe474d3d43265c33653f17bb411336269dfab
pages/home/home.vue
@@ -49,7 +49,7 @@
      <!-- tip -->
      <view class="m-t-12" @click="getNoticeMore">
         <uni-notice-bar class="notice-bar" color="#333" background-color="#fff" show-get-more show-icon
            :scrollable="scrollable" :text="currentNotice.title" :key="currentNotice.id" />
                      :scrollable="scrollable" :text="currentNotice.title||'暂无公告'" :key="currentNotice.id"/>
         <span v-if="!currentNotice||!currentNotice.id">&nbsp;</span>
      </view>
      <!-- 当前分类 -->
@@ -142,9 +142,7 @@
            hide_footer: false,
            noticeList: [],
            currentNoticeIndex: 0,
            currentNotice: {
            }
      currentNotice: {}
         };
      },
      // onShareAppMessage() {
@@ -183,9 +181,7 @@
         // })
         //获取banner图
         this.$http.request('get', '/api/pub/banner/list', {
         }).then(res => {
    this.$http.request('get', '/api/pub/banner/list', {}).then(res => {
            if (res.code == 0) {
               this.banners = res.data.records || []
            }
@@ -199,7 +195,6 @@
         }
         //公告
         this.$http.request('get', '/api/announcement/page', {
            params: {
@@ -207,7 +202,7 @@
               status: 'A'
            }
         }).then(res => {
            if (res.code == 0) {
      if (res.code === 0) {
               this.noticeList = (res.data && res.data.records || [])
               console.log('this.noticeList', this.noticeList)
               if (this.noticeList.length > 0) {
@@ -246,6 +241,9 @@
      methods: {
         buttonSearchFlow() {
            console.log('buttonSearchFlow')
      uni.navigateTo({
        url: '/sub_pages/trade/list?name=' + this.search_flow
      })
         },
         pop(status) {
            this.hide_footer = !!status