- 浏览: 86307 次
- 性别:
- 来自: 孝感
-
文章分类
最新评论
/**
* 名人关注模型
*/
Ext.regModel("focusFamous",{
fields: [{
name: 'id',
type: 'string'
},{
name: 'pic',
type: 'string'
},{
name: 'name',
type: 'string'
},{
name: 'valPic',
type: 'string'
},{
name: 'sex',
type: 'string'
},{
name: 'city',
type: 'string'
},{
name: 'area',
type: 'string'
}]
})
/**
* 好友动态模型
*/
Ext.regModel("friendsAction",{
fields: [{
name: 'id',
type: 'string'
},{
name: 'pic',
type: 'string'
},{
name: 'name',
type: 'string'
},{
name: 'pubPic',
type: 'string'
},{
name: 'pubDate',
type: 'string'
},{
name: 'content',
type: 'string'
},{
name: 'agent',
type: 'string'
},{
name: 'transmits',
type: 'integer'
},{
name: 'comments',
type: 'integer'
}]
})
/**
* 名人关注
* @class travelbook.view.FocusFamous
* @extends Ext.Panel
*/
travelbook.view.FocusFamous = Ext.extend(Ext.Panel, {
id: 'focusFamous',
modal: true,
centered: true,
floating: true,
isFirst: true,
height: '100%',
width: '100%',
style: 'filter:alpha(opacity=10);'
+'-moz-opacity:0.5;'
+'-khtml-opacity: 0.5;'
+'opacity: 0.5;',
initComponent : function() {
travelbook.view.FocusFamous.superclass.initComponent.call(this);
},
dockedItems: [{
xtype: 'toolbar',
ui: 'dark',
title: '关注名人',
layout: {
pack: 'left'
},
dock: 'top'
},{
xtype: 'toolbar',
ui: 'dark',
dock: 'bottom',
layout: 'hbox',
defaults: {
xtype: 'button',
ui: 'decline',
flex: '2'
},
items: [{
text: '关注已选',
handler: function(){
travelbook.community.focusChecked();
}
},{
text: '关注全部',
handler: function(){
travelbook.community.focusAll();
}
},{
text: '取消',
handler: function(){
Ext.getCmp('focusFamous').hide({type:'cube',direction:'up'});
//进入好友列表
travelbook.community.showFriendsList();
}
}]
}],
items: [{
xtype: 'list',
height: '100%',
store: new Ext.data.Store({
model: 'focusFamous',
sorters: 'id',
getGroupString: function(record){
return record.get('id')[0];
},
data: [{
id: '1001',
pic: '../images/pic.jpg',
name: '卢静',
valPic: '../images/valPic.jpg',
sex: '女',
city: '浙江',
area: '杭州'
},{
id: '1002',
pic: '../images/pic.jpg',
name: '卢静',
valPic: '../images/valPic.jpg',
sex: '女',
city: '浙江',
area: '杭州'
},{
id: '1003',
pic: '../images/pic.jpg',
name: '卢静',
valPic: '../images/valPic.jpg',
sex: '女',
city: '浙江',
area: '杭州'
},{
id: '1004',
pic: '../images/pic.jpg',
name: '卢静',
valPic: '../images/valPic.jpg',
sex: '女',
city: '浙江',
area: '杭州'
},{
id: '1005',
pic: '../images/pic.jpg',
name: '卢静',
valPic: '../images/valPic.jpg',
sex: '女',
city: '浙江',
area: '杭州'
},{
id: '1006',
pic: '../images/pic.jpg',
name: '卢静',
valPic: '../images/valPic.jpg',
sex: '女',
city: '浙江',
area: '杭州'
},{
id: '1007',
pic: '../images/pic.jpg',
name: '卢静',
valPic: '../images/valPic.jpg',
sex: '女',
city: '浙江',
area: '杭州'
},{
id: '1008',
pic: '../images/pic.jpg',
name: '卢静',
valPic: '../images/valPic.jpg',
sex: '女',
city: '浙江',
area: '杭州'
}]
}),
itemTpl: '<div style="float:left;width:80%;font-size:12px;cursor:pointer;" onclick="travelbook.community.showOwnDatum({id})">'
+'<div style="float:left">'
+'<img width="50" height="50" src="{pic}"/> '
+'</div>'
+'<div style="float:left">'
+'<div>'
+'<div>'
+'{name} '
+'<img width="10" height="10" src="{valPic}"/> '
+'</div>'
+'<div>'
+'{sex}, {city} {area}'
+'</div>'
+'<div id="discloseDiv{id}">'
+'aaaaa'
+'</div>'
+'</div>'
+'</div>'
+'</div>'
+'<div style="float:right;">'
+'<img name="focusFamousChkImg" id="focusFamousChkImg_{id}" src="../images/unchecked.png" width="50" height="50" style="cursor:pointer;" onclick="travelbook.community.chooseFamous({id})"/>'
+'</div>'
}]
});
Ext.reg("travelbook.view.FocusFamous",travelbook.view.FocusFamous)
/**
* 好友列表
* @class travelbook.view.FriendsList
* @extends Ext.Panel
*/
travelbook.view.FriendsList = Ext.extend(Ext.Panel, {
id: 'friendsList',
height: '100%',
width: '100%',
initComponent : function() {
travelbook.view.FocusFamous.superclass.initComponent.call(this);
},
items: [{
xtype: 'list',
height: '100%',
width: '100%',
store: new Ext.data.Store({
model: 'friendsAction',
sorters: 'id',
getGroupString: function(record){
return record.get('id')[0];
},
//id pic name pubDate content agent transmits comments
data: [{
id: '2001',
pic: '../images/_pic.jpg',
name: '抽烟发芽',
pubPic: '../images/_valPic.jpg',
pubDate: '2分钟前',
content: '今天天气非常好,适合海边去泡一泡.一早起床建议大家多使用车主宝典.',
agent: '车主宝典',
transmits: 6,
comments: 8
},{
id: '2002',
pic: '../images/_pic.jpg',
name: '抽烟发芽',
pubPic: '../images/_valPic.jpg',
pubDate: '2分钟前',
content: '今天天气非常好,适合海边去泡一泡.一早起床建议大家多使用车主宝典.',
agent: '车主宝典',
transmits: 6,
comments: 8
},{
id: '2003',
pic: '../images/_pic.jpg',
name: '抽烟发芽',
pubPic: '../images/_valPic.jpg',
pubDate: '2分钟前',
content: '今天天气非常好,适合海边去泡一泡.一早起床建议大家多使用车主宝典.',
agent: '车主宝典',
transmits: 6,
comments: 8
},{
id: '2004',
pic: '../images/_pic.jpg',
name: '抽烟发芽',
pubPic: '../images/_valPic.jpg',
pubDate: '2分钟前',
content: '今天天气非常好,适合海边去泡一泡.一早起床建议大家多使用车主宝典.',
agent: '车主宝典',
transmits: 6,
comments: 8
},{
id: '2005',
pic: '../images/_pic.jpg',
name: '抽烟发芽',
pubPic: '../images/_valPic.jpg',
pubDate: '2分钟前',
content: '今天天气非常好,适合海边去泡一泡.一早起床建议大家多使用车主宝典.',
agent: '车主宝典',
transmits: 6,
comments: 8
},{
id: '2006',
pic: '../images/_pic.jpg',
name: '抽烟发芽',
pubPic: '../images/_valPic.jpg',
pubDate: '2分钟前',
content: '今天天气非常好,适合海边去泡一泡.一早起床建议大家多使用车主宝典.',
agent: '车主宝典',
transmits: 6,
comments: 8
},{
id: '2007',
pic: '../images/_pic.jpg',
name: '抽烟发芽',
pubPic: '../images/_valPic.jpg',
pubDate: '2分钟前',
content: '今天天气非常好,适合海边去泡一泡.一早起床建议大家多使用车主宝典.',
agent: '车主宝典',
transmits: 6,
comments: 8
},{
id: '2008',
pic: '../images/_pic.jpg',
name: '抽烟发芽',
pubPic: '../images/_valPic.jpg',
pubDate: '2分钟前',
content: '今天天气非常好,适合海边去泡一泡.一早起床建议大家多使用车主宝典.',
agent: '车主宝典',
transmits: 6,
comments: 8
}]
}),
itemTpl: '<table style="font-size:12px;width:100%;">'
+'<tr>'
+'<td>'
+'<img width="60" height="60" src="{pic}"/>'
+'</td>'
+'<td>'
+'<div>'
+'<div style="float:left">'
+'{name}'
+'</div>'
+'<div style="float:right">'
+'<img width="10" height="10" src="{pubPic}"/> {pubDate}'
+'</div>'
+'</div>'
+'<div>'
+'<div style="color:green">'
+'<div style="float:left">'
+'{content}'
+'</div>'
+'<div style="float:right">'
+' '
+'</div>'
+'</div>'
+'</div>'
+'<div>'
+'<div style="float:left">'
+'转发({transmits})评论({comments})'
+'</div>'
+'<div style="float:right">'
+'来自{agent}'
+'</div>'
+'</div>'
+'</td>'
+'</tr>'
+'</table>',
listeners : {
itemtap : function(list, index, item, e) {
var store = list.getStore(),
host = store.getAt(index);
//进入动态详情
travelbook.community.showActionDetail();
}
}
}]
});
Ext.reg("travelbook.view.FriendsList",travelbook.view.FriendsList)
/**
* 个人信息
* @class travelbook.view.PersonalInfo
* @extends Ext.Panel
*/
travelbook.view.PersonalInfo = Ext.extend(Ext.Panel, {
id: 'personalInfo',
width: '100%',
layout: 'card',
style: 'background:white;',
initComponent : function() {
travelbook.view.PersonalInfo.superclass.initComponent.call(this);
},
recordTpl: new Ext.XTemplate([
'<div style="background:#eee;">'
+ '<tpl for=".">'
+ '<table style="width:100%;font-size:13px;">'
+ '<tr>'
+ '<td>'
+ '<div>'
+'<img src="{pic}" width="45" height="45" style="cursor:pointer;" onclick="travelbook.community.showOwnDatum({id})"/>'
+ '</div>'
+ '</td>'
+ '<td>'
+ '<div>'
+'{name} '
+'<img src="{valPic}" width="10" height="10"/>'
+ '</div>'
+ '<div>'
+'<img src="{levelSun}" width="15" height="15"/>'
+'<img src="{levelMoon}" width="15" height="15"/>'
+'<img src="{levelStar}" width="15" height="15"/>'
+'</div>'
+ '</td>'
+ '<td style="text-align:center;">'
+ '<div>'
+'<img src="{arrowPic}" width="30" height="30"/>'
+ '</div>'
+ '<div style="font-size:12px;">'
+'{levelName} '
+ '</div>'
+ '</td>'
+ '</tr>'
+ '</table>'
+'</tpl></div>'
])
});
Ext.reg("travelbook.view.PersonalInfo",travelbook.view.PersonalInfo);
/**
* 个人信息(详情)
* @class travelbook.view.PersonalInfoDetail
* @extends Ext.Panel
*/
travelbook.view.PersonalInfoDetail = Ext.extend(Ext.Panel, {
id: 'personalInfoDetail',
layout: 'card',
width: '100%',
style: 'background:white;',
initComponent : function() {
travelbook.view.PersonalInfoDetail.superclass.initComponent.call(this);
},
recordTpl: new Ext.XTemplate([
'<div style="background:white;">'
+ '<tpl for=".">'
+ '<table style="width:100%;font-size:13px;">'
+ '<tr>'
+ '<td>'
+ '<div>'
+'<img src="{pic}" width="45" height="45"/>'
+ '</div>'
+ '</td>'
+ '<td>'
+ '<div>'
+'{name} '
+'<img src="{valPic}" width="10" height="10"/>'
+ '</div>'
+ '<div>'
+'<img src="{levelSun}" width="15" height="15"/>'
+'<img src="{levelMoon}" width="15" height="15"/>'
+'<img src="{levelStar}" width="15" height="15"/>'
+'</div>'
+ '</td>'
+ '<td style="text-align:center;">'
+ '<div>'
+'<img src="{arrowPic}" width="30" height="30"/>'
+ '</div>'
+ '<div style="font-size:12px;">'
+'{levelName} '
+ '</div>'
+ '</td>'
+ '</tr>'
+ '</table>'
+'</tpl></div>'
])
});
Ext.reg("travelbook.view.PersonalInfoDetail",travelbook.view.PersonalInfoDetail);
/**
* 访友列表
* @class travelbook.view.FriendGroups
* @extends Ext.Panel
*/
travelbook.view.FriendGroups = Ext.extend(Ext.Panel, {
id: 'friendGroups',
width: '85%',
layout: 'card',
initComponent : function() {
travelbook.view.FriendGroups.superclass.initComponent.call(this);
},
recordTpl: new Ext.XTemplate([
'<div>'
+'<tpl for=".">'
+'<table cellspacing="10" cellpadding="10" width="100%" style="font-size:12px;border: 1px solid white;">'
+'<tr>'
+'<td>'
+'<img width="40" height="40" src="{pic}"/>'
+'</td>'
+'<td width="200">'
+'<div>'
+'<div style="float:left;color:#FFFFFF;">'
+'{name}'
+'</div>'
+'<div style="float:right;color:#FFFFFF;">'
+' <img width="10" height="10" src="{pubPic}"/> {pubDate}'
+'</div>'
+'</div>'
+'<div width="100%">'
+'<div>'
+'<div style="float:left;color:green;">'
+'{content}'
+'</div>'
+'<div style="float:right">'
+' '
+'</div>'
+'</div>'
+'</div>'
+'</td>'
+'</tr>'
+'</table>'
+'</tpl></div>'
])
});
Ext.reg("travelbook.view.FriendGroups",travelbook.view.FriendGroups);
/**
* 个人语录
* @class travelbook.view.PersonalWords
* @extends Ext.Panel
*/
travelbook.view.PersonalWords = Ext.extend(Ext.Panel, {
id: 'personalWords',
width: '100%',
layout: 'card',
initComponent : function() {
travelbook.view.PersonalWords.superclass.initComponent.call(this);
},
recordTpl: new Ext.XTemplate([
'<div>'
+ '<tpl for=".">'
+ '<div style="font-size:13px;">'
+ '<div style="float:left;position:absolutly;width:100%;color:#FFFFFF;">'
+ '<div style="float:left;">'
+'转发了消息,并且说:{saywords}'
+ '</div>'
+ '<div style="float:right;">'
+'{pubDate}'
+ '</div>'
+ '</div>'
+ '<div style="float:left;position:absolutly;">'
+ '<div>'
+'<span style="color:#FFFFFF;">@{fromAuthor}</span>: '
+'<span style="color:#FFFF3C;">{content}</span>'
+ '</div>'
+ '<div style="color:#FFFFFF;;">'
+'原文转发({transmits}) | 原文评论({comments})'
+ '</div>'
+ '</div>'
+ '</div>'
+'</tpl></div>'
])
});
Ext.reg("travelbook.view.PersonalWords",travelbook.view.PersonalWords);
/**
* 个人勋章
* @class travelbook.view.Honour
* @extends Ext.Panel
*/
travelbook.view.Honour = Ext.extend(Ext.Panel, {
id: 'honour',
layout: 'card',
width: '100%',
style: 'background:#FFFFFF;font-size:12px;',
initComponent : function() {
travelbook.view.Honour.superclass.initComponent.call(this);
},
recordTpl: new Ext.XTemplate([
'<div>'
+ '<tpl for=".">'
+ '<div>'
+'<span style="color:#336699;"><b>TA的勋章:</b></span>'
+'<img src="{honourPic}" width="20" height="20"/><img src="{honourPic}" width="20" height="20"/>'
+ '</div>'
+ '</tpl>'
+'</div>'
])
});
Ext.reg("travelbook.view.Honour",travelbook.view.Honour);
/**
* 个人介绍
* @class travelbook.view.IntroduceSura
* @extends Ext.Panel
*/
travelbook.view.IntroduceSura = Ext.extend(Ext.Panel, {
id: 'introduceSura',
layout: 'card',
width: '100%',
style: 'background:#FFFFFF;font-size:12px;',
initComponent : function() {
travelbook.view.IntroduceSura.superclass.initComponent.call(this);
},
recordTpl: new Ext.XTemplate([
'<div style="background:#FFFFFF;">'
+ '<tpl for=".">'
+ '<div>'
+'<span style="color:#336699;"><b>TA的简介:</b></span> {introduce}'
+ '</div>'
+ '</tpl>'
+'</div>'
])
});
Ext.reg("travelbook.view.IntroduceSura",travelbook.view.IntroduceSura);
/**
* 应用项
* @class travelbook.view.AppItem
* @extends Ext.Panel
*/
travelbook.view.AppItem = Ext.extend(Ext.Panel, {
id: 'appItem',
layout: 'card',
width: '100%',
style: 'background:#FFFFFF;font-size:12px;',
initComponent : function() {
travelbook.view.AppItem.superclass.initComponent.call(this);
},
recordTpl: new Ext.XTemplate([
'<div style="background:#FFFFFF;">'
+ '<tpl for=".">'
+ '<table cellspacing="10" cellspadding="5" width="100%" style="text-align:center;">'
+ '<tr>'
+ '<td style="border-top:1px solid #336699;border-right:1px solid #336699;">'
+ '<div style="color:#336699;"><b>{focus}</b></div>'
+ '<div>关注</div>'
+ '</td>'
+ '<td style="border-top:1px solid #336699;border-right:1px solid #336699;">'
+ '<div style="color:#336699;font:bold;"><b>{fans}</b></div>'
+ '<div>粉丝</div>'
+ '</td>'
+ '<td style="border-top:1px solid #336699;border-right:1px solid #336699;">'
+ '<div style="color:#336699;font:bold;"><b>{speakings}</b></div>'
+ '<div>发言</div>'
+ '</td>'
+ '<td style="border-top:1px solid #336699;border-right:1px solid #336699;">'
+ '<div style="color:#336699;font:bold;"><b>{label}</b></div>'
+ '<div>标注</div>'
+ '</td>'
+ '<td style="border-top:1px solid #336699;border-right:1px solid #336699;">'
+ '<div style="color:#336699;font:bold;"><b>{stepPoints}</b></div>'
+ '<div>踩点</div>'
+ '</td>'
+ '</tr>'
+ '</table>'
+ '</tpl></div>'
])
});
Ext.reg("travelbook.view.AppItem",travelbook.view.AppItem);
/**
* 个人言论
* @class travlebook.view.OwnWords
* @extends Ext.Panel
*/
travelbook.view.OwnWords = Ext.extend(Ext.Panel, {
id: 'ownWords',
layout: 'card',
width: '100%',
initComponent : function() {
travelbook.view.OwnWords.superclass.initComponent.call(this);
},
recordTpl: new Ext.XTemplate([
'<div style="background:gray;color:#FFFFFF;">'
+ '<tpl for=".">'
+ '<div style="font-size:13px;">'
+ '<div style="text-align:right;">'
+'{pubDate}'
+ '</div>'
+ '<div>'
+'{content}'
+ '</div>'
+ '<div>'
+ '<div>'
+'<img src="{suraPic}" width="50" height="50"/>'
+ '</div>'
+ '<div>'
+' '
+ '</div>'
+ '</div>'
+ '<div>'
+ '<div style="float:left;">'
+'转发({transmits}) 评论({comments})'
+ '</div>'
+ '<div style="float:right;">'
+'来自{agent}'
+ '</div>'
+ '</div>'
+ '</div>'
+'</tpl></div>'
])
});
Ext.reg("travelbook.view.OwnWords",travelbook.view.OwnWords);
/**
* 动态详情
* @class travelbook.view.ActionDetail
* @extends Ext.Panel
*/
travelbook.view.ActionDetail = Ext.extend(Ext.Panel, {
id: 'actionDetail',
fullscreen: true,
isLoaded: false,
scroll: 'vertical',
style: 'background:gray;',
layout: 'vbox',
width: '100%',
initComponent : function() {
travelbook.view.ActionDetail.superclass.initComponent.call(this);
},
listeners: {
added: function(){
this.add({xtype: 'travelbook.view.PersonalInfo'});
this.add({xtype: 'travelbook.view.PersonalWords'});
this.add({xtype: 'travelbook.view.FriendGroups'});
this.doLayout(true,false);
},
show: function(){
//加载数据
travelbook.community.loadActionDetailData();
},
activate: function(){
travelbook.controller.BackTarget = 'community';
}
},
dockedItems: [{
xtype: 'travelbook.view.Topbar',
title: '动态详情',
back: function(){
travelbook.community.back();
}
},{
xtype: 'panel',
dock: 'bottom',
layout: {
type: 'hbox',
align: 'center',
pack: 'center'
},
style: 'background:white;',
defaults: {
xtype: 'button',
ui: 'round'
},
items: [{
text: '∑',
handler: function(){
Ext.Msg.alert('',this.text);
}
},{
text: '⊙',
handler: function(){
Ext.Msg.alert('',this.text);
}
},{
text: '⊿',
handler: function(){
Ext.Msg.alert('',this.text);
}
},{
text: '●',
handler: function(){
Ext.Msg.alert('',this.text);
}
},{
text: '∏',
handler: function(){
Ext.Msg.alert('',this.text);
}
}]
}]
});
Ext.reg("travelbook.view.ActionDetail",travelbook.view.ActionDetail);
/**
* TA的资料
* @class travelbook.view.OwnDatum
* @extends Ext.Panel
*/
travelbook.view.OwnDatum = Ext.extend(Ext.Panel, {
id: 'ownDatum',
isLoaded: false,
layout: 'vbox',
scroll: 'vertical',
style: 'background:gray;',
initComponent : function() {
travelbook.view.OwnDatum.superclass.initComponent.call(this);
},
listeners: {
added: function(){
this.add({xtype: 'travelbook.view.PersonalInfoDetail'});
this.add({xtype: 'travelbook.view.Honour'});
this.add({xtype: 'travelbook.view.IntroduceSura'});
this.add({xtype: 'travelbook.view.AppItem'});
this.add({xtype: 'travelbook.view.OwnWords'});
this.doLayout(true,false);
},
show: function(){
//加载数据
travelbook.community.loadOwnDatumData();
},
activate: function(){
travelbook.controller.BackTarget = 'actionDetail';
}
},
dockedItems: [{
xtype: 'travelbook.view.Topbar',
title: 'TA的资料',
back: function(){
travelbook.community.back();
}
},{
xtype: 'panel',
dock: 'bottom',
layout: {
type: 'hbox',
align: 'center',
pack: 'center'
},
style: 'background:white;',
defaults: {
xtype: 'button',
ui: 'round'
},
items: [{
text: '@',
handler: function(){
Ext.Msg.alert('',this.text);
}
},{
text: '〓',
handler: function(){
Ext.Msg.alert('',this.text);
}
},{
text: '▼',
handler: function(){
Ext.Msg.alert('',this.text);
}
},{
text: '★',
handler: function(){
Ext.Msg.alert('',this.text);
}
},{
text: '&',
handler: function(){
Ext.Msg.alert('',this.text);
}
}]
}]
});
Ext.reg("travelbook.view.OwnDatum",travelbook.view.OwnDatum);
/***
* 社区
* @class travelbook.view.Community
* @extends Ext.Panel
*/
travelbook.view.Community = Ext.extend(Ext.Panel, {
id: 'community',
fullscreen : true,
layout: 'card',
initComponent : function() {
travelbook.view.Community.superclass.initComponent.call(this);
this.activeItem = 0;
this.listeners = {
added: function(){
//显示名人关注
travelbook.community.showFocusFamous();
},
show: function(){
//显示好友列表
travelbook.community.showFriendsList();
},
activate: function(){
travelbook.controller.BackTarget = 'main';
}
};
},
dockedItems : [{
xtype: 'travelbook.view.Topbar',
title: '社区',
back:function(){
travelbook.community.back();
}
}],
items: [{
//好友动态
id: 'friendAction',
xtype: 'tabpanel',
ui: 'light',
activeItem: 1,
items: [{
id: 'squareTab',
title: '广场',
html: 'square ...'
},{
id: 'friendsTab',
title: '好友',
html: 'friends ...'
},{
id: 'communicationTab',
title: '热议',
html: 'communication ...'
}]
}]
});
Ext.reg("travelbook.view.Community", travelbook.view.Community);
/***
* 全局回退标识
* @type String
*/
travelbook.controller.BackTarget = 'main';
/***
* 控制器
*/
travelbook.community = new Ext.Controller({
//显示名人关注
showFocusFamous: function(){
var focusFamous = Ext.getCmp('focusFamous');
if (undefined == focusFamous) {
Ext.getCmp('viewport').addItem({xtype:'travelbook.view.FocusFamous'});
}
Ext.getCmp('focusFamous').show({type:'slide',direction:'up'});
},
//显示好友列表
showFriendsList: function(){
var community = Ext.getCmp('community');
var friendAction = Ext.getCmp('friendAction');
var friendsList = Ext.getCmp('friendsList');
var friendsTab = Ext.getCmp('friendsTab');
if (undefined == friendsList) {
friendsTab.add({xtype: 'travelbook.view.FriendsList'});
friendsTab.doLayout();
}
friendAction.setActiveItem(friendsTab);
community.setActiveItem(friendAction);
Ext.getCmp('viewport').setActiveItem(community);
},
//显示动态详情
showActionDetail: function(){
var actionDetail = Ext.getCmp('actionDetail');
if (undefined == actionDetail) {
Ext.getCmp('viewport').addItem({xtype:'travelbook.view.ActionDetail'});
}
Ext.getCmp('viewport').setActiveItem('actionDetail',{type:'cube',direction:'left'});
//设置回退标识
travelbook.controller.BackTarget = 'community';
},
发表评论
-
原型模式
2011-07-08 09:05 748用原型实例指定创建对象的种类,并且通过拷贝这些原型创建 ... -
工厂方法模式
2011-07-07 11:27 873工厂方法模式的意义是定义一个创建产品对象的工厂接口,将实际创建 ... -
生成器模式
2011-07-07 09:20 866它是一种对象构建模式,它可以将复杂对象的建造过程抽象出来(抽象 ... -
抽象工厂模式
2011-07-05 09:17 933抽象工厂模式是所有形态的工厂模式中最为抽象和最具一般性的一种形 ... -
观察者模式
2011-07-05 09:10 880观察者模式(有时又被称为发布/订阅模式)是软体设计模式的 ... -
代理模式
2011-06-27 10:03 896代理模式三大要素:抽象角色(真实角色和代理角色关系),代理角色 ... -
单例模式
2011-06-24 08:55 839①最简单的模式 package org.fanzone ... -
策略模式
2011-06-23 09:21 855①定义规范 package org.fanzone.d ...
相关推荐
本话题主要关注“图片读取”和“三元色素显示”这两个关键概念。这里我们将深入探讨这两个知识点,并结合实际应用进行阐述。 首先,让我们来了解一下图片读取。在计算机中,图片是一种二进制数据的表示形式,通常以...
我们经历了三例EMPD患者明显色素沉着不足的EMPD,并且在组织病理学上证实色素沉着的斑点上黑素细胞的数量减少,红斑或结节消失。 对色素沉着不足的病变的超微结构分析显示,黑色素体成熟和黑色素体转移到基底层粘附...
三、经济效益分析 1. 投资成本:计算生产设备、原材料采购、研发、营销等方面的初始投入。 2. 预期收益:基于市场预测,估算产品的销售量和价格,计算预期收入。 3. 经济效益评估:通过盈亏平衡分析,评估项目的投资...
枸杞色素稳定性研究,姬涛,,本文探讨了光照、pH、金属离子、温度和氧化还原剂等对色素稳定性的影响。结果表明,在pH≤7的条件下,色素的稳定性较好,三小时后�
色素选择器是一种常见的UI元素,常用于网页设计和开发中,允许用户直观地选取颜色,通常以RGB(红绿蓝)三原色模式显示。在JavaScript(JS)中,我们可以利用各种方法创建自定义的色素选择器。这个工具不仅方便前端...
羟基红花黄色素A的提纯新工艺研究,张婕,,本文探讨了超滤、大孔吸附树脂、纳滤相结合,超滤、纳滤相结合,大孔吸附树脂、纳滤相结合的三种分离工艺对红花提取物的纯化效果
光信息记录介质的工作原理可以分为写入、读取和擦除三个步骤。在写入阶段,高强度的激光脉冲使得色素层发生改变,形成代表二进制数据的“位”;在读取阶段,低强度的激光检测色素层的状态,通过反射率的变化识别出已...
用无水乙醇作为提取剂,原料与提取剂质量体积比为1: 9,分三次提取,石油醚萃取醇提取液,分别得油溶性和水溶性色素。该色素理化性质实验表明:水溶性色素最大吸收峰波长为475 nm,而油溶性色素最大吸收峰波长在440 nm,...
基于浮游藻色素萃取液三维荧光光谱(EEM),利用交替三线性分解(ATLD)和非负最小二乘(NNLS)发展浮游藻群落组成荧光分析技术。将ATLD 模型应用于48种浮游藻色素萃取液的EEM,通过残差分析确定浮游藻色素萃取液EEM 由14...
此外,采用高效液相色谱法、二维或三维色谱技术,结合多极性复合溶剂,制备超高纯黄色素。通过金属离子和小分子有机物修饰,确保产品的稳定性。 3. **产品创新**:红花黄色素被融入到红花籽油中,采用软胶囊工艺,...
以紫甘蓝为研究对象,进行自然保藏、冷藏保藏和冷冻保藏的前处理并在酸性条件下结合超声波的方法提取紫甘蓝色素。对不同前处理的色素进行针对不同pH值、不同温度、不同防腐剂浓度、不同蔗糖...三种前处理的色素样品稳定
稳定性试验表明,色素易与二价或者三价金属离子形成沉淀,在偏酸至中性范围内较稳定,对光、热、氧化剂、还原剂以及各种食品添加剂耐受性强。该色素有望开发成为安全可靠的天然植物色素添加剂。
以干玫瑰花瓣和胡萝卜为原料,通过水浴浸提法、抽滤法、冷冻干燥法制备了玫瑰花色素和胡萝卜色素的干粉,并结合红曲红色素,研究了最大吸收波长、pH值、光照、温度、食盐、白糖、抗坏血酸等因素对三种色素稳定性的...
应用了四个等温线模型,三个动力学模型和粒子内扩散模型来拟合实验数据。 发现平衡数据最好用Temkin等温线模型表示。 实验数据很好地拟合了伪二级动力学模型。 扩散研究表明,粒子内扩散不是唯一的速率控制因素。 ...
选用三种藓类大灰藓、大羽藓、金发藓,研究了不同浓度的2,4 -D,NAA,KT,GA3四种植物生长调节剂对三种藓类光合色素含量的影响。结果表明:1 mg/L 2,4 -D可提高大灰藓光合色素含量,利于大灰藓的生长;1 mg/L KT可提高大灰...
研究了氯化铵、乙酸铵、硫酸铵、磷酸二氢铵、柠檬酸三铵和硝酸铵等6种作为无机氮源的铵盐对红曲霉突变菌株MYM代谢形成红曲色素和桔霉素的影响.结果表明,无机铵盐对红曲黄色素的代谢形成影响不明显,但是对红曲红色素...
文章综述了浮游植物光合色素的三种主要提取技术:直接浸泡提取法、浸泡研磨提取法和超声波破碎浸泡法,并从提取能力、保真性、广泛适用性、准确性、简单和安全六个方面进行评价。得到将DMF萃取液再超声破碎是最佳的...
利用同源模建和分子动力学模拟,模建了细胞色素P450(CYP2s1)的三维结构。在模建结构的基础上,分析了活性位点的组成和结构,并进行了与小分子(维甲酸)的分子对接研究。研究结果表明,在由维甲酸和CYP2s1形成的复合...
这项研究旨在研究自体富血小板血浆(aPRP)的亚腱注射的安全性,有效性和持久性,该血浆是色素性视网膜炎(RP)患者中GFs的丰富来源。 方法:本研究调查了77例RP患者的154只眼,这些患者具有不同程度的视野狭窄。 ...
通过应力监测、色素示踪、照相素描等手段,统计了各水平、垂直切面的裂隙形态、数量与分布特征,并建立了采空区覆岩裂隙网络数值模型。研究结果表明:三维应力条件下,采空区覆岩裂隙在空间上呈"类梯形台"形态,在低位...