fixedsearch.wxml 1.7 KB

12345678910111213141516171819202122
  1. <view class="diy-fixedsearch">
  2. <view class="background" style="{{item.style.background?'background:'+item.style.background+';':''}}{{item.style.opacity?'opacity:'+item.style.opacity+';':''}}"></view>
  3. <view class="inner">
  4. <view wx:if="{{item.params.leftnav!=0}}" class="leftnav">
  5. <navigator hoverClass='none' url='{{item.params.leftnavlink}}'>
  6. <image wx:if="{{item.params.leftnavimg}}" src="{{item.params.leftnavimg}}"></image>
  7. <span wx:elif="{{item.params.leftnavicon}}" class="icox {{item.params.leftnavicon}} fz20" style="{{item.style.leftnavcolor?'color:'+item.style.leftnavcolor+';':''}} "></span>
  8. </navigator>
  9. </view>
  10. <view class="center {{item.params.searchstyle}}">
  11. <navigator hoverClass='none' url='/Snailfish_shop/pages/goods/search?fromsearch=1'>
  12. <text style="{{item.style.searchbackground?'background:'+item.style.searchbackground+';':''}}text-align:{{item.style.textalign?''+item.style.textalign:'left'}};{{item.style.searchtextcolor?'color:'+item.style.searchtextcolor+';':''}}{{item.style.opacityinput?'opacity:'+item.style.opacityinput+';':''}}"> {{item.params.placeholder?item.params.placeholder:'输入关键字进行搜索'}}</text>
  13. </navigator>
  14. </view>
  15. <view wx:if="{{item.params.rightnav!=0}}" class="rightnav">
  16. <navigator hoverClass='none' url='{{item.params.rightnavlink}}'>
  17. <image wx:if="{{item.params.rightnavimg}}" src="{{item.params.rightnavimg}}"></image>
  18. <view wx:elif="{{item.params.rightnavicon}}" class="icox {{item.params.rightnavicon}} fz20" style="{{item.style.rightnavcolor?'color:'+item.style.rightnavcolor+';':''}} "></view>
  19. </navigator>
  20. </view>
  21. </view>
  22. </view>