Commit fcc5c96d authored by 黄奎's avatar 黄奎

页面修改

parent 5678ab8d
......@@ -128,9 +128,7 @@
<i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip>
</template>
<goodsSpe v-show="IsShowSpec" :SpecList="SpecificationList">
</goodsSpe>
<goodsSpe v-show="IsShowSpec" :SpecList="SpecificationList" :SpecPriceList="SpecificationPriceList"></goodsSpe>
</el-form-item>
<el-form-item label="商品货号">
<el-input v-model="addMsg.Goods_no" size="small" placeholder="请输入内容" class="input-with-select">
......@@ -435,6 +433,7 @@
},
IsShowSpec:false,//是否显示规格
SpecificationList:[],//规格列表
SpecificationPriceList:[],//规格价格列表
rules: {
},
......@@ -483,6 +482,7 @@
this.addMsg.Goods_no=chooseGoods[0].GoodsNumbers;
this.addMsg.Goods_weight=chooseGoods[0].GoodsWeight;
this.SpecificationList=chooseGoods[0].SpecificationList;
this.SpecificationPriceList=chooseGoods[0].SpecificationPriceList;
this.IsShowSpec=true;
}
this.$refs.choiceGood.toggleSelection();
......
......@@ -125,9 +125,8 @@
<i @click="Deleteggz(item, index, index2)" class="el-icon-error close"></i>
<div v-if="index == 0 && item.EnabledImage == 1" flex="cross:center main:center" class="img-box">
<div class="attr-jt"></div>
<div v-if="item2.Image == ''" @click="
openggImg(item, index, item2, index2)
" class="app-attachment">
<div v-if="item2.Image == ''" @click=" openggImg(item, index, item2, index2) "
class="app-attachment">
<div style="line-height: normal; display: inline-block;">
<span>+添加图片</span>
</div>
......@@ -135,14 +134,12 @@
<div v-if="item2.Image != ''" class="el-image" style="height: 88px; width: 88px;">
<img :src="item2.Image" style="width:100%;height:100%" />
</div>
<span v-if="item2.Image != ''" @click="
DeleteImageUrl(item, index, item2, index2)
" class="el-icon-error close"></span>
<span v-if="item2.Image != ''" @click=" DeleteImageUrl(item, index, item2, index2) "
class="el-icon-error close"></span>
<div v-if="item2.Image != ''" style="position: absolute;">
<div class="app-attachment">
<el-button @click="
openggImg(item, index, item2, index2)
" type="primary" size="small">替换</el-button>
<el-button @click="openggImg(item, index, item2, index2)" type="primary"
size="small">替换</el-button>
</div>
</div>
</div>
......@@ -263,7 +260,7 @@
<script>
import ChooseImg from "@/components/global/ChooseImg.vue";
export default {
props: ['SpecList'],
props: ['SpecList',"SpecPriceList"],
components: {
ChooseImg
},
......@@ -293,7 +290,19 @@
};
},
created() {
console.log("SpecificationList",this.SpecificationList);
},
watch: {
'SpecList': {
handler: function (val, oldval) {
this.SpecificationList = JSON.parse(JSON.stringify(val));
},
},
'SpecPriceList': {
handler: function (val, oldval) {
this.SpecificationPriceList = JSON.parse(JSON.stringify(val));
},
},
},
methods: {
// 添加规格模板
......
......@@ -92,10 +92,10 @@
</div>
</div>
</div>
<div flex="cross:center" style="margin-top:20px;display:none">
<div flex="cross:center" style="margin-top:20px ">
<h3 class="plugin_ListTitle">营销工具</h3>
</div>
<div flex="dir:left" style="display:none" class="plugin-list el-row">
<div flex="dir:left" class="plugin-list el-row">
<div class="el-col el-col-24 el-col-xs-24 el-col-sm-12 el-col-md-8 el-col-lg-6 el-col-xl-4" @click="goDiyCenter('pintuanMain')">
<div flex="dir:left box:first" class="plugin-item">
<div style="padding-right: 12px;">
......
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