Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7997614a
authored
Apr 19, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
REVIEW 公众号的消息回复弹窗
parent
48e50190
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
8 deletions
+2
-8
src/views/mp/components/wx-reply/components/TabImage.vue
+0
-1
src/views/mp/components/wx-reply/components/TabMusic.vue
+0
-2
src/views/mp/components/wx-reply/components/TabNews.vue
+1
-1
src/views/mp/components/wx-reply/components/TabText.vue
+0
-2
src/views/mp/components/wx-reply/components/TabVoice.vue
+0
-2
src/views/mp/components/wx-reply/main.vue
+1
-0
No files found.
src/views/mp/components/wx-reply/components/TabImage.vue
View file @
7997614a
...
@@ -60,7 +60,6 @@ import { MaterialType, useBeforeUpload } from '@/views/mp/hooks/useUpload'
...
@@ -60,7 +60,6 @@ import { MaterialType, useBeforeUpload } from '@/views/mp/hooks/useUpload'
import
type
{
UploadRawFile
}
from
'element-plus'
import
type
{
UploadRawFile
}
from
'element-plus'
import
{
getAccessToken
}
from
'@/utils/auth'
import
{
getAccessToken
}
from
'@/utils/auth'
import
{
ObjData
}
from
'./types'
import
{
ObjData
}
from
'./types'
const
message
=
useMessage
()
const
message
=
useMessage
()
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_API_BASEPATH
+
'/admin-api/mp/material/upload-temporary'
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_API_BASEPATH
+
'/admin-api/mp/material/upload-temporary'
...
...
src/views/mp/components/wx-reply/components/TabMusic.vue
View file @
7997614a
...
@@ -117,5 +117,3 @@ const selectMaterial = (item: any) => {
...
@@ -117,5 +117,3 @@ const selectMaterial = (item: any) => {
objData
.
value
.
thumbMediaUrl
=
item
.
url
objData
.
value
.
thumbMediaUrl
=
item
.
url
}
}
</
script
>
</
script
>
<
style
scoped
></
style
>
src/views/mp/components/wx-reply/components/TabNews.vue
View file @
7997614a
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-button
type=
"success"
@
click=
"showDialog = true"
>
<el-button
type=
"success"
@
click=
"showDialog = true"
>
{{ newsType === NewsType.Published ? '选择已发布图文' : '选择草稿箱图文' }}
{{ newsType === NewsType.Published ? '选择已发布图文' : '选择草稿箱图文' }}
<
i
con
icon=
"ep:circle-check"
/>
<
I
con
icon=
"ep:circle-check"
/>
</el-button>
</el-button>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
src/views/mp/components/wx-reply/components/TabText.vue
View file @
7997614a
...
@@ -25,5 +25,3 @@ const content = computed<string | null>({
...
@@ -25,5 +25,3 @@ const content = computed<string | null>({
}
}
})
})
</
script
>
</
script
>
<
style
scoped
></
style
>
src/views/mp/components/wx-reply/components/TabVoice.vue
View file @
7997614a
...
@@ -51,7 +51,6 @@
...
@@ -51,7 +51,6 @@
</el-row>
</el-row>
</el-tab-pane>
</el-tab-pane>
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
WxMaterialSelect
from
'@/views/mp/components/wx-material-select/main.vue'
import
WxMaterialSelect
from
'@/views/mp/components/wx-material-select/main.vue'
import
WxVoicePlayer
from
'@/views/mp/components/wx-voice-play/main.vue'
import
WxVoicePlayer
from
'@/views/mp/components/wx-voice-play/main.vue'
...
@@ -59,7 +58,6 @@ import { MaterialType, useBeforeUpload } from '@/views/mp/hooks/useUpload'
...
@@ -59,7 +58,6 @@ import { MaterialType, useBeforeUpload } from '@/views/mp/hooks/useUpload'
import
type
{
UploadRawFile
}
from
'element-plus'
import
type
{
UploadRawFile
}
from
'element-plus'
import
{
getAccessToken
}
from
'@/utils/auth'
import
{
getAccessToken
}
from
'@/utils/auth'
import
{
ObjData
}
from
'./types'
import
{
ObjData
}
from
'./types'
const
message
=
useMessage
()
const
message
=
useMessage
()
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_API_BASEPATH
+
'/admin-api/mp/material/upload-temporary'
const
UPLOAD_URL
=
import
.
meta
.
env
.
VITE_API_BASEPATH
+
'/admin-api/mp/material/upload-temporary'
...
...
src/views/mp/components/wx-reply/main.vue
View file @
7997614a
...
@@ -42,6 +42,7 @@ const props = withDefaults(defineProps<Props>(), {
...
@@ -42,6 +42,7 @@ const props = withDefaults(defineProps<Props>(), {
})
})
const
objData
=
reactive
(
props
.
objData
)
const
objData
=
reactive
(
props
.
objData
)
// TODO @Dhb52:Tab 切换的时候,应该表单还保留着;清除只有两个时机:1)发送成功后;2)关闭窗口后;我捉摸,是不是每个 TabXXX 组件,是个独立的 Form,然后有自己的对象,不粘在 objData 一起。这样最终就是 MusicMessageForm、ImageMessageForm
// const tempObj = new Map().set(objData.type, Object.assign({}, objData))
// const tempObj = new Map().set(objData.type, Object.assign({}, objData))
/** 切换消息类型的 tab */
/** 切换消息类型的 tab */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment