加油站付款小程序,打印小票
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.

110 lines
2.1 KiB

  1. <template>
  2. <view class="promotion">
  3. <uni-nav-bar dark :fixed="true" background-color="#00aaff" :border="false" status-bar title="推广" />
  4. <view class="promotion-card">
  5. <view class="user-info">
  6. <!-- <image :src="userInfo.headImage" mode=""></image> -->
  7. <image class="image" src="../../static/logo.png" mode="widthFix"></image>
  8. <!-- <view class="user-name">{{ userInfo.nickName }}</view> -->
  9. <view class="user-name">湖南第一深情</view>
  10. </view>
  11. <view class="invitation-code-img">
  12. <image class="image" src="../../static/logo.png" mode="widthFix"></image>
  13. </view>
  14. <view class="invitation-code">邀请码: sjflshf</view>
  15. </view>
  16. <view class="btns">
  17. <view class="btn">保存海报</view>
  18. <view class="btn">立即邀请</view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import {
  24. mapState
  25. } from 'vuex'
  26. export default {
  27. name: 'Promotion',
  28. computed: {
  29. ...mapState(['userInfo']),
  30. },
  31. data() {
  32. return {
  33. }
  34. },
  35. methods: {
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .promotion {
  41. .promotion-card {
  42. width: 90%;
  43. margin: 100rpx auto 0rpx auto;
  44. box-shadow: 0rpx 0rpx 15rpx rgba(0, 0, 0, .2);
  45. border-radius: 15rpx;
  46. padding: 40rpx 30rpx;
  47. box-sizing: border-box;
  48. .user-info {
  49. display: flex;
  50. align-items: center;
  51. .image {
  52. width: 80rpx;
  53. height: 80rpx;
  54. border-radius: 50%;
  55. margin-right: 10rpx;
  56. }
  57. .user-name {
  58. font-size: 30rpx;
  59. }
  60. }
  61. .invitation-code-img {
  62. display: flex;
  63. align-items: center;
  64. justify-content: center;
  65. margin: 100rpx 0rpx;
  66. .image {
  67. width: 30%;
  68. border-radius: 50%;
  69. }
  70. }
  71. .invitation-code {
  72. text-align: center;
  73. color: #818181;
  74. font-size: 28rpx;
  75. }
  76. }
  77. .btns {
  78. position: fixed;
  79. left: 0;
  80. bottom: 0;
  81. width: 100%;
  82. height: 90rpx;
  83. display: flex;
  84. background: #00aaff;
  85. color: white;
  86. font-size: 28rpx;
  87. .btn {
  88. width: 50%;
  89. display: flex;
  90. align-items: center;
  91. justify-content: center;
  92. &:nth-child(2) {
  93. background: orange;
  94. }
  95. }
  96. }
  97. }
  98. </style>