XMTT 7 anni fa
parent
commit
51292904c2
2 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 1 1
      html/model/sys/org/index.html
  2. 4 4
      js/model/sys/org/edit.js

+ 1 - 1
html/model/sys/org/index.html

@ -99,7 +99,7 @@
99 99
					<td>{{city}}</td>
100 100
					<td>{{email}}</td>
101 101
					<td>{{createTime-showDay}}</td>
102
					<td class="hand-dict" dict="bool" code="{{auth_status}}"></td>
102
					<td class="hand-dict" dict="org_auth_status" code="{{authStatus}}"></td>
103 103
					<td>{{sortNum}}</td>
104 104
					<td>{{pageViews}}</td>
105 105
					<td>{{fans}}</td>

+ 4 - 4
js/model/sys/org/edit.js

@ -35,15 +35,15 @@ spa_define(function () {
35 35
                            return;
36 36
                        }
37 37
                        if (form.val().name && form.val().email) {
38
                            if (form.val().mobile != data.data.mobile || form.val().email != data.data.email) {
38
                            if (form.val().name != data.data.name || form.val().email != data.data.email) {
39 39
                                util.get("../ajax/sys/org/entryCheck", {
40 40
                                    name: form.val().name,
41 41
                                    email: form.val().email
42 42
                                }, function (success) {
43 43
                                    if (success) {
44
                                        form.val({pMobile: form.val().mobile});
45
                                        form.val({pEmail: form.val().email});
46
                                        form.doPost("../ajax/sys/org/updateAccount",closeThis(), {});
44
                                        form.doPost("../ajax/sys/org/updateAccount",closeThis(), function (data) {
45
                                            util.alert(data);
46
                                        });
47 47
                                    } else {
48 48
                                        util.alert("该账号已存在");
49 49
                                    }