新手,调用问题
比如 我输入会员号。就能调用该会员的积分,。
custNO[0] = 4321;
custScore[0] = 4000;
custNO[1] = 6543;
custScore[1] = 5000;
进行购买打折
if (con.custScore[index] < 1000)
discount = 0.95;
else if (1000 <= con.custScore[index] && con.custScore[index] < 2000)
discount = 0.9;
else if (2000 <= con.custScore[index] && con.custScore[index] < 3000)
discount = 0.85;
else if (3000 <= con.custScore[index] && con.custScore[index] < 4000)
discount = 0.8;
else if (4000 <= con.custScore[index] && con.custScore[index] < 6000)
discount = 0.75;
else if (6000 <= con.custScore[index] && con.custScore[index] < 8000)
discount = 0.6;
怎么能得到 discount ?
请各位帮帮忙,尽量简单点。
custNO[0] = 4321;
custScore[0] = 4000;
custNO[1] = 6543;
custScore[1] = 5000;
进行购买打折
if (con.custScore[index] < 1000)
discount = 0.95;
else if (1000 <= con.custScore[index] && con.custScore[index] < 2000)
discount = 0.9;
else if (2000 <= con.custScore[index] && con.custScore[index] < 3000)
discount = 0.85;
else if (3000 <= con.custScore[index] && con.custScore[index] < 4000)
discount = 0.8;
else if (4000 <= con.custScore[index] && con.custScore[index] < 6000)
discount = 0.75;
else if (6000 <= con.custScore[index] && con.custScore[index] < 8000)
discount = 0.6;
怎么能得到 discount ?
请各位帮帮忙,尽量简单点。
...全文
相关推荐
新手常见问题集锦《五》
作者:沃普,来自公众号:宏记;二维码为:(此图片来源于网络,如有侵权,请联系删除! ) 一:客户端发起调用接口请求wx.request之get/post get 一般是默认方式,post得进行设置 两者不同其中一个表现为传参不同 如前端发起调用接口请求,后台接口不到,从以下几个方面进行检查: 1.首先确认前端调用方式是get还是post,后台接口相应响应的接口也要对应get或post 2.其次参数是否对应得上,前端封装的参数格式是否符合后台接口接收参数的定义(如下方的参数是否加“data:{}”层) 3.一种调用接口是否通的方式:把后台接口定义为get方式,并在接口函数设置断点,后直接把前
Android 快速实现新手引导层的库,通过简洁链式调用,一行代码实现引导层的显示
Android 快速实现新手引导层的库,通过简洁链式调用,一行代码实现引导层的显示
java新手文档
java新手必备资料,内容很丰富,讲解很清晰,很适合新手入门使用
新手常遇到的一些jquery问题整理
最近在做项目的时候使用了Jquery~新手学习jquery.~遇到了一些"奇怪"的问题(各位大神别拍砖).感谢ClassYuan老大的支持
Java新手练手的小项目
java新手练手的项目,很适合新手。


