biz9-logic 4.8.227 → 4.8.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/biz9_config +1 -1
- package/index.js +5 -16
- package/package.json +1 -1
- package/test.js +2 -2
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -199,23 +199,8 @@ class Page_Logic {
|
|
|
199
199
|
{value:'list',label:'List'},
|
|
200
200
|
];
|
|
201
201
|
};
|
|
202
|
-
static get_section_property_type = (
|
|
202
|
+
static get_section_property_type = (section_id,value_id,is_title) =>{
|
|
203
203
|
//page['section_1_value_1_type'] -- / text,note,photo,list
|
|
204
|
-
let type_str = '';
|
|
205
|
-
switch(type){
|
|
206
|
-
case 'text':
|
|
207
|
-
type_str = 'text';
|
|
208
|
-
break;
|
|
209
|
-
case 'note':
|
|
210
|
-
type_str = 'note';
|
|
211
|
-
break;
|
|
212
|
-
case 'photo':
|
|
213
|
-
type_str = 'photo';
|
|
214
|
-
break;
|
|
215
|
-
case 'list':
|
|
216
|
-
type_str = 'list';
|
|
217
|
-
break;
|
|
218
|
-
};
|
|
219
204
|
return !is_title ? 'section_'+section_id + '_value_'+value_id + "_type" : 'Section '+section_id + ' Value '+value_id;
|
|
220
205
|
}
|
|
221
206
|
static get_section_property_type_value = (type,section_id,value_id) =>{
|
|
@@ -1603,6 +1588,10 @@ class Page_Url {
|
|
|
1603
1588
|
let action_url=PageType.get_title(PageType.HOME);
|
|
1604
1589
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1605
1590
|
};
|
|
1591
|
+
static post_section = (app_id,url,page_id,params) => {
|
|
1592
|
+
let action_url="page/post_section/"+page_id;
|
|
1593
|
+
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1594
|
+
};
|
|
1606
1595
|
}
|
|
1607
1596
|
class Url{
|
|
1608
1597
|
static copy = (app_id,url,data_type,id,params) => {
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -33,8 +33,8 @@ describe("connect", () => {
|
|
|
33
33
|
function(call) {
|
|
34
34
|
console.log('PAGE-SECTION-START');
|
|
35
35
|
//console.log(Page_Logic.get_page_section_type_list());
|
|
36
|
-
|
|
37
|
-
console.log(Page_Logic.get_section_property_type_value('text',1,2,true));
|
|
36
|
+
console.log(Page_Logic.get_section_property_type(1,2,true));
|
|
37
|
+
//console.log(Page_Logic.get_section_property_type_value('text',1,2,true));
|
|
38
38
|
//console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_VALUE,1,2,3));
|
|
39
39
|
//console.log(Page_Logic.get_section_property_list(FieldType.SECTION_PROPERTY_TYPE_LIST_FIELD,1,2,3));
|
|
40
40
|
console.log('PAGE-SECTION-END');
|