biz9-logic 4.8.330 → 4.8.332
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 +78 -22
- package/package.json +1 -1
- package/test.js +4 -2
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -224,42 +224,38 @@ class Stat_Logic {
|
|
|
224
224
|
default:
|
|
225
225
|
return "N/A";
|
|
226
226
|
break;
|
|
227
|
-
|
|
228
|
-
|
|
229
227
|
}
|
|
230
228
|
}
|
|
231
229
|
}
|
|
232
230
|
class Page_Logic {
|
|
233
|
-
static TYPE_PAGE_HOME='home';
|
|
234
231
|
static TYPE_PAGE_ABOUT='about';
|
|
235
|
-
static TYPE_PAGE_CONTACT='contact';
|
|
236
|
-
static TYPE_PAGE_FAQ='faq';
|
|
237
|
-
|
|
238
232
|
static TYPE_PAGE_BLOG_POST='blog_post';
|
|
239
233
|
static TYPE_PAGE_BLOG_POST_DETAIL='blog_post_detail';
|
|
240
|
-
|
|
234
|
+
static TYPE_PAGE_CONTACT='contact';
|
|
241
235
|
static TYPE_PAGE_EVENT='event';
|
|
242
236
|
static TYPE_PAGE_EVENT_DETAIL='event_detail';
|
|
243
|
-
|
|
237
|
+
static TYPE_PAGE_FAQ='faq';
|
|
244
238
|
static TYPE_PAGE_GALLERY='gallery';
|
|
245
239
|
static TYPE_PAGE_GALLERY_DETAIL='gallery_detail';
|
|
246
|
-
|
|
247
|
-
static TYPE_PAGE_SERVICE='service';
|
|
248
|
-
static TYPE_PAGE_SERVICE_DETAIL='service_detail';
|
|
249
|
-
|
|
240
|
+
static TYPE_PAGE_HOME='home';
|
|
250
241
|
static TYPE_PAGE_PRODUCT='product';
|
|
251
242
|
static TYPE_PAGE_PRODUCT_DETAIL='product_detail';
|
|
243
|
+
static TYPE_PAGE_SERVICE='service';
|
|
244
|
+
static TYPE_PAGE_SERVICE_DETAIL='service_detail';
|
|
252
245
|
|
|
253
|
-
static
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
246
|
+
static get_page_list =()=>{
|
|
247
|
+
return [
|
|
248
|
+
{value:Page_Logic.TYPE_PAGE_ABOUT,label:"About"},
|
|
249
|
+
{value:Page_Logic.TYPE_PAGE_BLOG_POST,label:"Blog Post"},
|
|
250
|
+
{value:Page_Logic.TYPE_PAGE_CONTACT,label:"Contact"},
|
|
251
|
+
{value:Page_Logic.TYPE_PAGE_EVENT,label:"Event"},
|
|
252
|
+
{value:Page_Logic.TYPE_PAGE_FAQ,label:"Faq"},
|
|
253
|
+
{value:Page_Logic.TYPE_PAGE_GALLERY,label:"Gallery"},
|
|
254
|
+
{value:Page_Logic.TYPE_PAGE_HOME,label:"Home"},
|
|
255
|
+
{value:Page_Logic.TYPE_PAGE_PRODUCT,label:"Product"},
|
|
256
|
+
{value:Page_Logic.TYPE_PAGE_SERVICE,label:"Service"},
|
|
257
|
+
];
|
|
258
|
+
};
|
|
263
259
|
|
|
264
260
|
static get_page_title = (data_type) => {
|
|
265
261
|
if(!data_type){
|
|
@@ -1799,6 +1795,65 @@ class Image_Logic {
|
|
|
1799
1795
|
];
|
|
1800
1796
|
}
|
|
1801
1797
|
}
|
|
1798
|
+
class Url_Logic {
|
|
1799
|
+
//blog_post
|
|
1800
|
+
static URL_BLOG_POST_DETAIL="blog_post/detail";
|
|
1801
|
+
static URL_BLOG_POST_HOME="blog_post/home";
|
|
1802
|
+
static URL_BLOG_POST_SEARCH="blog_post/search";
|
|
1803
|
+
//cart
|
|
1804
|
+
static URL_CART_DELETE="item/delete_cart";
|
|
1805
|
+
static URL_CART_GET="item/get_cart";
|
|
1806
|
+
static URL_CART_POST="item/post_cart";
|
|
1807
|
+
static URL_CART_SEARCH="item/search_cart";
|
|
1808
|
+
//category
|
|
1809
|
+
static URL_CATEGORY_DETAIL="category/detail";
|
|
1810
|
+
static URL_CATEGORY_HOME="category/home";
|
|
1811
|
+
static URL_CATEGORY_SEARCH="category/search";
|
|
1812
|
+
//content
|
|
1813
|
+
static URL_CONTENT_GET="item/get_content";
|
|
1814
|
+
//dashboard
|
|
1815
|
+
static URL_DASHBOARD_USER_HOME="dashboard/user_home";
|
|
1816
|
+
static URL_DASHBOARD_APP_HOME="dashboard/app_home";
|
|
1817
|
+
//event
|
|
1818
|
+
static URL_EVENT_DETAIL="event/detail";
|
|
1819
|
+
static URL_EVENT_HOME="event/home";
|
|
1820
|
+
static URL_EVENT_SEARCH="event/search";
|
|
1821
|
+
//favorite
|
|
1822
|
+
static URL_FAVORITE_POST="item/post_favorite";
|
|
1823
|
+
static URL_FAVORITE_SEARCH="item/search_review";
|
|
1824
|
+
//gallery
|
|
1825
|
+
static URL_GALLERY_DETAIL="gallery/detail";
|
|
1826
|
+
static URL_GALLERY_HOME="gallery/home";
|
|
1827
|
+
static URL_GALLERY_SEARCH="gallery/search";
|
|
1828
|
+
//order
|
|
1829
|
+
static URL_ORDER_DELETE="item/delete_order";
|
|
1830
|
+
static URL_ORDER_GET="item/get_order";
|
|
1831
|
+
static URL_ORDER_POST="item/post_order";
|
|
1832
|
+
static URL_ORDER_SEARCH="item/search_order";
|
|
1833
|
+
//page
|
|
1834
|
+
static URL_PAGE_HOME="page/home";
|
|
1835
|
+
static URL_PAGE_ABOUT="page/about";
|
|
1836
|
+
static URL_PAGE_CONTACT="page/contact";
|
|
1837
|
+
static URL_PAGE_FAQ="page/faq";
|
|
1838
|
+
//product
|
|
1839
|
+
static URL_PRODUCT_DETAIL="product/detail";
|
|
1840
|
+
static URL_PRODUCT_HOME="product/home";
|
|
1841
|
+
static URL_PRODUCT_SEARCH="product/search";
|
|
1842
|
+
//review
|
|
1843
|
+
static URL_REVIEW_POST="item/post_review";
|
|
1844
|
+
static URL_REVIEW_SEARCH="item/search_review";
|
|
1845
|
+
//service
|
|
1846
|
+
static URL_SERVICE_DETAIL="service/detail";
|
|
1847
|
+
static URL_SERVICE_HOME="service/home";
|
|
1848
|
+
static URL_SERVICE_SEARCH="service/search";
|
|
1849
|
+
//stat
|
|
1850
|
+
static URL_SEARCH_ACTIVITY="item/search_activity";
|
|
1851
|
+
//template
|
|
1852
|
+
static URL_TEMPLATE_GET="item/get_template";
|
|
1853
|
+
static get_url = (app_id,host,url,param) => {
|
|
1854
|
+
return get_cloud_url_main(app_id,host,url,param);
|
|
1855
|
+
};
|
|
1856
|
+
}
|
|
1802
1857
|
module.exports = {
|
|
1803
1858
|
App_Logic,
|
|
1804
1859
|
Admin_Logic,
|
|
@@ -1825,4 +1880,5 @@ module.exports = {
|
|
|
1825
1880
|
Storage,
|
|
1826
1881
|
Template_Logic,
|
|
1827
1882
|
User_Logic,
|
|
1883
|
+
Url_Logic
|
|
1828
1884
|
};
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const series = require('async-series');
|
|
2
|
-
const {DataItem,DataType} = require('./index');
|
|
2
|
+
const {DataItem,DataType,Page_Logic} = require('./index');
|
|
3
3
|
|
|
4
4
|
const {Log,Num} = require('biz9-utility');
|
|
5
5
|
const {Scriptz}= require('biz9-scriptz');
|
|
@@ -30,7 +30,9 @@ describe("connect", () => {
|
|
|
30
30
|
it("_connect", () => {
|
|
31
31
|
series([
|
|
32
32
|
function(call) {
|
|
33
|
-
console.log('
|
|
33
|
+
console.log('CONNECT-START');
|
|
34
|
+
console.log(Page_Logic.get_page_list());
|
|
35
|
+
console.log('CONNECT-END');
|
|
34
36
|
call();
|
|
35
37
|
},
|
|
36
38
|
function(call) {
|