| | |
| | | return Feng.error('请选中一个省市'); |
| | | } |
| | | cityIds.push(seCity); |
| | | console.log("看看num") |
| | | console.log(num) |
| | | if (num > 0){ |
| | | for (let i = 1; i <= num; i++) { |
| | | var insSelect=document.getElementById('cityData'+i); |
| | |
| | | cityIds.push(inData); |
| | | } |
| | | } |
| | | cts = cityIds.join(','); |
| | | |
| | | |
| | | }else { |
| | | cts = cityIds |
| | | // 如果只有一个城市,则将cts设置为字符串 |
| | | if (cityIds.length === 1) { |
| | | console.log("是1吗?") |
| | | cts = cityIds[0]; |
| | | console.log(cts) |
| | | } else { |
| | | console.log("走下面了") |
| | | cts = cityIds.join(','); |
| | | console.log(cts) |
| | | } |
| | | } |
| | | } |
| | | |
| | | let type = document.querySelector('input[name="redemptionMethod"]:checked').value; |
| | | let name = $("#name").val() |
| | | if(name==''){ |
| | |
| | | },function(data){ |
| | | Feng.error("添加失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | console.log("看看城市ids") |
| | | console.log(cts); |
| | | ajax.set("typeAll",3); |
| | | ajax.set("name",name); |
| | | ajax.set("price",price); |