onlineproductselection.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view class="online-class-wrapper">
  3. <view class="headers">
  4. <headersVue
  5. headerTitle="在线选品列表"
  6. @headerJump="headerJump"
  7. ></headersVue>
  8. <view class="headers-box">
  9. <searchVue
  10. placeholder="请输入商品名称"
  11. @search="onHandleSearch"
  12. ></searchVue>
  13. <tablist
  14. class="mt"
  15. :category="category"
  16. :curruntActive="curruntActive"
  17. @tabs="tabsHandleClick"
  18. ></tablist>
  19. </view>
  20. </view>
  21. <view class="online-content">
  22. <button @click="goJump">详情</button>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import headersVue from "../../shop/components/headers/headers.vue";
  28. import searchVue from "../../shop/commodity/components/search/search.vue";
  29. export default {
  30. components: {
  31. headersVue,
  32. searchVue
  33. },
  34. data() {
  35. return {
  36. curruntActive: 0,
  37. category: [],
  38. };
  39. },
  40. methods:{
  41. headerJump(){
  42. uni.switchTab({ url: '/shop/productManagementModule/productManagement' })
  43. },
  44. goJump(){
  45. console.log("fff")
  46. uni.redirectTo({ url: './onlineDetail' })
  47. },
  48. onHandleSearch(val){
  49. },
  50. tabsHandleClick(){
  51. }
  52. }
  53. };
  54. </script>
  55. <style>
  56. page {
  57. background-color: #f7f8fc;
  58. height: 100%;
  59. }
  60. </style>
  61. <style lang="scss" scoped>
  62. .online-class-wrapper{
  63. height: 100%;
  64. .headers{
  65. border: 2rpx solid red;
  66. width: 100%;
  67. height: 100rpx;
  68. box-sizing: border-box;
  69. }
  70. .online-content{
  71. }
  72. }
  73. </style>