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

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