DeleteModal.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div class="content">
  3. <TuiModal :show="isShow" :custom="true" :fadein="true">
  4. <view class="Put-box1">
  5. <view class="text-align fs34 fs-bold">
  6. 温馨提示
  7. </view>
  8. <view class="mar-top-40 text-align">
  9. 您确定删除选中的商品吗?
  10. </view>
  11. <view class="flex-display flex-sp-between">
  12. <view class="btn" @click="$emit('update:showTip', false)">
  13. 点错了
  14. </view>
  15. <view class="btn submit" @click="$emit('confirm')">
  16. 确认删除
  17. </view>
  18. </view>
  19. </view>
  20. </TuiModal>
  21. </div>
  22. </template>
  23. <script>
  24. import TuiModal from '../../../../components/modal/modal'
  25. export default {
  26. name: 'DeleteModal',
  27. components: { TuiModal },
  28. props: {
  29. showTip: {
  30. type: Boolean
  31. }
  32. },
  33. data() {
  34. return {
  35. isShow: false
  36. }
  37. },
  38. watch: {
  39. showTip(val) {
  40. this.isShow = val
  41. }
  42. },
  43. methods: {}
  44. }
  45. </script>
  46. <style
  47. lang="scss"
  48. scoped
  49. >
  50. .Put-box1 {
  51. .btn {
  52. text-align: center;
  53. margin-top: 40rpx;
  54. border: 1px solid #333333;
  55. height: 80upx;
  56. line-height: 80upx;
  57. width: 240upx;
  58. color: #333333;
  59. }
  60. .submit {
  61. background-color: #333333;
  62. color: #FFEBC4;
  63. }
  64. }
  65. </style>