Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yongxinda-h5
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
yongxinda-h5
Commits
1eda27be
提交
1eda27be
authored
1月 11, 2023
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化页面展示
上级
cb07e8e0
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
56 行增加
和
50 行删除
+56
-50
vk-data-goods-sku-popup.vue
...nents/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue
+25
-6
categoryPopup.vue
src/pages/productLine/components/categoryPopup.vue
+21
-44
productLine.vue
src/pages/productLine/productLine.vue
+10
-0
没有找到文件。
src/components/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue
浏览文件 @
1eda27be
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
@
touchmove
.
stop
.
prevent=
"moveHandle"
@
click
.
stop=
"stop"
>
@
touchmove
.
stop
.
prevent=
"moveHandle"
@
click
.
stop=
"stop"
>
<!-- 页面内容开始 -->
<!-- 页面内容开始 -->
<view
class=
"mask"
@
click=
"close('mask')"
></view>
<view
class=
"mask"
@
click=
"close('mask')"
></view>
<view
style=
"background-color: #f6f6f6; display: flex; justify-content: center;"
>
<view
class=
"layer attr-content"
:class=
"
{ 'safe-area-inset-bottom': safeAreaInsetBottom }"
<view
class=
"layer attr-content"
:class=
"
{ 'safe-area-inset-bottom': safeAreaInsetBottom }"
:style="{ borderRadius: borderRadius + 'rpx ' + borderRadius + 'rpx 0 0' }">
:style="{ borderRadius: borderRadius + 'rpx ' + borderRadius + 'rpx 0 0' }">
<view
class=
"specification-wrapper"
>
<view
class=
"specification-wrapper"
>
...
@@ -40,8 +41,8 @@
...
@@ -40,8 +41,8 @@
<view
style=
"display: flex; justify-content: space-between; align-items: center;"
>
<view
style=
"display: flex; justify-content: space-between; align-items: center;"
>
<view
class=
"item-wrapper"
>
<view
class=
"item-wrapper"
>
<view
class=
"item-content"
v-for=
"(item_value, index2) in item.list"
:key=
"index2
"
<view
class=
"item-content"
v-for=
"(item_value, index2) in item.list
"
:class=
"[
:key=
"index2"
:class=
"[
item_value.ishow ? '' : 'noactived',
item_value.ishow ? '' : 'noactived',
subIndex[index1] == index2 ? 'actived' : '',
subIndex[index1] == index2 ? 'actived' : '',
]"
:style=
"[
]"
:style=
"[
...
@@ -82,9 +83,9 @@
...
@@ -82,9 +83,9 @@
<view
class=
"number-box-view"
>
<view
class=
"number-box-view"
>
<view
style=
"flex: 1;"
>
数量
</view>
<view
style=
"flex: 1;"
>
数量
</view>
<view
style=
"flex: 4;text-align: right;"
>
<view
style=
"flex: 4;text-align: right;"
>
<vk-data-input-number-box
v-model=
"selectNum"
:min=
"minBuyNum || 1"
:max=
"maxBuyNumCom
"
<vk-data-input-number-box
v-model=
"selectNum"
:min=
"minBuyNum || 1
"
:step=
"stepBuyNum || 1"
:step-strictly=
"stepStrictly"
:positive-integer=
"true
"
:max=
"maxBuyNumCom"
:step=
"stepBuyNum || 1"
:step-strictly=
"stepStrictly
"
@
change=
"numChange"
></vk-data-input-number-box>
:positive-integer=
"true"
@
change=
"numChange"
></vk-data-input-number-box>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -131,7 +132,7 @@
...
@@ -131,7 +132,7 @@
</view>
</view>
</view>
</view>
<view
class=
"btn-wrapper"
v-else-if=
"mode == 5"
>
<view
class=
"btn-wrapper"
v-else-if=
"mode == 5"
>
<view
class=
"sure"
style=
"width: 698rpx;
"
:style=
"
{
<view
class=
"sure1
"
:style=
"
{
color: themeColorFn('addCartColor'),
color: themeColorFn('addCartColor'),
backgroundColor: themeColorFn('addCartBackgroundColor'),
backgroundColor: themeColorFn('addCartBackgroundColor'),
}" @click="addProduct">
}" @click="addProduct">
...
@@ -139,6 +140,8 @@
...
@@ -139,6 +140,8 @@
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 页面内容结束 -->
<!-- 页面内容结束 -->
</view>
</view>
</
template
>
</
template
>
...
@@ -1231,12 +1234,15 @@ export default {
...
@@ -1231,12 +1234,15 @@ export default {
bottom
:
0
;
bottom
:
0
;
z-index
:
990
;
z-index
:
990
;
overflow
:
hidden
;
overflow
:
hidden
;
max-width
:
420px
;
margin
:
0
auto
;
&
.show
{
&
.show
{
display
:
block
;
display
:
block
;
.mask
{
.mask
{
animation
:
showPopup
0
.2s
linear
both
;
animation
:
showPopup
0
.2s
linear
both
;
max-width
:
420px
;
}
}
.layer
{
.layer
{
...
@@ -1280,6 +1286,7 @@ export default {
...
@@ -1280,6 +1286,7 @@ export default {
bottom
:
0
;
bottom
:
0
;
border-radius
:
10rpx
10rpx
0
0
;
border-radius
:
10rpx
10rpx
0
0
;
background-color
:
#fff
;
background-color
:
#fff
;
max-width
:
420px
;
.specification-wrapper
{
.specification-wrapper
{
// width: 100%;
// width: 100%;
...
@@ -1468,6 +1475,18 @@ export default {
...
@@ -1468,6 +1475,18 @@ export default {
background
:
#fe560a
;
background
:
#fe560a
;
}
}
.sure1
{
width
:
100%
;
height
:
68rpx
;
border-radius
:
38rpx
;
color
:
#fff
;
line-height
:
68rpx
;
text-align
:
center
;
font-weight
:
500
;
font-size
:
28rpx
;
background
:
#fe560a
;
}
.sure.add-cart
{
.sure.add-cart
{
background
:
#ff9402
;
background
:
#ff9402
;
}
}
...
...
src/pages/productLine/components/categoryPopup.vue
浏览文件 @
1eda27be
<
template
>
<
template
>
<u-popup
<u-popup
v-model=
"show"
mode=
"bottom"
length=
"80%"
:mask-close-able=
"false"
closeable
@
close=
"handleClose"
>
v-model=
"show"
mode=
"bottom"
length=
"90%"
:mask-close-able=
"false"
closeable
@
close=
"handleClose"
>
<view
class=
"u-wrap"
>
<view
class=
"u-wrap"
>
<!-- 搜索 -->
<!-- 搜索 -->
<view
<view
style=
"width: 90%; height: 50px; position: fixed; top: 0; z-index: 1; background-color: #fff;"
>
style=
"width: 90%; height: 50px; position: fixed; top: 0; z-index: 1; background-color: #fff;"
<uni-search-bar
placeholder=
"输入搜索商品"
bgColor=
"#EEEEEE"
clearButton=
"auto"
cancelButton=
"none"
>
@
confirm=
"search"
/>
<uni-search-bar
placeholder=
"输入搜索商品"
bgColor=
"#EEEEEE"
clearButton=
"auto"
cancelButton=
"none"
@
confirm=
"search"
/>
</view>
</view>
<view
class=
"u-menu-wrap"
>
<view
class=
"u-menu-wrap"
>
<scroll-view
<scroll-view
scroll-y
scroll-with-animation
class=
"u-tab-view menu-scroll-view"
:scroll-top=
"scrollTop"
>
scroll-y
<view
v-for=
"(item, index) in categoryList"
:key=
"item.id"
class=
"u-tab-item"
scroll-with-animation
:class=
"[current == index ? 'u-tab-item-active' : '']"
:data-current=
"index"
class=
"u-tab-view menu-scroll-view"
@
tap
.
stop=
"swichMenu(index, item.id)"
>
:scroll-top=
"scrollTop"
>
<view
v-for=
"(item, index) in categoryList"
:key=
"item.id"
class=
"u-tab-item"
:class=
"[current == index ? 'u-tab-item-active' : '']"
:data-current=
"index"
@
tap
.
stop=
"swichMenu(index, item.id)"
>
<text
class=
"u-line-1"
>
{{
item
.
name
}}
</text>
<text
class=
"u-line-1"
>
{{
item
.
name
}}
</text>
</view>
</view>
</scroll-view>
</scroll-view>
<view
class=
"right-cates"
>
<view
class=
"right-cates"
>
<block
v-for=
"(item, index) in currentSubCategoryData"
:key=
"item.id"
>
<block
v-for=
"(item, index) in currentSubCategoryData"
:key=
"item.id"
>
<view
class=
"item-container"
@
tap=
"cateGoryGoods(item)"
>
<view
class=
"item-container"
@
tap=
"cateGoryGoods(item)"
>
<u-image
<u-image
width=
"100rpx"
height=
"100rpx"
:src=
"
width=
"100rpx"
height=
"100rpx"
:src=
"
item.picUrl.split('http').length > 1
item.picUrl.split('http').length > 1
? item.picUrl
? item.picUrl
: baseUrl + item.picUrl
: baseUrl + item.picUrl
"
"
></u-image>
></u-image>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"title"
>
<view
class=
"title"
>
<text>
{{
item
.
name
}}
</text>
<text>
{{
item
.
name
}}
</text>
...
@@ -63,12 +35,8 @@
...
@@ -63,12 +35,8 @@
</view>
</view>
</u-popup>
</u-popup>
<search-popup
<search-popup
ref=
"searchPopupRef"
:show=
"showSearchPopup"
@
search-close=
"searchClose"
ref=
"searchPopupRef"
@
cateGoryGoods=
"cateGoryGoods"
/>
:show=
"showSearchPopup"
@
search-close=
"searchClose"
@
cateGoryGoods=
"cateGoryGoods"
/>
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
...
@@ -189,11 +157,16 @@ defineExpose({
...
@@ -189,11 +157,16 @@ defineExpose({
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
:deep
(
.uni-scroll-view-content
)
{
// background-color: #f6f6f6;
}
.right-cates
{
.right-cates
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
background-color
:
#fff
;
background-color
:
#fff
;
padding
:
0
24rpx
;
padding
:
0
24rpx
;
.item-container
{
.item-container
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
100%
;
width
:
100%
;
...
@@ -203,20 +176,24 @@ defineExpose({
...
@@ -203,20 +176,24 @@ defineExpose({
justify-content
:
flex-start
;
justify-content
:
flex-start
;
align-items
:
center
;
align-items
:
center
;
border-bottom
:
1rpx
solid
#f5f5f5
;
border-bottom
:
1rpx
solid
#f5f5f5
;
.content
{
.content
{
height
:
100%
;
height
:
100%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-left
:
20rpx
;
margin-left
:
20rpx
;
.title
{
.title
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
}
}
.price
{
.price
{
.new-price
{
.new-price
{
font-size
:
32rpx
;
font-size
:
32rpx
;
}
}
.old-price
{
.old-price
{
margin-left
:
10rpx
;
margin-left
:
10rpx
;
color
:
#969799
;
color
:
#969799
;
...
...
src/pages/productLine/productLine.vue
浏览文件 @
1eda27be
...
@@ -770,6 +770,16 @@ let reload = () => {
...
@@ -770,6 +770,16 @@ let reload = () => {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
$nav-heigth
:
var
(
--
window-bottom
);
$nav-heigth
:
var
(
--
window-bottom
);
:deep
(
.u-mask
)
{
max-width
:
420px
;
margin
:
0
auto
;
}
:deep
(
.u-drawer-content
)
{
max-width
:
420px
;
margin
:
0
auto
;
}
.add
{
.add
{
position
:
absolute
;
position
:
absolute
;
width
:
180px
;
width
:
180px
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论