分享至

MIP.watch("zy_mode",function(newVal,oldVal){ if(newVal == 0){ MIP.setData({ dyp: 1, lnp: 0, cgp: 1, ssp: 1, nyp: 0, shenshap: 0, jyssp: 1, mgp: 0, qyp: 1, xyp: 0 }) }else if(newVal == 1){ MIP.setData({ dyp: 1, lnp: 1, cgp: 1, ssp: 1, nyp: 1, shenshap: 1, jyssp: 1, mgp: 1, qyp: 1, xyp: 0 }) }else if(newVal == 2){ MIP.setData({ dyp: 0, lnp: 0, cgp: 0, ssp: 0, nyp: 0, shenshap: 0, jyssp: 0, mgp: 0, qyp: 0, xyp: 0 }) } })