多租户商城-商户小程序端
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.

104 lines
2.3 KiB

2 years ago
  1. <template>
  2. <view class="header">
  3. <view class="top-box">
  4. <image v-if="componentContent.logoType === 1" class="logo"
  5. :src="componentContent.imageUrl"
  6. mode="heightFix"></image>
  7. <view v-else class="h3" :style="{fontSize:componentContent.fontSizeNum+'px',fontWeight:componentContent.textFontW,color:componentContent.titColor}">{{componentContent.title}}</view>
  8. <view class="search-btn" @click="searchPro">
  9. <image class="search-icon"
  10. src="https://ceres.zkthink.com/static/img/search.png"
  11. mode="widthFix"></image>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import {commonMixin} from '../mixin'
  18. export default {
  19. mixins: [commonMixin],
  20. data () {
  21. return {
  22. activeTab: 0
  23. }
  24. },
  25. computed: {
  26. },
  27. methods:{
  28. searchPro(key, type) {
  29. uni.navigateTo({
  30. url: `/pages_category_page1/search/index/index`
  31. })
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .header {
  38. .top-box {
  39. display: flex;
  40. align-items: center;
  41. justify-content: space-between;
  42. padding-left: 30upx;
  43. width: 100%;
  44. .logo {
  45. // width: 280upx;
  46. height: 70upx;
  47. margin-top: 0upx;
  48. }
  49. .search-btn {
  50. height: 66upx;
  51. background: rgba(255, 255, 255, 1);
  52. border-radius: 33upx;
  53. display: flex;
  54. flex-direction: row;
  55. align-items: center;
  56. margin-right: 30upx;
  57. .search-icon {
  58. width: 60upx;
  59. height: 60upx;
  60. }
  61. }
  62. }
  63. }
  64. .tabs-nav-warp{
  65. margin-top: 20upx;
  66. padding:0 30upx;
  67. overflow: hidden;
  68. .tabs-nav{
  69. .ul{
  70. display: flex;
  71. flex-wrap: nowrap;
  72. justify-content: space-between;
  73. .li{
  74. flex: 1 0 auto;
  75. margin-left: 36upx;
  76. font-size: 30upx;
  77. color: #999999;
  78. position: relative;
  79. padding-bottom: 18upx;
  80. text-align: center;
  81. &:first-child{
  82. margin-left: 0;
  83. }
  84. &.on{
  85. &:after{
  86. content: '';
  87. width: 100%;
  88. height: 4upx;
  89. background: #C5AA7B;
  90. position: absolute;
  91. left: 0;
  92. bottom: 0;
  93. }
  94. font-weight:bold;
  95. }
  96. }
  97. }
  98. }
  99. }
  100. </style>