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
afae2cb4
Commit
afae2cb4
authored
Aug 20, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
2ee28736
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
18 deletions
+34
-18
building.vue
src/pages/assistingAgriculture/index/building.vue
+1
-1
index.vue
src/pages/assistingAgriculture/index/index.vue
+15
-0
presale.vue
src/pages/assistingAgriculture/index/presale.vue
+16
-15
loading.vue
src/pages/index/loading.vue
+2
-2
No files found.
src/pages/assistingAgriculture/index/building.vue
View file @
afae2cb4
...
@@ -258,7 +258,7 @@ const choice = (index, item) => {
...
@@ -258,7 +258,7 @@ const choice = (index, item) => {
// 跳转预售
// 跳转预售
const
toPresale
=
()
=>
{
const
toPresale
=
()
=>
{
xma
.
navigateTo
({
xma
.
navigateTo
({
url
:
`/pages/assistingAgriculture/index/presale?categoryId=
3273
`
,
url
:
`/pages/assistingAgriculture/index/presale?categoryId=
9
`
,
});
});
};
};
// 处理content
// 处理content
...
...
src/pages/assistingAgriculture/index/index.vue
View file @
afae2cb4
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
@
focus=
"toSearch"
@
focus=
"toSearch"
/>
/>
</view>
</view>
<!--
<text
class=
"env-info"
>
贵阳市农业农村局 贵阳日报传媒集团联合打造
</text>
-->
</Search>
</Search>
<view>
<view>
<wd-swiper
<wd-swiper
...
@@ -210,6 +211,13 @@ page {
...
@@ -210,6 +211,13 @@ page {
.box-red
{
.box-red
{
white-space
:
nowrap
;
white-space
:
nowrap
;
width
:
100%
;
width
:
100%
;
::-webkit-scrollbar
{
display
:
none
;
width
:
0
;
height
:
0
;
color
:
transparent
;
}
background-color
:
transparent
;
}
}
.borderClass
{
.borderClass
{
width
:
96rpx
;
width
:
96rpx
;
...
@@ -322,4 +330,11 @@ page {
...
@@ -322,4 +330,11 @@ page {
color
:
#ffffff
;
color
:
#ffffff
;
}
}
}
}
.env-info
{
font-size
:
28rpx
;
position
:
absolute
;
margin-top
:
30rpx
;
margin-left
:
10rpx
;
z-index
:
0
;
}
</
style
>
</
style
>
src/pages/assistingAgriculture/index/presale.vue
View file @
afae2cb4
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<view
style=
"display: flex; flex-direction: row"
>
<view
style=
"display: flex; flex-direction: row"
>
<view
<view
class=
"borderClass"
class=
"borderClass"
@
tap=
"chooseTab(index, item.categoryId)"
@
tap=
"choose
B
Tab(index, item.categoryId)"
v-for=
"(item, index) in sortList"
v-for=
"(item, index) in sortList"
:key=
"index"
:key=
"index"
>
>
...
@@ -45,19 +45,19 @@
...
@@ -45,19 +45,19 @@
</view>
</view>
</view>
</view>
<view>
<view>
<
view
>
<
!--
<view>
--
>
<scroll-view
class=
"tabs"
show-scrollbar=
"false"
scroll-x
:scroll-with-animation=
"true"
>
<!--
<scroll-view
class=
"tabs"
show-scrollbar=
"false"
scroll-x
:scroll-with-animation=
"true"
>
--
>
<text
<!--
<text-->
@
tap=
"chooseBTab(index, item.categoryId)"
<!-- @tap="chooseBTab(index, item.categoryId)"-->
v-for=
"(item, index) in tabsData"
<!-- v-for="(item, index) in tabsData"-->
:key=
"index"
<!-- :key="index"-->
class=
"text"
<!-- class="text"-->
:class=
"light === index ? 'light' : ''"
<!-- :class="light === index ? 'light' : ''"-->
>
<!-- >--
>
{{
item
.
categoryName
}}
<!--
{{
item
.
categoryName
}}
-->
</text
>
<!--
</text>
--
>
</scroll-view
>
<!--
</scroll-view>
--
>
<
/view
>
<
!--
</view>
--
>
<view
class=
"tab-list"
v-for=
"(item, index) in buyList"
:key=
"index"
@
tap=
"toDetail(item)"
>
<view
class=
"tab-list"
v-for=
"(item, index) in buyList"
:key=
"index"
@
tap=
"toDetail(item)"
>
<img
<img
class=
"buy-list"
class=
"buy-list"
...
@@ -163,6 +163,7 @@ onMounted(async () => {
...
@@ -163,6 +163,7 @@ onMounted(async () => {
getPresale
();
getPresale
();
presaleSortList
();
presaleSortList
();
getshoppingCartListFn
();
getshoppingCartListFn
();
chooseBTab
(
0
,
'3444'
);
});
});
// 搜索
// 搜索
const
toSearch
=
()
=>
{
const
toSearch
=
()
=>
{
...
@@ -224,7 +225,7 @@ const chooseBTab = (index, categoryId) => {
...
@@ -224,7 +225,7 @@ const chooseBTab = (index, categoryId) => {
});
});
buyList
.
value
=
res
.
data
.
records
;
buyList
.
value
=
res
.
data
.
records
;
});
});
light
.
value
=
index
;
//
light.value = index;
};
};
// 筑农首页-分类查询商品列表
// 筑农首页-分类查询商品列表
...
...
src/pages/index/loading.vue
View file @
afae2cb4
...
@@ -21,11 +21,11 @@ onLoad(async (options) => {
...
@@ -21,11 +21,11 @@ onLoad(async (options) => {
xma
.
reLaunch
({
url
:
'/pages/index/index'
});
xma
.
reLaunch
({
url
:
'/pages/index/index'
});
break
;
break
;
case
'2'
:
case
'2'
:
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=
7
'
});
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=
8
'
});
break
;
break
;
case
'3'
:
case
'3'
:
xma
.
reLaunch
({
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/index/building?categoryId=
8
'
,
url
:
'/pages/assistingAgriculture/index/building?categoryId=
10
'
,
});
});
break
;
break
;
default
:
default
:
...
...
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