u-index-plugins.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <view class="u-plugins">
  3. <view class="u-top main-between cross-center" hover-class="u-hover-class" @click="router">
  4. <slot name="u-top-name"></slot>
  5. <view class="dir-left-nowrap cross-center">
  6. <view class="box-grow-0 u-more">更多</view>
  7. <image class="box-grow-0 u-icon" src="../../../static/image/icon/arrow-right.png"></image>
  8. </view>
  9. </view>
  10. <scroll-view class="u-bottom" scroll-x>
  11. <slot name="u-body"></slot>
  12. </scroll-view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. name: "u-index-plugins",
  18. props: {
  19. list: {
  20. type: Array
  21. },
  22. url: {
  23. type: String
  24. }
  25. },
  26. methods: {
  27. router() {
  28. uni.navigateTo({
  29. url: this.url
  30. })
  31. }
  32. }
  33. }
  34. </script>
  35. <style scoped lang="scss">
  36. .u-plugins {
  37. background-color: #f7f7f7;
  38. }
  39. .u-top {
  40. width: 750upx;
  41. height: 72upx;
  42. padding: 0 24upx;
  43. background-color: #ffffff;
  44. margin-bottom: 5upx;
  45. }
  46. .u-more {
  47. font-size: 26upx;
  48. color: #999999;
  49. margin-right: 12upx;
  50. }
  51. .u-icon {
  52. width: 12upx;
  53. height: 22upx;
  54. display: block;
  55. }
  56. .u-bottom {
  57. width: 750upx;
  58. }
  59. </style>