Commit 6d59b9e3 authored by 罗林杰's avatar 罗林杰

Merge remote-tracking branch 'origin/master'

parents fd0d3992 57b7cf25
......@@ -13,7 +13,7 @@ export function articleList(query) {
// 发表动态
export function publishArticle(data) {
return request({
url: '/opmarticle/add',
url: '/app/opmArticle/add',
data: data,
method: 'POST',
})
......@@ -47,7 +47,7 @@ export function articleDetail(articleId){
//动态评论
export function comment(data) {
return request({
url: '/opmarticle/comment',
url: '/app/opmArticle/comment',
data: data,
method: 'POST',
})
......
......@@ -12,7 +12,7 @@
'top': '210rpx',
'width': '447rpx',
'height': '375rpx'
}" v-model="dataList" @query="queryList" :fixed="false" @onRefresh="onRefresh" auto-show-back-to-top="true">
}" v-model="dataList" @query="queryList" :fixed="false" auto-show-back-to-top="true">
<view v-if="currentIndex == '2'">
<u-tabs ref="tabs" :list="topicList" font-size="30" :current="current" @click="tabClick"
:activeStyle="{
......@@ -106,14 +106,6 @@
},
},
methods: {
// 下拉刷新被触发
onRefresh() {
// 告知z-paging下拉刷新结束,这样才可以开始下一次的下拉刷新
setTimeout(() => {
// 1.5秒之后停止刷新动画
this.reload()
}, 1500)
},
//tab标签点击
tabClick({id}) {
this.topicId = id
......@@ -129,6 +121,8 @@
name: item.topicName
};
});
//初始化话题id 锁到第一个话题
this.topicId = this.topicList[0].id
})
},
// 接收父组件传过来的刷新列表要求
......@@ -138,7 +132,7 @@
this.$refs.paging && this.$refs.paging.reload();
})
},
//分页查询方法
//分页查询方法 下拉刷新或滚动到底部
queryList(pageNo, pageSize) {
const params = {
page:pageNo,
......
......@@ -5,8 +5,8 @@
<!-- 左上角搜索-->
<u-navbar bgColor="white" :placeholder="true">
<view class="u-nav-slot" slot="left" @click="screen">
<image :src="baseUrl+'/index/screen.png'" class="img" mode="aspectFill"></image>
<view class="text">搜索</view>
<!-- <image :src="baseUrl+'/index/screen.png'" class="img" mode="aspectFill"></image>-->
<!-- <view class="text">搜索</view>-->
</view>
</u-navbar>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment