follow-qrcode.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view :class="show ? 'show cu-modal ':'cu-modal'">
  3. <view class="cu-dialog">
  4. <view class="">
  5. <view class="cu-bar justify-center text-white">
  6. <view class="text-xxl text-bold flex-sub" style="color: #FBC600;margin-left: 60rpx;">
  7. 扫码关注公众号
  8. </view>
  9. <view class="action" @click="hideModal">
  10. <text class="cuIcon-close text-black"></text>
  11. </view>
  12. </view>
  13. <image src="https://zhengda.oss-cn-chengdu.aliyuncs.com/juyin/static/index/code.jpg" style="width: 350rpx;" mode="widthFix"></image>
  14. </view>
  15. <view class="cu-bar bg-white flex-direction padding-tb-xs">
  16. <view class="action margin-0 flex-sub solid-left" style="margin: 0;">长按识别 关注公众号</view>
  17. <view class="action margin-0 flex-sub solid-left" style="margin: 0;">获取更多的征信修复咨询</view>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. }
  27. },
  28. props: {
  29. show: {
  30. type: Boolean,
  31. default: false
  32. }
  33. },
  34. methods: {
  35. hideModal(e) {
  36. //this.show = false //这行去掉 不能直接改变props中参数的值
  37. this.$emit('hide', this.show);
  38. },
  39. }
  40. }
  41. </script>
  42. <style>
  43. </style>