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

88 lines
1.7 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 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. submitTitle="去结算"
  16. @submit="$utils.navigateTo('/pages_order/mine/cart')"/>
  17. <tabber />
  18. </view>
  19. </template>
  20. <script>
  21. import cartAction from '../components/product/cartAction.vue'
  22. import productList from '../components/product/productList.vue'
  23. import mixinsList from '@/mixins/list.js'
  24. export default {
  25. components: {
  26. productList,
  27. cartAction,
  28. },
  29. mixins : [mixinsList],
  30. data() {
  31. return {
  32. tabs: [{
  33. name: '综合'
  34. },
  35. {
  36. name: '销量'
  37. },
  38. {
  39. name: '价格'
  40. },
  41. {
  42. name: '上新'
  43. },
  44. ],
  45. mixinsListApi : 'queryWaresList',
  46. }
  47. },
  48. onShow() {
  49. this.getData()
  50. if(uni.getStorageSync('token')){
  51. this.$store.commit('getCartList')
  52. }
  53. },
  54. onLoad() {
  55. this.queryParams.state = 0
  56. },
  57. methods: {
  58. //点击tab栏
  59. clickTabs(index) {
  60. this.queryParams.state = index;
  61. this.getData()
  62. },
  63. }
  64. }
  65. </script>
  66. <style scoped lang="scss">
  67. .page {
  68. .search {
  69. background-color: #fff;
  70. padding: 20rpx 30rpx;
  71. /deep/ .uv-search__content__icon {
  72. padding: 15rpx 0;
  73. }
  74. }
  75. .dropDown {
  76. background-color: #fff;
  77. }
  78. .list {
  79. padding: 0 20rpx;
  80. }
  81. }
  82. </style>