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
9ef8bdfc
Commit
9ef8bdfc
authored
Aug 20, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
ea978e7b
e96ba78f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
main.ts
src/main.ts
+3
-3
index.vue
src/pages/index/index.vue
+2
-0
listFood.vue
src/pages/index/listFood.vue
+9
-2
No files found.
src/main.ts
View file @
9ef8bdfc
...
...
@@ -2,7 +2,7 @@ import { createSSRApp } from 'vue';
import
App
from
'./App.vue'
;
import
store
from
'./store'
;
import
'@/assets/iconfont/iconfont.css'
;
// 引入自定义图标样式文件
import
Vconsole
from
'vconsole'
;
//
import Vconsole from 'vconsole';
import
'./styles/flex.scss'
;
import
{
install
}
from
'./directive'
;
// 字体
...
...
@@ -12,8 +12,8 @@ export function createApp() {
const
app
=
createSSRApp
(
App
);
app
.
component
(
'Search'
,
Search
);
install
(
app
);
const
vConsole
=
new
Vconsole
();
app
.
use
(
store
,
vConsole
);
//
const vConsole = new Vconsole();
app
.
use
(
store
);
return
{
app
,
};
...
...
src/pages/index/index.vue
View file @
9ef8bdfc
...
...
@@ -219,6 +219,7 @@ let listParams = {
size
:
10
,
lon
:
106.68650025025502
,
lat
:
26.567192352601154
,
categoryIds
:
[
'6'
],
};
const
coupon
=
ref
([]);
const
top
=
ref
(
null
);
...
...
@@ -369,6 +370,7 @@ const reset = () => {
size
:
10
,
lon
:
106.68650025025502
,
lat
:
26.567192352601154
,
categoryIds
:
[
'6'
],
};
shopCardData
.
value
=
{};
cardData
.
value
=
[];
...
...
src/pages/index/listFood.vue
View file @
9ef8bdfc
...
...
@@ -103,11 +103,12 @@ let total;
const
paramsId
=
{
parentId
:
null
,
};
cons
t
listParams
=
{
le
t
listParams
=
{
current
:
1
,
size
:
10
,
lon
:
106.68650025025502
,
lat
:
26.567192352601154
,
categoryIds
:
[
'6'
],
};
onMounted
(()
=>
{
getMerchantList
();
...
...
@@ -162,7 +163,13 @@ const popular = (communityName) => {
};
// 重置数据
const
reset
=
()
=>
{
listParams
.
current
=
1
;
listParams
=
{
current
:
1
,
size
:
10
,
lon
:
106.68650025025502
,
lat
:
26.567192352601154
,
categoryIds
:
[
'6'
],
};
cardData
.
value
=
[];
show
.
value
=
false
;
};
...
...
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