dt_support.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view class="showBottom" v-if="copyInfo.wx_copyright_status==1">
  3. <view class="logoBox" v-if="copyInfo.is_show_icon">
  4. <image :class="['logo',imgSizeClass]" v-if="copyInfo.icon_url" :src="copyInfo.icon_url" mode="aspectFit" @load="logoLoad"></image>
  5. </view>
  6. <text>{{copyInfo.copyright_description}}</text>
  7. </view>
  8. <view class="showBottom" v-else-if="!copyInfo.wx_copyright_status">
  9. <view class="logoBox">
  10. <image class="logo" src="http://139.9.103.171:1888/img/image/pectFill"></image>
  11. </view>
  12. <text>{{ msg }}</text>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. props: {
  18. msg: {
  19. type: String,
  20. default: "君实科技提供技术支持"
  21. },
  22. copyInfo: {
  23. type: Object,
  24. default: null
  25. }
  26. },
  27. data() {
  28. return {
  29. imgSizeClass:""
  30. }
  31. },
  32. methods:{
  33. logoLoad(e){
  34. let width=e.detail.width;
  35. let height=e.detail.height;
  36. if(width>height && width-height>30){
  37. this.imgSizeClass="widthLogo";
  38. }else{
  39. this.imgSizeClass="";
  40. }
  41. }
  42. }
  43. };
  44. </script>
  45. <style lang="scss" scoped>
  46. .showBottom {
  47. font-size: 20rpx;
  48. color: #b5b5b5;
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. flex-direction: row;
  53. .logoBox {
  54. display: flex;
  55. align-items: center;
  56. margin-right: 10rpx;
  57. .logo {
  58. width:30rpx;
  59. height:30rpx;
  60. }
  61. .widthLogo{
  62. width:80rpx;
  63. height:30rpx;
  64. }
  65. }
  66. text {
  67. font-size: 25rpx;
  68. }
  69. }
  70. </style>