Commit b44d6639 authored by xishifeng's avatar xishifeng

2

parent abaa4f8f
......@@ -88,6 +88,23 @@ require(['vue', 'css!style/submit_report_pc.css', 'jquery0325', 'common'], funct
_$this.parent().html('').hide();
});
//选择盘方后自动选择
_doc.on('input', '.fenyong-fang', function(e){
var _this = $(this);
var _parObj = _this.closest('.fenyong-li');
_parObj.find('.fenyong-rate').val('');//先置空
//_parObj.find('.yingfen-yongjin').val('');//先置空
if(_this.val() === ''){
}else{
var _rateTemp = _thisV.getDefaultRadio(_this.val());
_parObj.find('.fenyong-rate').val(_rateTemp);
//_parObj.find('.yingfen-yongjin').val(dealJineNum(_rateTemp*bargain.maidTotalCommission/100));
}
});
//增加符号点击事件
_doc.on('click', '.fenyong-add-area>img', function(e){
e.preventDefault();
......@@ -112,6 +129,31 @@ require(['vue', 'css!style/submit_report_pc.css', 'jquery0325', 'common'], funct
});
},
methods: {
getDefaultRadio(v) {
//1,盘方
//2,客方
//3,反签
//4,独家
//5,合作方
//6,APP盘下载方
//7,APP客下载方
switch (Number(v)){
case 1:
return 25;
case 2:
return 30;
case 3:
return 35;
case 4:
return 100;
case 6:
return 5;
case 7:
return 5;
default:
return 25;
}
},
save() {//是否对客户公开 保存后 刷新商铺详情页面
var _this = this;
if(_this.house_number == ''){
......
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