removeInfo.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view class="container">
  3. <view class="desc-box">
  4. 请您勾选需要删除的内容,本小程序将在15个工作日内处理完毕您的申请
  5. </view>
  6. <view class="form-box">
  7. <u-checkbox-group @change="checkboxGroupChange" shape="circle" wrap>
  8. <u-checkbox
  9. v-model="item.checked"
  10. v-for="(item, index) in checkOption" :key="index"
  11. :name="item.name"
  12. >{{item.name}}</u-checkbox>
  13. </u-checkbox-group>
  14. </view>
  15. <view class="bottom-box">
  16. <u-button type="primary" shape="circle" @click="onSubmit" :disabled="isSelect">提交</u-button>
  17. </view>
  18. </view>
  19. </template>
  20. <script setup>
  21. import { ref, reactive, computed } from 'vue'
  22. import { onLoad, onReady } from '@dcloudio/uni-app'
  23. import { msgError, msgSuccess, showConfirm } from '@/utils/common'
  24. const checkOption = ref([
  25. // {
  26. // name: '浏览记录',
  27. // checked: false,
  28. // disabled: false
  29. // },
  30. {
  31. name: '收藏',
  32. checked: false,
  33. disabled: false
  34. },
  35. {
  36. name: '评论',
  37. checked: false,
  38. disabled: false
  39. }
  40. ])
  41. const isSelect = computed(() => {
  42. return checkOption.value.filter(item => item.checked).length === 0
  43. })
  44. function checkboxGroupChange() {
  45. }
  46. function onSubmit() {
  47. showConfirm('是否确认删除').then(res => {
  48. if (res.confirm) {
  49. }
  50. })
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. .container {
  55. height: 100vh;
  56. width: 100vw;
  57. background-color: $uni-bg-color;
  58. padding: 20rpx;
  59. .desc-box {
  60. text-indent: 2em;
  61. line-height: 60rpx;
  62. padding: 20rpx 0;
  63. margin-bottom: 20rpx;
  64. }
  65. .form-box {
  66. padding: 20rpx 0;
  67. .input-code {
  68. display: flex;
  69. align-items: center;
  70. gap: 20rpx;
  71. .input {
  72. width: 70%;
  73. }
  74. .btn {
  75. width: 30%;
  76. text-align: center;
  77. }
  78. }
  79. }
  80. .bottom-box {
  81. margin-top: 50rpx;
  82. padding: 0 50rpx;
  83. }
  84. }
  85. </style>