Browse Source

fix:文案

needcode 2 năm trước cách đây
mục cha
commit
6dc9842b6d
3 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 1 1
      src/api/auth.ts
  2. 4 2
      src/pages-charge/ordering/ordering.vue
  3. 1 1
      src/pages/map/map.vue

+ 1 - 1
src/api/auth.ts

@@ -33,7 +33,7 @@ const _resolveTokenQueue = function (res: any) {
   } else {
     uni.showToast({
       icon: "success",
-      title: "登成功",
+      title: "登成功",
     });
     setToken(res as string);
     _onTokenListener.forEach((item) => {

+ 4 - 2
src/pages-charge/ordering/ordering.vue

@@ -220,6 +220,7 @@ const finish = () => {
               )}分钟`
             : `${parseInt(`${diff / 60}`)}分钟`;
         const endFormat = format("y-M-d h:m:s");
+        const totalMoney = (res.totalMoney / 100).toFixed(2);
         const _chargeInfo = [
           {
             label: "累计充电量",
@@ -227,7 +228,7 @@ const finish = () => {
           },
           {
             label: "累计费用",
-            value: `${res.totalMoney}元`,
+            value: `${totalMoney}元`,
           },
           {
             label: "开始时间",
@@ -303,6 +304,7 @@ const setChargeData = (res: any) => {
           `${min - parseInt(`${min / 60}`) * 60}`
         )}分钟`
       : `${parseInt(`${diff / 60}`)}分钟`;
+  const totalMoney = (res.totalMoney / 100).toFixed(2);
   const _chargeInfo = [
     {
       label: "累计充电量",
@@ -310,7 +312,7 @@ const setChargeData = (res: any) => {
     },
     {
       label: "累计费用",
-      value: `${res.totalMoney}元`,
+      value: `${totalMoney}元`,
     },
     {
       label: "开始时间",

+ 1 - 1
src/pages/map/map.vue

@@ -130,7 +130,7 @@
   </view>
   <view class="login-mask" v-if="!token">
     <button open-type="getPhoneNumber" @getphonenumber="loginMask" class="full">
-      登按钮
+      登按钮
     </button>
   </view>
 </template>