Ver Fonte

fix(SCRM-7501): 修复电子券交互问题

john há 9 meses atrás
pai
commit
37530a3fd1

+ 2 - 1
index.html

@@ -2,7 +2,8 @@
 <html lang="en">
   <head>
     <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" viewport-fit="cover" />
+    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
     <title>临时停车</title>
     <script>
       // CONFIGURATIONS_PLACEHOLDER

+ 1 - 2
src/pages/mixins/parkingFeeCoupon.js

@@ -314,9 +314,8 @@ export default {
               elm.disabled = true; // 非同批次的优惠券设置为不可选择
             }
             if(elm.name) {
-              this.$set(this.couponList, elmIndex , {...elm})
+              this.couponList[elmIndex] = {...elm}
             }
-            
           })
         break;
       }

+ 2 - 2
src/pages/parkingFeeCoupon.vue

@@ -2,8 +2,8 @@
   <div scroll-y="true" :class="['scroll-Y' , theme]">
     <div>
       <div class="parkingFeeCoupon">
-        <van-checkbox-group :value="checkedCouponList">
-          <div class="card-list" v-if="couponList.length && false">
+        <van-checkbox-group :model-value="checkedCouponList">
+          <div class="card-list" v-if="couponList.length">
             <div v-for="(item, index) in couponList" :key="index" ref="couponItem">
               <div v-if="rowData.indexOf(index)> -1" class="item" @click="checkboxItemChange(`coupon${index}`, index)">
                 <div class="coupon-active" v-if="checkedCouponList.indexOf(`coupon${index}`) > -1">

+ 2 - 2
src/styles/common.less

@@ -109,12 +109,12 @@ button {
 
 @toast-background-color: rgba(0, 0, 0, 0.8);
 
-.van-toast {
+.van-toast,.van-popup {
   border-radius: 10px;
   padding: 25px 42px;
   min-height: inherit;
   background-color: @toast-background-color;
-  //width: auto;
+  width: auto;
 
   &.white-space {
     .van-toast__text {

+ 7 - 1
vite.config.js

@@ -44,7 +44,13 @@ module.exports = defineConfig({
       fontViewportUnit: "vw", // Viewport units used by fonts.
       minPixelValue: 1, // Set the minimum conversion value. If it is 1, only values greater than 1 will be converted.
     }),
-    vue(),
+    vue({
+      template: {
+        compilerOptions: {
+          isCustomElement: tag => tag === 'wx-open-launch-weapp'
+        }
+      }
+    }),
     // 开启gzip
     // viteCompression(),
     visualizer({ open: process.env.NODE_ENV === 'development' }), // 自动开启分析页面