Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
buildingAgricultureSharing-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
彭佳妮(贵阳日报)
buildingAgricultureSharing-miniapp
Commits
e4074924
Commit
e4074924
authored
Aug 06, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面优化
parent
7e76ee5b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
3 deletions
+53
-3
pages.json
src/pages.json
+8
-0
ConfirmOrder.vue
src/pages/cart/ConfirmOrder.vue
+0
-0
cart.vue
src/pages/cart/cart.vue
+7
-1
building.vue
src/pages/index/building.vue
+27
-0
index.vue
src/pages/index/index.vue
+1
-1
presale.vue
src/pages/index/presale.vue
+10
-1
No files found.
src/pages.json
View file @
e4074924
...
...
@@ -46,6 +46,14 @@
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationStyle"
:
""
}
},
{
"path"
:
"pages/cart/ConfirmOrder"
,
"style"
:
{
"navigationBarTitleText"
:
"确认订单"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationStyle"
:
""
}
}
],
"globalStyle"
:
{
...
...
src/pages/c
onfirm-o
rder.vue
→
src/pages/c
art/ConfirmO
rder.vue
View file @
e4074924
File moved
src/pages/cart/cart.vue
View file @
e4074924
...
...
@@ -50,7 +50,7 @@
<span>
¥
{{
totalPrice
}}
</span>
</div>
</div>
<div
class=
"submit"
>
去结算(
{{
totalPrice
}}
)
</div>
<div
class=
"submit"
@
tap=
"toSettle"
>
去结算(
{{
totalPrice
}}
)
</div>
</div>
</div>
</
template
>
...
...
@@ -140,6 +140,12 @@ const changeCheckedAll = () => {
changeShopChecked
(
v
);
});
};
function
toSettle
()
{
// TODO: 跳转到筑农严选
xma
.
navigateTo
({
url
:
'/pages/cart/cart'
,
});
}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/pages/index/building.vue
View file @
e4074924
...
...
@@ -91,6 +91,10 @@
</view>
</view>
</view>
<!-- 购物车悬浮按钮 -->
<view
class=
"cart-floating"
>
<img
class=
"cart"
@
tap=
"toCart"
src=
"/static/presale/cart.png"
/>
</view>
</view>
</
template
>
...
...
@@ -142,6 +146,12 @@ function toDetail() {
url
:
'/pages/detail/detail'
,
});
}
function
toCart
()
{
// TODO: 跳转到筑农严选
xma
.
navigateTo
({
url
:
'/pages/cart/cart'
,
});
}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -319,4 +329,21 @@ page {
margin-top
:
-15px
;
display
:
block
;
}
.cart-floating
{
position
:
fixed
;
right
:
20rpx
;
bottom
:
100rpx
;
width
:
80rpx
;
height
:
80rpx
;
z-index
:
99
;
background-color
:
#ffffff
;
border-radius
:
50%
;
}
.cart
{
position
:
relative
;
top
:
20rpx
;
left
:
16rpx
;
width
:
48rpx
;
height
:
46rpx
;
}
</
style
>
src/pages/index/index.vue
View file @
e4074924
...
...
@@ -108,7 +108,7 @@
</view>
</view>
</view>
<view
class=
"product-page"
@
tap=
"toDetail"
v-for=
"(item, index) in list"
:key=
"index"
>
<view
class=
"product-page"
v-for=
"(item, index) in list"
:key=
"index"
>
<view>
<view
class=
"page-title"
>
{{
item
.
text
}}
</view>
<img
:src=
"item.img"
class=
"main-img"
/>
...
...
src/pages/index/presale.vue
View file @
e4074924
...
...
@@ -135,7 +135,7 @@
</view>
<!-- 购物车悬浮按钮 -->
<view
class=
"cart-floating"
>
<img
@
tap=
"toCart"
src=
"/static/presale/cart.png"
style=
"width: 48rpx; height: 46rpx
"
/>
<img
class=
"cart"
@
tap=
"toCart"
src=
"/static/presale/cart.png
"
/>
</view>
</
template
>
...
...
@@ -481,5 +481,14 @@ page {
width
:
80rpx
;
height
:
80rpx
;
z-index
:
99
;
background-color
:
#ffffff
;
border-radius
:
50%
;
}
.cart
{
position
:
relative
;
top
:
20rpx
;
left
:
16rpx
;
width
:
48rpx
;
height
:
46rpx
;
}
</
style
>
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