|
@@ -51,6 +51,24 @@ export class tools {
|
|
|
return id
|
|
|
}
|
|
|
|
|
|
+ // 获取版本号
|
|
|
+ public static getVersion():string {
|
|
|
+ let version = ''
|
|
|
+ switch (tools.getCurPlatform()){
|
|
|
+ case config.Platform.H5:
|
|
|
+ version = '1.0'
|
|
|
+ break;
|
|
|
+ case config.Platform.WEIXIN:
|
|
|
+ version = config.version
|
|
|
+ break;
|
|
|
+ case config.Platform.TOUTIAO:
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return version
|
|
|
+ }
|
|
|
+
|
|
|
// 获取订单状态信息
|
|
|
public static getOrderStatusInfo(type:number):order_status_info_data {
|
|
|
if(!type) {type = config.order_status.PAYING}
|