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
cc9bfc74
提交
cc9bfc74
authored
12月 16, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化
上级
431864b1
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
14 行增加
和
10 行删除
+14
-10
vk-data-goods-sku-popup.vue
...nents/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue
+9
-5
goodsSku.vue
src/pages/goods/goodsSku.vue
+3
-3
productLine.vue
src/pages/productLine/productLine.vue
+2
-2
没有找到文件。
src/components/vk-data-goods-sku-popup/vk-data-goods-sku-popup.vue
浏览文件 @
cc9bfc74
...
...
@@ -793,9 +793,9 @@ export default {
},
// sku按钮的点击事件
skuClick
(
value
,
index1
,
index2
)
{
console
.
log
(
value
,
index1
,
index2
);
console
.
log
(
this
.
selectArr
);
console
.
log
(
this
.
goodsInfo
);
//
console.log(value, index1, index2);
//
console.log(this.selectArr);
//
console.log(this.goodsInfo);
let
that
=
this
;
if
(
value
.
ishow
)
{
if
(
that
.
selectArr
[
index1
]
!=
value
.
name
)
{
...
...
@@ -1050,7 +1050,7 @@ export default {
defaultSelectSku
()
{
let
that
=
this
;
let
{
defaultSelect
}
=
that
;
console
.
log
(
defaultSelect
,
'defaultSelect'
);
//
console.log(defaultSelect, 'defaultSelect');
if
(
defaultSelect
&&
defaultSelect
.
sku
&&
defaultSelect
.
sku
.
length
>
0
)
{
that
.
selectSku
(
defaultSelect
);
}
...
...
@@ -1153,16 +1153,20 @@ export default {
// 添加子字段
onPlus
(
index
)
{
let
that
=
this
;
console
.
log
(
index
,
that
.
goodsInfo
.
spec_list
[
index
].
isPlus
);
that
.
goodsInfo
.
spec_list
[
index
].
isPlus
=
false
;
that
.
$emit
(
'plus'
,
index
);
},
// 失去焦点后还原
onBlur
(
val
,
index
)
{
let
that
=
this
;
if
(
!
val
)
that
.
goodsInfo
.
spec_list
[
index
].
isPlus
=
true
;
that
.
$emit
(
'blur'
,
val
,
index
);
},
//
失去焦点
后还原
//
确认
后还原
onConfirm
(
val
,
index
)
{
let
that
=
this
;
if
(
!
val
)
that
.
goodsInfo
.
spec_list
[
index
].
isPlus
=
true
;
that
.
$emit
(
'confirm'
,
val
,
index
);
},
},
...
...
src/pages/goods/goodsSku.vue
浏览文件 @
cc9bfc74
...
...
@@ -84,7 +84,7 @@ let resultSku = (data?: any) => {
if
(
detailData
.
value
.
productList
.
length
===
1
)
{
nextTick
(()
=>
{
defaultSelect
.
value
=
{
sku
:
''
,
sku
:
[...
detailData
.
value
.
productList
[
0
].
specifications
]
,
num
:
1
}
// skuPopupRef.value.selectArr = [...detailData.value.productList[0].specifications]
...
...
@@ -150,10 +150,10 @@ let init = (data: any, id: number, partsData?: any) => {
spec_list
:
specificationList
,
partsData
};
console
.
log
(
goodsInfo
.
value
,
'goodsInfo.value'
,
data
.
specificationList
);
//
console.log(goodsInfo.value, 'goodsInfo.value', data.specificationList);
productList
=
[]
specificationList
=
[]
resultSku
()
//
resultSku()
};
// sku组件 开始-----------------------------------------------------------
let
onOpenSkuPopup
=
()
=>
{};
...
...
src/pages/productLine/productLine.vue
浏览文件 @
cc9bfc74
...
...
@@ -13,7 +13,7 @@
</u-navbar>
<view
class=
"u-wrap"
>
<view
class=
"u-menu-wrap"
>
<
view
style=
"position: fixed; left: 8rpx; top: 6%
;"
>
<
scroll-view
style=
"position: fixed; left: 8rpx; top: 6%; height: 100vh
;"
>
<drag-and-drop-sort
v-if=
"flag"
ref=
"dragRef"
...
...
@@ -65,7 +65,7 @@
</view>
</template>
</drag-and-drop-sort>
</view>
</
scroll-
view>
<view
class=
"left-cates"
/>
<view
class=
"right-cates"
>
<view
style=
"width: 80px;"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论