Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
8dc7f65b
Commit
8dc7f65b
authored
Aug 13, 2024
by
刘玉宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
42d43848
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
addressEdit.vue
src/pages/address/addressEdit.vue
+8
-4
No files found.
src/pages/address/addressEdit.vue
View file @
8dc7f65b
...
...
@@ -95,6 +95,7 @@ function fieldNotEmpty(val) {
}
const
hdSubmit
=
async
()
=>
{
try
{
if
(
!
content
.
value
.
addrId
)
{
await
addAddress
({
...
forMData
.
value
,
...
...
@@ -109,9 +110,16 @@ const hdSubmit = async () => {
commonAddr
:
forMData
.
value
.
commonAddr
?
1
:
0
,
});
}
uni
.
showToast
({
title
:
'提交成功'
,
duration
:
2000
,
});
uni
.
navigateTo
({
url
:
'/pages/address/addressList'
,
});
}
catch
(
error
)
{
console
.
log
(
error
,
'error'
);
}
};
function
handleSubmit
()
{
reForm
.
value
...
...
@@ -119,10 +127,6 @@ function handleSubmit() {
.
then
(({
valid
})
=>
{
if
(
valid
)
{
hdSubmit
();
xma
.
showToast
({
title
:
'提交成功'
,
duration
:
2000
,
});
}
})
.
catch
((
error
)
=>
{
...
...
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