Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-shop
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-shop
Commits
2323b1c5
提交
2323b1c5
authored
8月 12, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 商品编辑增加更多设置,可扩展配置商品页面数据;
上级
776f1603
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
23 行增加
和
1 行删除
+23
-1
edit.vue
src/pages/goods/goods/edit.vue
+23
-1
没有找到文件。
src/pages/goods/goods/edit.vue
浏览文件 @
2323b1c5
...
@@ -118,6 +118,20 @@
...
@@ -118,6 +118,20 @@
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
</app-card>
</app-card>
<app-card
title=
"更多设置"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"服务说明"
>
<el-input
v-model=
"ruleForm.spare.service_desc"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"购买说明"
>
<el-input
v-model=
"ruleForm.spare.buy_desc"
></el-input>
</el-form-item>
</el-col>
</el-row>
</app-card>
</el-form>
</el-form>
<app-card
v-show=
"stepActive === 2"
>
<app-card
v-show=
"stepActive === 2"
>
<div
class=
"goods-detail"
>
<div
class=
"goods-detail"
>
...
@@ -201,7 +215,8 @@ export default {
...
@@ -201,7 +215,8 @@ export default {
buy_limit
:
'1'
,
// 限购
buy_limit
:
'1'
,
// 限购
goodStockList
:
[],
// 规格明细
goodStockList
:
[],
// 规格明细
skuKeyValueList
:
[],
skuKeyValueList
:
[],
messageList
:
[]
// 留言
messageList
:
[],
// 留言
spare
:
{}
},
},
buyButtonTextRadio
:
'1'
,
buyButtonTextRadio
:
'1'
,
rules
:
{
rules
:
{
...
@@ -262,6 +277,12 @@ export default {
...
@@ -262,6 +277,12 @@ export default {
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
'留言解析失败'
,
error
)
console
.
log
(
'留言解析失败'
,
error
)
}
}
// 额外页面配置
try
{
this
.
ruleForm
.
spare
=
data
.
spare
?
JSON
.
parse
(
data
.
spare
)
:
{}
}
catch
(
error
)
{
console
.
log
(
'额外页面配置信息解析失败'
,
error
)
}
// 购买按钮
// 购买按钮
this
.
buyButtonTextRadio
=
data
.
buy_button_text
===
'立即购买'
?
'1'
:
'2'
this
.
buyButtonTextRadio
=
data
.
buy_button_text
===
'立即购买'
?
'1'
:
'2'
this
.
loading
=
false
this
.
loading
=
false
...
@@ -344,6 +365,7 @@ export default {
...
@@ -344,6 +365,7 @@ export default {
const
params
=
Object
.
assign
({
shop_id
:
this
.
shopId
},
this
.
ruleForm
)
const
params
=
Object
.
assign
({
shop_id
:
this
.
shopId
},
this
.
ruleForm
)
params
.
chart_oss
=
JSON
.
stringify
(
params
.
chart_oss
)
params
.
chart_oss
=
JSON
.
stringify
(
params
.
chart_oss
)
params
.
spec
=
JSON
.
stringify
(
params
.
goodStockList
)
params
.
spec
=
JSON
.
stringify
(
params
.
goodStockList
)
params
.
spare
=
JSON
.
stringify
(
params
.
spare
)
params
.
app_button_text
=
JSON
.
stringify
(
params
.
messageList
)
params
.
app_button_text
=
JSON
.
stringify
(
params
.
messageList
)
this
.
isEdit
?
this
.
handleEdit
(
params
,
callback
)
:
this
.
handleAdd
(
params
,
callback
)
this
.
isEdit
?
this
.
handleEdit
(
params
,
callback
)
:
this
.
handleAdd
(
params
,
callback
)
})
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论