景徳镇旅游微信小程序
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.

83 lines
1.5 KiB

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