Commit 97514dd1 authored by 黄奎's avatar 黄奎

页面修改

parent 044032c9
...@@ -391,7 +391,8 @@ ...@@ -391,7 +391,8 @@
</el-card> </el-card>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="阶梯团设置"> <el-tab-pane label="阶梯团设置">
<ladderGroup :Goods="addMsg" :GroupList="GroupList" :SpecList="SpecificationList" :PriceList="SpecificationPriceList"></ladderGroup> <ladderGroup :Goods="addMsg" :GroupList="GroupList" :SpecList="SpecificationList"
:PriceList="SpecificationPriceList"></ladderGroup>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="分销价设置"> <el-tab-pane label="分销价设置">
<distributePrice></distributePrice> <distributePrice></distributePrice>
...@@ -523,9 +524,10 @@ ...@@ -523,9 +524,10 @@
CardIds: "", //卡券发放 CardIds: "", //卡券发放
App_share_title: '', //自定义分享标题、 App_share_title: '', //自定义分享标题、
App_share_pic: '', //自定义分享图片 App_share_pic: '', //自定义分享图片
IsCustomSpecification: 2, // 是否自定义规格 1是 2否
}, },
IsShowSpec: false, //是否显示规格 IsShowSpec: false, //是否显示规格
GroupList:[],//阶梯价格列表 GroupList: [], //阶梯价格列表
SpecificationList: [], //规格列表 SpecificationList: [], //规格列表
SpecificationPriceList: [], //规格价格列表 SpecificationPriceList: [], //规格价格列表
...@@ -571,7 +573,11 @@ ...@@ -571,7 +573,11 @@
SaveActivity() { SaveActivity() {
this.addMsg.SpecificationPriceList = this.SpecificationPriceList; this.addMsg.SpecificationPriceList = this.SpecificationPriceList;
this.addMsg.SpecificationList = this.SpecificationList; this.addMsg.SpecificationList = this.SpecificationList;
this.addMsg.GroupList=this.GroupList; this.addMsg.GroupList = this.GroupList;
// 是否自定义规格 1是 2否
if (this.addMsg.SpecificationList && this.addMsg.SpecificationList.length > 0) {
this.addMsg.IsCustomSpecification = 1;
}
this.apipost("/api/GroupBuy/SetGroupbuyActivity", this.addMsg, res => { this.apipost("/api/GroupBuy/SetGroupbuyActivity", this.addMsg, res => {
console.log("res", res); console.log("res", res);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
......
...@@ -91,9 +91,9 @@ ...@@ -91,9 +91,9 @@
<td style="width:55px;"> <td style="width:55px;">
<el-checkbox></el-checkbox> <el-checkbox></el-checkbox>
</td> </td>
<template v-for="headerItem in attrGroups">
<td>{{headerItem.Name}}</td> <td v-for="(headerItem,headerIndex) in attrGroups" :key="headerIndex">{{headerItem.Name}}</td>
</template>
<td> <td>
<div class="header-require">拼团价</div> <div class="header-require">拼团价</div>
</td> </td>
...@@ -103,13 +103,12 @@ ...@@ -103,13 +103,12 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="item in pinTuanPriceList"> <tr v-for="(item,index) in pinTuanPriceList" :key="index">
<td> <td>
<el-checkbox></el-checkbox> <el-checkbox></el-checkbox>
</td> </td>
<template v-for="(attrItem, attrIndex) in attrGroups"> <template v-for="(attrItem, attrIndex) in attrGroups">
<td v-if="attrIndex == index2" v-for="(item2, index2) in item.AttrList" :key="index2+'6'"> <td v-if="attrIndex == index2" v-for="(item2, index2) in item.AttrList" :key="index2+6">
{{ item.AttrList[index2].SVName }} {{ item.AttrList[index2].SVName }}
</td> </td>
</template> </template>
......
...@@ -458,7 +458,7 @@ ...@@ -458,7 +458,7 @@
methods: { methods: {
//选择图片 //选择图片
SelectId(msg) { SelectId(msg) {
this.bgMsg.data.backgroundPicUrl = msg.url; this.bgMsg.data.backgroundPicUrl =this.getIconLink(msg.url);
this.choicImg = false; this.choicImg = false;
}, },
choose(num, position) { choose(num, position) {
......
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