Commit c34d330f authored by 黄奎's avatar 黄奎

页面修改

parent e0b9430e
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<i class="elzk el-tooltip el-icon-info"></i> <i class="elzk el-tooltip el-icon-info"></i>
</el-tooltip> </el-tooltip>
</template> </template>
<goodsSpe :SpecList="SpecificationList"> <goodsSpe v-show="IsShowSpec" :SpecList="SpecificationList">
</goodsSpe> </goodsSpe>
</el-form-item> </el-form-item>
...@@ -428,6 +428,7 @@ ...@@ -428,6 +428,7 @@
App_share_title: '', //自定义分享标题、 App_share_title: '', //自定义分享标题、
App_share_pic: '', //自定义分享图片 App_share_pic: '', //自定义分享图片
}, },
IsShowSpec:false,//是否显示规格
SpecificationList:[],//规格列表 SpecificationList:[],//规格列表
rules: { rules: {
...@@ -462,6 +463,7 @@ ...@@ -462,6 +463,7 @@
//选择商品 //选择商品
getGoodsChoice() { getGoodsChoice() {
this.isShowGoods = false; this.isShowGoods = false;
this.IsShowSpec=false;
var chooseGoods = this.$refs.choiceGood.getChoicedGoods(); var chooseGoods = this.$refs.choiceGood.getChoicedGoods();
console.log("chooseGoods",chooseGoods); console.log("chooseGoods",chooseGoods);
if(chooseGoods&&chooseGoods.length>0) if(chooseGoods&&chooseGoods.length>0)
...@@ -475,7 +477,8 @@ ...@@ -475,7 +477,8 @@
this.addMsg.Goods_unit=chooseGoods[0].DefaultSpecificationName; this.addMsg.Goods_unit=chooseGoods[0].DefaultSpecificationName;
this.addMsg.Goods_no=chooseGoods[0].GoodsNumbers; this.addMsg.Goods_no=chooseGoods[0].GoodsNumbers;
this.addMsg.Goods_weight=chooseGoods[0].GoodsWeight; this.addMsg.Goods_weight=chooseGoods[0].GoodsWeight;
this.SpecificationList=choiceGood[0].SpecificationList; this.SpecificationList=chooseGoods[0].SpecificationList;
this.IsShowSpec=true;
} }
this.$refs.choiceGood.toggleSelection(); this.$refs.choiceGood.toggleSelection();
} }
......
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