Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eMall_miniapp
Project
Project
Details
Activity
Releases
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
高宇
eMall_miniapp
Commits
06923184
Commit
06923184
authored
Jul 05, 2023
by
杨硕
Browse files
Options
Browse Files
Download
Plain Diff
修改首页
parents
4abf8815
a3e12871
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
21 deletions
+42
-21
pages.json
pages.json
+10
-10
goods.vue
pages/goods/goods.vue
+2
-2
list.vue
pages/order/list.vue
+1
-1
index.vue
pages/shop/index.vue
+22
-1
profile.vue
pages/user/profile.vue
+5
-5
u-swiper.vue
uview-ui/components/u-swiper/u-swiper.vue
+2
-2
No files found.
pages.json
View file @
06923184
...
...
@@ -152,39 +152,39 @@
}
,{
"path"
:
"pages/order/express"
,
"style"
:
"style"
:
{
"navigationBarTitleText"
:
"物流信息"
,
"enablePullDownRefresh"
:
false
}
}
,{
"path"
:
"pages/order/payment/callback"
,
"style"
:
"style"
:
{
"navigationBarTitleText"
:
"支付结果"
,
"enablePullDownRefresh"
:
false
}
}
,{
"path"
:
"pages/menu/index"
,
"style"
:
"style"
:
{
"navigationBarTitleText"
:
"分类"
,
"enablePullDownRefresh"
:
false
}
}
,{
"path"
:
"pages/menu/list"
,
"style"
:
"style"
:
{
"navigationBarTitleText"
:
"商品列表"
,
"enablePullDownRefresh"
:
false
}
}
],
"subPackages"
:
[
...
...
@@ -193,7 +193,7 @@
"pages"
:
[
{
"path"
:
"index"
,
"style"
:
"style"
:
{
"navigationBarTitleText"
:
"选择商圈"
}
...
...
@@ -201,7 +201,7 @@
]
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
"navigationBarTitleText"
:
"邻家小铺"
,
...
...
pages/goods/goods.vue
View file @
06923184
...
...
@@ -107,7 +107,7 @@
stock_num
:
20
,
// 商品总库存
collection_id
:
0
,
// 无规格商品 skuId 取 collection_id,否则取所选 sku 组合对应的 id
none_sku
:
false
,
// 是否无规格商品
hide_stock
:
false
,
// 是否隐藏剩余库存
hide_stock
:
false
,
// 是否隐藏剩余库存
sel
:
{}
},
count
:
1
,
...
...
@@ -288,7 +288,7 @@
this
.
sku
=
{};
sku
.
tree
=
skuTree
;
this
.
sku
=
sku
;
let
skuSelItem
;
for
(
const
i
in
list
)
{
const
item
=
list
[
i
];
...
...
pages/order/list.vue
View file @
06923184
...
...
@@ -464,7 +464,7 @@
.content
{
flex
:
1
;
.title
{
font-size
:
28rpx
;
line-height
:
50rpx
;
...
...
pages/shop/index.vue
View file @
06923184
...
...
@@ -30,6 +30,27 @@
<view
class=
"gl-price"
>
¥
{{
formatPrice
(
item
.
price
)
}}
</view>
</view>
</view>
<view>
<u-tabs
:list=
"navList"
:is-scroll=
"false"
:current=
"activeNav"
@
change=
"changeNav"
></u-tabs>
<u-row
gutter=
"16"
>
<u-col
style=
"padding:0px;"
v-for=
"(topic,index) in topicList"
:key=
"index"
:span=
"(index+3)%3===0?6:3"
>
<u-image
width=
"100%"
height=
"180rpx"
:src=
"topic.img"
@
click=
"toTopic(topic.id)"
></u-image>
</u-col>
</u-row>
<view>
<view
class=
"gl-title"
>
热门推荐
</view>
<view
class=
"gl-body"
>
<u-row
v-for=
"(item,index) in hotList"
:key=
"index"
>
<u-col
:span=
"4"
class=
"gl-img"
>
<u-image
width=
"170rpx"
height=
"170rpx"
:src=
"item.img"
@
click=
"toDetail(item.id)"
></u-image>
</u-col>
<u-col
:span=
"8"
@
click=
"toDetail(item.id)"
>
<view
class=
"gl-name"
>
{{
item
.
name
}}
</view>
<view
class=
"gl-descript"
>
{{
item
.
descript
}}
</view>
<view
class=
"gl-price"
>
¥
{{
formatPrice
(
item
.
price
)
}}
</view>
</u-col>
</u-row>
</view>
</view>
...
...
@@ -224,4 +245,4 @@
justify-content
:
center
;
margin-left
:
20
rpx
;
}
</
style
>
\ No newline at end of file
</
style
>
pages/user/profile.vue
View file @
06923184
...
...
@@ -18,7 +18,7 @@
<u-icon
name=
"arrow-right"
color=
"#969799"
size=
"28"
></u-icon>
</view>
-->
</view>
<view
class=
"card"
>
<u-grid
:border=
"false"
col=
"4"
@
click=
"click"
>
<u-grid-item
v-for=
"(baseListItem,baseListIndex) in baseList2"
:key=
"baseListIndex"
>
...
...
@@ -318,11 +318,11 @@
display
:
flex
;
justify-content
:
space-between
;
padding
:
34rpx
;
.order-title
{
font-size
:
34rpx
;
}
.order-more
{
font-size
:
28rpx
;
}
...
...
@@ -331,5 +331,5 @@
/
deep
/
.u-grid-item-box
{
padding
:
0px
!
important
;
}
</
style
>
\ No newline at end of file
</
style
>
uview-ui/components/u-swiper/u-swiper.vue
View file @
06923184
...
...
@@ -142,7 +142,7 @@
type
:
Boolean
,
default
:
true
},
// 图片的裁剪模式
// 图片的裁剪模式
imgMode
:
{
type
:
String
,
default
:
'aspectFill'
...
...
@@ -232,7 +232,7 @@
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-swiper-wrap
{
position
:
relative
;
overflow
:
hidden
;
...
...
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