index.vue 966 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <!-- 网站备案号 -->
  3. <!-- #ifdef H5 -->
  4. <view class="diy-ICPLicense"
  5. :style="{ padding: `${itemStyle.paddingTop * 2}rpx ${itemStyle.paddingLeft * 2}rpx`, background: itemStyle.background }">
  6. <view class="line" :style="{ textAlign: itemStyle.textAlign }">
  7. <text :style="{ fontSize: `${itemStyle.fontSize * 2}rpx`, color: itemStyle.textColor }" target="_blank"
  8. @click="onLink({ type: 'URL', param: { url: params.link } })">{{ params.text }}</text>
  9. </view>
  10. </view>
  11. <!-- #endif -->
  12. </template>
  13. <script>
  14. import mixin from '../mixin'
  15. export default {
  16. /**
  17. * 组件的属性列表
  18. * 用于组件自定义设置
  19. */
  20. props: {
  21. itemStyle: Object,
  22. params: Object,
  23. },
  24. mixins: [mixin],
  25. /**
  26. * 组件的方法列表
  27. * 更新属性和数据的方法与更新页面数据的方法类似
  28. */
  29. methods: {
  30. }
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. </style>