|
@@ -1,261 +1,336 @@
|
1
|
|
- var edit_form_panel = Ext.create("Ext.form.Panel", {
|
2
|
|
- buttonAlign : "center",
|
3
|
|
- bodyStyle : "padding: 60px;",
|
4
|
|
- defaultType : "textfield",
|
5
|
|
- width: 850,
|
6
|
|
- height: 450,
|
7
|
|
- layout :
|
8
|
|
- {
|
9
|
|
- type : 'table',
|
10
|
|
- columns : 2
|
11
|
|
- },
|
12
|
|
- items : [
|
13
|
|
- {
|
14
|
|
- fieldLabel : "kid",
|
15
|
|
- xtype : "textfield",
|
16
|
|
- name : "kid",
|
17
|
|
- editable : false,
|
18
|
|
- hidden : true
|
19
|
|
- },{
|
20
|
|
- fieldLabel : "标的名称",
|
21
|
|
- name : "item_name",
|
22
|
|
- labelWidth : 130,
|
23
|
|
- editable : false,
|
24
|
|
- },{
|
25
|
|
- fieldLabel : "标的类型",
|
26
|
|
- name : "bid_type",
|
27
|
|
- labelWidth : 130,
|
28
|
|
- editable : false,
|
29
|
|
- },{
|
30
|
|
- fieldLabel : "联系人",
|
31
|
|
- name : "bidding_linkman",
|
32
|
|
- labelWidth : 130,
|
33
|
|
- editable : false,
|
34
|
|
- },{
|
35
|
|
- fieldLabel : "联系方式",
|
36
|
|
- name : "bidding_contact",
|
37
|
|
- labelWidth : 130,
|
38
|
|
- editable : false,
|
39
|
|
- },{
|
40
|
|
- fieldLabel : "标的内容",
|
41
|
|
- name : "bid_content",
|
42
|
|
- labelWidth : 130,
|
43
|
|
- editable : false,
|
44
|
|
- xtype : "textarea",
|
45
|
|
- },{
|
46
|
|
- fieldLabel : "标的瑕疵",
|
47
|
|
- name : "bid_flaw",
|
48
|
|
- labelWidth : 130,
|
49
|
|
- editable : false,
|
50
|
|
- },{
|
51
|
|
- fieldLabel : "开拍时间",
|
52
|
|
- name : "time_opening",
|
53
|
|
- labelWidth : 130,
|
54
|
|
- editable : false,
|
55
|
|
- },{
|
56
|
|
- fieldLabel : "截止时间",
|
57
|
|
- name : "time_end",
|
58
|
|
- labelWidth : 130,
|
59
|
|
- editable : false,
|
60
|
|
- },{
|
61
|
|
- fieldLabel : "报价延时周期",
|
62
|
|
- name : "update_interval",
|
63
|
|
- labelWidth : 130,
|
64
|
|
- editable : false,
|
65
|
|
- },{
|
66
|
|
- fieldLabel : "拍卖方式",
|
67
|
|
- name : "auction_way",
|
68
|
|
- labelWidth : 130,
|
69
|
|
- editable : false,
|
70
|
|
- },{
|
71
|
|
- fieldLabel : "起拍价",
|
72
|
|
- name : "price_start",
|
73
|
|
- labelWidth : 130,
|
74
|
|
- editable : false,
|
75
|
|
- },{
|
76
|
|
- fieldLabel : "报价幅度",
|
77
|
|
- name : "price_add",
|
78
|
|
- labelWidth : 130,
|
79
|
|
- editable : false,
|
80
|
|
- },{
|
81
|
|
- fieldLabel : "保留价",
|
82
|
|
- name : "price_retain",
|
83
|
|
- labelWidth : 130,
|
84
|
|
- editable : false,
|
85
|
|
- },{
|
86
|
|
- fieldLabel : "评估价",
|
87
|
|
- name : "price_assessment",
|
88
|
|
- labelWidth : 130,
|
89
|
|
- editable : false,
|
90
|
|
- },{
|
91
|
|
- fieldLabel : "保证金",
|
92
|
|
- name : "price_guarantee",
|
93
|
|
- labelWidth : 130,
|
94
|
|
- editable : false,
|
95
|
|
- },{
|
96
|
|
- xtype : 'button',
|
97
|
|
- text : '竞买协议',
|
98
|
|
- name : "bidding_agreement_path",
|
99
|
|
- labelWidth : 50,
|
100
|
|
- tooltip : '查看详情',
|
101
|
|
- icon : jcapp.getIcon("user_magnify.png"),
|
102
|
|
- handler : function() {
|
103
|
|
- getPriceInfo(0);
|
|
1
|
+var edit_form_panel = Ext.create("Ext.form.Panel", {
|
|
2
|
+ bodyStyle : "padding: 30px;",
|
|
3
|
+ defaultType : "textfield",
|
|
4
|
+ layout: 'form',
|
|
5
|
+ bodyPadding: 15,
|
|
6
|
+ width: 660,
|
|
7
|
+ height: 450,
|
|
8
|
+ fieldDefaults: {
|
|
9
|
+ labelWidth: 88,
|
|
10
|
+ labelSeparator: ': ',
|
|
11
|
+ labelAlign: 'center',
|
|
12
|
+ flex: 1,
|
|
13
|
+ margin: 6
|
|
14
|
+ },
|
|
15
|
+ defaults: {
|
|
16
|
+ anchor: '100%'
|
|
17
|
+ },
|
|
18
|
+ items: [
|
|
19
|
+ {
|
|
20
|
+ fieldLabel : "kid",
|
|
21
|
+ xtype : "textfield",
|
|
22
|
+ name : "kid",
|
|
23
|
+ hidden : true
|
|
24
|
+ },{
|
|
25
|
+ xtype: 'container',
|
|
26
|
+ layout: 'hbox',
|
|
27
|
+ items: [{
|
|
28
|
+ fieldLabel: '标的名称',
|
|
29
|
+ name: 'item_name',
|
|
30
|
+ editable : false,
|
|
31
|
+ xtype: 'textfield'
|
|
32
|
+ }, {
|
|
33
|
+ fieldLabel: '标的类型',
|
|
34
|
+ name: 'bid_type',
|
|
35
|
+ editable : false,
|
|
36
|
+ xtype: 'textfield'
|
|
37
|
+ }]
|
|
38
|
+ }, {
|
|
39
|
+ xtype: 'container',
|
|
40
|
+ layout: 'hbox',
|
|
41
|
+ items: [{
|
|
42
|
+ fieldLabel: '联系人',
|
|
43
|
+ name: 'bidding_linkman',
|
|
44
|
+ editable : false,
|
|
45
|
+ xtype: 'textfield'
|
|
46
|
+ }, {
|
|
47
|
+ fieldLabel: '联系方式',
|
|
48
|
+ name: 'bidding_contact',
|
|
49
|
+ editable : false,
|
|
50
|
+ xtype: 'textfield'
|
|
51
|
+ }]
|
|
52
|
+ }, {
|
|
53
|
+ xtype: 'container',
|
|
54
|
+ layout: 'hbox',
|
|
55
|
+ items: [{
|
|
56
|
+ fieldLabel: '开拍时间',
|
|
57
|
+ name: 'time_opening',
|
|
58
|
+ xtype:'textfield',
|
|
59
|
+ editable : false
|
|
60
|
+ }, {
|
|
61
|
+ fieldLabel: '截止时间',
|
|
62
|
+ name: 'time_end',
|
|
63
|
+ xtype: 'textfield',
|
|
64
|
+ editable : false
|
|
65
|
+ }]
|
|
66
|
+ },{
|
|
67
|
+ xtype: 'container',
|
|
68
|
+ layout: 'hbox',
|
|
69
|
+ items: [{
|
|
70
|
+ fieldLabel: '报价延时周期',
|
|
71
|
+ name: 'update_interval',
|
|
72
|
+ editable : false,
|
|
73
|
+ xtype: 'textfield'
|
|
74
|
+ }, {
|
|
75
|
+ fieldLabel: '拍卖方式',
|
|
76
|
+ name: 'auction_way',
|
|
77
|
+ editable : false,
|
|
78
|
+ xtype: 'textfield'
|
|
79
|
+ }]
|
|
80
|
+ },{
|
|
81
|
+ xtype: 'container',
|
|
82
|
+ layout: 'hbox',
|
|
83
|
+ items: [{
|
|
84
|
+ fieldLabel: '起拍价',
|
|
85
|
+ name: 'price_start',
|
|
86
|
+ editable : false,
|
|
87
|
+ xtype: 'textfield'
|
|
88
|
+ }, {
|
|
89
|
+ fieldLabel: '报价幅度',
|
|
90
|
+ name: 'price_add',
|
|
91
|
+ editable : false,
|
|
92
|
+ xtype: 'textfield'
|
|
93
|
+ }]
|
|
94
|
+ },{
|
|
95
|
+ xtype: 'container',
|
|
96
|
+ layout: 'hbox',
|
|
97
|
+ items: [{
|
|
98
|
+ fieldLabel: '保留价',
|
|
99
|
+ name: 'price_retain',
|
|
100
|
+ editable : false,
|
|
101
|
+ xtype: 'textfield'
|
|
102
|
+ }, {
|
|
103
|
+ fieldLabel: '评估价',
|
|
104
|
+ name: 'price_assessment',
|
|
105
|
+ editable : false,
|
|
106
|
+ xtype: 'textfield'
|
|
107
|
+ }]
|
|
108
|
+ },{
|
|
109
|
+ xtype: 'container',
|
|
110
|
+ layout: 'hbox',
|
|
111
|
+ items: [{
|
|
112
|
+ fieldLabel: '保证金',
|
|
113
|
+ name: 'price_guarantee',
|
|
114
|
+ editable : false,
|
|
115
|
+ xtype: 'textfield'
|
|
116
|
+ }, {
|
|
117
|
+ fieldLabel: '标的瑕疵',
|
|
118
|
+ name: 'bid_flaw',
|
|
119
|
+ editable : false,
|
|
120
|
+ xtype: 'textfield'
|
|
121
|
+ }]
|
|
122
|
+ },{
|
|
123
|
+ xtype: 'container',
|
|
124
|
+ layout: 'hbox',
|
|
125
|
+ items: [{
|
|
126
|
+ xtype: 'textareafield',
|
|
127
|
+ name: 'bid_content',
|
|
128
|
+ editable : false,
|
|
129
|
+ fieldLabel: '标的内容',
|
|
130
|
+ height: 70
|
|
131
|
+ }]
|
|
132
|
+ },{
|
|
133
|
+ xtype: 'container',
|
|
134
|
+ layout: 'hbox',
|
|
135
|
+ items: [{
|
|
136
|
+ xtype : 'combobox',
|
|
137
|
+ fieldLabel: '竞买协议',
|
|
138
|
+ store: Ext.create('Ext.data.Store', {
|
|
139
|
+ fields: ['name', 'code'],
|
|
140
|
+ data: [{
|
|
141
|
+ 'name': '--请选择--',
|
|
142
|
+ 'code': '0'
|
|
143
|
+ },{
|
|
144
|
+ 'name': '查看协议',
|
|
145
|
+ 'code': '1'
|
|
146
|
+ }]
|
|
147
|
+ }),
|
|
148
|
+ displayField : 'name',
|
|
149
|
+ valueField : 'code',
|
|
150
|
+ emptyText:'--请选择--',
|
|
151
|
+ listeners: {
|
|
152
|
+ select : function(combo, op, options) {
|
|
153
|
+ if ("1" == combo.value){
|
|
154
|
+ getPriceInfo(0);
|
|
155
|
+ }
|
104
|
156
|
}
|
105
|
|
- },{
|
106
|
|
- xtype : 'button',
|
107
|
|
- text : '竞买规则',
|
108
|
|
- name : "bidding_rules_path",
|
109
|
|
- labelWidth : 50,
|
110
|
|
- tooltip : '查看详情',
|
111
|
|
- icon : jcapp.getIcon("user_magnify.png"),
|
112
|
|
- handler : function(val) {
|
113
|
|
- getPriceInfo(1);
|
|
157
|
+ }
|
|
158
|
+ },{
|
|
159
|
+ xtype : 'combobox',
|
|
160
|
+ fieldLabel: '竞买规则',
|
|
161
|
+ store: Ext.create('Ext.data.Store', {
|
|
162
|
+ fields: ['name', 'code'],
|
|
163
|
+ data: [{
|
|
164
|
+ 'name': '--请选择--',
|
|
165
|
+ 'code': '0'
|
|
166
|
+ },{
|
|
167
|
+ 'name': '查看规则',
|
|
168
|
+ 'code': '1'
|
|
169
|
+ }]
|
|
170
|
+ }),
|
|
171
|
+ displayField : 'name',
|
|
172
|
+ valueField : 'code',
|
|
173
|
+ emptyText:'--请选择--',
|
|
174
|
+ listeners: {
|
|
175
|
+ select : function(combo, op, options) {
|
|
176
|
+ if ("1" == combo.value){
|
|
177
|
+ getPriceInfo(1);
|
|
178
|
+ }
|
114
|
179
|
}
|
115
|
|
- },{
|
116
|
|
- xtype : 'button',
|
117
|
|
- text : '查看标的物上传图片',
|
118
|
|
- name : "bid_file_id",
|
119
|
|
- labelWidth : 50,
|
120
|
|
- tooltip : '查看详情',
|
121
|
|
- icon : jcapp.getIcon("user_magnify.png"),
|
122
|
|
- handler : function(val) {
|
123
|
|
- enlarge();
|
|
180
|
+ }
|
|
181
|
+ }]
|
|
182
|
+ },{
|
|
183
|
+ xtype: 'container',
|
|
184
|
+ layout: 'hbox',
|
|
185
|
+ width: '50%',
|
|
186
|
+ items: [{
|
|
187
|
+ xtype : 'combobox',
|
|
188
|
+ fieldLabel: '查看标的物上传图片',
|
|
189
|
+ store: Ext.create('Ext.data.Store', {
|
|
190
|
+ fields: ['name', 'code'],
|
|
191
|
+ data: [{
|
|
192
|
+ 'name': '--请选择--',
|
|
193
|
+ 'code': '0'
|
|
194
|
+ },{
|
|
195
|
+ 'name': '查看图片',
|
|
196
|
+ 'code': '1'
|
|
197
|
+ }]
|
|
198
|
+ }),
|
|
199
|
+ displayField : 'name',
|
|
200
|
+ valueField : 'code',
|
|
201
|
+ emptyText:'--请选择--',
|
|
202
|
+ listeners: {
|
|
203
|
+ select : function(combo, op, options) {
|
|
204
|
+ if ("1" == combo.value){
|
|
205
|
+ enlarge();
|
|
206
|
+ }
|
124
|
207
|
}
|
125
|
208
|
}
|
126
|
|
- ]
|
127
|
|
- });
|
128
|
|
-
|
129
|
|
-
|
130
|
|
-
|
131
|
|
-
|
132
|
|
- var edit_form_panel_win = Ext.create("Ext.Window", {
|
133
|
|
- title : "标的物详情 ",
|
134
|
|
- closeAction : "hide",
|
135
|
|
- items : edit_form_panel
|
136
|
|
- });
|
|
209
|
+ },]
|
|
210
|
+ },
|
|
211
|
+ ],
|
|
212
|
+});
|
|
213
|
+function isEmpty(obj){
|
|
214
|
+ if(obj == "undefined" || obj == null || obj == ""){
|
|
215
|
+ return true;
|
|
216
|
+ }else{
|
|
217
|
+ return false;
|
|
218
|
+ }
|
|
219
|
+}
|
137
|
220
|
var urls = ["",""]
|
138
|
221
|
function getPriceInfo(jumpType){
|
139
|
222
|
var jumpUrl = urls[jumpType];
|
140
|
|
- console.log(jumpUrl);
|
141
|
223
|
if (isEmpty(jumpUrl)){
|
142
|
224
|
Ext.Msg.alert("提示", "竞买文档为空!");
|
143
|
225
|
return;
|
144
|
226
|
}
|
145
|
227
|
window.open(jumpUrl)
|
146
|
228
|
}
|
147
|
|
-
|
148
|
|
- function isEmpty(obj){
|
149
|
|
- if(obj == "undefined" || obj == null || obj == ""){
|
150
|
|
- return true;
|
151
|
|
- }else{
|
152
|
|
- return false;
|
153
|
|
- }
|
154
|
|
- }
|
|
229
|
+var edit_form_panel_win = Ext.create("Ext.Window", {
|
|
230
|
+ title : "标的物详情 ",
|
|
231
|
+ closeAction : "hide",
|
|
232
|
+ items : edit_form_panel
|
|
233
|
+});
|
155
|
234
|
function details(kid){
|
156
|
|
-
|
|
235
|
+ var goodsData;
|
157
|
236
|
Ext.Ajax.request({
|
158
|
|
- url : "/web-cp-all/cp/pm/verify/select?kid="+ kid,
|
159
|
|
- success : function(response) {
|
160
|
|
- var json = Ext.JSON.decode(response.responseText);
|
161
|
|
-// console.log(json);
|
162
|
|
- //加载form表单数据
|
163
|
|
- edit_form_panel.getForm().reset();
|
164
|
|
- edit_form_panel.getForm().setValues(json);
|
165
|
|
- //格式化时间类型数据并赋给form表单对应label
|
166
|
|
- var dateStr1 = getSmpFormatDateByLong(json.time_opening);
|
167
|
|
- edit_form_panel.getForm().findField("time_opening").setValue(dateStr1);
|
168
|
|
- var dateStr2 = getSmpFormatDateByLong(json.time_end);
|
169
|
|
- edit_form_panel.getForm().findField("time_end").setValue(dateStr2);
|
170
|
|
- urls[0]=""+json.bidding_agreement_path;
|
171
|
|
- urls[1]=""+json.bidding_rules_path;
|
172
|
|
- bid_file_id = ""+json.bid_file_id;
|
173
|
|
- edit_form_panel_win.show();
|
174
|
|
- },
|
175
|
|
- failure : function(response) {
|
176
|
|
- Ext.Msg.alert("提示", "操作失败!");
|
177
|
|
- }
|
178
|
|
- });
|
|
237
|
+ url : "/web-cp-all/cp/pm/verify/select?kid="+ kid,
|
|
238
|
+ success : function(response) {
|
|
239
|
+ var json = Ext.JSON.decode(response.responseText);
|
|
240
|
+ goodsData = json;
|
|
241
|
+ //定义数据模型
|
|
242
|
+ urls[0]=""+json.bidding_agreement_path;
|
|
243
|
+ urls[1]=""+json.bidding_rules_path;
|
|
244
|
+ bid_file_id = ""+json.bid_file_id;
|
|
245
|
+ edit_form_panel.getForm().setValues(goodsData)
|
|
246
|
+ //格式化时间类型数据并赋给form表单对应label
|
|
247
|
+ var dateStr1 = getSmpFormatDateByLong(json.time_opening);
|
|
248
|
+ edit_form_panel.getForm().findField("time_opening").setValue(dateStr1);
|
|
249
|
+ var dateStr2 = getSmpFormatDateByLong(json.time_end);
|
|
250
|
+ edit_form_panel.getForm().findField("time_end").setValue(dateStr2);
|
|
251
|
+ edit_form_panel_win.show();
|
|
252
|
+ },
|
|
253
|
+ failure : function(response) {
|
|
254
|
+ Ext.Msg.alert("提示", "操作失败!");
|
|
255
|
+ }
|
|
256
|
+ });
|
179
|
257
|
}
|
180
|
258
|
|
181
|
|
- var imgIndex = 0;
|
182
|
|
- var operationIndex = ''; //up 上一页 down 下一页
|
183
|
|
- var imgSize = 0;
|
184
|
|
- var bid_file_id = "";
|
185
|
|
- function enlarge(){
|
186
|
|
- console.log(bid_file_id);
|
187
|
|
- if (isEmpty(bid_file_id)){
|
188
|
|
- Ext.Msg.alert("提示", "标的图片为空!");
|
189
|
|
- return;
|
190
|
|
- }
|
191
|
|
- var array = bid_file_id.indexOf("2") != -1 ? bid_file_id.split(","):bid_file_id;
|
192
|
|
- var html = '<div style="width:100%;height:100%;">' ;
|
193
|
|
- imgSize = array.length-1;
|
194
|
|
- for(var i = 0 ; i < array.length ;i++){
|
195
|
|
- var str = getServerHttp()+"/img_pm/img/"+array[i];
|
196
|
|
- html += '<img id="videoSource'+i+'" style="width:100%;height:100%;display:none;" src="'+str+'" />' ;
|
197
|
|
- }
|
198
|
|
- html += '<div>';
|
199
|
|
- songPlayer.show();
|
200
|
|
- Ext.getCmp("playerPanel").body.update(html);
|
201
|
|
- showIndex();
|
202
|
|
- }
|
203
|
|
- function showIndex(){
|
204
|
|
- if(operationIndex == 'down'){
|
205
|
|
- if(imgIndex == imgSize){
|
206
|
|
- Ext.Msg.alert("操作","最后一张无法下一页");
|
207
|
|
- return;
|
208
|
|
- }
|
209
|
|
- document.getElementById("videoSource"+imgIndex).style.display="none";
|
210
|
|
- imgIndex++;
|
211
|
|
- console.log(imgIndex);
|
212
|
|
- document.getElementById("videoSource"+imgIndex).style.display="block";
|
213
|
|
- }else if(operationIndex == 'up'){
|
214
|
|
- if(imgIndex == 0){
|
215
|
|
- Ext.Msg.alert("操作","第一张无法上一页");
|
216
|
|
- return;
|
217
|
|
- }
|
218
|
|
- document.getElementById("videoSource"+imgIndex).style.display="none";
|
219
|
|
- imgIndex--;
|
220
|
|
- console.log(imgIndex);
|
221
|
|
- document.getElementById("videoSource"+imgIndex).style.display="block";
|
222
|
|
- }else{
|
223
|
|
- document.getElementById("videoSource"+imgIndex).style.display="block";
|
224
|
|
- }
|
225
|
|
- }
|
226
|
|
- var playerForm=new Ext.Panel({
|
227
|
|
- xtype : 'panel',
|
228
|
|
- id : 'playerPanel',
|
229
|
|
- width:600,
|
230
|
|
- height:600,
|
231
|
|
- html:""
|
232
|
|
- })
|
233
|
|
- var songPlayer = new Ext.Window({
|
234
|
|
- layout : 'fit',
|
235
|
|
- width:600,
|
236
|
|
- height:600,
|
237
|
|
- modal : true,
|
238
|
|
- frame: true,
|
239
|
|
- closable : false,
|
240
|
|
- items : [playerForm] ,
|
241
|
|
- buttons: [{
|
242
|
|
- text: '上一页',
|
243
|
|
- handler: function() {
|
244
|
|
- operationIndex = 'up';
|
245
|
|
- showIndex();
|
246
|
|
- }
|
247
|
|
- },{
|
248
|
|
- text: '下一页',
|
249
|
|
- handler: function() {
|
250
|
|
- operationIndex = 'down';
|
251
|
|
- showIndex();
|
252
|
|
- }
|
253
|
|
- },{
|
254
|
|
- text: '关闭',
|
255
|
|
- handler: function() {
|
256
|
|
- Ext.getCmp('playerPanel').html ="";
|
257
|
|
- Ext.getCmp("playerPanel").body.update("");
|
258
|
|
- songPlayer.hide();
|
259
|
|
- }
|
260
|
|
- }]
|
261
|
|
- });
|
|
259
|
+var imgIndex = 0;
|
|
260
|
+var operationIndex = ''; //up 上一页 down 下一页
|
|
261
|
+var imgSize = 0;
|
|
262
|
+var bid_file_id = "";
|
|
263
|
+function enlarge(){
|
|
264
|
+ if (isEmpty(bid_file_id)){
|
|
265
|
+ Ext.Msg.alert("提示", "标的图片为空!");
|
|
266
|
+ return;
|
|
267
|
+ }
|
|
268
|
+ var array = bid_file_id.indexOf("2") != -1 ? bid_file_id.split(","):bid_file_id;
|
|
269
|
+ var html = '<div style="width:100%;height:100%;">' ;
|
|
270
|
+ imgSize = array.length-1;
|
|
271
|
+ for(var i = 0 ; i < array.length ;i++){
|
|
272
|
+ var str = getServerHttp()+"/img_pm/img/"+array[i];
|
|
273
|
+ html += '<img id="videoSource'+i+'" style="width:100%;height:100%;display:none;" src="'+str+'" />' ;
|
|
274
|
+ }
|
|
275
|
+ html += '<div>';
|
|
276
|
+ songPlayer.show();
|
|
277
|
+ Ext.getCmp("playerPanel").body.update(html);
|
|
278
|
+ showIndex();
|
|
279
|
+}
|
|
280
|
+function showIndex(){
|
|
281
|
+ if(operationIndex == 'down'){
|
|
282
|
+ if(imgIndex == imgSize){
|
|
283
|
+ Ext.Msg.alert("操作","最后一张无法下一页");
|
|
284
|
+ return;
|
|
285
|
+ }
|
|
286
|
+ document.getElementById("videoSource"+imgIndex).style.display="none";
|
|
287
|
+ imgIndex++;
|
|
288
|
+ document.getElementById("videoSource"+imgIndex).style.display="block";
|
|
289
|
+ }else if(operationIndex == 'up'){
|
|
290
|
+ if(imgIndex == 0){
|
|
291
|
+ Ext.Msg.alert("操作","第一张无法上一页");
|
|
292
|
+ return;
|
|
293
|
+ }
|
|
294
|
+ document.getElementById("videoSource"+imgIndex).style.display="none";
|
|
295
|
+ imgIndex--;
|
|
296
|
+ document.getElementById("videoSource"+imgIndex).style.display="block";
|
|
297
|
+ }else{
|
|
298
|
+ document.getElementById("videoSource"+imgIndex).style.display="block";
|
|
299
|
+ }
|
|
300
|
+}
|
|
301
|
+var playerForm=new Ext.Panel({
|
|
302
|
+ xtype : 'panel',
|
|
303
|
+ id : 'playerPanel',
|
|
304
|
+ width:600,
|
|
305
|
+ height:600,
|
|
306
|
+ html:""
|
|
307
|
+})
|
|
308
|
+var songPlayer = new Ext.Window({
|
|
309
|
+ layout : 'fit',
|
|
310
|
+ width:600,
|
|
311
|
+ height:600,
|
|
312
|
+ modal : true,
|
|
313
|
+ frame: true,
|
|
314
|
+ closable : false,
|
|
315
|
+ items : [playerForm] ,
|
|
316
|
+ buttons: [{
|
|
317
|
+ text: '上一页',
|
|
318
|
+ handler: function() {
|
|
319
|
+ operationIndex = 'up';
|
|
320
|
+ showIndex();
|
|
321
|
+ }
|
|
322
|
+ },{
|
|
323
|
+ text: '下一页',
|
|
324
|
+ handler: function() {
|
|
325
|
+ operationIndex = 'down';
|
|
326
|
+ showIndex();
|
|
327
|
+ }
|
|
328
|
+ },{
|
|
329
|
+ text: '关闭',
|
|
330
|
+ handler: function() {
|
|
331
|
+ Ext.getCmp('playerPanel').html ="";
|
|
332
|
+ Ext.getCmp("playerPanel").body.update("");
|
|
333
|
+ songPlayer.hide();
|
|
334
|
+ }
|
|
335
|
+ }]
|
|
336
|
+});
|