Browse Source

接入无牌车流程的控制开关

john 2 years ago
parent
commit
44a9e442ba

+ 2 - 2
src/pages/parkingFee/components/purple/parkingFee.vue

@@ -30,14 +30,14 @@
         </div>
         </div>
         <!-- 中控 -->
         <!-- 中控 -->
         <div class="parkingFee-bottom">
         <div class="parkingFee-bottom">
-          <div class="parkingFee-tab">
+          <div class="parkingFee-tab" v-if="supportUnlicensed">
             <div :class="['bar', tabbarActive === '手动缴费' && 'active']" @click="tabbarActiveEvent('手动缴费')">手动缴费</div>
             <div :class="['bar', tabbarActive === '手动缴费' && 'active']" @click="tabbarActiveEvent('手动缴费')">手动缴费</div>
             <div :class="['bar', tabbarActive === '无牌缴费' && 'active']" @click="tabbarActiveEvent('无牌缴费')">无牌缴费</div>
             <div :class="['bar', tabbarActive === '无牌缴费' && 'active']" @click="tabbarActiveEvent('无牌缴费')">无牌缴费</div>
           </div>
           </div>
           <!-- 手动缴费 -->
           <!-- 手动缴费 -->
           <div class="manual-box" v-if="tabbarActive === '手动缴费'">
           <div class="manual-box" v-if="tabbarActive === '手动缴费'">
             <div class="parkingFee-search">
             <div class="parkingFee-search">
-              <div class="search_tip_1">
+              <div class="search_tip_1" :style="{paddingTop: supportUnlicensed? '0': '32px'}">
                 <div class="title">车辆类型</div>
                 <div class="title">车辆类型</div>
                 <k-tab type="fill" @change="toggleType" :tabs="['普通车牌', '新能源', '特殊车牌']" />
                 <k-tab type="fill" @change="toggleType" :tabs="['普通车牌', '新能源', '特殊车牌']" />
               </div>
               </div>

+ 2 - 0
src/pages/parkingFee/mixins/parkingFee.js

@@ -60,6 +60,7 @@ export default {
       options: null,
       options: null,
       preUrl: '',
       preUrl: '',
       tabbarActive: '手动缴费',
       tabbarActive: '手动缴费',
+      supportUnlicensed: false, // 控制当前site,是否使用无牌车
       // custTypeId: 0,
       // custTypeId: 0,
     };
     };
   },
   },
@@ -210,6 +211,7 @@ export default {
         console.log(res);
         console.log(res);
         let reg = /[;;]/g;
         let reg = /[;;]/g;
         this.description = res.description.replace(reg, '\r\n').replace(/\r\n/g, '<br/>');
         this.description = res.description.replace(reg, '\r\n').replace(/\r\n/g, '<br/>');
+        this.supportUnlicensed = res.supportUnlicensed || false
         const carList = uni.getStorageSync('carList');
         const carList = uni.getStorageSync('carList');
         if (carList) {
         if (carList) {
           this.carList = JSON.parse(carList);
           this.carList = JSON.parse(carList);

+ 1 - 1
src/utils/index.js

@@ -205,7 +205,7 @@ export function requestInit() {
 
 
 // websocket 链接
 // websocket 链接
 export function getUrl() {
 export function getUrl() {
-  return `https://crm.kerryplus.com/xcrm-api`; // TODO: 临时更改websocket域名为prod
+  // return `https://crm.kerryplus.com/xcrm-api`; // TODO: 临时更改websocket域名为prod
   // 如果 kerry+ 这边的访问环境是 sl 或者 lt,需要把 wss 指向 qa 环境。
   // 如果 kerry+ 这边的访问环境是 sl 或者 lt,需要把 wss 指向 qa 环境。
   const href = `${window.location.href}`;
   const href = `${window.location.href}`;
   if (/dev-|8080/.test(href)) {
   if (/dev-|8080/.test(href)) {