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