|
|
@ -85,7 +85,7 @@ |
|
|
|
<view class="content dis-flex flex-sp" v-for="(item2,index2) in item.list" :key="index2"> |
|
|
|
<view class="content dis-flex flex-sp" v-for="(item2,index2) in item.list" :key="index2"> |
|
|
|
<view class="text">{{item2.productName}}</view> |
|
|
|
<view class="text">{{item2.productName}}</view> |
|
|
|
<view class="dis-flex"> |
|
|
|
<view class="dis-flex"> |
|
|
|
<view class="text">{{item2.count}}份</view> |
|
|
|
<view class="text">{{item2.productSpec}}</view> |
|
|
|
<view class="icon shanchu margle20 font16 fcorred" @click.stop="deleteGroupDetail(item2.id)"></view> |
|
|
|
<view class="icon shanchu margle20 font16 fcorred" @click.stop="deleteGroupDetail(item2.id)"></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
@ -108,9 +108,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
<!-- 底部按钮 --> |
|
|
|
<!-- 底部按钮 --> |
|
|
|
<view class="footer-btn backcorfff"> |
|
|
|
<view class="footer-btn backcorfff"> |
|
|
|
<view v-if="(status==2&&merchart>1)" class="height50 flex-1 fcor089 fotct" @click="merchart--">上一步</view> |
|
|
|
<!-- <view v-if="(status==2&&merchart>1)" class="height50 flex-1 fcor089 fotct" @click="merchart--">上一步</view> |
|
|
|
<button class="backcor89 flex-1 fcorfff" @click="clickToSave" v-if="merchart!=2">保存</button> |
|
|
|
<button class="backcor89 flex-1 fcorfff" @click="clickToSave" v-if="merchart!=2">保存</button> |
|
|
|
<view v-if="(status==2&&merchart<3)||merchart==2" class="height50 flex-1 fcor089 fotct" @click="merchart++">下一步</view> |
|
|
|
<view v-if="(status==2&&merchart<3)||merchart==2" class="height50 flex-1 fcor089 fotct" @click="merchart++">下一步</view> --> |
|
|
|
|
|
|
|
<view v-if="(status==2&&merchart>1)" class="height50 flex-1 fcor089 fotct" @click="merchart--">上一步</view> |
|
|
|
|
|
|
|
<button class="backcor89 flex-1 fcorfff" @click="clickToSave" >保存</button> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
@ -374,6 +376,7 @@ |
|
|
|
return true |
|
|
|
return true |
|
|
|
}, |
|
|
|
}, |
|
|
|
clickToSave() { |
|
|
|
clickToSave() { |
|
|
|
|
|
|
|
|
|
|
|
if (this.merchart == 1) { |
|
|
|
if (this.merchart == 1) { |
|
|
|
/* 第一步:团购基本内容*/ |
|
|
|
/* 第一步:团购基本内容*/ |
|
|
|
if (!this.validate()) return; //校验是否有空 |
|
|
|
if (!this.validate()) return; //校验是否有空 |
|
|
@ -387,7 +390,10 @@ |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.merchart == 2){} |
|
|
|
if(this.merchart == 2){ |
|
|
|
|
|
|
|
this.merchart = this.merchart+1; |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(this.merchart==3){/* 第三步规则内容 */ |
|
|
|
if(this.merchart==3){/* 第三步规则内容 */ |
|
|
|
if(!this.ruleData.content){ |
|
|
|
if(!this.ruleData.content){ |
|
|
@ -438,7 +444,7 @@ |
|
|
|
this.groupId = res.return_data.id; |
|
|
|
this.groupId = res.return_data.id; |
|
|
|
this.productDetail.groupId = res.return_data.id; |
|
|
|
this.productDetail.groupId = res.return_data.id; |
|
|
|
this.ruleData.groupId = res.return_data.id; |
|
|
|
this.ruleData.groupId = res.return_data.id; |
|
|
|
this.merchart = 2; |
|
|
|
this.merchart = this.merchart+1; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: res.return_msg, |
|
|
|
title: res.return_msg, |
|
|
@ -452,17 +458,17 @@ |
|
|
|
/* 修改配置团购基本内容*/ |
|
|
|
/* 修改配置团购基本内容*/ |
|
|
|
editGroupContent() { |
|
|
|
editGroupContent() { |
|
|
|
editGroupContent(this.productData).then(res => { |
|
|
|
editGroupContent(this.productData).then(res => { |
|
|
|
let title; |
|
|
|
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
title = res.return_data; |
|
|
|
this.merchart = this.merchart+1; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
title = res.return_msg; |
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
title: res.return_msg, |
|
|
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
title: title, |
|
|
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
|
|
duration: 2000 |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
this.merchart = 2; |
|
|
|
this.merchart = 2; |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|