Commit dcf03f69 authored by xieyishang's avatar xieyishang

addxx

parent d52caf5b
......@@ -240,6 +240,16 @@
<view class="titles">是否会员产品</view>
</label>
<label class="lableitem flex ali-c">
<view>
<checkbox-group @change="changedhshoptag">
<checkbox color="#FF6900" value="2" :checked="canform.is_discount==2" />
</checkbox-group>
</view>
<view class="titles">是否抵扣产品</view>
</label>
</view>
......@@ -378,6 +388,7 @@
is_hot: "0", //0 1 是否热卖产品
is_tuijian: "0", //0 1是否首页推荐
is_member:"1",//是否是会员产品 1否 2是
is_discount:"1",//是否抵扣专区商品:1=否,2=是
is_seckill: "0", //0 1 是否秒杀产品
activity_id: '0', //秒杀activity_id
activity_list: '', //秒杀列表
......@@ -454,6 +465,13 @@
this.canform.is_member = "1";
}
},
changedhshoptag(e){
if (e.target.value.indexOf("2") != -1) { //选中了
this.canform.is_discount = "2";
} else {
this.canform.is_discount = "1";
}
},
confirm(e) {
console.log(e)
this.cate_name = e.item.value;
......@@ -497,7 +515,7 @@
this.canform.intro = res.data.intro;
this.canform.price = (res.data.price / 100).toFixed(2); // 市场价
this.canform.mall_price = (res.data.mall_price / 100).toFixed(2); //商城价
this.canform.min_price = (res.data.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.goods_freight = (res.data.goods_freight / 100).toFixed(2); //运费
this.canform.orderby = res.data.orderby; //排序
......@@ -510,6 +528,7 @@
this.canform.activity_id = res.data.activity_id;
this.canform.is_tuijian = res.data.is_tuijian ? res.data.is_tuijian : '0'; //是否推荐 是否首页推荐
this.canform.is_member = res.data.is_member?res.data.is_member:"1";
this.canform.is_discount = res.data.is_discount?res.data.is_discount:"1";
//处理分类初始值
for (let i = 0; i < this.goodsCate.length; i++) {
let itemone = this.goodsCate[i].children;
......@@ -736,6 +755,7 @@
this.canform.is_tuijian = parseInt(this.canform.is_tuijian);
this.canform.is_member = parseInt(this.canform.is_member);
this.canform.is_discount = parseInt(this.canform.is_discount);
console.info("i", this.canform);
console.info("this.canform.is_tuijian", this.canform.is_tuijian);
// return false;
......
......@@ -5,8 +5,8 @@ module.exports = {
isdebug:false,//正式
// isdebug:true,//测试
// isdebug:false,//正式
isdebug:true,//测试
// xqdebug:false,//正式权限
xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios
......
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