Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
shopxo-uniapp
提交
dfed86dc
S
shopxo-uniapp
项目概览
纵之格
/
shopxo-uniapp
通知
102
Star
3
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
shopxo-uniapp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
dfed86dc
编写于
11月 22, 2022
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
购物车分离优化体验
上级
336abda7
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
791 addition
and
718 deletion
+791
-718
components/cart/cart.vue
components/cart/cart.vue
+735
-0
components/popup/popup.vue
components/popup/popup.vue
+1
-1
pages/cart-page/cart-page.vue
pages/cart-page/cart-page.vue
+39
-0
pages/cart/cart.css
pages/cart/cart.css
+0
-139
pages/cart/cart.vue
pages/cart/cart.vue
+16
-578
未找到文件。
components/cart/cart.vue
0 → 100644
浏览文件 @
dfed86dc
此差异已折叠。
点击以展开。
components/popup/popup.vue
浏览文件 @
dfed86dc
...
...
@@ -89,7 +89,7 @@
transform
:
translateY
(
-100%
);
}
.popup-bottom
{
bottom
:
0
;
bottom
:
var
(
--window-bottom
)
;
width
:
100vw
;
transform
:
translateY
(
100%
);
}
...
...
pages/cart-page/cart-page.vue
0 → 100644
浏览文件 @
dfed86dc
<
template
>
<view>
<!-- 购物车 -->
<component-cart
ref=
"cart"
></component-cart>
<!-- 快捷导航 -->
<component-quick-nav
:propIsBar=
"true"
></component-quick-nav>
</view>
</
template
>
<
script
>
const
app
=
getApp
();
import
componentQuickNav
from
"
../../components/quick-nav/quick-nav
"
;
import
componentCart
from
"
../../components/cart/cart
"
;
export
default
{
data
()
{
return
{};
},
components
:
{
componentQuickNav
,
componentCart
},
onShow
()
{
// 数据加载
if
((
this
.
$refs
.
cart
||
null
)
!=
null
)
{
this
.
$refs
.
cart
.
init
();
}
},
// 下拉刷新
onPullDownRefresh
()
{
this
.
$refs
.
cart
.
init
();
},
methods
:
{}
};
</
script
>
<
style
>
</
style
>
\ No newline at end of file
pages/cart/cart.css
已删除
100644 → 0
浏览文件 @
336abda7
/**
* 商品列表
*/
.page
{
padding-bottom
:
100
rpx
;
}
.goods-title
{
line-height
:
44
rpx
;
min-height
:
86
rpx
;
}
.goods-image
{
width
:
155
rpx
;
height
:
155
rpx
;
margin-right
:
20
rpx
;
}
.goods-base
{
margin-left
:
175
rpx
;
}
.goods-item
.items
{
padding-left
:
80
rpx
;
}
.goods-item
.selected
{
margin-top
:
60
rpx
;
}
/**
* 错误提示
*/
.goods-item
.error-msg
{
left
:
96
rpx
;
top
:
78
rpx
;
width
:
160
rpx
;
}
.goods-item
.error-msg
text
{
padding
:
2
rpx
10
rpx
;
box-shadow
:
0
2px
10px
rgb
(
181
181
181
/
95%
);
}
/**
* 底部
*/
.goods-item
.goods-bottom
{
height
:
58
rpx
;
}
/**
* 数量操作
*/
.number-content
{
right
:
0
;
top
:
0
;
}
.number-content
.number-submit
{
width
:
60
rpx
;
font-weight
:
bold
;
}
.number-content
input
{
width
:
30px
;
border-width
:
0
1px
;
border-style
:
solid
;
border-color
:
#efefef
;
}
.number-content
.number-submit
,
.number-content
input
{
padding
:
0
;
height
:
50
rpx
;
line-height
:
50
rpx
;
}
/**
* 空购物车
*/
.no-data-box
{
padding
:
30%
0
0
0
;
}
.no-data-box
image
{
width
:
160
rpx
;
}
/**
* 操作导航
*/
.buy-nav
{
position
:
fixed
;
z-index
:
2
;
left
:
0
;
bottom
:
0
;
/* #ifdef H5 || APP */
bottom
:
var
(
--window-bottom
);
/* #endif */
}
.buy-nav
,
.nav-base
{
height
:
100
rpx
;
line-height
:
100
rpx
;
}
.nav-submit
button
{
height
:
72
rpx
;
line-height
:
72
rpx
;
}
.nav-base
{
width
:
calc
(
75%
-
20
rpx
);
}
.nav-submit
{
width
:
calc
(
25%
-
40
rpx
);
}
.nav-submit
button
{
border-radius
:
0
;
}
.selected
.icon
{
width
:
35
rpx
;
height
:
35
rpx
!important
;
margin
:
0
10
rpx
;
}
.buy-nav
.price
{
width
:
calc
(
100%
-
140
rpx
);
}
.buy-nav
.sales-price
{
max-width
:
calc
(
100%
-
40px
);
}
.nav-remove-submit
{
top
:
38
rpx
;
left
:
66
rpx
;
padding
:
0
rpx
20
rpx
;
line-height
:
36
rpx
;
}
/*
* 展示型
*/
.exhibition-mode
button
{
line-height
:
80
rpx
;
}
.exhibition-mode-data
.items
{
padding-left
:
0
;
}
.exhibition-mode-data
.error-msg
{
left
:
26
rpx
;
}
\ No newline at end of file
pages/cart/cart.vue
浏览文件 @
dfed86dc
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录