完善商品搜索,商品分页,调整聊聊栏目提示开发提示,新增检查版本更新
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<block v-if="messageArr.length >= 1">
|
||||
<block v-if="messageArr.length < 1">
|
||||
<view class="vertical null-list">
|
||||
<u-empty
|
||||
icon="http://cdn.uviewui.com/uview/empty/message.png"
|
||||
@@ -17,22 +17,30 @@
|
||||
<!-- <button type="default">连接</button> -->
|
||||
<!-- <button type="default">发送</button> -->
|
||||
|
||||
<view v-for="item in 2" :key="item" class="mssage-box">
|
||||
<view class="mssage-action" @click="$Router.push({name: 'ImChat'})">
|
||||
<u-avatar
|
||||
clsss="mssage-action-cover"
|
||||
src="https://cdn.uviewui.com/uview/album/1.jpg"
|
||||
size="44"
|
||||
text="唐"
|
||||
font-size="14"
|
||||
randomBgColor
|
||||
></u-avatar>
|
||||
<view v-for="(item, index) in messageArr" :key="index" class="mssage-box">
|
||||
<view class="mssage-action" @click="openChum">
|
||||
<block v-if="item.cover === ''">
|
||||
<u-avatar
|
||||
clsss="mssage-action-cover"
|
||||
size="44"
|
||||
:text="item.text"
|
||||
font-size="14"
|
||||
randomBgColor
|
||||
></u-avatar>
|
||||
</block>
|
||||
<block v-else>
|
||||
<u-avatar
|
||||
clsss="mssage-action-cover"
|
||||
:src="item.cover"
|
||||
size="44"
|
||||
></u-avatar>
|
||||
</block>
|
||||
<view class="mssage-action-content">
|
||||
<view class="mssage-header">
|
||||
<view class="header-name">唐明明</view>
|
||||
<view class="header-time">2021/12/31</view>
|
||||
<view class="header-name">{{item.name}}</view>
|
||||
<view class="header-time">{{item.time}}</view>
|
||||
</view>
|
||||
<view class="mssage-msg">消息</view>
|
||||
<view class="mssage-msg">{{item.message}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -45,7 +53,33 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
messageArr : [],
|
||||
messageArr : [
|
||||
{
|
||||
cover: 'https://cdn.uviewui.com/uview/album/1.jpg',
|
||||
name: '班班五月',
|
||||
message: '咱们进直播间了吗?上课啦~今天教大家【拆解项目背后的逻辑】',
|
||||
time: '昨天'
|
||||
},
|
||||
{
|
||||
cover: 'https://cdn.uviewui.com/uview/album/4.jpg',
|
||||
name: '周磊',
|
||||
message: '[语音]',
|
||||
time: '周一'
|
||||
},
|
||||
{
|
||||
cover: '',
|
||||
text: 'S',
|
||||
name: 'SKY',
|
||||
message: '谢谢',
|
||||
time: '2022/1/5'
|
||||
},
|
||||
{
|
||||
cover: 'https://cdn.uviewui.com/uview/album/5.jpg',
|
||||
name: '俊少',
|
||||
message: '[语音]',
|
||||
time: '2022/1/4'
|
||||
},
|
||||
],
|
||||
optionsAction: [
|
||||
{
|
||||
text: '删除',
|
||||
@@ -58,17 +92,26 @@
|
||||
},
|
||||
methods:{
|
||||
openChum(){
|
||||
this.$Router.push({name: 'ImChum'})
|
||||
console.log("好友列表")
|
||||
uni.showToast({
|
||||
title: '聊聊系统正在开发中,敬请期待',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
onNavigationBarButtonTap(e) {
|
||||
|
||||
switch (e.index){
|
||||
case 1:
|
||||
this.openChum()
|
||||
uni.showToast({
|
||||
title: '聊聊好友系统正在开发中,敬请期待',
|
||||
icon : 'none'
|
||||
})
|
||||
break;
|
||||
case 0:
|
||||
console.log("扫码添加好友")
|
||||
uni.showToast({
|
||||
title: '聊聊扫一扫系统正在开发中,敬请期待',
|
||||
icon : 'none'
|
||||
})
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user