Prechádzať zdrojové kódy

Merge branch 'master' of http://git.izouma.com/xiongzhu/paimaide

panhui 3 rokov pred
rodič
commit
091d46048c

+ 5 - 4
index.html

@@ -10,7 +10,7 @@
     <meta name="format-detection" content="telephone=no" />
     <meta name="msapplication-tap-highlight" content="no" />
 
-
+    <meta name="color-scheme" content="dark" />
     <!-- add to homescreen for ios -->
     <meta name="apple-mobile-web-app-capable" content="yes" />
     <meta name="apple-mobile-web-app-title" content="Ionic App" />
@@ -23,13 +23,14 @@
     <script type="module" src="/src/main.js"></script>
     <script src="https://assets.salesmartly.com/js/project_9355_9754_1670553307.js"></script>
     <!-- <script src="//code.tidio.co/kguf93rbmc3c9icmkbgbh3akvjznunfo.js" async></script> -->
-    <!-- <script src="./jquery-3.6.1.min.js"></script>
+    <script src="./jquery-3.6.1.min.js"></script>
     <script>
         $("#s-chat-plugin").ready(function () {
             var head = $("#s-chat-plugin").contents().find("head");
-           // head.append($('<meta name="color-scheme" content="light dark">'));
+           head.append($('<meta name="color-scheme" content="light dark">'));
+           head.append($('<style>textarea {color: black; background: white;}</style>'));
         });
-    </script> -->
+    </script>
 </body>
 
 </html>

BIN
src/assets/img_empty_1.png


+ 207 - 207
src/locales/en.json

@@ -1,214 +1,214 @@
 {
-  "balance": {
-    "availableWidthdrawAmount": "Amount that can be withdrawn",
-    "balance": "Account Balance",
-    "chooseAmount": "select amount",
-    "confirmWithdraw": "Confirm withdrawal",
-    "inputCustomAmount": "Please enter a custom amount",
-    "realReceipt": "Actual account",
-    "recharge": "recharge",
-    "record": {
-      "commission": "commission",
-      "pay": "to pay",
-      "receipt": "collect money",
-      "recharge": "recharge",
-      "withdraw": "withdraw"
+    "balance": {
+        "availableWidthdrawAmount": "Amount that can be withdrawn",
+        "balance": "Account Balance",
+        "chooseAmount": "select amount",
+        "confirmWithdraw": "Confirm withdrawal",
+        "inputCustomAmount": "Please enter a custom amount",
+        "realReceipt": "Actual account",
+        "recharge": "recharge",
+        "record": {
+            "commission": "commission",
+            "pay": "to pay",
+            "receipt": "collect money",
+            "recharge": "recharge",
+            "withdraw": "withdraw"
+        },
+        "symbol": "$",
+        "totalWithdraw": "Cumulative withdrawal",
+        "unit": "Yuan",
+        "withdraw": "withdraw",
+        "withdrawAmount": "Withdrawal Amount",
+        "withdrawAmountError": "Please enter the correct withdrawal amount",
+        "withdrawFee": "Withdrawal fee",
+        "withdrawFeeTip0": "Note: 1/3 of the total transaction fee for the purchase is",
+        "withdrawFeeTip1": ", the excess handling fee",
+        "withdrawInputTip": "Please enter the withdrawal amount",
+        "withdrawModalTitle": "Apply for withdrawal",
+        "withdrawSuccess": "Successful withdrawal",
+        "withdrawing": "Withdrawing",
+        "rechargeMax": "The maximum recharge amount is {value}",
+        "rechargeMin": "The minimum recharge amount is {value}"
     },
-    "symbol": "$",
-    "totalWithdraw": "Cumulative withdrawal",
-    "unit": "Yuan",
-    "withdraw": "withdraw",
-    "withdrawAmount": "Withdrawal Amount",
-    "withdrawAmountError": "Please enter the correct withdrawal amount",
-    "withdrawFee": "Withdrawal fee",
-    "withdrawFeeTip0": "Note: 1/3 of the total transaction fee for the purchase is",
-    "withdrawFeeTip1": ", the excess handling fee",
-    "withdrawInputTip": "Please enter the withdrawal amount",
-    "withdrawModalTitle": "Apply for withdrawal",
-    "withdrawSuccess": "Successful withdrawal",
-    "withdrawing": "Withdrawing",
-    "rechargeMax": "The maximum recharge amount is {value}",
-    "rechargeMin": "The minimum recharge amount is {value}"
-  },
-  "cancel": "Cancel",
-  "common": {
-    "alert": "hint",
     "cancel": "Cancel",
-    "confirm": "Sure",
-    "eula": "Platform",
-    "guide": "Tutorial",
-    "home": "Home",
-    "loadFinish": "download finished",
-    "loading": "Loading",
-    "mine": "Mine",
-    "more": "More",
-    "news": "News",
-    "pullRefresh": "Pull down to refresh",
-    "rank": "leaderboard",
-    "register": "register",
-    "updateSuccess": "update completed",
-    "profit": "Commission"
-  },
-  "delegate": {
-    "tip": "The consignment sale has not started yet, it will start today at ${time}",
-    "title": "Consignment",
-    "increase": "mark up",
-    "originalPrice": "original price",
-    "payServiceCharge": "pay processing fees",
-    "sellPrice": "selling price",
-    "tip1": "Note: entrusting the platform to sell services, the maximum price of the product can be increased by {riseRatePercent}% each time, and the platform will charge {serviceCharge}% of the custody service fee"
-  },
-  "distribution": {
-    "commission": "commission",
-    "joinTeamAt": "time to join the team",
-    "myInvitor": "my recommender",
-    "myProfit": "Income",
-    "orderNum": "number of order",
-    "profitDetails": "Revenue Details",
-    "qrCode": "my promo code",
-    "teamNum": "Team size",
-    "totalProfit": "Total revenue",
-    "viewDetail": "view details",
-    "viewTeam": "view team",
-    "saveImg": "save Picture"
-  },
-  "home": {
-    "all": "All"
-  },
-  "login": "Log in",
-  "loginPage": {
-    "agreement": "User Agreement",
-    "codePla": "please enter verification code",
-    "goRegister": "Sign up now",
-    "invitorPla": "Invitation code (optional)",
-    "isRead": "have read and agreed",
-    "loginByCode": "Verification code login",
-    "loginNow": "Already have an account, log in now",
-    "loginPwd": "password login",
-    "loginSuceess": "login successful",
-    "noAcount": "No account yet?",
-    "noAgree": "Please read and agree to the registration agreement",
-    "phone": "phone number",
-    "phoneError": "Wrong format of phone number",
-    "phonePla": "Please enter phone number",
-    "psd": "password",
-    "psdAgainError": "The two passwords entered are inconsistent",
-    "psdAgainPla": "please enter password again",
-    "psdPla": "please enter password",
-    "register": "Register an account",
-    "registerSuccess": "registration success",
-    "sendCode": "Send code",
-    "sended": "Sented"
-  },
-  "mine": {
-    "address": "Address",
-    "avatar": "Avatar",
-    "bankCard": "Bank Card",
-    "bindPhone": "Bind Phone",
-    "female": "Female",
-    "logout": "sign out",
-    "male": "male",
-    "newProfit": "new income",
-    "nickname": "Nick Name",
-    "noBind": "unbound",
-    "noLogin": "not logged in",
-    "noSetting": "not set",
-    "setting": "Setting",
-    "sex": "Gender",
-    "user": "User",
-    "common": "Common Functions",
-    "nickPlac": "Please enter a nickname",
-    "sure": "Confirm the changes"
-  },
-  "news": {
-    "newsNull": "There is no news~"
-  },
-  "order": {
-    "buyNow": "Buy Now",
-    "createSuccess": "Order successfully created",
-    "createdAt": "order time",
-    "detail": "order details",
-    "id": "order number",
-    "my": "My Order",
-    "payInfo": "Payment Information",
-    "payMethod": "payment method",
-    "payMethodName": {
-      "balance": "balance payment"
+    "common": {
+        "alert": "hint",
+        "cancel": "Cancel",
+        "confirm": "Sure",
+        "eula": "Platform",
+        "guide": "Tutorial",
+        "home": "Home",
+        "loadFinish": "download finished",
+        "loading": "Loading",
+        "mine": "Mine",
+        "more": "More",
+        "news": "News",
+        "pullRefresh": "Pull down to refresh",
+        "rank": "leaderboard",
+        "register": "register",
+        "updateSuccess": "update completed",
+        "profit": "Commission"
     },
-    "payNow": "pay immediately",
-    "processing": "Processing",
-    "status": {
-      "ALL": "all",
-      "CANCELED": "Cancelled",
-      "CONFIRMED": "For Sale",
-      "NOT_CONFIRMED": "Waiting for the seller to confirm receipt",
-      "NOT_PAID": "Pending",
-      "NOT_SHIPPED": "to be delivered",
-      "RECEIVED": "received",
-      "SELLING": "Selling",
-      "SHIPPED": "Shipped",
-      "SOLD": "Sold",
-      "SOLD_NOT_CONFIRMED": "To be confirmed receipt",
-      "SOLD_NOT_PAID": "pending buyer payment"
+    "delegate": {
+        "tip": "The consignment sale has not started yet, it will start today at ${time}",
+        "title": "Consignment",
+        "increase": "mark up",
+        "originalPrice": "original price",
+        "payServiceCharge": "pay processing fees",
+        "sellPrice": "selling price",
+        "tip1": "Note: entrusting the platform to sell services, the maximum price of the product can be increased by {riseRatePercent}% each time, and the platform will charge {serviceCharge}% of the custody service fee"
     },
-    "statusDesc": {
-      "CANCELED": "The order has been cancelled, if you have any questions, please contact customer service",
-      "CONFIRMED": "To be entrusted, it will be put on the shelves within 24 hours after entrusting",
-      "NOT_CONFIRMED": "Waiting for the seller to confirm receipt",
-      "NOT_PAID": "Please pay as soon as possible, overtime unpaid orders will be automatically canceled",
-      "NOT_SHIPPED": "to be delivered",
-      "RECEIVED": "received",
-      "SELLING": "In entrustment, if you have any questions, please contact customer service",
-      "SHIPPED": "Shipped",
-      "SOLD": "Sold, please contact customer service if you have any questions",
-      "SOLD_NOT_CONFIRMED": "To be confirmed receipt",
-      "SOLD_NOT_PAID": "pending buyer payment"
+    "distribution": {
+        "commission": "commission",
+        "joinTeamAt": "time to join the team",
+        "myInvitor": "my recommender",
+        "myProfit": "Income",
+        "orderNum": "number of order",
+        "profitDetails": "Revenue Details",
+        "qrCode": "my promo code",
+        "teamNum": "Team size",
+        "totalProfit": "Total revenue",
+        "viewDetail": "view details",
+        "viewTeam": "view team",
+        "saveImg": "save Picture"
     },
-    "total": "total",
-    "totalPayment": "actual payment",
-    "walletPay": "wallet payment",
-    "applyShip": "Apply for delivery",
-    "confirmReceipt": "confirm the receipt of goods",
-    "countDown": "Automatically cancel the order when the payment countdown expires",
-    "hasProblem": "Encounter problems?",
-    "payAt": "Payment time",
-    "viewOrder": "check order"
-  },
-  "product": {
-    "dailyEarning": "Daily Income",
-    "detail": "Product Details",
-    "hot": "Hot snapping up…",
-    "nowPrice": "Current",
-    "owner": "Product Holder",
-    "search": "search",
-    "searchNo": "No products were found~",
-    "searchPla": "Enter search keywords",
-    "start": "back grab",
-    "tomorrowBuy": "Available",
-    "priceNow": "Current",
-    "riseDesc": "Daily Income",
-    "tag": "Digital Artwork"
-  },
-  "rank": {
-    "inviteNum": "New recruits",
-    "profitInfo": "Earnings information",
-    "rank": "Ranking",
-    "rankByInvite": "Invite Ranking",
-    "rankByProfit": "Revenue Ranking",
-    "userInfo": "User Info",
-    "withdrawRechargeRate": "Recharge revenue ratio"
-  },
-  "settings": {
-    "darkMode": "Dark Mode"
-  },
-  "title": {
-    "balanceRecord": "Transaction details",
-    "distribution": "revenue center",
-    "myTeam": "my team"
-  },
-  "user": {
-    "notLogin": "User is not logged in, do you want to log in now?",
-    "profile": "Edit Information",
-    "wallet": "My purse"
-  }
+    "home": {
+        "all": "All"
+    },
+    "login": "Log in",
+    "loginPage": {
+        "agreement": "User Agreement",
+        "codePla": "please enter verification code",
+        "goRegister": "Sign up now",
+        "invitorPla": "Invitation code (optional)",
+        "isRead": "have read and agreed",
+        "loginByCode": "Verification code login",
+        "loginNow": "Already have an account, log in now",
+        "loginPwd": "password login",
+        "loginSuceess": "login successful",
+        "noAcount": "No account yet?",
+        "noAgree": "Please read and agree to the registration agreement",
+        "phone": "phone number",
+        "phoneError": "Wrong format of phone number",
+        "phonePla": "Please enter phone number",
+        "psd": "password",
+        "psdAgainError": "The two passwords entered are inconsistent",
+        "psdAgainPla": "please enter password again",
+        "psdPla": "please enter password",
+        "register": "Register an account",
+        "registerSuccess": "registration success",
+        "sendCode": "Send code",
+        "sended": "Sented"
+    },
+    "mine": {
+        "address": "Address",
+        "avatar": "Avatar",
+        "bankCard": "Bank Card",
+        "bindPhone": "Bind Phone",
+        "female": "Female",
+        "logout": "sign out",
+        "male": "male",
+        "newProfit": "new income",
+        "nickname": "Nick Name",
+        "noBind": "unbound",
+        "noLogin": "not logged in",
+        "noSetting": "not set",
+        "setting": "Setting",
+        "sex": "Gender",
+        "user": "User",
+        "common": "Common Functions",
+        "nickPlac": "Please enter a nickname",
+        "sure": "Confirm the changes"
+    },
+    "news": {
+        "newsNull": "There is no news~"
+    },
+    "order": {
+        "buyNow": "Buy Now",
+        "createSuccess": "Order successfully created",
+        "createdAt": "order time",
+        "detail": "order details",
+        "id": "order number",
+        "my": "My Order",
+        "payInfo": "Payment Information",
+        "payMethod": "payment method",
+        "payMethodName": {
+            "balance": "balance payment"
+        },
+        "payNow": "pay immediately",
+        "processing": "Processing",
+        "status": {
+            "ALL": "all",
+            "CANCELED": "Cancelled",
+            "CONFIRMED": "For Sale",
+            "NOT_CONFIRMED": "Waiting for the seller to confirm receipt",
+            "NOT_PAID": "Pending",
+            "NOT_SHIPPED": "to be delivered",
+            "RECEIVED": "received",
+            "SELLING": "Selling",
+            "SHIPPED": "Shipped",
+            "SOLD": "Sold",
+            "SOLD_NOT_CONFIRMED": "To be confirmed receipt",
+            "SOLD_NOT_PAID": "pending buyer payment"
+        },
+        "statusDesc": {
+            "CANCELED": "The order has been cancelled, if you have any questions, please contact customer service",
+            "CONFIRMED": "To be entrusted, it will be put on the shelves within 24 hours after entrusting",
+            "NOT_CONFIRMED": "Waiting for the seller to confirm receipt",
+            "NOT_PAID": "Please pay as soon as possible, overtime unpaid orders will be automatically canceled",
+            "NOT_SHIPPED": "to be delivered",
+            "RECEIVED": "received",
+            "SELLING": "In entrustment, if you have any questions, please contact customer service",
+            "SHIPPED": "Shipped",
+            "SOLD": "Sold, please contact customer service if you have any questions",
+            "SOLD_NOT_CONFIRMED": "To be confirmed receipt",
+            "SOLD_NOT_PAID": "pending buyer payment"
+        },
+        "total": "total",
+        "totalPayment": "actual payment",
+        "walletPay": "wallet payment",
+        "applyShip": "Apply for delivery",
+        "confirmReceipt": "confirm the receipt of goods",
+        "countDown": "Automatically cancel the order when the payment countdown expires",
+        "hasProblem": "Encounter problems?",
+        "payAt": "Payment time",
+        "viewOrder": "check order"
+    },
+    "product": {
+        "dailyEarning": "Daily Income",
+        "detail": "Product Details",
+        "hot": "Hot snapping up…",
+        "nowPrice": "Current",
+        "owner": "Product Holder",
+        "search": "search",
+        "searchNo": "No products were found~",
+        "searchPla": "Enter search keywords",
+        "start": "back grab",
+        "tomorrowBuy": "Available",
+        "priceNow": "Current",
+        "riseDesc": "Daily Income",
+        "tag": "Digital Artwork"
+    },
+    "rank": {
+        "inviteNum": "New recruits",
+        "profitInfo": "Earnings information",
+        "rank": "Ranking",
+        "rankByInvite": "Invite Ranking",
+        "rankByProfit": "Revenue Ranking",
+        "userInfo": "User Info",
+        "withdrawRechargeRate": "Recharge revenue ratio"
+    },
+    "settings": {
+        "darkMode": "Dark Mode"
+    },
+    "title": {
+        "balanceRecord": "Transaction details",
+        "distribution": "revenue center",
+        "myTeam": "my team"
+    },
+    "user": {
+        "notLogin": "User is not logged in, do you want to log in now?",
+        "profile": "Edit Information",
+        "wallet": "My purse"
+    }
 }

+ 210 - 208
src/locales/zh.json

@@ -1,214 +1,216 @@
 {
-  "cancel": "取消",
-  "login": "登录",
-  "title": {
-    "balanceRecord": "交易明细",
-    "distribution": "收益中心",
-    "myTeam": "我的团队"
-  },
-  "common": {
     "cancel": "取消",
-    "confirm": "确定",
-    "more": "更多",
-    "pullRefresh": "下拉刷新",
-    "loadFinish": "加载完成",
-    "loading": "加载中",
-    "home": "首页",
-    "news": "新闻资讯",
-    "rank": "排行榜",
-    "mine": "我的",
-    "profit": "分红",
-    "eula": "平台协议",
-    "guide": "使用教程",
-    "alert": "提示",
-    "register": "注册",
-    "updateSuccess": "更新成功"
-  },
-  "order": {
-    "id": "订单编号",
-    "createdAt": "下单时间",
-    "my": "我的订单",
-    "detail": "订单详情",
-    "payMethod": "支付方式",
-    "payAt": "付款时间",
-    "status": {
-      "ALL": "全部",
-      "NOT_PAID": "待付款",
-      "CANCELED": "已取消",
-      "NOT_CONFIRMED": "待卖家确认收款",
-      "CONFIRMED": "待委托",
-      "SELLING": "委托中",
-      "SOLD_NOT_PAID": "待买家付款",
-      "SOLD_NOT_CONFIRMED": "待确认收款",
-      "SOLD": "已售出",
-      "NOT_SHIPPED": "待发货",
-      "SHIPPED": "已发货",
-      "RECEIVED": "已收货"
+    "login": "登录",
+    "title": {
+        "balanceRecord": "交易明细",
+        "distribution": "收益中心",
+        "myTeam": "我的团队"
     },
-    "statusDesc": {
-      "NOT_PAID": "请尽快支付,超时未支付订单将自动取消",
-      "CANCELED": "订单已取消,如有疑问请联系客服",
-      "NOT_CONFIRMED": "待卖家确认收款",
-      "CONFIRMED": "待委托,委托后将在24小时内上架",
-      "SELLING": "委托中,如有疑问请联系客服",
-      "SOLD_NOT_PAID": "待买家付款",
-      "SOLD_NOT_CONFIRMED": "待确认收款",
-      "SOLD": "已售出,如有疑问请联系客服",
-      "NOT_SHIPPED": "待发货",
-      "SHIPPED": "已发货",
-      "RECEIVED": "已收货"
+    "common": {
+        "cancel": "取消",
+        "confirm": "确定",
+        "more": "更多",
+        "pullRefresh": "下拉刷新",
+        "loadFinish": "加载完成",
+        "loading": "加载中",
+        "home": "首页",
+        "news": "新闻资讯",
+        "rank": "排行榜",
+        "mine": "我的",
+        "profit": "分红",
+        "eula": "平台协议",
+        "guide": "使用教程",
+        "alert": "提示",
+        "register": "注册",
+        "updateSuccess": "更新成功",
+        "noRecords": "暂无记录"
     },
-    "payMethodName": {
-      "balance": "余额支付"
+    "order": {
+        "id": "订单编号",
+        "createdAt": "下单时间",
+        "my": "我的订单",
+        "detail": "订单详情",
+        "payMethod": "支付方式",
+        "payAt": "付款时间",
+        "status": {
+            "ALL": "全部",
+            "NOT_PAID": "待付款",
+            "CANCELED": "已取消",
+            "NOT_CONFIRMED": "待卖家确认收款",
+            "CONFIRMED": "待委托",
+            "SELLING": "委托中",
+            "SOLD_NOT_PAID": "待买家付款",
+            "SOLD_NOT_CONFIRMED": "待确认收款",
+            "SOLD": "已售出",
+            "NOT_SHIPPED": "待发货",
+            "SHIPPED": "已发货",
+            "RECEIVED": "已收货"
+        },
+        "statusDesc": {
+            "NOT_PAID": "请尽快支付,超时未支付订单将自动取消",
+            "CANCELED": "订单已取消,如有疑问请联系客服",
+            "NOT_CONFIRMED": "待卖家确认收款",
+            "CONFIRMED": "待委托,委托后将在24小时内上架",
+            "SELLING": "委托中,如有疑问请联系客服",
+            "SOLD_NOT_PAID": "待买家付款",
+            "SOLD_NOT_CONFIRMED": "待确认收款",
+            "SOLD": "已售出,如有疑问请联系客服",
+            "NOT_SHIPPED": "待发货",
+            "SHIPPED": "已发货",
+            "RECEIVED": "已收货"
+        },
+        "payMethodName": {
+            "balance": "余额支付"
+        },
+        "payNow": "立即支付",
+        "totalPayment": "实际支付",
+        "total": "合计",
+        "payInfo": "支付信息",
+        "buyNow": "立即购买",
+        "walletPay": "钱包支付",
+        "processing": "处理中",
+        "createSuccess": "订单创建成功",
+        "countDown": "付款倒计时过期自动取消订单",
+        "viewOrder": "查看订单",
+        "applyShip": "申请发货",
+        "confirmReceipt": "确认收货",
+        "hasProblem": "遇到问题?"
     },
-    "payNow": "立即支付",
-    "totalPayment": "实际支付",
-    "total": "合计",
-    "payInfo": "支付信息",
-    "buyNow": "立即购买",
-    "walletPay": "钱包支付",
-    "processing": "处理中",
-    "createSuccess": "订单创建成功",
-    "countDown": "付款倒计时过期自动取消订单",
-    "viewOrder": "查看订单",
-    "applyShip": "申请发货",
-    "confirmReceipt": "确认收货",
-    "hasProblem": "遇到问题?"
-  },
-  "balance": {
-    "symbol": "¥",
-    "unit": "元",
-    "balance": "账户余额",
-    "chooseAmount": "选择金额",
-    "inputCustomAmount": "请输入自定义金额",
-    "withdraw": "提现",
-    "recharge": "充值",
-    "totalWithdraw": "累计提现",
-    "record": {
-      "pay": "支付",
-      "receipt": "收款",
-      "recharge": "充值",
-      "withdraw": "提现",
-      "commission": "佣金"
+    "balance": {
+        "symbol": "¥",
+        "unit": "元",
+        "balance": "账户余额",
+        "chooseAmount": "选择金额",
+        "inputCustomAmount": "请输入自定义金额",
+        "withdraw": "提现",
+        "recharge": "充值",
+        "totalWithdraw": "累计提现",
+        "record": {
+            "pay": "支付",
+            "receipt": "收款",
+            "recharge": "充值",
+            "withdraw": "提现",
+            "commission": "佣金"
+        },
+        "withdrawModalTitle": "申请提现",
+        "confirmWithdraw": "确认提现",
+        "withdrawAmount": "提现金额",
+        "availableWidthdrawAmount": "可提现金额",
+        "withdrawInputTip": "请输入提现金额",
+        "withdrawAmountError": "请输入正确的提现金额",
+        "withdrawing": "提现中",
+        "withdrawSuccess": "提现成功",
+        "withdrawFeeTip0": "注: 购买总流水的1/3手续费是",
+        "withdrawFeeTip1": ",超出部分手续费",
+        "withdrawFee": "提现手续费",
+        "realReceipt": "实际到账",
+        "rechargeMin": "最低充值金额为{value}",
+        "rechargeMax": "最高充值金额为{value}"
     },
-    "withdrawModalTitle": "申请提现",
-    "confirmWithdraw": "确认提现",
-    "withdrawAmount": "提现金额",
-    "availableWidthdrawAmount": "可提现金额",
-    "withdrawInputTip": "请输入提现金额",
-    "withdrawAmountError": "请输入正确的提现金额",
-    "withdrawing": "提现中",
-    "withdrawSuccess": "提现成功",
-    "withdrawFeeTip0": "注: 购买总流水的1/3手续费是",
-    "withdrawFeeTip1": ",超出部分手续费",
-    "withdrawFee": "提现手续费",
-    "realReceipt": "实际到账",
-    "rechargeMin": "最低充值金额为{value}",
-    "rechargeMax": "最高充值金额为{value}"
-  },
-  "user": {
-    "wallet": "我的钱包",
-    "profile": "编辑资料",
-    "notLogin": "用户未登录,是否立即登录?"
-  },
-  "product": {
-    "detail": "商品详情",
-    "dailyEarning": "日化收益",
-    "hot": "火爆抢购中…",
-    "start": "后开抢",
-    "searchPla": "请输入搜索关键词",
-    "search": "搜索",
-    "searchNo": "没有搜索到任何商品哦~",
-    "nowPrice": "当前价格",
-    "tomorrowBuy": "明日可卖",
-    "owner": "产品持有人",
-    "tag": "数字艺术品",
-    "riseDesc": "日收益",
-    "priceNow": "当前价"
-  },
-  "delegate": {
-    "title": "委托代卖",
-    "tip": "委托代卖暂未开始,将在今天{time}开始",
-    "tip1": "注:委托平台代卖服务,每次最高可将商品价格提高{riseRatePercent}%,平台会收取{serviceCharge}%的托管服务费用",
-    "payServiceCharge": "支付手续费",
-    "originalPrice": "原价",
-    "increase": "加价",
-    "sellPrice": "卖价"
-  },
-  "distribution": {
-    "qrCode": "我的推广码",
-    "myInvitor": "我的推荐人",
-    "myProfit": "我的收益",
-    "profitDetails": "收益明细",
-    "teamNum": "团队人数",
-    "viewDetail": "查看明细",
-    "viewTeam": "查看团队",
-    "commission": "佣金",
-    "totalProfit": "总收益",
-    "orderNum": "订单数",
-    "joinTeamAt": "加入团队时间",
-    "saveImg": "保存图片"
-  },
-  "home": {
-    "all": "全部"
-  },
-  "settings": {
-    "darkMode": "黑暗模式"
-  },
-  "rank": {
-    "rankByProfit": "收益排行",
-    "rankByInvite": "拉新排行",
-    "rank": "排行",
-    "profitInfo": "收益信息",
-    "inviteNum": "拉新人数",
-    "userInfo": "用户信息",
-    "withdrawRechargeRate": "充值收益比"
-  },
-  "loginPage": {
-    "loginByCode": "验证码登录",
-    "phone": "手机号",
-    "phonePla": "请输入手机号",
-    "phoneError": "手机号码格式错误",
-    "psd": "密码",
-    "psdPla": "请输入密码",
-    "psdAgainPla": "请再次输入密码",
-    "psdAgainError": "两次密码输入不一致",
-    "invitorPla": "邀请码(选填)",
-    "codePla": "请输入验证码",
-    "sendCode": "发送验证码",
-    "sended": "已发送",
-    "isRead": "已阅读并同意",
-    "agreement": "用户协议",
-    "noAcount": "暂无账号?",
-    "goRegister": "立即注册",
-    "loginPwd": "密码登录",
-    "noAgree": "请先阅读并同意注册协议",
-    "loginSuceess": "登录成功",
-    "registerSuccess": "注册成功",
-    "register": "注册账号",
-    "loginNow": "已有账号,立即登录"
-  },
-  "news": {
-    "newsNull": "没有任何新闻哦~"
-  },
-  "mine": {
-    "noLogin": "未登录",
-    "newProfit": "有新的收益",
-    "bankCard": "我的银行卡",
-    "noBind": "未绑定",
-    "address": "收货地址",
-    "setting": "设置",
-    "avatar": "头像",
-    "nickname": "昵称",
-    "sex": "性别",
-    "noSetting": "未设置",
-    "bindPhone": "绑定手机号",
-    "user": "用户",
-    "logout": "退出登录",
-    "male": "男",
-    "female": "女",
-    "common": "常用功能",
-    "nickPlac": "请输入昵称",
-    "sure": "确认修改"
-  }
-}
+    "user": {
+        "wallet": "我的钱包",
+        "profile": "编辑资料",
+        "notLogin": "用户未登录,是否立即登录?"
+    },
+    "product": {
+        "detail": "商品详情",
+        "dailyEarning": "日化收益",
+        "hot": "火爆抢购中…",
+        "start": "后开抢",
+        "searchPla": "请输入搜索关键词",
+        "search": "搜索",
+        "searchNo": "没有搜索到任何商品哦~",
+        "nowPrice": "当前价格",
+        "tomorrowBuy": "明日可卖",
+        "owner": "产品持有人",
+        "tag": "数字艺术品",
+        "riseDesc": "日收益",
+        "priceNow": "当前价"
+    },
+    "delegate": {
+        "title": "委托代卖",
+        "tip": "委托代卖暂未开始,将在今天{time}开始",
+        "tip1": "注:委托平台代卖服务,每次最高可将商品价格提高{riseRatePercent}%,平台会收取{serviceCharge}%的托管服务费用",
+        "payServiceCharge": "支付手续费",
+        "originalPrice": "原价",
+        "increase": "加价",
+        "sellPrice": "卖价"
+    },
+    "distribution": {
+        "qrCode": "我的推广码",
+        "myInvitor": "我的推荐人",
+        "myProfit": "我的收益",
+        "profitDetails": "收益明细",
+        "teamNum": "团队人数",
+        "viewDetail": "查看明细",
+        "viewTeam": "查看团队",
+        "commission": "佣金",
+        "totalProfit": "总收益",
+        "orderNum": "订单数",
+        "joinTeamAt": "加入团队时间",
+        "saveImg": "保存图片",
+        "empty": "暂无"
+    },
+    "home": {
+        "all": "全部"
+    },
+    "settings": {
+        "darkMode": "黑暗模式"
+    },
+    "rank": {
+        "rankByProfit": "收益排行",
+        "rankByInvite": "拉新排行",
+        "rank": "排行",
+        "profitInfo": "收益信息",
+        "inviteNum": "拉新人数",
+        "userInfo": "用户信息",
+        "withdrawRechargeRate": "充值收益比"
+    },
+    "loginPage": {
+        "loginByCode": "验证码登录",
+        "phone": "手机号",
+        "phonePla": "请输入手机号",
+        "phoneError": "手机号码格式错误",
+        "psd": "密码",
+        "psdPla": "请输入密码",
+        "psdAgainPla": "请再次输入密码",
+        "psdAgainError": "两次密码输入不一致",
+        "invitorPla": "邀请码(选填)",
+        "codePla": "请输入验证码",
+        "sendCode": "发送验证码",
+        "sended": "已发送",
+        "isRead": "已阅读并同意",
+        "agreement": "用户协议",
+        "noAcount": "暂无账号?",
+        "goRegister": "立即注册",
+        "loginPwd": "密码登录",
+        "noAgree": "请先阅读并同意注册协议",
+        "loginSuceess": "登录成功",
+        "registerSuccess": "注册成功",
+        "register": "注册账号",
+        "loginNow": "已有账号,立即登录"
+    },
+    "news": {
+        "newsNull": "没有任何新闻哦~"
+    },
+    "mine": {
+        "noLogin": "未登录",
+        "newProfit": "有新的收益",
+        "bankCard": "我的银行卡",
+        "noBind": "未绑定",
+        "address": "收货地址",
+        "setting": "设置",
+        "avatar": "头像",
+        "nickname": "昵称",
+        "sex": "性别",
+        "noSetting": "未设置",
+        "bindPhone": "绑定手机号",
+        "user": "用户",
+        "logout": "退出登录",
+        "male": "男",
+        "female": "女",
+        "common": "常用功能",
+        "nickPlac": "请输入昵称",
+        "sure": "确认修改"
+    }
+}

+ 1 - 1
src/mixins/phone.js

@@ -2,7 +2,7 @@
 export default {
     data() {
         return {
-            phonePattern: /^[1][3,4,5,6,7,8,9][0-9]{9}$/,
+            phonePattern: /^\d{10}$/,
             isSend: false,
             msgCode: '',
             sendNum: 60,

+ 13 - 69
src/views/DistributionPage.vue

@@ -49,12 +49,13 @@
             <div class="list">
                 <div class="list-header">
                     <div class="title">{{ $t('distribution.profitDetails') }}</div>
-                    <div class="more" @click="$router.push({ name: 'commissionList' })">
+                    <div class="more" @click="$router.push({ name: 'commissionList' })" v-if="!empty">
                         <div>{{ $t('common.more') }}</div>
                         <ion-icon :icon="chevronForwardOutline"></ion-icon>
                     </div>
                 </div>
                 <CommissionItem class="light" v-for="item in records" :key="item.id" :detail="item"></CommissionItem>
+                <van-empty v-if="empty" :description="$t('common.noRecords')" :image="emptyImg"></van-empty>
             </div>
             <ion-modal class="qr-modal dialog" :is-open="showQR" @didDismiss="showQR = false">
                 <ion-content>
@@ -82,6 +83,7 @@ import shareImg from '@/assets/share_img.png'
 import { Capacitor } from '@capacitor/core'
 import { Filesystem, Directory, Encoding } from '@capacitor/filesystem'
 import { Media } from '@capacitor-community/media'
+import emptyImg from '@/assets/img_empty_1.png'
 
 export default {
     components: {
@@ -100,7 +102,9 @@ export default {
             superior: null,
             showShareModal: false,
             showToolbar: false,
-            posterUrl: null
+            posterUrl: null,
+            empty: false,
+            emptyImg
         }
     },
     setup() {
@@ -116,7 +120,7 @@ export default {
     computed: {
         ...mapState(useUserStore, ['user'])
     },
-    created() {
+    ionViewWillEnter() {
         this.getStat()
         this.getLatestRecords()
         if (this.user && this.user.superiorId) {
@@ -129,15 +133,13 @@ export default {
         }
 
         console.log(this.$route)
+        this.showToolbar = this.$route.meta.showToolbar === true
         setTimeout(() => {
             if (this.$route.query.showShare === 'true' || this.$route.query.showShare == true) {
                 this.drawQr()
             }
         }, 500)
     },
-    ionViewWillEnter() {
-        this.showToolbar = this.$route.meta.showToolbar === true
-    },
     methods: {
         getStat() {
             this.$http.get('/commission/myStat').then(res => {
@@ -147,6 +149,7 @@ export default {
         getLatestRecords() {
             this.$http.get('/commission/records').then(res => {
                 this.records = res.content
+                this.empty = res.empty
             })
         },
         drawQr() {
@@ -344,7 +347,7 @@ ion-content {
     }
 }
 .list {
-    background: white;
+    background: #732afb;
     border-radius: 4px;
     margin: 16px;
     padding-bottom: 10px;
@@ -355,79 +358,20 @@ ion-content {
     padding: 0 16px;
     .title {
         flex-grow: 1;
-        color: var(--ion-color-step-400);
         font-size: 14px;
     }
     .more {
         .f();
-        color: var(--ion-color-step-200);
         font-size: 12px;
     }
 }
 :deep(.commission-item.light) {
-    margin: 0 16px 10px 16px;
-    background: white;
-    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);
-    border-radius: 2px;
-    padding: 0 15px 12px 15px;
+    background: #8b50fa;
     .head {
-        height: 44px;
-        border-bottom: 1px solid var(--ion-color-step-950);
-        color: black;
-        .f();
-        .avatar {
-            width: 24px;
-            height: 24px;
-            --border-radius: 2px;
-        }
-        .name {
-            flex-grow: 1;
-            font-size: 14px;
-            margin-left: 6px;
-        }
-        .num {
-            font-size: 13px;
-            color: #ff7f1f;
-            font-weight: bold;
-        }
-    }
-    .order {
-        .f();
-        margin-top: 14px;
-        margin-bottom: 10px;
-        .cover {
-            width: 50px;
-            height: 50px;
-            --border-radius: 4px;
-        }
-        .info {
-            margin-left: 10px;
-            flex-grow: 1;
-            color: black;
-            .name {
-                font-size: 14px;
-                line-height: 20px;
-            }
-            .price {
-                .f();
-                margin-top: 5px;
-                line-height: 17px;
-                font-size: 12px;
-                width: 100%;
-                .value {
-                    flex-grow: 1;
-                }
-                .num {
-                    color: var(--ion-color-step-350);
-                }
-            }
-        }
+        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
     }
     .prop {
-        font-size: 12px;
-        line-height: 17px;
-        color: var(--ion-color-step-600);
-        margin-top: 5px;
+        color: rgba(255, 255, 255, 0.6);
     }
 }
 .qr-modal {

+ 1 - 1
src/views/MinePage.vue

@@ -17,7 +17,7 @@
                     <img src="../assets/icon_bianji.png" class="icon" alt="" />
                 </div>
 
-                <div class="wallet">
+                <div class="wallet" @click="$router.push({ name: 'wallet' })">
                     <img src="../assets/info_png_qianbao.png" alt="" class="wallet-bg" />
 
                     <div class="wallet-card">

+ 2 - 4
src/views/SettingPage.vue

@@ -76,13 +76,13 @@
                     <van-cell class="not" v-if="showConsole" title="测试app" is-link @click="goTest" />
                 </van-cell-group>
 
-                <van-cell-group :border="false">
+                <!-- <van-cell-group :border="false">
                     <van-cell :title="$t('settings.darkMode')" @click="toggleDark()">
                         <template #right-icon>
                             <van-switch :model-value="isDark" />
                         </template>
                     </van-cell>
-                </van-cell-group>
+                </van-cell-group> -->
 
                 <van-action-sheet
                     v-model:show="show"
@@ -178,8 +178,6 @@ export default {
                 localStorage.setItem('showConsole', new Date().getTime() + 60 * 60 * 1000)
                 eruda.init()
                 this.clickNum = 0
-
-                this.$store.commit('setShowConsole', true)
                 return
             } else {
                 if (this.timeout) {