Commit 465bc488 authored by xinyuandu's avatar xinyuandu

百度推广

parent 606dd94d
...@@ -136,14 +136,14 @@ ...@@ -136,14 +136,14 @@
<div class="w-50 "> <div class="w-50 ">
<div style="text-align:center;margin-left:.7rem;"> <div style="text-align:center;margin-left:.7rem;">
<img src="/app/images/h59@2x.png" style="width:1.86rem;"/> <img src="/app/images/h59@2x.png" style="width:1.86rem;"/>
<div><span style="color:#ff5c50;font-size:0.38rem">32789套</span></div> <div><span style="color:#ff5c50;font-size:0.38rem" id="shopNum"></span></div>
<div><span style="color:#F79130 ; font-size:0.22rem">真商铺量</span></div> <div><span style="color:#F79130 ; font-size:0.22rem">真商铺量</span></div>
</div> </div>
</div> </div>
<div class="w-50 "> <div class="w-50 ">
<div style="text-align:center;margin-left:0rem;"> <div style="text-align:center;margin-left:0rem;">
<img src="/app/images/h5 copy@2x.png" style="width:1.86rem;"/> <img src="/app/images/h5 copy@2x.png" style="width:1.86rem;"/>
<div><span style="color:#ff5c50;font-size:0.38rem;">32789套</span></div> <div><span style="color:#ff5c50;font-size:0.38rem;" id="finishNum"></span></div>
<div><span style="color:#F79130 ; font-size:0.22rem;">上周成交量</span></div> <div><span style="color:#F79130 ; font-size:0.22rem;">上周成交量</span></div>
</div> </div>
</div> </div>
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
<input type="radio" id="finding" name="type" value="0" checked="checked" /> <label for="finding">我要找铺</label> <input type="radio" id="finding" name="type" value="0" checked="checked" /> <label for="finding">我要找铺</label>
</div> </div>
<div class="right_radio overflow"> <div class="right_radio overflow">
<input type="radio" id="sale" name="type" value="1" /> <label for="sale">我要</label> <input type="radio" id="sale" name="type" value="1" /> <label for="sale">我要</label>
</div> </div>
<div style="margin-top:1.72rem;text-align:center;"> <div style="margin-top:1.72rem;text-align:center;">
<input type="text" id="phone" placeholder="请输入手机号码" class="input_phone"/> <input type="text" id="phone" placeholder="请输入手机号码" class="input_phone"/>
......
/** /**
* Created by 刘丹 on 2017/10/16. * Created by 杜欣源 on 2018/11/19.
*/ */
(function() { (function() {
$('#save').click(function(){ $('#save').click(function(){
var type = $("input[name='type']:checked").val(); var type = $("input[name='type']:checked").val();
var number = $('#phone').val(); var number = $('#phone').val();
if ( number != "" ){ console.log(number)
if ( number == "" ){
alert("请输入电话号码"); alert("请输入电话号码");
return false;
} }
if( !(number - 0 > -1) ){ if( !(number - 0 > -1) ){
alert("请输入正确的电话号码") ; alert("请输入正确的电话号码") ;
return false;
} }
if (number.length > 11 ){ if (number.length > 11 ){
alert("请输入正确的电话号码") ; alert("请输入正确的电话号码") ;
return false;
} }
var params = { var params = {
'type' : type, 'type' : type,
'number' : number 'phone' : number
} }
console.log(number); console.log(number);
$.get('/broker/addSpreadUser',params,function(data){
console.log(data);
},'json');
}) })
})(); })();
$(document).ready(function(){ $(document).ready(function(){
console.log("12312312321") console.log("12312312321")
$.get('/broker/getVolume',function(data){
console.log(data);
$('#shopNum').text(data.data.shop_num+"套");
$('#finishNum').text(data.data.volume_last_week+"套");
})
}); });
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