myQr.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view class="box">
  3. <view style="height: 20vh;"></view>
  4. <view class="cont">
  5. <view class="contTop">
  6. <image src="../../static/timg/hl1.png" mode="" class="contTopImg"></image>
  7. <view class="contTopTitle">专属二维码</view>
  8. <image src="../../static/timg/hl2.png" mode="" class="contTopImg"></image>
  9. </view>
  10. <view class="headImgBox">
  11. <image :src="userInfo.headImg" mode="" class="headImg"></image>
  12. </view>
  13. <view class="nickName">{{userInfo.nickName}}</view>
  14. <view class="ms">很不错的店铺 值得推荐!</view>
  15. <view class="wqmBox">
  16. <view class="ewmLeft">
  17. <image :src="userInfo.headImg" mode="" class="ewmImg"></image>
  18. </view>
  19. <view class="ewmRight">
  20. <view class="ewmRight1">长按二维码立即关注</view>
  21. <view class="ewmRight2">登记个人信息即可享受新人优惠</view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. components: {
  30. },
  31. data() {
  32. return {
  33. headImg: '',
  34. themeColor:'',
  35. userInfo:'',
  36. }
  37. },
  38. onLoad(opt) {
  39. this.themeColor = uni.getStorageSync("themeColor");
  40. this.userInfo = uni.getStorageSync("userInfo");
  41. },
  42. onShow() {
  43. },
  44. methods: {
  45. }
  46. }
  47. </script>
  48. <style scoped lang="less">
  49. .box {
  50. width: 100vw;
  51. min-height: 100vh;
  52. background: url('http://dmsphoto.66km.com.cn/thFiles/D3702233-AB0E-415A-95C6-C7835283E8BC.png') no-repeat;
  53. background-size:100% 100% ;
  54. }
  55. .cont{
  56. width: 650rpx;
  57. height: 651rpx;
  58. background: #FFFFFF;
  59. border-radius: 20rpx;
  60. border: 10rpx solid #FFCE11;
  61. margin-left: 50rpx;
  62. }
  63. .contTopImg{
  64. height: 28rpx;width: 155rpx;margin-top: 11rpx;
  65. }
  66. .contTopTitle{
  67. font-size: 36rpx;
  68. font-family: PingFangSC-Medium, PingFang SC;
  69. font-weight: 500;
  70. color: #FFAF18;
  71. line-height: 50rpx;
  72. }
  73. .contTop{
  74. display: flex;
  75. justify-content: space-around;
  76. padding-top: 60rpx;
  77. }
  78. .headImg{
  79. width: 103rpx;height: 103rpx;border-radius: 50%;
  80. }
  81. .headImgBox{
  82. text-align: center;padding-top: 50rpx;
  83. }
  84. .nickName{
  85. color: #999999;font-size: 26rpx;text-align: center;padding-top: 16rpx;
  86. }
  87. .ms{
  88. color: #FFAF18;font-size: 30rpx;padding-top: 16rpx;text-align: center;
  89. }
  90. .wqmBox{
  91. border-top:1px solid #EEEEEE;margin-top: 40rpx;
  92. display: flex;
  93. padding: 30rpx 0 0 70rpx;
  94. }
  95. .ewmImg{
  96. width: 148rpx;
  97. height: 148rpx;
  98. }
  99. .ewmRight1{
  100. color: #999999;font-size: 24rpx;padding-top: 30rpx;padding-left: 24rpx;
  101. }
  102. .ewmRight2{
  103. color: #999999;font-size: 24rpx;padding-top: 16rpx;padding-left: 24rpx;
  104. }
  105. </style>