|
@@ -13,21 +13,22 @@
|
|
|
</u-checkbox-group>
|
|
|
</view>
|
|
|
<view class="bottom-box">
|
|
|
- <u-button type="primary" shape="circle" @click="onSubmit">提交</u-button>
|
|
|
+ <u-button type="primary" shape="circle" @click="onSubmit" :disabled="isSelect">提交</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
- import { ref, reactive } from 'vue'
|
|
|
+ import { ref, reactive, computed } from 'vue'
|
|
|
import { onLoad, onReady } from '@dcloudio/uni-app'
|
|
|
+ import { msgError, msgSuccess, showConfirm } from '@/utils/common'
|
|
|
|
|
|
const checkOption = ref([
|
|
|
- {
|
|
|
- name: '浏览记录',
|
|
|
- checked: false,
|
|
|
- disabled: false
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // name: '浏览记录',
|
|
|
+ // checked: false,
|
|
|
+ // disabled: false
|
|
|
+ // },
|
|
|
{
|
|
|
name: '收藏',
|
|
|
checked: false,
|
|
@@ -40,11 +41,19 @@
|
|
|
}
|
|
|
])
|
|
|
|
|
|
+ const isSelect = computed(() => {
|
|
|
+ return checkOption.value.filter(item => item.checked).length === 0
|
|
|
+ })
|
|
|
+
|
|
|
function checkboxGroupChange() {
|
|
|
|
|
|
}
|
|
|
|
|
|
function onSubmit() {
|
|
|
+ showConfirm('是否确认删除').then(res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
</script>
|
|
|
|