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

79 lines
1.4 KiB

  1. <template>
  2. <view>
  3. <view class="flex card">
  4. <view class="flex label">
  5. <image class="icon" src="/pages_order/static/center/icon-wx.png" 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. // todo: check key
  29. return this.configList['account']
  30. },
  31. },
  32. methods: {
  33. openPopup() {
  34. this.$refs.popup.open()
  35. },
  36. },
  37. }
  38. </script>
  39. <style scoped lang="scss">
  40. @import './styles/card.scss';
  41. .card {
  42. padding: 24rpx 32rpx;
  43. justify-content: space-between;
  44. }
  45. .icon {
  46. width: 64rpx;
  47. height: 64rpx;
  48. }
  49. .label {
  50. column-gap: 16rpx;
  51. font-family: PingFang SC;
  52. font-weight: 400;
  53. font-size: 28rpx;
  54. line-height: 1;
  55. color: #252545;
  56. }
  57. .btn {
  58. min-height: 64rpx;
  59. font-family: PingFang SC;
  60. font-size: 24rpx;
  61. font-weight: 400;
  62. line-height: 1.4;
  63. color: #A8A8A8;
  64. &-text {
  65. margin-right: 4rpx;
  66. }
  67. }
  68. </style>