| | |
| | | uni.hideLoading(); |
| | | if (success.code=='00000') { |
| | | var action = JSON.parse(success.data.Action); |
| | | console.log(action); |
| | | if(action.ret=='0'){ |
| | | if (action.ret != 0) { |
| | | uni.showModal({title:"提示",content:'执行脚本失败,' + action.result,showCancel:false,confirmText:"取消"}); |
| | | return; |
| | | } |
| | | if (action.info) { |
| | | uni.showModal({title:"提示",content:'执行脚本失败,' + action.info,showCancel:false,confirmText:"取消"}); |
| | | return; |
| | | } |
| | | if(action.result_type=='0'){ |
| | | uni.showToast({title:action.result,icon:"success",duration:3000}); |
| | | } |
| | | |
| | | // "{"ret":0, "result_type":0, "result":"创建成功123123123","info":""}" |
| | | } |
| | | //刷新 |
| | |
| | | var actionlist = data.action; |
| | | if (actionlist) { |
| | | for (var j = 0; j < actionlist.length; j++) { |
| | | var action = actionlist[j] |
| | | var action = actionlist[j]; |
| | | var action_type = action.action_type; |
| | | var value = action.value; |
| | | if (action_type == 'set_dlg_attr') { |
| | |
| | | if (action_type == 'open_select_userdlg') { |
| | | uni.showModal({title:"错误2.2",content:"open_select_userdlg这个action_type还未处理!",showCancel:false,confirmText:"取消"}); |
| | | } |
| | | // else if (action_type == 'tip_dlg') { |
| | | |
| | | // } |
| | | } |
| | | } |
| | | |