景徳镇旅游微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
1.5 KiB

7 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="文创好物" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="search">
  5. <uv-search
  6. placeholder="请输入搜索服务"
  7. :showAction="false"
  8. search-icon-size="40rpx"
  9. v-model="keyword"></uv-search>
  10. </view>
  11. <view class="dropDown">
  12. <uv-tabs :list="tabs"
  13. lineColor="#B12026"
  14. lineHeight="8rpx"
  15. lineWidth="50rpx"
  16. :scrollable="false"
  17. @click="clickTabs"></uv-tabs>
  18. </view>
  19. <view class="list">
  20. <productList/>
  21. </view>
  22. <cartAction/>
  23. <tabber/>
  24. </view>
  25. </template>
  26. <script>
  27. import cartAction from '../components/product/cartAction.vue'
  28. import productList from '../components/product/productList.vue'
  29. export default {
  30. components : {
  31. productList,
  32. cartAction,
  33. },
  34. data() {
  35. return {
  36. tabs: [
  37. {
  38. name: '综合'
  39. },
  40. {
  41. name: '销量'
  42. },
  43. {
  44. name: '价格'
  45. },
  46. {
  47. name: '上新'
  48. },
  49. ],
  50. queryParams: {
  51. pageNo: 1,
  52. pageSize: 10,
  53. },
  54. state : 0,
  55. }
  56. },
  57. methods: {
  58. //点击tab栏
  59. clickTabs(index) {
  60. if (index == 0) {
  61. this.queryParams.state = -1;
  62. } else {
  63. this.queryParams.state = index - 1;
  64. }
  65. // this.getOrderList()
  66. },
  67. }
  68. }
  69. </script>
  70. <style scoped lang="scss">
  71. .page{
  72. .search{
  73. background-color: #fff;
  74. padding: 20rpx 30rpx;
  75. /deep/ .uv-search__content__icon{
  76. padding: 15rpx 0;
  77. }
  78. }
  79. .dropDown{
  80. background-color: #fff;
  81. }
  82. .list{
  83. padding: 0 20rpx;
  84. }
  85. }
  86. </style>