political.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view class="qr_code flexCC">
  3. <view class="img flexC"><image :src="warea_info.avatar" class="store_img"></image></view>
  4. <view class="qr_con">
  5. <view class="store_name">{{ warea_info.admin_name | getName(10) }}</view>
  6. <image :src="warea_info.qrcode" class="code_img"></image>
  7. <view class="hint">长按二维码-加客服好友</view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. warea_info: '' //店铺信息
  16. };
  17. },
  18. methods: {},
  19. onLoad(ops) {
  20. if (ops.warea) {
  21. this.warea_info = JSON.parse(decodeURIComponent(ops.warea));
  22. }
  23. }
  24. };
  25. </script>
  26. <style lang="scss" scoped>
  27. .qr_code {
  28. width: 100vw;
  29. height: 100vh;
  30. background: url('../../static/new_my/bg3.png') no-repeat;
  31. background-size: 100% 100%;
  32. .img {
  33. .store_img {
  34. width: 200rpx;
  35. height: 200rpx;
  36. border: 6rpx solid #fff;
  37. border-radius: 50%;
  38. }
  39. }
  40. .qr_con {
  41. width: 690rpx;
  42. height: 70vh;
  43. background: rgba(255, 255, 255, 0.79);
  44. margin: -100rpx auto 0;
  45. border-radius: 24rpx;
  46. display: flex;
  47. flex-direction: column;
  48. align-items: center;
  49. .store_name {
  50. font-size: 44rpx;
  51. font-weight: bold;
  52. padding: 130rpx 0 30rpx;
  53. }
  54. .code_img {
  55. width: 450rpx;
  56. height: 450rpx;
  57. margin: 80rpx 0 40rpx;
  58. border-radius: 24rpx;
  59. }
  60. .hint {
  61. font-size: 36rpx;
  62. font-weight: bold;
  63. }
  64. }
  65. }
  66. </style>