invite.bak.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="invite">
  3. <view class="invite_head flex">
  4. <image src="/static/image/publice/fanhui1@2x.png" mode="" @click="retutnTop"></image>
  5. <text>邀请好友</text>
  6. <text></text>
  7. </view>
  8. <view class="invite_main center">
  9. <view class="invite_main_img">
  10. <image :src="info.qr_code" mode="aspectFill"></image>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. info:{},//
  20. };
  21. },
  22. methods:{
  23. //返回上一级
  24. retutnTop () {
  25. uni.navigateBack()
  26. },
  27. getInfo () {
  28. this.$api.userinfo().then(res=>{
  29. if (res.code === 1) {
  30. this.info = res.data
  31. console.log(res.data);
  32. }
  33. })
  34. }
  35. },
  36. onLoad () {
  37. this.getInfo()
  38. }
  39. }
  40. </script>
  41. <style lang="scss">
  42. .invite {
  43. min-height: calc(100vh);
  44. background: url(https://chaomd.liuniu946.com/image/bj.png) no-repeat;
  45. background-size: cover;
  46. .invite_main {
  47. height: 900rpx;
  48. padding-bottom: 40rpx;
  49. background: url(../static/renwu@2x.png) no-repeat;
  50. background-size: cover;
  51. .invite_main_img {
  52. width: 200rpx;
  53. height: 200rpx;
  54. }
  55. }
  56. .invite_head {
  57. width: 100%;
  58. height: 88rpx;
  59. margin-bottom: 40rpx;
  60. padding: 0 20rpx;
  61. image {
  62. width: 44rpx;
  63. height: 44rpx;
  64. }
  65. text {
  66. color: #FFFFFF;
  67. font-size: 36rpx;
  68. &:last-child {
  69. width: 44rpx;
  70. height: 44rpx;
  71. }
  72. }
  73. }
  74. }
  75. </style>