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
e56386d9
Commit
e56386d9
authored
Aug 13, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
f6f57af3
14350536
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
5 deletions
+36
-5
Search.vue
src/components/index/Search.vue
+11
-1
index.vue
src/pages/index/index.vue
+6
-1
loading.vue
src/pages/index/loading.vue
+18
-2
index.vue
src/pages/storeEntry/index.vue
+1
-1
No files found.
src/components/index/Search.vue
View file @
e56386d9
<
template
>
<view
class=
"search"
:style=
"
{ background: background }">
<wd-icon
name=
"thin-arrow-left"
class=
"icon"
@
tap=
"back"
:style=
"
{ color: backIcon }">
</wd-icon>
<wd-icon
v-if=
"show"
name=
"thin-arrow-left"
class=
"icon"
@
tap=
"back"
:style=
"
{ color: backIcon }"
>
</wd-icon>
<slot></slot>
<view
class=
"searchBox"
>
<image
...
...
@@ -25,6 +31,10 @@ const props = defineProps({
type
:
String
,
default
:
'white'
,
},
show
:
{
type
:
Boolean
,
default
:
true
,
},
});
const
emit
=
defineEmits
([
'toSearch'
]);
const
title
=
ref
(
'小程序平台'
);
...
...
src/pages/index/index.vue
View file @
e56386d9
...
...
@@ -2,7 +2,12 @@
<view
class=
"container"
>
<view
class=
"top"
>
<!-- 搜索 -->
<Search
background=
"rgba(255, 255, 255, 0.8)"
backIcon=
"black"
@
toSearch=
"toSearch"
>
<Search
background=
"rgba(255, 255, 255, 0.8)"
backIcon=
"black"
@
toSearch=
"toSearch"
:show=
"false"
>
<image
class=
"food"
src=
"../../static/index/food.png"
mode=
"widthFix"
/>
</Search>
<!-- 类别选择 -->
...
...
src/pages/index/loading.vue
View file @
e56386d9
...
...
@@ -9,10 +9,26 @@ import testJson from '../../static/json/test.json';
import
{
getTokenUser
}
from
'../../api/index'
;
import
{
getToken
}
from
'../../utils/auth'
;
on
Mounted
(
async
(
)
=>
{
on
Load
(
async
(
options
)
=>
{
// await signIn();
if
(
!
getToken
())
await
signIn2
();
xma
.
reLaunch
({
url
:
'/pages/index/index'
});
const
{
type
}
=
options
;
switch
(
type
)
{
case
'0'
:
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/index/index'
});
break
;
case
'1'
:
xma
.
reLaunch
({
url
:
'/pages/index/index'
});
break
;
case
'2'
:
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/index/building?categoryId=3266'
});
break
;
case
'3'
:
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=3268'
});
}
});
onMounted
(
async
()
=>
{
// xma.reLaunch({ url: '/pages/index/index' });
});
// 登录
...
...
src/pages/storeEntry/index.vue
View file @
e56386d9
...
...
@@ -72,7 +72,7 @@ const getList = async () => {
};
const
shopGto
=
(
item
)
=>
{
xma
.
navigateTo
({
url
:
`/pages/storeEntry/detail
${
item
?
`?content=
${
JSON
.
stringify
(
item
)
}
`
:
''
}
`
,
url
:
`/pages/storeEntry/detail
${
item
?
`?content=
${
item
}
`
:
''
}
`
,
success
:
function
(
res
)
{
// 通过eventChannel向被打开页面传送数据
res
.
eventChannel
.
emit
(
'acceptDataFromOpenerPage'
,
{
data
:
item
});
...
...
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