| | |
| | | //提交信息 |
| | | var ajax = new $ax(Feng.ctxPath + "/tGoods/add", function(data){ |
| | | if(data=="5001"){ |
| | | Feng.error("改账号已经存在"); |
| | | Feng.error("该账号已经存在"); |
| | | }else if(data=="5003"){ |
| | | console.log("请选择相同运营商门店") |
| | | Feng.info("请选择相同运营商门店"); |
| | |
| | | }else { |
| | | // 如果只有一个城市,则将cts设置为字符串 |
| | | if (cityIds.length === 1) { |
| | | console.log("是1吗?") |
| | | cts = cityIds[0]; |
| | | console.log(cts) |
| | | } else { |
| | | console.log("走下面了") |
| | | cts = cityIds.join(','); |
| | | console.log(cts) |
| | | } |
| | | } |
| | | } |
| | |
| | | if (isNaN(quantityIssued1) || isNaN(pickUpQuantity1)) { |
| | | Feng.error("优惠卷数量必须为数字") |
| | | console.log('Both quantityIssued and pickUpQuantity must be numbers.'); |
| | | return |
| | | } else if (quantityIssued1 >= pickUpQuantity1) { |
| | | |
| | | console.log('quantityIssued is greater than pickUpQuantity.'); |
| | | } else { |
| | | |
| | | Feng.error("发放数量必须大于限领数量") |
| | | return |
| | | console.log('quantityIssued is not greater than pickUpQuantity.'); |
| | | } |
| | | var imgOne =""; |