Commit a02e1e77 authored by xieyishang's avatar xieyishang

addxx

parent 72693add
...@@ -188,7 +188,8 @@ ...@@ -188,7 +188,8 @@
</view> </view>
<view class="titles">是否会员产品</view> <view class="titles">是否会员产品</view>
</label> </label>
<label class="lableitem flex ali-c">
<!-- <label class="lableitem flex ali-c">
<view> <view>
<checkbox-group @change="changedhshoptag"> <checkbox-group @change="changedhshoptag">
<checkbox color="#FF6900" value="2" :checked="canform.is_discount==2" /> <checkbox color="#FF6900" value="2" :checked="canform.is_discount==2" />
...@@ -196,6 +197,7 @@ ...@@ -196,6 +197,7 @@
</view> </view>
<view class="titles">是否抵扣产品</view> <view class="titles">是否抵扣产品</view>
</label> </label>
-->
</view> </view>
</view> </view>
...@@ -292,6 +294,7 @@ ...@@ -292,6 +294,7 @@
photo: "", //产品图片 photo: "", //产品图片
num: "", //库存 num num: "", //库存 num
price: "", // 市场价 price: "", // 市场价
market_price:"",//市场价
mall_price: "", //商城价 mall_price: "", //商城价
min_price:"",//会员价 min_price:"",//会员价
is_agent_price: "", //代理价 is_agent_price: "", //代理价
...@@ -408,7 +411,8 @@ ...@@ -408,7 +411,8 @@
this.canform.title = res.data.title; this.canform.title = res.data.title;
this.canform.intro = res.data.intro; this.canform.intro = res.data.intro;
this.canform.price = (res.data.price / 100).toFixed(2); // 市场价 this.canform.price = res.data.f_market_price; // 市场价 f_market_price
this.canform.market_price = res.data.f_market_price; // 市场价 f_market_price
this.canform.mall_price = (res.data.mall_price / 100).toFixed(2); //商城价 this.canform.mall_price = (res.data.mall_price / 100).toFixed(2); //商城价
this.canform.min_price = (res.data.f_min_price / 100).toFixed(2); //会员价 this.canform.min_price = (res.data.f_min_price / 100).toFixed(2); //会员价
this.canform.is_agent_price = (res.data.is_agent_price / 100).toFixed(2); //代理价 this.canform.is_agent_price = (res.data.is_agent_price / 100).toFixed(2); //代理价
...@@ -433,6 +437,7 @@ ...@@ -433,6 +437,7 @@
for (let j = 0; j < this.goodsCate[i].children.length; j++) { for (let j = 0; j < this.goodsCate[i].children.length; j++) {
let itemtwo = this.goodsCate[i].children[j]; let itemtwo = this.goodsCate[i].children[j];
if(itemtwo.children){
for(let k = 0;k<itemtwo.children.length;k++){ for(let k = 0;k<itemtwo.children.length;k++){
let itemsan = itemtwo.children[k] let itemsan = itemtwo.children[k]
...@@ -442,6 +447,14 @@ ...@@ -442,6 +447,14 @@
break; break;
} }
} }
}else{
if(itemtwo.cate_id==this.canform.cate_id){
console.info("找到名字了",itemtwo.cate_name);
this.parent_name = itemtwo.cate_name; //二级名称
break;
}
}
} }
} }
...@@ -610,10 +623,13 @@ ...@@ -610,10 +623,13 @@
this.canform.is_tuijian = parseInt(this.canform.is_tuijian); this.canform.is_tuijian = parseInt(this.canform.is_tuijian);
this.canform.is_member = parseInt(this.canform.is_member); this.canform.is_member = parseInt(this.canform.is_member);
this.canform.is_discount = parseInt(this.canform.is_discount); this.canform.is_discount = parseInt(this.canform.is_discount);
this.canform.market_price = this.canform.price;//...
console.info("i", this.canform); console.info("i", this.canform);
console.info("this.canform.is_tuijian", this.canform.is_tuijian); console.info("this.canform.is_tuijian", this.canform.is_tuijian);
let res = await addEditGoods(this.canform) let res = await addEditGoods(this.canform)
console.info("res", res); console.info("res", res);
......
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