Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
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
刘文虎
account-book
Commits
146fe6ae
Commit
146fe6ae
authored
Jul 25, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 名片编辑
parent
cb9e41f4
Pipeline
#2912
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
14 deletions
+24
-14
create.vue
pages/card/create.vue
+24
-14
No files found.
pages/card/create.vue
View file @
146fe6ae
...
@@ -115,7 +115,9 @@
...
@@ -115,7 +115,9 @@
</view>
</view>
</u-form>
</u-form>
</view>
</view>
<view
class=
"loading-view"
v-if=
"loading"
><u-loading
mode=
"flower"
></u-loading></view>
<view
class=
"loading-view"
v-if=
"loading"
><u-loading
mode=
"flower"
></u-loading
></view>
<view
class=
"bottom-view"
>
<view
class=
"bottom-view"
>
<u-button
<u-button
:custom-style=
"customConFirm"
:custom-style=
"customConFirm"
...
@@ -127,6 +129,7 @@
...
@@ -127,6 +129,7 @@
</u-button>
</u-button>
</view>
</view>
<PopImage
:visible
.
sync=
"visible"
:images=
"currentImages"
/>
<PopImage
:visible
.
sync=
"visible"
:images=
"currentImages"
/>
<u-toast
ref=
"uToast"
/>
</view>
</view>
</
template
>
</
template
>
...
@@ -304,9 +307,16 @@ export default {
...
@@ -304,9 +307,16 @@ export default {
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
buttonLoading
=
false
this
.
buttonLoading
=
false
uni
.
$emit
(
'card-refresh'
)
uni
.
$emit
(
'card-refresh'
)
this
.
$refs
.
uToast
.
show
({
title
:
this
.
cardId
?
'编辑成功'
:
'创建成功'
,
type
:
'success'
,
duration
:
1500
,
callback
:
()
=>
{
this
.
$u
.
route
({
this
.
$u
.
route
({
type
:
'back'
,
type
:
'back'
,
})
})
},
})
}
}
})
})
.
catch
((
res
)
=>
{
.
catch
((
res
)
=>
{
...
@@ -324,7 +334,7 @@ export default {
...
@@ -324,7 +334,7 @@ export default {
this
.
$refs
.
uForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
uForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
console
.
log
(
'验证通过'
)
console
.
log
(
'验证通过'
)
this
.
edit
b
usinessCard
()
this
.
edit
B
usinessCard
()
}
else
{
}
else
{
console
.
log
(
'验证失败'
)
console
.
log
(
'验证失败'
)
}
}
...
...
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