search.vue 1015 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view class="search dir-left-nowrap main-center cross-center">
  3. <view class="input dir-left-nowrap main-center cross-center" @click="routeGo">
  4. <view></view>
  5. <text>搜索</text>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. name: 'search',
  12. methods: {
  13. routeGo() {
  14. uni.navigateTo({
  15. url: `/plugins/gift/search/search`
  16. })
  17. }
  18. }
  19. }
  20. </script>
  21. <style scoped lang="scss">
  22. .search {
  23. width: #{750upx};
  24. height: #{88upx};
  25. background-color: #efeff4;
  26. padding: #{0 24upx};
  27. }
  28. .input {
  29. width: 100%;
  30. height: #{58upx};
  31. background-color: #ffffff;
  32. border-radius: #{29upx};
  33. text {
  34. font-size: #{26upx};
  35. margin-left: #{10upx};
  36. color: #999999;
  37. }
  38. view {
  39. width: #{25upx};
  40. height: #{25upx};
  41. background-image: url("../../../../static/image/icon/search.png");
  42. background-repeat: no-repeat;
  43. background-size: 100% 100%;
  44. margin-right: #{10upx}
  45. }
  46. }
  47. </style>