Browse Source

修改积分页面

xuchunyang 8 years ago
parent
commit
10a1b314b4
2 changed files with 10 additions and 1 deletions
  1. 5 1
      app/html/rewards-list.html
  2. 5 0
      app/js/myaccount.js

+ 5 - 1
app/html/rewards-list.html

@ -9,7 +9,7 @@
9 9
<link href="../css/app.css" rel="stylesheet" />
10 10
</head>
11 11
<body>
12
<header class="mui-bar mui-bar-nav toptitbox" style="background: #1fc4f9;">
12
<header class="mui-bar mui-bar-nav toptitbox" style="background: #1fc4f9;" id="goback">
13 13
	<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left topback"></a>
14 14
	<h1 class="mui-title toptit">我的积分</h1>
15 15
	<span class="mui-pull-right topsave" id="topsave">规则</span>
@ -38,6 +38,10 @@
38 38
			}
39 39
			self.append(sub);
40 40
		}
41
		document.getElementById("goback").addEventListener('tap', function() {
42
			var myaccountPage = plus.webview.getWebviewById('html/rewards-list.html');
43
			mui.fire(myaccountPage, 'rewards', {});	
44
		})
41 45
	});
42 46
	
43 47
	document.getElementById("topsave").addEventListener('tap', function() {

+ 5 - 0
app/js/myaccount.js

@ -47,6 +47,11 @@ mui.ready(function() {
47 47
			isexpert();
48 48
		})
49 49

50
		/*退出登录刷新页面*/
51
		window.addEventListener('rewards', function(event) {
52
			plus.navigator.setStatusBarBackground( "#FF9900" );
53
		});
54
		
50 55
		/*退出登录刷新页面*/
51 56
		window.addEventListener('closeUser', function(event) {
52 57
			userId = event.detail.id;