Commit 061de6fa by 赵雅纹

种草删除

parent de89f446
...@@ -261,6 +261,13 @@ wxService.page({ ...@@ -261,6 +261,13 @@ wxService.page({
}) })
return; return;
} }
if (this.data.params.sspList && !this.data.params.sspList[0].url) {
wx.showToast({
title: '请上传至少一张图片',
icon: 'none'
})
return;
}
if (!e.detail.value.headline){ if (!e.detail.value.headline){
wx.showToast({ wx.showToast({
title: '请添加标题', title: '请添加标题',
...@@ -274,7 +281,7 @@ wxService.page({ ...@@ -274,7 +281,7 @@ wxService.page({
'params.article': e.detail.value.article 'params.article': e.detail.value.article
}) })
this.data.params.sspList.forEach((item,index) => { this.data.params.sspList.forEach((item,index) => {
if(index == 0){ if (index == 0){
item.cover = 1; item.cover = 1;
} }
}); });
......
{ {
"navigationBarTitleText": "种草详情", "navigationBarTitleText": "种草详情",
"usingComponents": { "usingComponents": {
"x-dialog": "/component/dialog/dialog", "x-dialog": "/component/dialogGrass/dialog",
"card-modal": "/component/cardModal/cardModal", "card-modal": "/component/cardModal/cardModal",
"go-home": "/component/goHome/goHome", "go-home": "/component/goHome/goHome",
"x-html": "/component/html2wxml/wxHtml", "x-html": "/component/html2wxml/wxHtml",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment