app-copyright.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="app-view">
  3. <app-jump-button form :url="link.url" :open_type="link.openType" :params="link.params?link.params:[]">
  4. <view class="app-view dir-top-nowrap cross-center" :style="{backgroundColor: backgroundColor}">
  5. <icon class="app-icon" v-if="picUrl" :style="{backgroundImage: `url(${picUrl})`}"></icon>
  6. <text class="app-text" :style="{marginTop: picUrl ? '16rpx': '24rpx'}">{{text}}</text>
  7. </view>
  8. </app-jump-button>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. name: 'app-copyright',
  14. props: {
  15. backgroundColor: {
  16. type: String,
  17. default() {
  18. return '#ff4544';
  19. }
  20. },
  21. link: {
  22. type: Object,
  23. default() {
  24. return null;
  25. }
  26. },
  27. picUrl: String,
  28. text: String,
  29. }
  30. }
  31. </script>
  32. <style scoped lang="scss">
  33. .app-view {
  34. width: #{750rpx};
  35. border: none;
  36. border-radius: 0;padding-bottom: 24rpx;
  37. }
  38. .app-text {
  39. font-size: #{24rpx};
  40. text-align: center;
  41. color: #999999;
  42. }
  43. .app-icon {
  44. width: #{160rpx};
  45. height: #{50rpx};
  46. margin-top: #{36rpx};
  47. background-size: 100% 100%;
  48. background-repeat: no-repeat;
  49. }
  50. </style>