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
94183dbc
Commit
94183dbc
authored
Aug 19, 2024
by
彭佳妮(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
308b7d9e
610b1f34
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
12 deletions
+21
-12
building.vue
src/pages/assistingAgriculture/index/building.vue
+18
-9
loading.vue
src/pages/index/loading.vue
+2
-2
packageDetails.vue
src/pages/packageDetails/packageDetails.vue
+1
-1
No files found.
src/pages/assistingAgriculture/index/building.vue
View file @
94183dbc
...
@@ -155,6 +155,7 @@ import fab from '../../../components/fab/fab.vue';
...
@@ -155,6 +155,7 @@ import fab from '../../../components/fab/fab.vue';
import
{
import
{
getGoodSaleProdList
,
getGoodSaleProdList
,
getPlatformProdList
,
getPlatformProdList
,
getPresaleList
,
}
from
'../../../api/assistingAgriculture/building'
;
}
from
'../../../api/assistingAgriculture/building'
;
import
{
getshoppingCartList
}
from
'@/api/packageDetail'
;
import
{
getshoppingCartList
}
from
'@/api/packageDetail'
;
import
{
onMounted
,
ref
}
from
'vue'
;
import
{
onMounted
,
ref
}
from
'vue'
;
...
@@ -167,13 +168,11 @@ const light = ref(0);
...
@@ -167,13 +168,11 @@ const light = ref(0);
const
hotImgList
=
ref
([]);
const
hotImgList
=
ref
([]);
const
testData
=
ref
([]);
const
testData
=
ref
([]);
const
subscript
=
ref
(
0
);
const
subscript
=
ref
(
0
);
let
sortData
;
// 轮播图数据
let
lunboData
;
// 轮播图
// 轮播图
const
swiperList
=
ref
([
const
swiperList
=
ref
([]);
'../../../static/assistingAgriculture/assets/village.png'
,
'../../../static/assistingAgriculture/assets/village.png'
,
'../../../static/assistingAgriculture/assets/village.png'
,
]);
// 分类列表数据
// 分类列表数据
const
detailList
=
ref
([]);
const
detailList
=
ref
([]);
const
whh
=
ref
({});
const
whh
=
ref
({});
...
@@ -190,11 +189,23 @@ const params1 = {
...
@@ -190,11 +189,23 @@ const params1 = {
const
filteredProdList
=
ref
([]);
const
filteredProdList
=
ref
([]);
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
getPresale
();
getGoodSaleProd
();
getGoodSaleProd
();
platformProdList
();
platformProdList
();
getshoppingCartListFn
();
getshoppingCartListFn
();
});
});
// 筑农板块轮播图
const
getPresale
=
()
=>
{
getPresaleList
({
place
:
'znyx'
}).
then
((
res
)
=>
{
res
.
data
.
forEach
((
item
)
=>
{
item
.
imgUrl
=
import
.
meta
.
env
.
VITE_APP_IMG_URL
+
item
.
imgUrl
;
});
lunboData
=
res
.
data
;
swiperList
.
value
=
res
.
data
.
map
((
item
)
=>
{
return
item
.
imgUrl
;
});
});
};
// 搜索
// 搜索
const
toSearch
=
()
=>
{
const
toSearch
=
()
=>
{
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/searchPage/searchPage?prodTypes=7'
});
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/searchPage/searchPage?prodTypes=7'
});
...
@@ -282,8 +293,6 @@ page {
...
@@ -282,8 +293,6 @@ page {
.container
{
.container
{
position
:
relative
;
position
:
relative
;
left
:
0rpx
;
left
:
0rpx
;
top
:
-45rpx
;
opacity
:
1
;
}
}
.top
{
.top
{
width
:
750rpx
;
width
:
750rpx
;
...
...
src/pages/index/loading.vue
View file @
94183dbc
...
@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
...
@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import
{
getToken
}
from
'../../utils/auth'
;
import
{
getToken
}
from
'../../utils/auth'
;
onLoad
(
async
(
options
)
=>
{
onLoad
(
async
(
options
)
=>
{
//
await signIn();
await
signIn
();
if
(
!
getToken
())
await
signIn2
();
//
if (!getToken()) await signIn2();
const
{
type
}
=
options
;
const
{
type
}
=
options
;
switch
(
type
)
{
switch
(
type
)
{
case
'0'
:
case
'0'
:
...
...
src/pages/packageDetails/packageDetails.vue
View file @
94183dbc
...
@@ -203,7 +203,7 @@
...
@@ -203,7 +203,7 @@
<wd-icon
color=
"#ABAAAA"
name=
"caret-right-small"
size=
"22px"
></wd-icon>
<wd-icon
color=
"#ABAAAA"
name=
"caret-right-small"
size=
"22px"
></wd-icon>
<view
class=
"step"
>
<view
class=
"step"
>
<image
class=
"icon"
src=
"@/static/shop/xcx.png"
></image>
<image
class=
"icon"
src=
"@/static/shop/xcx.png"
></image>
打开
小程序
打开
爽贵阳APP
</view>
</view>
<wd-icon
color=
"#ABAAAA"
name=
"caret-right-small"
size=
"22px"
></wd-icon>
<wd-icon
color=
"#ABAAAA"
name=
"caret-right-small"
size=
"22px"
></wd-icon>
<view
class=
"step"
>
<view
class=
"step"
>
...
...
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