You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

popup-active-order.vue 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="main">
  3. <view class="hint">{{content}}</view>
  4. <view class="btns as-layout-horizontal">
  5. <view class="btn-grey" @click="emit('cancel')">取消</view>
  6. <view class="btn-green" @click="emit('confirm')">确定</view>
  7. </view>
  8. </view>
  9. </template>
  10. <script setup lang="ts">
  11. const emit = defineEmits(["cancel","confirm"])
  12. defineProps({
  13. content:{
  14. type:String,
  15. default:''
  16. }
  17. })
  18. </script>
  19. <style lang="scss" scoped>
  20. .main{
  21. width: 530rpx;
  22. background-color: white;
  23. padding: 56rpx 45rpx 40rpx;
  24. border-radius: 20rpx;
  25. .hint{
  26. font-size: 32rpx;
  27. color: #333333;
  28. line-height: 50rpx;
  29. letter-spacing: 2rpx;
  30. text-align: center;
  31. }
  32. .btns{
  33. margin: 40rpx 20rpx 0rpx;
  34. justify-content: space-between;
  35. .btn-grey{
  36. border-radius: 40rpx;
  37. width: 188rpx;
  38. height: 80rpx;
  39. line-height: 80rpx;
  40. background-color: #F7F7F7;
  41. border: 1rpx solid #DCDCDC;
  42. font-size: 32rpx;
  43. color: #333333;
  44. text-align: center;
  45. }
  46. .btn-green{
  47. border-radius: 40rpx;
  48. width: 188rpx;
  49. height: 80rpx;
  50. line-height: 80rpx;
  51. background-color: #00B38B;
  52. font-size: 32rpx;
  53. color: #ffffff;
  54. text-align: center;
  55. }
  56. }
  57. }
  58. </style>