paycode.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <view class="pages">
  3. <u-navbar
  4. title="会员码"
  5. :autoBack="true"
  6. :safeAreaInsetTop="true"
  7. >
  8. </u-navbar>
  9. <img class="bg" :src="staticUrl+'/img/paycode-bg.png'" alt="">
  10. <view class="content">
  11. <view class="avatar-wrap">
  12. <u-avatar :src="vuex_member_info.avatar||staticUrl+'/img/avatar.png'" size="138rpx"></u-avatar>
  13. </view>
  14. <view class="name">{{vuex_member_info.name}}</view>
  15. <img class="qrcode-bg" :src="staticUrl+'/img/qrcode-bg.png'" alt="">
  16. <!-- <img class="qrcode" :src="staticUrl+'/img/paycode-bg.png'" alt=""> -->
  17. <view class="tip u-flex u-row-center">
  18. <img class="refresh-ico" :src="staticUrl+'/img/refresh.png'" alt="">
  19. <text>会员码每30秒自动更新,请在店内消费使用</text>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. staticUrl:this.$commonConfig.staticUrl,
  29. params:{
  30. }
  31. }
  32. },
  33. onShow() {
  34. },
  35. onLoad() {
  36. },
  37. methods: {
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .bg{
  43. position: fixed;
  44. width: 100%;
  45. height: 100vh;
  46. height: -webkit-fill-available;
  47. left: 0;
  48. bottom: 0;
  49. z-index: -1;
  50. }
  51. .content{
  52. position: relative;
  53. text-align: center;
  54. background-color: #fff;
  55. border-radius: 8rpx;
  56. margin: 150rpx 20rpx 0;
  57. padding: 90rpx 50rpx 80rpx;
  58. }
  59. .avatar-wrap{
  60. position: absolute;
  61. left: 50%;
  62. top: -69rpx;
  63. transform: translateX(-69rpx);
  64. background-color: #fff;
  65. padding: 11rpx;
  66. border-radius: 50%;
  67. }
  68. .name{
  69. font-size: 32rpx;
  70. font-weight: 600;
  71. color: #333333;
  72. line-height: 45rpx;
  73. margin-bottom: 40rpx;
  74. }
  75. .qrcode{
  76. position: absolute;
  77. top: 211rpx;
  78. left: 102rpx;
  79. width: 506rpx;
  80. height: 506rpx;
  81. }
  82. .tip{
  83. margin-top: 40rpx;
  84. font-size: 24rpx;
  85. font-weight: 400;
  86. color: #999999;
  87. line-height: 33rpx;
  88. .refresh-ico{
  89. width: 27rpx;
  90. height: 27rpx;
  91. margin-right: 10rpx;
  92. }
  93. }
  94. </style>