| | |
| | | <!-- 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"> </span>
|
| | | </view>
|
| | | <!-- 当前分类 -->
|
| | |
| | | hide_footer: false,
|
| | | noticeList: [],
|
| | | currentNoticeIndex: 0,
|
| | | currentNotice: {
|
| | |
|
| | | }
|
| | | currentNotice: {}
|
| | | };
|
| | | },
|
| | | // onShareAppMessage() {
|
| | |
| | | // })
|
| | |
|
| | | //获取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 || []
|
| | | }
|
| | |
| | | }
|
| | |
|
| | |
|
| | |
|
| | | //公告
|
| | | this.$http.request('get', '/api/announcement/page', {
|
| | | params: {
|
| | |
| | | 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) {
|
| | |
| | | methods: {
|
| | | buttonSearchFlow() {
|
| | | console.log('buttonSearchFlow')
|
| | | uni.navigateTo({
|
| | | url: '/sub_pages/trade/list?name=' + this.search_flow
|
| | | })
|
| | | },
|
| | | pop(status) {
|
| | | this.hide_footer = !!status
|