From 883878cb9b4c13c2bf863b0e8bd1bec503d3dbb6 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 01 八月 2024 18:21:03 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia
---
wechat_staff/utils/format.wxs | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/wechat_staff/utils/format.wxs b/wechat_staff/utils/format.wxs
new file mode 100644
index 0000000..125ac39
--- /dev/null
+++ b/wechat_staff/utils/format.wxs
@@ -0,0 +1,16 @@
+var formarCount = function(num) {
+ if(!num){
+ return 0
+ }else{
+ if(num > 10000){
+ return (num / 10000).toFixed(0) + 'w+'
+ }else if(num > 10000000000){
+ return (num / 10000000000).toFixed(0) + '浜�+'
+ }else{
+ return num
+ }
+ }
+}
+module.exports = {
+ formarCount: formarCount
+};
\ No newline at end of file
--
Gitblit v1.9.3