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
478b4cbd
Commit
478b4cbd
authored
Jul 25, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
18bf1ac7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
21 deletions
+13
-21
Search.vue
src/components/index/Search.vue
+12
-2
index.vue
src/pages/index/index.vue
+1
-19
No files found.
src/components/index/Search.vue
View file @
478b4cbd
...
...
@@ -2,16 +2,26 @@
<view
class=
"search"
>
<wd-icon
name=
"thin-arrow-left"
class=
"icon"
></wd-icon>
<slot></slot>
<view
class=
"searchBox"
>
11
</view>
<view
class=
"searchBox"
>
<input
type=
"text"
:value=
"test"
/>
</view>
</view>
</
template
>
<
script
setup
>
import
{
useCountStore
}
from
'@/store'
;
import
{
onMounted
}
from
'vue'
;
const
title
=
ref
(
'小程序平台'
);
const
{
countInfo
,
addCount
}
=
useCountStore
();
const
test
=
ref
(
''
);
onMounted
(()
=>
{
xma
.
xh
.
getUserProfile
({
range
:
[
'ACCOUNT'
,
'MOBILE'
,
'CITIZEN'
],
async
success
(
info
)
{
const
info2
=
JSON
.
stringify
(
info
);
test
.
value
=
info2
;
},
});
});
function
toUIComponentsDoc
()
{
window
.
open
(
'https://wot-design-uni.netlify.app/component/button.html'
);
}
...
...
src/pages/index/index.vue
View file @
478b4cbd
...
...
@@ -16,25 +16,7 @@ import Search from '../../components/index/Search.vue';
const
title
=
ref
(
'小程序平台'
);
const
{
countInfo
,
addCount
}
=
useCountStore
();
onMounted
(()
=>
{
xma
.
xh
.
getUserProfile
({
range
:
[
'ACCOUNT'
,
'MOBILE'
,
'CITIZEN'
],
async
success
(
info
)
{
const
info2
=
JSON
.
stringify
(
info
);
xma
.
showModal
({
title
:
'提示'
,
content
:
info2
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
},
});
},
});
});
onMounted
(()
=>
{});
function
toUIComponentsDoc
()
{
window
.
open
(
'https://wot-design-uni.netlify.app/component/button.html'
);
}
...
...
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