lock.uvue 974 B

1234567891011121314151617181920212223242526272829
  1. <script setup lang='ts'>
  2. import { ref } from 'vue'
  3. const props = defineProps({
  4. record: {
  5. type: Object,
  6. default: () => ({})
  7. }
  8. })
  9. const visible = ref(false)
  10. const handlePay = () => {
  11. visible.value = true
  12. }
  13. </script>
  14. <template>
  15. <view class="absolute top-0 left-0 w-full h-full flex items-center justify-center bg1" @tap.stop="handlePay">
  16. <cl-image src="https://oss.xiaoxiongcode.com/static/home/lock.png" mode="widthFix" width="30%" height="auto" />
  17. </view>
  18. <cl-popup v-model="visible" showClose :size="400" :show-header="false" direction="center">
  19. <view class="p-[40px] ">
  20. <cl-text class="text-center" color="#000" :size="20"> 小朋友,快叫爸爸妈妈帮忙,解锁更多精彩内容吧! </cl-text>
  21. <cl-button class="mt-4" size="large" type="warn" block @tap="handlePay"> 前往购课 </cl-button>
  22. </view>
  23. </cl-popup>
  24. </template>
  25. <style lang="scss" scoped>
  26. .bg1 {
  27. background-color: rgba(255, 255, 255, 0.5);
  28. }
  29. </style>