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

84 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
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. this.$store.commit('getCartList')
  49. },
  50. onLoad() {
  51. this.queryParams.state = 0
  52. },
  53. methods: {
  54. //点击tab栏
  55. clickTabs(index) {
  56. this.queryParams.state = index;
  57. this.getData()
  58. },
  59. }
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .page {
  64. .search {
  65. background-color: #fff;
  66. padding: 20rpx 30rpx;
  67. /deep/ .uv-search__content__icon {
  68. padding: 15rpx 0;
  69. }
  70. }
  71. .dropDown {
  72. background-color: #fff;
  73. }
  74. .list {
  75. padding: 0 20rpx;
  76. }
  77. }
  78. </style>