biz9-logic 4.8.328 → 4.8.330
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 +48 -14
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -194,6 +194,40 @@ class Stat_Logic {
|
|
|
194
194
|
parent_item_list:parent_item_list,
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
+
|
|
198
|
+
static get_stat_title = (stat_title)=>{
|
|
199
|
+
switch(stat_title){
|
|
200
|
+
case Stat_Logic.TYPE_STAT_VIEW:
|
|
201
|
+
return "View";
|
|
202
|
+
break;
|
|
203
|
+
case Stat_Logic.TYPE_STAT_LIKE:
|
|
204
|
+
return "Like";
|
|
205
|
+
break;
|
|
206
|
+
case Stat_Logic.TYPE_STAT_FAVORITE:
|
|
207
|
+
return "Favorite";
|
|
208
|
+
break;
|
|
209
|
+
case Stat_Logic.TYPE_STAT_CART:
|
|
210
|
+
return "Cart";
|
|
211
|
+
break;
|
|
212
|
+
case Stat_Logic.TYPE_STAT_ORDER:
|
|
213
|
+
return "Order";
|
|
214
|
+
break;
|
|
215
|
+
case Stat_Logic.TYPE_STAT_REVIEW:
|
|
216
|
+
return "Review";
|
|
217
|
+
break;
|
|
218
|
+
case Stat_Logic.TYPE_STAT_LOGIN:
|
|
219
|
+
return "Login";
|
|
220
|
+
break;
|
|
221
|
+
case Stat_Logic.TYPE_STAT_REGISTER:
|
|
222
|
+
return "Register";
|
|
223
|
+
break;
|
|
224
|
+
default:
|
|
225
|
+
return "N/A";
|
|
226
|
+
break;
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
}
|
|
230
|
+
}
|
|
197
231
|
}
|
|
198
232
|
class Page_Logic {
|
|
199
233
|
static TYPE_PAGE_HOME='home';
|
|
@@ -234,7 +268,7 @@ class Page_Logic {
|
|
|
234
268
|
return String(Str.get_title(data_type.replaceAll('_',' '))).trim();
|
|
235
269
|
}
|
|
236
270
|
}
|
|
237
|
-
static
|
|
271
|
+
static url_page = (app_id,url,title_url,param) => {
|
|
238
272
|
let action_url="page/get/"+title_url;
|
|
239
273
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
240
274
|
};
|
|
@@ -292,19 +326,19 @@ class Order_Logic {
|
|
|
292
326
|
static TYPE_PAYMENT_METHOD_OTHER="Other";
|
|
293
327
|
static TYPE_PAYMENT_METHOD_TEST="Test";
|
|
294
328
|
|
|
295
|
-
static
|
|
329
|
+
static url_search = (app_id,url,parent_data_type,param) => {
|
|
296
330
|
let action_url="item/search_order/"+parent_data_type;
|
|
297
331
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
298
332
|
};
|
|
299
|
-
static
|
|
333
|
+
static url_post = (app_id,url,param) => {
|
|
300
334
|
let action_url="item/post_order";
|
|
301
335
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
302
336
|
};
|
|
303
|
-
static
|
|
337
|
+
static url_get = (app_id,url,order_number,param) => {
|
|
304
338
|
let action_url="item/get_order/"+order_number;
|
|
305
339
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
306
340
|
};
|
|
307
|
-
static
|
|
341
|
+
static url_delete = (app_id,url,id,param) => {
|
|
308
342
|
let action_url="item/delete_order/"+id;
|
|
309
343
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
310
344
|
};
|
|
@@ -355,19 +389,19 @@ class Order_Logic {
|
|
|
355
389
|
class Cart_Logic {
|
|
356
390
|
static CART_NUMBER="CA-";
|
|
357
391
|
|
|
358
|
-
static
|
|
392
|
+
static url_search = (app_id,url,parent_data_type,param) => {
|
|
359
393
|
let action_url="item/search_cart/"+parent_data_type;
|
|
360
394
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
361
395
|
};
|
|
362
|
-
static
|
|
396
|
+
static url_post = (app_id,url,parent_data_type,param) => {
|
|
363
397
|
let action_url="item/post_cart/"+parent_data_type;
|
|
364
398
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
365
399
|
};
|
|
366
|
-
static
|
|
400
|
+
static url_delete = (app_id,url,id,param) => {
|
|
367
401
|
let action_url="item/delete_cart/"+id;
|
|
368
402
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
369
403
|
};
|
|
370
|
-
static
|
|
404
|
+
static url_get = (app_id,url,cart_number,param) => {
|
|
371
405
|
let action_url="item/get_cart/"+cart_number;
|
|
372
406
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
373
407
|
};
|
|
@@ -617,7 +651,7 @@ class Template_Logic {
|
|
|
617
651
|
static TYPE_PAGE_BODY='body';
|
|
618
652
|
static TYPE_PAGE_FOOTER='footer';
|
|
619
653
|
|
|
620
|
-
static
|
|
654
|
+
static url_get = (app_id,url,key,param) => {
|
|
621
655
|
let action_url="item/get_template/"+key;
|
|
622
656
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
623
657
|
};
|
|
@@ -1198,11 +1232,11 @@ class Favorite_Logic {
|
|
|
1198
1232
|
user_id:user_id
|
|
1199
1233
|
});
|
|
1200
1234
|
}
|
|
1201
|
-
static
|
|
1235
|
+
static url_search = (app_id,url,parent_data_type,param) => {
|
|
1202
1236
|
let action_url="item/search_favorite/"+parent_data_type;
|
|
1203
1237
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
1204
1238
|
};
|
|
1205
|
-
static
|
|
1239
|
+
static url_post = (app_id,url,parent_data_type,parent_id,user_id,param) => {
|
|
1206
1240
|
let action_url="item/post_favorite/"+parent_data_type+"/"+parent_id+"/"+user_id;
|
|
1207
1241
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
1208
1242
|
};
|
|
@@ -1232,11 +1266,11 @@ class Favorite_Logic {
|
|
|
1232
1266
|
}
|
|
1233
1267
|
}
|
|
1234
1268
|
class Review_Logic {
|
|
1235
|
-
static
|
|
1269
|
+
static url_post = (app_id,url,parent_data_type,parent_id,user_id,param) => {
|
|
1236
1270
|
let action_url="item/post_review/"+parent_data_type+"/"+parent_id+"/"+user_id;
|
|
1237
1271
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
1238
1272
|
};
|
|
1239
|
-
static
|
|
1273
|
+
static url_search = (app_id,url,parent_data_type,page_current,page_size,param) => {
|
|
1240
1274
|
let action_url="item/search_review/"+parent_data_type+"/"+page_current+"/"+page_size;
|
|
1241
1275
|
return get_cloud_url_main(app_id,url,action_url,param);
|
|
1242
1276
|
};
|