diff --git a/pages/searchbar/searchbar.js b/pages/searchbar/searchbar.js index 4cb27fc..e913eab 100644 --- a/pages/searchbar/searchbar.js +++ b/pages/searchbar/searchbar.js @@ -148,6 +148,38 @@ Component({ } }, methods: { + getList: function () { + let that = this; + let data = { + pageNum: page, + pageSize: 8 + }; + Http.get({ + url: config.api.merchantList, + data: data + }).then(res => { + wx.hideLoading(); + if (page == 1) { + that.setData({ + merchantVoList: [], + }) + } + var tmpArr = that.data.merchantVoList; + tmpArr.push.apply(tmpArr, res.data.list); + that.setData({ + merchantVoList: tmpArr + }) + }) + .catch(err => { + wx.hideLoading(); + wx.showToast({ + title: err.errMsg, + icon: 'none', + duration: 2000, + mask: false + }); + }) + }, bindMultiPickerChange(e){ this.setData({ value: this.data.multiArray[0][e.detail.value[0]] + this.data.multiArray[1][e.detail.value[1]] diff --git a/pages/searchbar/searchbar.wxml b/pages/searchbar/searchbar.wxml index 5c700e0..41e5307 100644 --- a/pages/searchbar/searchbar.wxml +++ b/pages/searchbar/searchbar.wxml @@ -3,10 +3,10 @@ - + - 搜索 + 搜索搜索搜索搜索搜索搜索搜索搜索搜索搜索 @@ -20,8 +20,31 @@ {{cancelText}} - + + + + + + + 暂无数据 + + \ No newline at end of file diff --git a/pages/searchbar/searchbar.wxss b/pages/searchbar/searchbar.wxss index 9d2b920..9612cff 100644 --- a/pages/searchbar/searchbar.wxss +++ b/pages/searchbar/searchbar.wxss @@ -1,7 +1,7 @@ @import "../../weui.wxss"; .weui-search-bar{position:relative;padding:8px;display:flex;box-sizing:border-box;background-color:#EDEDED;-webkit-text-size-adjust:100%;align-items:center}.weui-icon-search{margin-right:8px;font-size:14px;vertical-align:top;margin-top:.64em;height:1em;line-height:1em}.weui-icon-search_in-box{position:absolute;left:12px;top:50%;margin-top:-8px}.weui-search-bar__text{display:inline-block;font-size:14px;vertical-align:top}.weui-search-bar__form{position:relative;flex:auto;border-radius:4px;background:#FFFFFF}.weui-search-bar__box{position:relative;padding-left:32px;padding-right:32px;width:100%;box-sizing:border-box;z-index:1}.weui-search-bar__input{height:32px;line-height:32px;font-size:14px;caret-color:#07C160}.weui-icon-clear{position:absolute;top:0;right:0;bottom:0;padding:0 12px;font-size:0}.weui-icon-clear:after{content:"";height:100%;vertical-align:middle;display:inline-block;width:0;overflow:hidden}.weui-search-bar__label{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;border-radius:4px;text-align:center;color:rgba(0,0,0,0.5);background:#FFFFFF;line-height:32px}.weui-search-bar__cancel-btn{margin-left:8px;line-height:32px;color:#576B95;white-space:nowrap} .pickers{ - width:100%; + width:560rpx; height: 64rpx; position: absolute; left: 0; @@ -9,4 +9,45 @@ bottom: 0; margin: auto; color: transparent; +} +.picker{ + position: relative; + z-index: 10000; + width:496rpx; + height: 64rpx; + overflow: hidden; +} + +.posi { + position: relative; + width: 616rpx; + float: right; +} + +.posi>view:nth-child(2) { + width: 100%; + display: flex; + justify-content: space-between; + box-sizing: border-box; +} + +.posi>view:nth-child(2) text:nth-child(1) { + font-size: 30rpx; + color: #a9a9a9; +} + +.posi>view:nth-child(2) text:nth-child(2) { + font-size: 30rpx; + color: #a9a9a9; +} + +.posi_logo { + position: relative; + width:576rpx!important; + height:176rpx; + background:rgba(255,255,255,1); + box-shadow:0px 4rpx 8rpx 0px rgba(0,0,0,0.04); + border-radius:16rpx; + margin: 20rpx; + overflow: hidden; } \ No newline at end of file