Merge pull request 'gdpao2' (#227) from gyh into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/227
This commit is contained in:
commit
2a180ba05f
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="userinfo" @click="stopClick()">
|
<view class="userinfo" @click="stopClick()">
|
||||||
<view class="userhead">
|
<view class="userhead">
|
||||||
<image class="avatar" :src="item.member_avatar" @click="gotoInfo(item.member_id)"></image>
|
<image class="avatar" :src="item.member_avatar" @click="gotoInfo(item.role,item.member_id,item.store_id)"></image>
|
||||||
<!-- <text class="follow" @click="following(item.member_id)">{{ is_follow ? "✓" : "+" }}</text> -->
|
<!-- <text class="follow" @click="following(item.member_id)">{{ is_follow ? "✓" : "+" }}</text> -->
|
||||||
<image class="follow" :src=" !is_follow ? '../../static/image/userinfo/follow.png' : '../../static/image/userinfo/followed.png' " mode="" @click="following(item.member_id)"></image>
|
<image class="follow" :src=" !is_follow ? '../../static/image/userinfo/follow.png' : '../../static/image/userinfo/followed.png' " mode="" @click="following(item.member_id)"></image>
|
||||||
</view>
|
</view>
|
||||||
@ -238,11 +238,16 @@
|
|||||||
cart: this.is_cart
|
cart: this.is_cart
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
gotoInfo(id) {
|
gotoInfo(type,id,s_id) {
|
||||||
console.log(id);
|
if (type == 2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pageB/details/index?id=" + id
|
url: "/pageC/merchant/index?id=" + s_id
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pageB/details/index?id=" + id
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 冒泡
|
// 冒泡
|
||||||
stopClick() {
|
stopClick() {
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
<view class="box">
|
<view class="box">
|
||||||
<videoItem v-for="item in listInfo" :key="item.article_id" :item="item"
|
<videoItem v-for="item in listInfo" :key="item.article_id" :item="item"
|
||||||
@getArticlelist="getArticlelist"></videoItem>
|
@getArticlelist="getArticlelist"></videoItem>
|
||||||
<view class="no-data" v-show="!listInfo && page">暂无数据</view>
|
<view class="no-data" v-if="!listInfo && page">暂无数据</view>
|
||||||
<u-loadmore class="load-size" color="#999999" :status="status" icon-type="iconType" margin-top="50" margin-bottom="50" :load-text="loadText" />
|
<u-loadmore v-else class="load-size" color="#999999" :status="status" icon-type="iconType" margin-top="50" margin-bottom="50" :load-text="loadText" />
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
@ -124,16 +124,12 @@ export default {
|
|||||||
if (this.page == 1) {
|
if (this.page == 1) {
|
||||||
this.listInfo = res.data.list;
|
this.listInfo = res.data.list;
|
||||||
this.status = "loadmore";
|
this.status = "loadmore";
|
||||||
} else if (res.data.length == 0 && this.page > 1) {
|
} else if (res.data.length == 0) {
|
||||||
this.status = "nomore";
|
this.status = "nomore";
|
||||||
} else {
|
} else {
|
||||||
this.listInfo = this.listInfo.concat(res.data.list);
|
this.listInfo = this.listInfo.concat(res.data.list);
|
||||||
console.log(this.listInfo)
|
|
||||||
}
|
|
||||||
if (res.data.length == 0 && this.page > 1) {
|
|
||||||
} else {
|
|
||||||
this.page++;
|
|
||||||
}
|
}
|
||||||
|
this.page++;
|
||||||
} else {
|
} else {
|
||||||
console.log(res.message);
|
console.log(res.message);
|
||||||
}
|
}
|
||||||
|
@ -253,6 +253,7 @@
|
|||||||
fansList: [], // 关注的发现列表
|
fansList: [], // 关注的发现列表
|
||||||
status: 'loadmore',
|
status: 'loadmore',
|
||||||
status_1: 'loadmore',
|
status_1: 'loadmore',
|
||||||
|
status_live: 'loadmore',
|
||||||
iconType: 'circle',
|
iconType: 'circle',
|
||||||
loadText: {
|
loadText: {
|
||||||
loadmore: '轻轻上拉',
|
loadmore: '轻轻上拉',
|
||||||
@ -325,18 +326,18 @@
|
|||||||
})
|
})
|
||||||
this.$u.api.tabLiveList({page:this.live_page}).then((res) => {
|
this.$u.api.tabLiveList({page:this.live_page}).then((res) => {
|
||||||
// uni.stopPullDownRefresh();
|
// uni.stopPullDownRefresh();
|
||||||
this.status = "loading";
|
this.status_live = "loading";
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (this.live_page == 1) {
|
if (this.live_page == 1) {
|
||||||
this.tabLiveLists = res.data.data;
|
this.tabLiveLists = res.data.data;
|
||||||
this.status = "loadmore";
|
this.status_live = "loadmore";
|
||||||
if (res.data.data.length < 4) {
|
if (res.data.data.length < 4) {
|
||||||
this.status = "nomore";
|
this.status_live = "nomore";
|
||||||
}
|
}
|
||||||
} else if (res.data.data.length == 0 && this.live_page > 1) {
|
} else if (res.data.data.length == 0 && this.live_page > 1) {
|
||||||
this.status = "nomore";
|
this.status_live = "nomore";
|
||||||
} else {
|
} else {
|
||||||
this.tabLiveLists = this.tabLiveLists.concat(res.data.data);
|
this.tabLiveLists = this.tabLiveLists.concat(res.data.data);
|
||||||
console.log(this.tabLiveLists)
|
console.log(this.tabLiveLists)
|
||||||
@ -346,7 +347,7 @@
|
|||||||
this.live_page++;
|
this.live_page++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.status = "nomore"
|
this.status_live = "nomore"
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@ -411,11 +412,6 @@
|
|||||||
},
|
},
|
||||||
// 发现列表
|
// 发现列表
|
||||||
getArticlelist() {
|
getArticlelist() {
|
||||||
if (this.page > 1) {
|
|
||||||
uni.showLoading({
|
|
||||||
title: "loading..."
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.$u.api.getArticlelist({
|
this.$u.api.getArticlelist({
|
||||||
page: this.page,
|
page: this.page,
|
||||||
is_video_img: 0, // 查询视频1 图文2 都查0
|
is_video_img: 0, // 查询视频1 图文2 都查0
|
||||||
|
Loading…
Reference in New Issue
Block a user