123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- Namespace.register("U.CD");
- U.CD.Run = function () {
- var _area = $("#UD_CD_TA")[0];
- var _cd = _area.innerText;
- eval(_cd);
- }
- U.CD.CL = function (obj) {
- if (obj) document.body.removeChild(obj);
- }
- U.CD.GC = function (obj) {
- if (US.userInfo.userid == null) {
- if (obj) {
- U.U.L.LAR();
- }
- }
- else {
- U.A.Request(US.Auth, ["GetUserCode", US.userInfo.userid], U.CD.PC, []);
- }
- }
- U.CD.PC = function (_text) {
- var code = _text.value[0]["CloudCode"];
- if (code != null) {
- $("#UD_CD_TA")[0].innerHTML = code;
- alert("读取成功");
- }
- else {
- alert("没有数据或已丢失");
- }
- }
- U.CD.SC = function () {
- if (U.U.L.isLogin() == false) {
- var _cd = $("#UD_CD_TA")[0].innerHTML;
- U.A.Request(US.Auth, ["SaveUserCode", US.userInfo.userid, _cd], alert("保存成功"));
- }
- }
- U.CD.Selelanuagetype = function (here) {
- if (here == "c") {
- alert("暂时不提供服务,留待未来"); return;
-
- $("#UD_CD_TA")[0].style.display = "none";
- $("#UD_RunJs")[0].style.display = "none";
- $("#UD_CD_CG")[0].style.display = "block";
- } else {
-
- $("#UD_CD_TA")[0].style.display = "block";
- $("#UD_RunJs")[0].style.display = "block";
- $("#UD_CD_CG")[0].style.display = "none";
- }
- }
- U.CD.SCD = function () {
- var _UDC = $("#UD_CD");
- _UDC.addAttrArray({ "width": _UDC[0].clientWidth, "height": _UDC[0].clientHeight });
- var _UDD = $("div", _UDC[0]);
- _UDD[1].style.width = _UDC[0].clientWidth - 30 + "px";
- _UDD[4].style.height = _UDC[0].clientHeight - 35 + "px";
-
- }
|