-
+
Here is title!
diff --git a/view/demo/slide/script.js b/view/demo/slide/script.js
index 9676e6d..0c70c63 100644
--- a/view/demo/slide/script.js
+++ b/view/demo/slide/script.js
@@ -10,11 +10,11 @@ define(function(require) {
slide({
el: '#banner',
data: [{
- src: 'http://7xnt8z.com1.z0.glb.clouddn.com/view0.jpg'
+ src: 'http://static.refined-x.com/view0.jpg'
}, {
- src: 'http://7xnt8z.com1.z0.glb.clouddn.com/view1.jpg'
+ src: 'http://static.refined-x.com/view1.jpg'
}, {
- src: 'http://7xnt8z.com1.z0.glb.clouddn.com/view2.jpg'
+ src: 'http://static.refined-x.com/view2.jpg'
}]
});
diff --git a/view/member/index/script.js b/view/member/index/script.js
index 3030feb..c847c1c 100644
--- a/view/member/index/script.js
+++ b/view/member/index/script.js
@@ -5,12 +5,10 @@ define(function(require) {
var comm = require('sdk/server');
require('sdk/common');
var $ = app.util;
- var userData = comm.getUser();
+
//拉取个人信息
- var showUser = function(reload) {
- if (reload) {
- userData = comm.getUser();
- }
+ window.update = function(reload) {
+ var userData = comm.getUser();
if(userData){
if(userData.headImg){
$('#avat')[0].src = userData.headImg;
@@ -18,13 +16,12 @@ define(function(require) {
$('#usern')[0].innerText = (userData.nickName);
$('#score')[0].innerText = (userData.nowScore);
}
-
+
};
$('#avat')[0].addEventListener('touchend',function(){
app.openView(null,'member','setPersonal');
});
-
- showUser();
-
-
-});
\ No newline at end of file
+
+
+
+});