970319330@qq.com пре 1 недеља
родитељ
комит
a41850a521

BIN
buildAnnexation/.DS_Store


BIN
buildAnnexation/BGJ/.DS_Store


+ 13 - 13
buildAnnexation/BGJ/detail.html

@@ -282,7 +282,7 @@
         </div>
         <div class="info-line">
           <span class="label">经销商:</span>
-          <span class="value">{{ detail.enterprisename || '-' }}</span>
+          <span class="value">{{ detail.enterprisename || '--' }}</span>
         </div>
         <div class="info-line">
           <span class="label">状态:</span>
@@ -317,7 +317,7 @@
         </div>
         <div class="detail-item" v-show="!showOnlyFilled || detail.type">
           <span class="detail-label">服务类型</span>
-          <span class="detail-value">{{ detail.type || '-' }}</span>
+          <span class="detail-value">{{ detail.type || '--' }}</span>
         </div>
         <div class="detail-item" v-show="!showOnlyFilled || detail.status">
           <span class="detail-label">状态</span>
@@ -330,12 +330,12 @@
         </div>
         <div class="detail-item" v-show="!showOnlyFilled || detail.name">
           <span class="detail-label">客户姓名</span>
-          <span class="detail-value">{{ detail.name || '-' }}</span>
+          <span class="detail-value">{{ detail.name || '--' }}</span>
         </div>
         <div class="detail-item" v-show="!showOnlyFilled || detail.phonenumber">
           <span class="detail-label">客户电话</span>
           <span class="detail-value blue">
-            <a :href="'tel:' + detail.phonenumber" style="text-decoration:none;color:#1989fa;">{{ detail.phonenumber || '-' }}</a>
+            <a :href="'tel:' + detail.phonenumber" style="text-decoration:none;color:#1989fa;">{{ detail.phonenumber || '--' }}</a>
           </span>
         </div>
         <div class="detail-item" v-show="!showOnlyFilled || (detail.province || detail.city || detail.county)">
@@ -360,19 +360,19 @@
         </div>
         <div class="detail-item" v-show="!showOnlyFilled || detail.scenecontact">
           <span class="detail-label">现场联系人</span>
-          <span class="detail-value">{{ detail.scenecontact || '-' }}</span>
+          <span class="detail-value">{{ detail.scenecontact || '--' }}</span>
         </div>
         <div class="detail-item" v-show="!showOnlyFilled || detail.scenecontactphonenumber">
           <span class="detail-label">现场联系人电话</span>
-          <span class="detail-value">{{ detail.scenecontactphonenumber || '-' }}</span>
+          <span class="detail-value">{{ detail.scenecontactphonenumber || '--' }}</span>
         </div>
         <div class="detail-item" v-show="!showOnlyFilled || detail.enterprisename">
           <span class="detail-label">经销商</span>
-          <span class="detail-value">{{ detail.enterprisename || '-' }}</span>
+          <span class="detail-value">{{ detail.enterprisename || '--' }}</span>
         </div>
         <div class="detail-item" v-show="!showOnlyFilled || detail.remarks">
           <span class="detail-label">备注</span>
-          <span class="detail-value">{{ detail.remarks || '-' }}</span>
+          <span class="detail-value">{{ detail.remarks || '--' }}</span>
         </div>
       </div>
 
@@ -381,23 +381,23 @@
       <div class="detail-list">
         <div class="detail-item">
           <span class="detail-label">创建时间</span>
-          <span class="detail-value">{{ detail.createdate || '-' }}</span>
+          <span class="detail-value">{{ detail.createdate || '--' }}</span>
         </div>
         <div class="detail-item">
           <span class="detail-label">创建人</span>
-          <span class="detail-value">{{ detail.createby || '-' }}</span>
+          <span class="detail-value">{{ detail.createby || '--' }}</span>
         </div>
         <div class="detail-item">
           <span class="detail-label">指派时间</span>
-          <span class="detail-value">{{ detail.assigndate || '-' }}</span>
+          <span class="detail-value">{{ detail.assigndate || '--' }}</span>
         </div>
         <div class="detail-item">
           <span class="detail-label">转单人</span>
-          <span class="detail-value">{{ detail.transformby || '-' }}</span>
+          <span class="detail-value">{{ detail.transformby || '--' }}</span>
         </div>
         <div class="detail-item">
           <span class="detail-label">转单时间</span>
-          <span class="detail-value">{{ detail.transformdate || '-' }}</span>
+          <span class="detail-value">{{ detail.transformdate || '--' }}</span>
         </div>
       </div>
 

+ 5 - 5
buildAnnexation/BGJ/jindu.html

@@ -342,22 +342,22 @@
               }">{{ item.status }}</span>
             </div>
             <div class="card-body">
-              <div class="address">{{ item.address }}</div>
+              <div class="address">{{ item.address || '--' }}</div>
               <div class="info-row">
                 <span class="label">预约单号:</span>
-                <span class="value">{{ item.billno }}</span>
+                <span class="value">{{ item.billno || '--' }}</span>
               </div>
               <div class="info-row">
                 <span class="label">客户:</span>
-                <span class="value">{{ item.name }} <a :href="'tel:' + item.phonenumber" class="value phone">{{ item.phonenumber }}</a></span>
+                <span class="value">{{ item.name || '--' }} <a :href="'tel:' + item.phonenumber" class="value phone">{{ item.phonenumber || '--' }}</a></span>
               </div>
               <div class="info-row">
                 <span class="label">创建时间:</span>
-                <span class="value">{{ item.createdate  }}</span>
+                <span class="value">{{ item.createdate || '--'  }}</span>
               </div>
               <div class="info-row">
                 <span class="label">经销商:</span>
-                <span class="value">{{ item.enterprisename }}</span>
+                <span class="value">{{ item.enterprisename || '--' }}</span>
               </div>
             </div>
           </div>

+ 2 - 2
buildAnnexation/ZB/en_index.html

@@ -101,7 +101,7 @@
         window.location.href = url
     }
     var curindex = 0; // 添加当前索引变量
-    var totalItems = 3; // 总共3个项目
+    var totalItems = 4; // 总共3个项目
 
     function s_pre() {
         if (curindex <= 0) return; // 如果是第一个则不执行
@@ -1194,7 +1194,7 @@
                                 <h4>Fire Fighting System
                                     <div class="pre-next">
                                         <a onclick="s_pre()" style="color: #009966;"><i class="fa fa-angle-left"></i></a>
-                                        <a onclick="s_next()" style="color: #999;"><i class="fa fa-angle-right"></i></a>
+                                        <a onclick="s_next()" style="color: #009966;"><i class="fa fa-angle-right"></i></a>
                                     </div>
                                 </h4>
                                 <p>In the field of fire safety, valves shoulder the heavy responsibility of safeguarding the safety of lives and properties, and there can be no slightest error in their performance. A valve product that meets the requirements of fire safety must possess a series of stringent and crucial characteristics.</p>

+ 4 - 4
buildAnnexation/ZB/productList.html

@@ -394,10 +394,10 @@
                 <div class="classBox" style="max-width: 1200px;margin: 0 auto;">
                     <div class="flex-center" style="flex:1;flex-wrap: nowrap;width: 100%;">
                         <div class="classBox-item" :class="axt_class.value == cls.value?'active_class':''" v-for="(cls,i) in classData" :key="cls.itemclassid" @click.stop="showClassChild(cls)">
-                            <span c translate>{{cls.value}}</span>
+                            <span c translate>{{translate(cls.value)}}</span>
                             <div class="childPanel">
                                 <p :class="child_act == child ? 'child-mob-act':''" :style="{color:child_act == child ? '#003399':''}" v-for="child in cls.subvalues"  @click.stop="childClick(child)" translate>
-                                    {{child}}
+                                    {{translate(child)}}
                                 </p>
                             </div>
                         </div>
@@ -426,7 +426,7 @@
                                     <img v-show="item.itemattinfos[0]" :src="item.itemattinfos[0]?item.itemattinfos[0].url:''" alt="">
                                     <img v-show="!item.itemattinfos[0]" style="width: 100%;" src="./assets/logo@2x.png" alt="">
                                 </div>
-                                <p translate>{{item.itemname}}</p>
+                                <p translate>{{translate(item.itemname)}}</p>
                             </div>
                         </div>
                         <div class="empty" style="background: none;" v-else>
@@ -537,4 +537,4 @@
     
 </script>
 </body>
-</html>
+</html>

+ 8 - 3
buildAnnexation/ZB/questJs/productList.js

@@ -77,6 +77,9 @@ createApp({
       param.value.content.where.class = child
       listData(param.value.content.pageNumber = 1)
     }
+    const translate = (val)=>{
+      return tool.translate(val || '')
+    }
 
     const linkOf = (url)=>{
       window.location.href = url
@@ -94,7 +97,8 @@ createApp({
       })
       if (res.data.code == 1) {
         productDetailData.value = res.data.data
-        tool.modulesClick('服务支持',productDetailData.value.itemname) 
+        tool.modulesClick('服务支持',productDetailData.value.itemname)
+        
       }
     }
     const tab1 = ref('xs')
@@ -113,7 +117,8 @@ createApp({
       productDetailData,
       tab1,
       child_act,
-      childClick
+      childClick,
+      translate
     }
   }
-}).mount('#app')
+}).mount('#app')

+ 39 - 2
buildAnnexation/ZB/vue/formTool.js

@@ -488,14 +488,41 @@ const tool = {
   chineseToEnglishMapArr:{},
   chineseToEnglishMap:async ()=>{
     const lg = localStorage.getItem('lang')
+    const cacheKey = 'chineseToEnglishMapCache'
+    let cachedData = sessionStorage.getItem(cacheKey)
+
+    if (cachedData) {
+      cachedData = JSON.parse(cachedData)
+      if (lg == 'en') {
+        tool.chineseToEnglishMapArr = cachedData
+      } else {
+        tool.chineseToEnglishMapArr = {}
+      }
+      tool.translateInMap()
+      return false
+    }
+
+    const loadingEl = document.createElement('div')
+    loadingEl.id = 'langLoading'
+    loadingEl.style.cssText = 'position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(255,255,255,1);z-index:999999;display:flex;flex-direction:column;align-items:center;justify-content:center;'
+    const spinner = document.createElement('div')
+    spinner.style.cssText = 'width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;animation:spin 1s linear infinite;'
+    const keyframes = document.createElement('style')
+    keyframes.textContent = '@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}'
+    document.head.appendChild(keyframes)
+    loadingEl.appendChild(spinner)
+    document.body.appendChild(loadingEl)
 
     const res = await instance.post('',{
       id:2024062809072801,
       content: {
       }
     })
+    document.body.removeChild(loadingEl)
+
     if (lg == 'en') {
       tool.chineseToEnglishMapArr = res.data.data.EN
+      sessionStorage.setItem(cacheKey, JSON.stringify(res.data.data.EN))
     } else {
       tool.chineseToEnglishMapArr =  {}
     }
@@ -632,11 +659,21 @@ tool.classList()
 
 tool.newList()
 
-
+const loadingEl = document.createElement('div')
+loadingEl.id = 'langLoading'
+loadingEl.style.cssText = 'position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(255,255,255,1);z-index:999999;display:flex;flex-direction:column;align-items:center;justify-content:center;'
+const spinner = document.createElement('div')
+spinner.style.cssText = 'width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;animation:spin 1s linear infinite;'
+const keyframes = document.createElement('style')
+keyframes.textContent = '@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}'
+document.head.appendChild(keyframes)
+loadingEl.appendChild(spinner)
+document.body.appendChild(loadingEl)
 
 setTimeout(()=>{
 
   tool.chineseToEnglishMap()
   tool.accessStatistics()
-},2000)
+  document.body.removeChild(loadingEl)
+},500)