一部分完成
This commit is contained in:
parent
c39d6ba811
commit
e55aa62bcc
@ -6,9 +6,9 @@
|
|||||||
<image></image>
|
<image></image>
|
||||||
<text class="u-line-1" style="width:130rpx">{{name}}</text>
|
<text class="u-line-1" style="width:130rpx">{{name}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="pingbi">
|
<view class="pingbi" @click.stop="articleAddShield">
|
||||||
<image></image>
|
<image src="/static/image/common/7.png"></image>
|
||||||
<text>1屏蔽用户</text>
|
<text>屏蔽用户</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -81,8 +81,20 @@ export default {
|
|||||||
rid:this.rid
|
rid:this.rid
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
|
articleAddShield() {
|
||||||
|
console.log(this.item)
|
||||||
|
this.$u.api.articleAddShield({
|
||||||
|
member_id: this.item.user_id,
|
||||||
|
}).then(res => {
|
||||||
|
// console.log(res)
|
||||||
|
if(res.errCode == 0) {
|
||||||
|
this.$u.toast(res.message);
|
||||||
|
this.$emit("updateList");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
props:['name','image','url','zid','rid']
|
props:['name','image','url','zid','rid','item']
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
@ -11,7 +11,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="evaluation" :class="{ 'current' : current == 2 }" @click="switchCurrent(2)">好评</view>
|
<view class="evaluation" :class="{ 'current' : current == 2 }" @click="switchCurrent(2)">好评</view>
|
||||||
</view>
|
</view>
|
||||||
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
|
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore" :scroll-top="top">
|
||||||
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-item" @click="toDetailsPage(goods.goods_id)">
|
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-item" @click="toDetailsPage(goods.goods_id)">
|
||||||
<image :src="goods.goods_image"></image>
|
<image :src="goods.goods_image"></image>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
@ -38,7 +38,8 @@ export default {
|
|||||||
scrollHeight: '',
|
scrollHeight: '',
|
||||||
loadStatus: 'loadmore',
|
loadStatus: 'loadmore',
|
||||||
timer: true, // 防止上拉加载短时间内多次调用,
|
timer: true, // 防止上拉加载短时间内多次调用,
|
||||||
value:""
|
value:"",
|
||||||
|
top:0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -131,6 +132,7 @@ export default {
|
|||||||
switchCurrent(current) {
|
switchCurrent(current) {
|
||||||
this.page = 1
|
this.page = 1
|
||||||
if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
|
if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
|
||||||
|
this.top=0
|
||||||
this.ShopSearch()
|
this.ShopSearch()
|
||||||
this.current = current;
|
this.current = current;
|
||||||
},
|
},
|
||||||
|
@ -45,11 +45,11 @@
|
|||||||
<view class="list">
|
<view class="list">
|
||||||
<view>
|
<view>
|
||||||
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => !(index&1))" :zid="item.live_id" :rid="item.chatroom_id"
|
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => !(index&1))" :zid="item.live_id" :rid="item.chatroom_id"
|
||||||
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url"></zhiboItem>
|
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"></zhiboItem>
|
||||||
</view>
|
</view>
|
||||||
<view style="margin-left:20rpx">
|
<view style="margin-left:20rpx">
|
||||||
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => index&1)" :zid="item.live_id" :rid="item.chatroom_id"
|
<zhiboItem v-for="item in tabLiveLists.filter((_, index) => index&1)" :zid="item.live_id" :rid="item.chatroom_id"
|
||||||
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url"></zhiboItem>
|
:key="item.live_id" :name="item.store_name" :image="item.cover_img" :url="item.url" :item="item" @updateList="updateList"></zhiboItem>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -401,7 +401,8 @@
|
|||||||
// 屏蔽更新列表
|
// 屏蔽更新列表
|
||||||
updateList() {
|
updateList() {
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.getArticlelist();
|
this.getArticlelist();
|
||||||
|
this.tabLiveList()
|
||||||
},
|
},
|
||||||
// 发现下拉加载
|
// 发现下拉加载
|
||||||
swiperBottom(e) {
|
swiperBottom(e) {
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<image src="../../static/danmu.png" class="danmubianji"></image>
|
<image src="../../static/danmu.png" class="danmubianji"></image>
|
||||||
<text style="font-size:26rpx;color:#fff;margin-left:20rpx">{{ $store.state.hasLogin ? '想说点什么' : '请先登录'}}</text>
|
<text style="font-size:26rpx;color:#fff;margin-left:20rpx">{{ $store.state.hasLogin ? '想说点什么' : '请先登录'}}</text>
|
||||||
</view>
|
</view>
|
||||||
<image class="liketap" src="../../static/like.png" @click="">
|
<!-- <image class="liketap" src="../../static/like.png" @click=""> -->
|
||||||
|
|
||||||
<view class="danmuinputbox" v-if="danmu">
|
<view class="danmuinputbox" v-if="danmu">
|
||||||
<input type="text" focus="true" style="width:600rpx;margin-left:30rpx;font-size:26rpx" maxlength="20" @blur="danmu=false" v-model="danmutext">
|
<input type="text" focus="true" style="width:600rpx;margin-left:30rpx;font-size:26rpx" maxlength="20" @blur="danmu=false" v-model="danmutext">
|
||||||
@ -86,7 +86,7 @@
|
|||||||
.shopimg{
|
.shopimg{
|
||||||
width: 160rpx;
|
width: 160rpx;
|
||||||
height: 160rpx;
|
height: 160rpx;
|
||||||
background-color: #0f0;
|
// background-color: #0f0;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -158,7 +158,9 @@
|
|||||||
height: 46rpx;
|
height: 46rpx;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 36rpx;
|
bottom: 36rpx;
|
||||||
right: 154rpx;
|
// right: 154rpx;
|
||||||
|
right: 54rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
.hottext{
|
.hottext{
|
||||||
font-size: 20rpx;
|
font-size: 20rpx;
|
||||||
@ -275,7 +277,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 308rpx;
|
width: 308rpx;
|
||||||
height: 58rpx;
|
height: 58rpx;
|
||||||
background-color: #0f0;
|
background-color: #000;
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
border-radius: 29rpx;
|
border-radius: 29rpx;
|
||||||
}
|
}
|
||||||
@ -460,7 +462,8 @@ export default {
|
|||||||
content : content
|
content : content
|
||||||
}
|
}
|
||||||
this.chatRoomService.sendMessages(this.room.id, message);
|
this.chatRoomService.sendMessages(this.room.id, message);
|
||||||
this.danmutext = ""
|
this.danmutext = ""
|
||||||
|
this.danmu = false
|
||||||
},
|
},
|
||||||
whenNewMessage (message) {//新消息监听
|
whenNewMessage (message) {//新消息监听
|
||||||
// if(message.type == this.room.MessageType.PROP){
|
// if(message.type == this.room.MessageType.PROP){
|
||||||
|
Loading…
Reference in New Issue
Block a user