#region 提示信息 /// <summary> /// 操作失败(无参数) /// </summary> /// <returns></returns> public string failure() { return "{"statusCode":"300", "message":"操作失败"}"; } /// <summary> /// 操作失败(有参数) /// </summary> /// <param name="str">错误提示</param> /// <returns></returns> public string failure(string str) { return "{"statusCode":"300", "message":"操作失败!" + str + ""}"; } /// <summary> /// 操作成功(无参数) /// </summary> /// <returns></returns> public string success() { return "{"statusCode":"200", "message":"操作成功!","callbackType":"closeCurrent"}"; } public string success1() { return "{"statusCode":"200", "message":"操作成功!"}"; } /// <summary> /// 操作成功(有参数) /// </summary> /// <param name="str">信息</param> /// <param name="navTabId">页面指向</param> /// <returns></returns> public string success(string str, string navTabId) { return "{"statusCode":"200", "message":"操作成功!" + str + "","navTabId":"" + navTabId + ""}"; } public string success(string navTabId) { return "{"statusCode":"200", "message":"操作成功!","callbackType":"closeCurrent","navTabId":"" + navTabId + ""}"; } /// <summary> /// 操作成功(有参数) /// </summary> /// <param name="str">信息</param> /// <param name="navTabId">页面指向</param> /// <returns></returns> public string succes(string str, string navTabId) { return "{"statusCode":"200", "message":"" + str + "","callbackType":"closeCurrent","navTabId":"" + navTabId + ""}"; } #endregion