Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-11-27 09:44:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b4ef6164000f282e22144a31fe11f659c9685134
b4ef6164
1 parent
f4ab79d1
✨ feat: 修复dialog组件调用方式
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
src/components/DonateBook/index.vue
src/components/LocalismBox/index.vue
src/utils/generatePackage.js
src/views/me/message.vue
src/components/DonateBook/index.vue
View file @
b4ef616
...
...
@@ -59,7 +59,7 @@ import { ref, reactive, onMounted, watch, nextTick } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import axios from '@/utils/axios';
import $ from 'jquery'
import { showToast, Dialog } from 'vant';
import { showToast,
showConfirm
Dialog } from 'vant';
const $route = useRoute();
const $router = useRouter();
...
...
@@ -111,7 +111,7 @@ let popupHeight = ref('60%');
watch(() => props.showPopup, (v) => {
// 如果没有默认儿童需要用户确认一次
if (v && !props.item.perf_id) {
Dialog.confirm
({
showConfirmDialog
({
title: '温馨提示',
message: '默认儿童为空, 是否继续捐书!',
confirmButtonColor: '#713610'
...
...
src/components/LocalismBox/index.vue
View file @
b4ef616
<!--
* @Date: 2022-06-20 11:35:50
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-11-27 09:
38:06
* @LastEditTime: 2024-11-27 09:
42:51
* @FilePath: /tswj/src/components/LocalismBox/index.vue
* @Description: 调整作品方言弹框组件
-->
...
...
@@ -41,7 +41,7 @@
import { ref, watch, nextTick } from 'vue'
import MyButton from '@/components/MyButton/index.vue'
import { localismListModiAPI, addLocalismAPI, modifyProdLocalismAPI } from '@/api/B/localism'
import { showSuccessToast, Dialog } from '@/utils/generatePackage.js'
import { showSuccessToast,
showConfirm
Dialog } from '@/utils/generatePackage.js'
const props = defineProps({
showLocalism: Boolean,
...
...
@@ -107,7 +107,7 @@ const addLocalism = () => { // 滚动到底部,显示新增输入框
const onBlur = () => { // 失焦保存录入方言
if (!localism_name.value) return false;
Dialog.confirm
({
showConfirmDialog
({
title: '温馨提示',
message: `是否确认新增${localism_name.value}?`,
confirmButtonColor: '#11D2B1'
...
...
@@ -146,7 +146,7 @@ const handleSubmit = () => { // 提交选择方言
const localism = localismList.value.filter((item) => item.checked === true);
// 原始和提交不一致请求接口提交
if (raw_id.value !== localism[0].id) {
Dialog.confirm
({
showConfirmDialog
({
title: '温馨提示',
message: `是否确认设置方言为${localism[0].id}?`,
confirmButtonColor: '#11D2B1'
...
...
src/utils/generatePackage.js
View file @
b4ef616
...
...
@@ -11,7 +11,7 @@ import _ from 'lodash'
import
axios
from
'@/utils/axios'
;
import
{
storeToRefs
}
from
'pinia'
import
{
mainStore
}
from
'@/store'
import
{
showToast
,
showSuccessToast
,
showFailToast
,
Dialog
}
from
'vant'
;
import
{
showToast
,
showSuccessToast
,
showFailToast
,
showConfirm
Dialog
}
from
'vant'
;
import
{
wxInfo
,
hasEllipsis
}
from
'@/utils/tools'
;
import
{
useTitle
}
from
'@vueuse/core'
...
...
@@ -25,7 +25,7 @@ export {
showToast
,
showSuccessToast
,
showFailToast
,
Dialog
,
showConfirm
Dialog
,
wxInfo
,
hasEllipsis
,
useTitle
...
...
src/views/me/message.vue
View file @
b4ef616
...
...
@@ -56,7 +56,7 @@ import { no_image, icon_avatar } from '@/utils/generateIcons.js'
import { ref, onActivated } from 'vue'
import { onBeforeRouteLeave } from 'vue-router'
import _ from 'lodash'
import { showSuccessToast, Dialog } from 'vant';
import { showSuccessToast,
showConfirm
Dialog } from 'vant';
// import { addPages } from '@/hooks/useKeepAlive'
import goToVideoDetail from '@/router/methods/videoDetail'
import { myCommentAPI, delCommentAPI } from '@/api/C/me'
...
...
@@ -127,7 +127,7 @@ const onLoad = async () => {
}
const deleteComment = (id: string) => { // 删除评论
Dialog.confirm
({
showConfirmDialog
({
title: '温馨提示',
message: '是否确认删除该评论?',
confirmButtonColor: '#713610'
...
...
Please
register
or
login
to post a comment