普兆健康管家前端代码仓库
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.

78 lines
1.4 KiB

  1. <template>
  2. <view>
  3. <view class="flex card">
  4. <view class="flex label">
  5. <image class="icon" :src="configList.applet_logo" mode="scaleToFill"></image>
  6. <view>官方微信公众号</view>
  7. </view>
  8. <button class="flex btn" @click="openPopup">
  9. <view class="flex">
  10. <text class="btn-text">即刻关注</text>
  11. <uv-icon name="arrow-right" color="#C6C6C6" size="24rpx"></uv-icon>
  12. </view>
  13. </button>
  14. </view>
  15. <popupQrCode ref="popup" :src="qrCodeUrl"></popupQrCode>
  16. </view>
  17. </template>
  18. <script>
  19. import { mapState } from 'vuex'
  20. import popupQrCode from './popupQrCode.vue';
  21. export default {
  22. components: {
  23. popupQrCode,
  24. },
  25. computed: {
  26. ...mapState(['configList']),
  27. qrCodeUrl() {
  28. return this.configList['qrcode_wx_official_account']
  29. },
  30. },
  31. methods: {
  32. openPopup() {
  33. this.$refs.popup.open()
  34. },
  35. },
  36. }
  37. </script>
  38. <style scoped lang="scss">
  39. @import './styles/card.scss';
  40. .card {
  41. padding: 24rpx 32rpx;
  42. justify-content: space-between;
  43. }
  44. .icon {
  45. width: 64rpx;
  46. height: 64rpx;
  47. }
  48. .label {
  49. column-gap: 16rpx;
  50. font-family: PingFang SC;
  51. font-weight: 400;
  52. font-size: 28rpx;
  53. line-height: 1;
  54. color: #252545;
  55. }
  56. .btn {
  57. min-height: 64rpx;
  58. font-family: PingFang SC;
  59. font-size: 24rpx;
  60. font-weight: 400;
  61. line-height: 1.4;
  62. color: #A8A8A8;
  63. &-text {
  64. margin-right: 4rpx;
  65. }
  66. }
  67. </style>