Calculate personal income tax calculator according to the latest tax reform.

If you have any other questions, you are welcome to offer any suggestions for revision. You can leave a message under the theme or click in the small program to contact online customer service or join the QQ group: 869113926

1.scan

2. Renderings

3, small program website API: https://developers.weixin.qq…

4, wepy framework apis at https://tencent.github.io/wepy/

This development encountered several problems so it was documented.

(1) When developing the framework of WeChat applet component, I met a problem. The Button component in WeChat applet has a specific CSS. The background can be removed with “background: none”, but the border can be used with “border: None, which is where the WeChat applet differs from H5.

But you can do this with the :after selector in the WeChat applet.

/* Use button::after{border: none; } to remove borders */

(2) All cardinal numbers needed for calculation can be removed from the social security websites of each major city and put into the database, which can be saved in a unified way and returned to calculation through the interface (different cities have different cardinal numbers, if not returned according to the whole country).

 

(3) Getting the local location is convenient to know which city returns its base for statistics. Using Weby.getSetting to get its return value will only show the permissions that the applet has requested from the user. Judgment whether authorized and obtain latitude and longitude, use Tencent map access (positioning, location to latitude and longitude) to return to its city.

 

(4) The page flashes because the data request is too slow. You can use wx.showLoading() before the request; (Load :true) Hide static nodes where the page is not loaded with data. WX.HideLoading () is called when the data is returned; Hide the load pattern and set the parameter in data to (load:false). Display loaded data and static nodes at once.