浏览代码

账户页点击图标修改

jack 8 年之前
父节点
当前提交
e796ffc120
共有 2 个文件被更改,包括 43 次插入43 次删除
  1. 7 7
      app/html/myaccount.html
  2. 36 36
      app/js/myaccount.js

+ 7 - 7
app/html/myaccount.html

@ -18,7 +18,7 @@
18 18
			<!-- 主界面具体展示内容 -->
19 19
    		<div class="mui-input-group marginbox setblock">
20 20
				<div class="maincon personinfo2">
21
					<div class="headbox2" >
21
					<div class="headbox2 mui-navigate-right amend" >
22 22
					    <a class="mui-pull-left proinfor">
23 23
		                    <div class="mui-pull-left" style="width:24%;min-height:60px;">
24 24
		                    	<img class="headimg2 headRadius" src="" id="userImg">
@ -32,12 +32,12 @@
32 32
		                    	<p class="listtit3"><span id="userDepartment"></span><span id="userMechanism"></span><span id="userCity"></span></p>
33 33
		                    </div>
34 34
		                </a>
35
		                <div class="mui-pull-right updatebtn">
36
			        		<a class="editbox" id="editbox">
37
			        			<!--<img src="../images/edit.png" />-->
38
			        			<span class="mui-icon iconfont icon-edit"></span>
39
			        		</a>
40
			        	</div>
35
		                <!--<div class="mui-pull-right updatebtn">
36
			        		<a class="editbox" id="editbox">
37
			        			<img src="../images/edit.png" />
38
			        			<span class="mui-icon iconfont icon-edit"></span>
39
			        		</a>
40
			        	</div>-->
41 41
			        </div>
42 42
		        </div>
43 43
		        <ul class="mui-table-view">

+ 36 - 36
app/js/myaccount.js

@ -11,7 +11,7 @@ mui.ready(function() {
11 11
	var goFollow = document.getElementById("goFollow");
12 12
	var userImg = document.getElementById("userImg");
13 13
	var nameli = document.getElementById("nameli");
14
	var infobasic = document.getElementsByClassName("infobasic")[0];
14
	var infobasic = document.getElementsByClassName("amend")[0];
15 15
	var oFlag;
16 16
	mui.plusReady(function() {
17 17

@ -113,41 +113,41 @@ mui.ready(function() {
113 113
						});
114 114
					}
115 115
				})
116
				oEdit.addEventListener('tap', function() {
117
					if(oFlag == 1) {
118
						mui.openWindow({
119
							url: '../html/proinforupdate.html',
120
							id: 'html/proinforupdate.html',
121
							show: {
122
								autoShow: false,
123
								aniShow: "slide-in-left"
124
							},
125

126
						});
127
					} else if(oFlag == 2) {
128
						/*我的修改企业工作者*/
129
						mui.openWindow({
130
							url: '../html/companyUpdata.html',
131
							id: 'html/companyUpdata.html',
132
							show: {
133
								autoShow: false,
134
								aniShow: "slide-in-left"
135
							},
136

137
						});
138
					} else if(oFlag == 3) {
139
						/*我的修改学生*/
140
						mui.openWindow({
141
							url: '../html/studentUpdata.html',
142
							id: 'html/studentUpdata.html',
143
							show: {
144
								autoShow: false,
145
								aniShow: "slide-in-left"
146
							},
147

148
						});
149
					}
150
				})
116
//				oEdit.addEventListener('tap', function() {
117
//
118
//						mui.openWindow({
119
//							url: '../html/proinforupdate.html',
120
//							id: 'html/proinforupdate.html',
121
//							show: {
122
//								autoShow: false,
123
//								aniShow: "slide-in-left"
124
//							},
125
//
126
//						});
127
//					} else if(oFlag == 2) {
128
//						/*我的修改企业工作者*/
129
//						mui.openWindow({
130
//							url: '../html/companyUpdata.html',
131
//							id: 'html/companyUpdata.html',
132
//							show: {
133
//								autoShow: false,
134
//								aniShow: "slide-in-left"
135
//							},
136
//
137
//						});
138
//					} else if(oFlag == 3) {
139
//						/*我的修改学生*/
140
//						mui.openWindow({
141
//							url: '../html/studentUpdata.html',
142
//							id: 'html/studentUpdata.html',
143
//							show: {
144
//								autoShow: false,
145
//								aniShow: "slide-in-left"
146
//							},
147
//
148
//						});
149
//					}
150
//				})
151 151

152 152
				/*我的历史和评价*/
153 153
				goZixun.addEventListener('tap', function() {