search.vue 760 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view>
  3. <hx-navbar title="搜索页面"></hx-navbar>
  4. <view class="contianer">
  5. <text class="txt">{{dataType}}</text>
  6. </view>
  7. <view class="contianer">
  8. <text class="txt">待开发</text>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. dataType: null
  17. }
  18. },
  19. onLoad(option){
  20. if(option.type){
  21. switch(option.type){
  22. case 'home':
  23. this.dataType = "来自首页的搜索";
  24. break
  25. case 'store':
  26. this.dataType = "来自商户页的搜索"
  27. break
  28. case 'order':
  29. this.dataType = "来自订单页的搜索"
  30. break
  31. }
  32. }
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style>
  39. .contianer{
  40. margin: 15px;
  41. }
  42. .txt{
  43. font-size: 16px;
  44. color: #888888;
  45. }
  46. </style>