game-search.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <view>
  3. <!-- 自定义导航栏 -->
  4. <uni-nav-bar id="nav-bar" status-bar="true" @clickRight="onNavConver" @clickLeft="showClickEvent('DrawerModalL')"
  5. title="游戏" color="#FFFFFF" fixed="true">
  6. <view slot="left">
  7. <view class=" flex align-center margin-left">
  8. <image class="png-more" src="../../../static/more.png"></image>
  9. </view>
  10. </view>
  11. <view slot="right">
  12. <view class=" flex align-center " style="margin-right: 10rpx;">
  13. <image class="png-more" src="../../../static/mConver.png"></image>
  14. </view>
  15. </view>
  16. </uni-nav-bar>
  17. <view class="cu-bar search bg-white">
  18. <view class="search-form round">
  19. <text class="cuIcon-search"></text>
  20. <input @focus="InputFocus" @blur="InputBlur" :adjust-position="false" type="text" placeholder="搜索图片、文章、视频" confirm-type="search"></input>
  21. </view>
  22. <view class="action">
  23. <button class="cu-btn bg-green shadow-blur round" @tap="onBack">取消</button>
  24. </view>
  25. </view>
  26. <sideBar ref="sideBar">
  27. </sideBar>
  28. </view>
  29. </template>
  30. <script>
  31. import uniNavBar from "@/components/uni-nav-bar/uni-nav-bar.vue";
  32. import sideBar from "@/components/side-bar/side-bar.vue";
  33. export default {
  34. components: {
  35. uniNavBar,
  36. sideBar
  37. },
  38. data() {
  39. return {
  40. }
  41. },
  42. methods: {
  43. showClickEvent(){
  44. this.$refs.sideBar.showModal();
  45. },
  46. onBack(){
  47. uni.navigateBack({
  48. delta:1
  49. })
  50. }
  51. }
  52. }
  53. </script>
  54. <style>
  55. </style>