<view class="page"> | <view class="page"> | ||||
<mp-tabbar | <mp-tabbar | ||||
style="position:fixed;bottom:0;width:100%;left:0;right:0;" | |||||
style="position:fixed;bottom:0;width:100%;left:0;right:0;z-index: 2009;" | |||||
list="{{list}}" | list="{{list}}" | ||||
bindchange="tabChange" | bindchange="tabChange" | ||||
current="{{currentIndex}}" | current="{{currentIndex}}" |
<view class="home-page page-container"> | <view class="home-page page-container"> | ||||
<!-- 搜索块 --> | <!-- 搜索块 --> | ||||
<view class="search-view"> | <view class="search-view"> | ||||
<image class="search-view-bgc" src="/images/home/search-view-bgc.jpg" /> | |||||
<view class="serach-input-view"> | <view class="serach-input-view"> | ||||
<view class="input-box"> | <view class="input-box"> | ||||
<input class="weui-serach-input" value="{{ keyword }}" bindinput="bindKeyInput" bindconfirm="toSearch" confirm-type="search" placeholder="请输入关键字搜索" placeholder-class="phcolor"></input> | <input class="weui-serach-input" value="{{ keyword }}" bindinput="bindKeyInput" bindconfirm="toSearch" confirm-type="search" placeholder="请输入关键字搜索" placeholder-class="phcolor"></input> | ||||
<image class="search-img" src="/images/home/search-icon.png" /> | <image class="search-img" src="/images/home/search-icon.png" /> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<button type="default" plain class="set-attention" id="shouquan" bindtap="setAttention"> | |||||
设置关注类型喜好 >> | |||||
</button> | |||||
<!-- | |||||
<view class="title"> | <view class="title"> | ||||
全方位需求交流平台 | 全方位需求交流平台 | ||||
</view> | </view> | ||||
</button> | </button> | ||||
<view class="header-img"> | <view class="header-img"> | ||||
<image class="header-icon" src="/images/home/header-icon.png" /> | <image class="header-icon" src="/images/home/header-icon.png" /> | ||||
</view> | |||||
</view> --> | |||||
</view> | </view> | ||||
<!-- tab块 --> | <!-- tab块 --> |
height: 290rpx; | height: 290rpx; | ||||
border-radius: 20rpx; | border-radius: 20rpx; | ||||
box-sizing: border-box; | box-sizing: border-box; | ||||
padding: 20rpx; | |||||
/* padding: 20rpx; */ | |||||
margin-bottom: 30rpx; | margin-bottom: 30rpx; | ||||
background-image: linear-gradient(45deg, #ffffff 0%, #e8eaf1 100%), | |||||
/* background: url('../../images/home/search-view-bgc.jpg') no-repeat; */ | |||||
/* background-image: linear-gradient(45deg, #ffffff 0%, #e8eaf1 100%), | |||||
linear-gradient(#f8f8f8, #f8f8f8); | linear-gradient(#f8f8f8, #f8f8f8); | ||||
background-blend-mode: normal, normal; | |||||
background-blend-mode: normal, normal; */ | |||||
box-shadow: 0px 2px 26px 1px rgba(0, 0, 0, 0.06); | box-shadow: 0px 2px 26px 1px rgba(0, 0, 0, 0.06); | ||||
position: relative; | position: relative; | ||||
} | } | ||||
.search-view .search-view-bgc { | |||||
width: 100%; | |||||
height: 100%; | |||||
border-radius: 20rpx; | |||||
} | |||||
.search-view .header-img { | .search-view .header-img { | ||||
position: absolute; | position: absolute; | ||||
width: 290rpx; | width: 290rpx; | ||||
height: 100%; | height: 100%; | ||||
} | } | ||||
.serach-input-view { | .serach-input-view { | ||||
position: relative; | |||||
position: absolute; | |||||
top: 20rpx; | |||||
left: 0; | |||||
width: 98%; | |||||
height: 68rpx; | height: 68rpx; | ||||
z-index: 999; | |||||
z-index: 1; | |||||
} | } | ||||
.serach-input-view .hhr-img { | .serach-input-view .hhr-img { | ||||
} | } | ||||
.search-view .set-attention { | .search-view .set-attention { | ||||
margin-top: 0rpx; | |||||
position: absolute; | |||||
right: 90rpx; | |||||
top: 176rpx; | |||||
padding-left: 40rpx; | padding-left: 40rpx; | ||||
font-size: 26rpx; | font-size: 26rpx; | ||||
color: #797E9B !important; | |||||
color: #f7fefe !important; | |||||
box-sizing: border-box; | box-sizing: border-box; | ||||
text-align: left; | text-align: left; | ||||
z-index: 1; | |||||
} | } | ||||
.search-view .set-attention::after { | .search-view .set-attention::after { | ||||
display: none; | display: none; |
_data.chatRecord = JSON.parse(_data.chatRecord); | _data.chatRecord = JSON.parse(_data.chatRecord); | ||||
console.log(_data, '消息页----收到新消息') | console.log(_data, '消息页----收到新消息') | ||||
let msgData = _this.data.msgData; | let msgData = _this.data.msgData; | ||||
// 初始化新消息 | // 初始化新消息 | ||||
let isNewMsg = true; | let isNewMsg = true; | ||||
// 循环数据,检测发送人ID是否存在,如果不存在就是新消息。 | // 循环数据,检测发送人ID是否存在,如果不存在就是新消息。 | ||||
} | } | ||||
}) | }) | ||||
} | } | ||||
_this.setData({ | _this.setData({ | ||||
msgData | msgData | ||||
}) | }) |
text-align: center; | text-align: center; | ||||
box-sizing: border-box; | box-sizing: border-box; | ||||
padding-top: 140rpx; | padding-top: 140rpx; | ||||
min-height: calc(100vh - 230rpx); | |||||
} | } | ||||
.msg-box-view.not-msg-data .not-msg-data-img { | .msg-box-view.not-msg-data .not-msg-data-img { | ||||
width: 302rpx; | width: 302rpx; |
{ | { | ||||
"description": "项目配置文件", | "description": "项目配置文件", | ||||
"packOptions": { | "packOptions": { | ||||
"ignore": [] | |||||
"ignore": [], | |||||
"include": [] | |||||
}, | }, | ||||
"setting": { | "setting": { | ||||
"urlCheck": false, | "urlCheck": false, | ||||
"lazyloadPlaceholderEnable": false, | "lazyloadPlaceholderEnable": false, | ||||
"useMultiFrameRuntime": true, | "useMultiFrameRuntime": true, | ||||
"useApiHook": true, | "useApiHook": true, | ||||
"useApiHostProcess": false, | |||||
"useApiHostProcess": true, | |||||
"babelSetting": { | "babelSetting": { | ||||
"ignore": [], | "ignore": [], | ||||
"disablePlugins": [], | "disablePlugins": [], | ||||
} | } | ||||
], | ], | ||||
"minifyWXSS": true, | "minifyWXSS": true, | ||||
"showES6CompileOption": false | |||||
"showES6CompileOption": false, | |||||
"minifyWXML": true, | |||||
"condition": false | |||||
}, | }, | ||||
"compileType": "miniprogram", | "compileType": "miniprogram", | ||||
"libVersion": "2.19.2", | "libVersion": "2.19.2", | ||||
"appid": "wx20427d4c31790e40", | "appid": "wx20427d4c31790e40", | ||||
"projectname": "channel_business", | "projectname": "channel_business", | ||||
"debugOptions": { | |||||
"hidedInDevtools": [] | |||||
}, | |||||
"scripts": {}, | |||||
"staticServerOptions": { | |||||
"baseURL": "", | |||||
"servePath": "" | |||||
}, | |||||
"isGameTourist": false, | |||||
"condition": { | "condition": { | ||||
"search": { | "search": { | ||||
"list": [] | "list": [] | ||||
"miniprogram": { | "miniprogram": { | ||||
"list": [] | "list": [] | ||||
} | } | ||||
}, | |||||
"editorSetting": { | |||||
"tabIndent": "insertSpaces", | |||||
"tabSize": 2 | |||||
} | } | ||||
} | } |