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
c7b8fdb8
authored
Aug 13, 2023
by
dhb52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 支付/示例 queryParams 为 reactive
parent
5d364e26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/views/pay/demo/index.vue
+4
-3
No files found.
src/views/pay/demo/index.vue
View file @
c7b8fdb8
...
@@ -121,7 +121,8 @@ const message = useMessage() // 消息弹窗
...
@@ -121,7 +121,8 @@ const message = useMessage() // 消息弹窗
const
loading
=
ref
(
true
)
// 列表的加载中
const
loading
=
ref
(
true
)
// 列表的加载中
const
total
=
ref
(
0
)
// 列表的总页数
const
total
=
ref
(
0
)
// 列表的总页数
const
list
=
ref
([])
// 列表的数据
const
list
=
ref
([])
// 列表的数据
const
queryParams
=
ref
({
// 查询条件
const
queryParams
=
reactive
({
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
10
pageSize
:
10
})
})
...
@@ -141,7 +142,7 @@ const getList = async () => {
...
@@ -141,7 +142,7 @@ const getList = async () => {
}
}
/** 支付按钮操作 */
/** 支付按钮操作 */
const
handlePay
=
(
row
)
=>
{
const
handlePay
=
(
row
:
any
)
=>
{
router
.
push
({
router
.
push
({
name
:
'PayCashier'
,
name
:
'PayCashier'
,
query
:
{
query
:
{
...
@@ -195,7 +196,7 @@ const spus = ref([
...
@@ -195,7 +196,7 @@ const spus = ref([
const
dialogVisible
=
ref
(
false
)
// 弹窗的是否展示
const
dialogVisible
=
ref
(
false
)
// 弹窗的是否展示
const
formLoading
=
ref
(
false
)
// 表单的加载中
const
formLoading
=
ref
(
false
)
// 表单的加载中
const
formData
=
ref
({})
// 表单数据
const
formData
=
ref
<
any
>
({})
// 表单数据
const
formRules
=
{
const
formRules
=
{
spuId
:
[{
required
:
true
,
message
:
'商品编号不能为空'
,
trigger
:
'blur'
}]
spuId
:
[{
required
:
true
,
message
:
'商品编号不能为空'
,
trigger
:
'blur'
}]
}
}
...
...
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