biz9-logic 4.8.229 → 4.8.231
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 -3
- package/package.json +1 -1
- package/test.js +4 -4
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -200,10 +200,12 @@ class Page_Logic {
|
|
|
200
200
|
];
|
|
201
201
|
};
|
|
202
202
|
static get_section_property_type = (section_id,value_id,is_title) =>{
|
|
203
|
+
//section_1_value_1_type
|
|
203
204
|
//page['section_1_value_1_type'] -- / text,note,photo,list
|
|
204
205
|
return !is_title ? 'section_'+section_id + '_value_'+value_id + "_type" : 'Section '+section_id + ' Value '+value_id;
|
|
205
206
|
}
|
|
206
207
|
static get_section_property_type_value = (type,section_id,value_id) =>{
|
|
208
|
+
//section_1_value_1_text_value
|
|
207
209
|
//page['section_1_value_1_[text,note,photo,list]_value']
|
|
208
210
|
let type_str = '';
|
|
209
211
|
switch(type){
|
|
@@ -223,7 +225,7 @@ class Page_Logic {
|
|
|
223
225
|
return 'section_'+section_id + '_value_'+value_id + "_" + type_str + "_value";
|
|
224
226
|
}
|
|
225
227
|
|
|
226
|
-
static
|
|
228
|
+
static get_section_property_type_list = (type,section_id,value_id,row_id) =>{
|
|
227
229
|
//page['section_1_value_1_type'] -- / list
|
|
228
230
|
//page['section_1_value_1_list_field_1']
|
|
229
231
|
//page['section_1_value_1_list_value_1']
|
|
@@ -1588,8 +1590,8 @@ class Page_Url {
|
|
|
1588
1590
|
let action_url=PageType.get_title(PageType.HOME);
|
|
1589
1591
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1590
1592
|
};
|
|
1591
|
-
static post_section = (app_id,url,page_id,params) => {
|
|
1592
|
-
let action_url="page/post_section/"+page_id;
|
|
1593
|
+
static post_section = (app_id,url,type,page_id,section_id,value_id,params) => {
|
|
1594
|
+
let action_url="page/post_section/"+type+"/"+page_id+"/"+section_id+"/"+value_id;
|
|
1593
1595
|
return get_cloud_url_main(app_id,url,action_url,params);
|
|
1594
1596
|
};
|
|
1595
1597
|
}
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -31,13 +31,13 @@ describe("connect", () => {
|
|
|
31
31
|
series([
|
|
32
32
|
|
|
33
33
|
function(call) {
|
|
34
|
-
console.log('PAGE-SECTION-START');
|
|
34
|
+
//console.log('PAGE-SECTION-START');
|
|
35
35
|
//console.log(Page_Logic.get_page_section_type_list());
|
|
36
|
-
console.log(Page_Logic.get_section_property_type(1,2,true));
|
|
36
|
+
//console.log(Page_Logic.get_section_property_type(1,2,true));
|
|
37
37
|
//console.log(Page_Logic.get_section_property_type_value('text',1,2,true));
|
|
38
|
-
//console.log(Page_Logic.
|
|
38
|
+
//console.log(Page_Logic.get_section_property_type_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
|
-
console.log('PAGE-SECTION-END');
|
|
40
|
+
//console.log('PAGE-SECTION-END');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
//console.log('PRODUCT-URL-START');
|