Răsfoiți Sursa

增加提示文案

John-Hong 2 ani în urmă
părinte
comite
f8e3d9deae

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

@@ -284,7 +284,7 @@ export default {
   mounted() {
     setTimeout(() => {
       uni.setNavigationBarTitle({
-        title: '临时停车',
+        title: '停车缴费',
       });
     }, 300);
     // console.log(286, this.openid);

+ 10 - 5
src/pages/parkingFee/parkingFeeCoupon.vue

@@ -53,7 +53,7 @@
     </scroll-view>
     <div class="flewx">
       <div class="flewx-content">
-        <div style="color: #333;font-size: 24px;padding-top: 5px">合计:</div>
+        <div style="color: #333; font-size: 24px; padding-top: 5px">合计:</div>
         <div class="actualFee-box">
           <div style="color: #333333; font-size: 32px; padding-left: 5px">
             {{ actualFee | currency }}
@@ -84,7 +84,6 @@ import uni from '@/utils/uniHooks';
 import { initWxJsSdkConfig } from '@/utils/login';
 export default {
   created() {
-    initWxJsSdkConfig(['wx-open-launch-weapp']);
     // 纸质优惠券
     if (uni.getStorageSync('paperCouponInfo')) {
       this.paperCouponFee =
@@ -100,6 +99,12 @@ export default {
     this.checkedCouponList = uni.getStorageSync('checkedCouponList') || [];
   },
   mounted() {
+    initWxJsSdkConfig([], ['wx-open-launch-weapp']);
+    setTimeout(() => {
+      uni.setNavigationBarTitle({
+        title: "优惠券"
+      })
+    }, 300)
     const list = uni.getStorageSync('list');
     this.parkFee = JSON.parse(uni.getStorageSync('parkFee'));
     this.parkFee.parkInfoEntity.useReduceTime = this.parkFee.parkInfoEntity
@@ -218,7 +223,7 @@ export default {
     },
     // 已优惠金额
     discountFee() {
-      let total = this.parkDiscountTotal.feeCopy + this.totalFee;
+      let total = this.parkDiscountTotal?.feeCopy + this.totalFee;
       // 超出上限按上限计算
       if (this.parkMallCode === 1) {
         if (total - this.paperCouponFee > this.maxonetimediscountFee) {
@@ -227,7 +232,7 @@ export default {
       }
       if (this.parkMallCode === 4) {
         if (
-          total - this.paperCouponFee - this.parkDiscountTotal.bonusfee >
+          total - this.paperCouponFee - this.parkDiscountTotal?.bonusfee >
           this.maxonedaydiscountFee
         ) {
           total =
@@ -652,7 +657,7 @@ export default {
     line-height: 70px;
     color: #fff;
     // background-image: linear-gradient(to right, #7e4fa1, #433c7f);
-    background-color: #064C8A;
+    background-color: #064c8a;
     // box-shadow: 2px 3px 5px #888888;
     position: absolute;
     right: 16px;

+ 5 - 0
src/pages/parkingFee/parkingFeeDetail.vue

@@ -514,6 +514,11 @@ export default {
     // }
   },
   mounted() {
+    setTimeout(() => {
+      uni.setNavigationBarTitle({
+        title: "停车支付"
+      })
+    }, 300)
     console.log('页面被打开了');
     console.log('订单时间:' + this.orderCreateTime);
     // log.info('订单时间:' + this.orderCreateTime);

+ 44 - 33
src/pages/parkingFee/parkingFeeDetailSuccess.vue

@@ -1,19 +1,31 @@
 <template>
-  <scroll-view scroll-y="true" class="scroll-Y" style="background-color: #F4F7FF">
+  <scroll-view
+    scroll-y="true"
+    class="scroll-Y"
+    style="background-color: #f4f7ff"
+  >
     <div class="detail-box">
       <div class="parking-info mgb-40">
         <div class="parking-price">
           <div class="price">{{ (detail.payfee / 100) | currency }}</div>
-          <div class="price-text">{{detail.refundStatus === 1 ? '已退款' : detail.payStatus === 1 ? '支付成功' : '支付失败'}}</div>
+          <div class="price-text">
+            {{
+              detail.refundStatus === 1
+                ? '已退款'
+                : detail.payStatus === 1
+                ? '支付成功'
+                : '支付失败'
+            }}
+          </div>
         </div>
         <div class="parking-part">
           <div class="parking-info-item">
             <span class="info-key">支付方式</span>
-            <span class="info-value">{{ detail.paykind || "" }}</span>
+            <span class="info-value">{{ detail.paykind || '' }}</span>
           </div>
           <div class="parking-info-item">
             <span class="info-key">支付时间</span>
-            <span class="info-value">{{ detail.createDate || "" }}</span>
+            <span class="info-value">{{ detail.createDate || '' }}</span>
           </div>
           <div class="parking-info-item">
             <span class="info-key">车牌号</span>
@@ -47,7 +59,8 @@
       </div>
       <div class="parking-info mb-save">
         <div class="parking-part">
-          <div class="parking-info-item" v-if="false"><!--todo: 杭州首停不显示暂时根据groupId写死-->
+          <div class="parking-info-item" v-if="false">
+            <!--todo: 杭州首停不显示暂时根据groupId写死-->
             <span class="info-key">首停优惠</span>
             <span class="info-value fw">{{
               (detail.firstParkFee / 100) | currency
@@ -90,7 +103,10 @@
               ((detail.usetotalfee || 0) / 100) | currency
             }}</span>
           </div>
-          <div class="parking-info-item" v-if="detail.usetotalfee > detail.totalfee">
+          <div
+            class="parking-info-item"
+            v-if="detail.usetotalfee > detail.totalfee"
+          >
             <span class="info-key">实际优惠总计</span>
             <span class="info-value fw">{{
               (detail.totalfee / 100) | currency
@@ -119,11 +135,11 @@
 
 <script>
 // const app = getApp()
- const app = {};
-import moment from "moment";
+// const app = {};
+// import moment from 'moment';
 // import {detail as mockDetail, detailError as mockDetailSuccess} from './list'
-import { mapState } from 'vuex'
-import uni from '@/utils/uniHooks'
+import { mapState } from 'vuex';
+import uni from '@/utils/uniHooks';
 export default {
   data() {
     return {
@@ -133,14 +149,13 @@ export default {
       // groupId: app.globalData.groupId
     };
   },
-  created() {
+
+  mounted() {
     setTimeout(() => {
       uni.setNavigationBarTitle({
-        title: "缴费详情"
-      })
-    }, 300)
-  },
-  mounted() {
+        title: '缴费详情',
+      });
+    }, 300);
     this.orderNo = this.$route.query.orderNo;
     this.getData();
   },
@@ -148,7 +163,7 @@ export default {
     parkingTime() {
       const time = this.detail.serviceMin;
       const days = parseInt(time / 60 / 24);
-      const hours = parseInt(time / 60 % 24);
+      const hours = parseInt((time / 60) % 24);
       const minutes = parseInt(time % 60);
       if (days > 0) {
         return `${days}天 ${hours}小时 ${minutes}分钟`;
@@ -175,14 +190,14 @@ export default {
         orderno: this.orderNo,
       };
       uni.showLoading({
-        title: "加载中",
+        title: '加载中',
       });
       this.$md(params);
       uni.request({
-        url: this.$baseURL + "api/1.0/park/parkOrderDetail",
+        url: this.$baseURL + 'api/1.0/park/parkOrderDetail',
         data: params,
-        method: "POST",
-        header: JSON.parse(uni.getStorageSync("handleUser")),
+        method: 'POST',
+        header: JSON.parse(uni.getStorageSync('handleUser')),
         success: (res) => {
           uni.hideLoading();
           if (res.data.code == 0) {
@@ -204,7 +219,7 @@ export default {
             uni.showToast({
               title: res.data.msg,
               duration: 2000,
-              icon: "none",
+              icon: 'none',
             });
           }
         },
@@ -213,7 +228,7 @@ export default {
           uni.showToast({
             title: res.data.msg,
             duration: 2000,
-            icon: "none",
+            icon: 'none',
           });
         },
       });
@@ -236,9 +251,9 @@ export default {
       // margin: 20px;
       // border-radius: 30px;
       // background-color: #ffffff;
-      background: #FAFBFF;
+      background: #fafbff;
       border-radius: 4px;
-      border: 1px solid #D8DAE0;
+      border: 1px solid #d8dae0;
 
       .parking-price {
         text-align: center;
@@ -267,7 +282,7 @@ export default {
           align-items: center;
           font-size: 32px;
           padding-bottom: 30px;
-          &.pb0{
+          &.pb0 {
             padding-bottom: 0;
           }
           .info-key {
@@ -284,7 +299,7 @@ export default {
             font-weight: 400;
             color: #333333;
             line-height: 42px;
-            &.fw{
+            &.fw {
               font-weight: 600;
             }
           }
@@ -297,14 +312,10 @@ export default {
     .mgb-40 {
       margin-bottom: 24px;
     }
-    .mb-save{
+    .mb-save {
       padding-bottom: constant(safe-area-inset-bottom);
-		  padding-bottom: env(safe-area-inset-bottom);
+      padding-bottom: env(safe-area-inset-bottom);
     }
   }
-  
 }
 </style>
-
-
-

+ 13 - 6
src/pages/parkingFee/parkingFeePaperCoupon.vue

@@ -86,10 +86,6 @@ export default {
     fuiToast,
   },
   created() {
-    const platform = getPlatform();
-    if (platform === 'micromessenger') {
-      initWxJsSdkConfig(['scanQRCode']);
-    }
     this.servicefee = uni.getStorageSync('servicefee'); // 应缴金额
     this.parkDiscountTotal = uni.getStorageSync('parkingTotal'); // 总停车优惠
     if (uni.getStorageSync('parkFee')) {
@@ -149,6 +145,17 @@ export default {
       parkInfo: {},
     };
   },
+  mounted() {
+    const platform = getPlatform();
+    if (platform === 'micromessenger') {
+      initWxJsSdkConfig(['scanQRCode']);
+    }
+    setTimeout(() => {
+      uni.setNavigationBarTitle({
+        title: "优惠券"
+      })
+    }, 300)
+  },
   computed: {
     ...mapState({
       custTypeId: (state) => state.custTypeId,
@@ -211,7 +218,7 @@ export default {
         });
         window.subscribe('scanQRCodeOver', (options) => {
           console.log('微信扫码结束之后的返回参数', options);
-          runScanFn(options)
+          runScanFn(options);
         });
       } else {
         this.$wx.scanQRCode({
@@ -219,7 +226,7 @@ export default {
           scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
           success: (res) => {
             // console.log(187, res);
-            runScanFn(res)
+            runScanFn(res);
             // this.formMsg.deviceCode = res.resultStr;
           },
         });

+ 17 - 8
src/pages/parkingFee/parkingFeeSuccess.vue

@@ -1,12 +1,14 @@
 <template>
   <scroll-view scroll-y="true" class="scroll-Y">
-    <img :src="greenIcon" style="margin: 30px auto;display: block;"  />
-    <div style="font-weight: bold;color: #333; font-size: 34px">[支付成功]</div>
+    <img :src="greenIcon" style="margin: 30px auto; display: block" />
+    <div style="font-weight: bold; color: #333; font-size: 34px">
+      [支付成功]
+    </div>
     <div style="font-size: 34px; color: #999; margin-top: 10px">
       {{ carno | formatCarno }}停车费支付成功
     </div>
     <div style="font-size: 34px; color: #999; margin-top: 10px">
-      请在<span style="color: #064C8A">{{ outParkCharging }}分钟</span>内离场
+      请在<span style="color: #064c8a">{{ outParkCharging }}分钟</span>内离场
     </div>
     <div
       :class="{
@@ -62,6 +64,13 @@ export default {
         : this.greenIcon;
     },
   },
+  mounted() {
+    setTimeout(() => {
+      uni.setNavigationBarTitle({
+        title: '提示',
+      });
+    }, 300);
+  },
   methods: {
     page_button() {
       this.$router.replace({
@@ -84,7 +93,7 @@ export default {
   display: flex;
   flex-direction: column;
   height: 100vh;
-  background: #F4F7FF;
+  background: #f4f7ff;
   text-align: center;
   img {
     width: 160px;
@@ -101,8 +110,8 @@ export default {
   margin-left: 7%;
   font-size: 30px;
   color: #fff;
-//   background-image: linear-gradient(to right, #7e4fa1, #433c7f);
-  background-color: #064C8A;
+  //   background-image: linear-gradient(to right, #7e4fa1, #433c7f);
+  background-color: #064c8a;
 }
 .blue_page_button {
   .color-background-color('blue');
@@ -118,8 +127,8 @@ export default {
   margin-top: 40px;
   margin-left: 7%;
   font-size: 30px;
-  color: #064C8A;
-  border: 1px solid #064C8A;
+  color: #064c8a;
+  border: 1px solid #064c8a;
 }
 .style-color(@value) {
   @color: 'color-@{value}';

+ 5 - 0
src/pages/parkingFee/vehicleAddOrEdit.vue

@@ -253,6 +253,11 @@ export default {
     uni.setStorageSync('previousUrl', '/pages/parkingFee/vehicleAddOrEdit.vue');
   },
   mounted() {
+    setTimeout(() => {
+      uni.setNavigationBarTitle({
+        title: "绑定车牌号"
+      })
+    }, 300)
     const params = this.$route.query;
     console.log(252, params);
     if (params.carType) {

+ 5 - 0
src/pages/parkingFee/vehicleManagement.vue

@@ -195,6 +195,11 @@ export default {
     );
   },
   async mounted() {
+    setTimeout(() => {
+      uni.setNavigationBarTitle({
+        title: "车辆管理"
+      })
+    }, 300)
     // await this.$onLaunched
     this.isBeijing = isCruMarketByKey('北京');
     const member = uni.getStorageSync('member');