瀏覽代碼

feat:修改翻译问题。修改新闻链接

xzh 4 年之前
父節點
當前提交
5c454feb54

文件差異過大導致無法顯示
+ 3 - 3
common/data/news.json


+ 11 - 4
pc/build/wepack.dev.server.js

@@ -50,15 +50,22 @@ module.exports = function(app, server) {
       })
      
     });
-
+    const localUrl = {
+      zh: './../../common/data/news.json',
+      en: './../../common/data/news-en.json'
+    }
+    app.get('/dev/news/:lang', async function (req, res) {
+      res.json({data: require(localUrl[req.params.lang])})
+    })
     app.post('/dev/news/update', async function(req, res) {
       const data = req.body.data
-      const localUrl = {
+      
+      const localUr1l = {
         zh: './../common/data/news.json',
         en: './../common/data/news-en.json'
       }
-      
-      await fs.writeFile(localUrl[req.body.lang], `${JSON.stringify(data, null, 4)}`, async err => {
+      await fs.writeFile(localUr1l[req.body.lang], `${JSON.stringify(data, null, 4)}`, async err => {
+        console.log(err)
         ftpDeploy
         .deploy(config)
         .then(() => {

+ 5 - 4
pc/src/components/dev/components/News.vue

@@ -101,11 +101,12 @@ export default {
         },
         loadNews () {
             let urlMap = {
-                zh: 'https://4dscene.4dage.com/new4dkk/news/news.json',
-                en: 'https://4dscene.4dage.com/new4dkk/news/news-en.json'
+                zh: '@/../common/data/news.json',
+                en: 'https://4dscene.4dage.com/new4dkk/news-en.json'
             }
-            http.get(urlMap[this.curr]).then(res => {
-                this.News = res.data || []
+            http.get(`../dev/news/${this.curr}`).then(res => {
+                console.log(res)
+                this.News = res.data.data
             })
         },
         onSave() {

+ 1 - 1
pc/src/lang/en/modules/agent.js

@@ -2,7 +2,7 @@ module.exports = {
     "bannerTitle": "Become a distributor of 4DKanKan",
     "planTitle": "Outline of 4DKanKan Distributor Program",
     "planDesc1": "The Patented AI Space Reconstruction Algorithm Technology from 4Dage Has Won Numerous Awards and Has Reconstructed More than 300,000 Space Models Worldwide.",
-    "planDesc2": "This Innovative Approach of Space Reconstruction Is Gradually Changing the Business Model of Various Industries (Real-estate, Architecture, Museum, Tourism, Jounalist, Insurance Claims, Criminal Investigation, Etc.).",
+    "planDesc2": "This Innovative Approach of Space Reconstruction Is Gradually Changing the Business Model of Various Industries (Real-estate, Architecture, Museum, Tourism, Journalism, Insurance Claims, Criminal Investigation, Etc.).",
     "planDesc3": "Our 4DKanKan Distributor Program Invites Professionals From All Industries to Participate in Our “Digital Everything” Scheme, Open up New Market Together and Share Profits.",
     "planDesc4": "If You Are Interested in the Idea of ​​3D Capturing the World and Would Like to Incorporate It into Your Career Plan, This Is An Excellent Opportunity For Cooperation.",
     "advanTitle": "Benefits of Being our Valued Distributor",

+ 5 - 5
pc/src/lang/en/modules/conduct.js

@@ -7,7 +7,7 @@ module.exports = {
         "itemTitle2": "720° Immersive Roaming with 8K Picture Quality",
         "itemTitle3": "HDR Mode Balances Light and Dark Area Exposure",
         "itemTitle4": "Real-time Panoramic Video to Create an Immersive Experience",
-        "itemTitle5": "10 Minutes to Start, Easy to Operation",
+        "itemTitle5": "10 Minutes to Start, Easy Operation",
         "itemTitle6": "Autonomous Space Modeling in 10 Minutes. (About 100㎡)",
         "itemTitle7": "Multifunctional Editing Tool, Let Space Tell the Story"
     },
@@ -36,7 +36,7 @@ module.exports = {
         "item3Name3": "Mobile"
     },
     "conductHouse": {
-        "bannerTitle": "Realestate<br/>Mass Reconstruction<br/>of the Real Houses",
+        "bannerTitle": "Real Estate<br/>Mass Reconstruction<br/>of the Real Houses",
         "itemTitle1": "AI Automatic Modeling, Efficient Reconstruct the Real Houses",
         "itemTitle2": "Display All the Details, More Efficient for Sales and Rental Decisions",
         "itemTitle3": "Multidimensional Display the Information of Real-estate with Higher Efficiency",
@@ -45,9 +45,9 @@ module.exports = {
     "conductExhibition": {
         "bannerTitle": "Exhibition<br/>Participate in Exhibitions<br/>without Any Limitations",
         "itemTitle1": "Online Visiting and Negotiation, Exchange Business Cards Freely",
-        "itemTitle2": "No Barries to Communication, Easy to Get All the Information",
+        "itemTitle2": "No Barriers to Communication, Easy to Get All the Information",
         "itemTitle3": "Reduce the Cost of Exhibitions, Promote Transactions Effectively",
-        "itemTitle4": "Statistic Data Flow, Analyze User Persona"
+        "itemTitle4": "Statistical Data Flow, Analysis User Persona"
     },
     "conductSubject": {
         "bannerTitle": "Museum<br/>Culture & Relics,Create <br/>Never-ending Museums",
@@ -61,7 +61,7 @@ module.exports = {
         "item5SubItem3Title": "The Archaeological Excavations at the Royal Cemetery of Haihunhou Kingdom in Han Dynasty"
     },
     "conductShop": {
-        "bannerTitle": "E-commerce<br/>Free Shopping<br/>without Any Limitations",
+        "bannerTitle": "E-commerce<br/>Free Shopping<br/>without Any Restrictions",
         "itemTitle1": "New Immersive Shopping Experience in 3D Digital Business District",
         "itemTitle2": "Shopping in the Real 3D Models through Mobile Phones",
         "itemTitle3": "Gather Online Passenger Flow and Boost Offline Economy",

+ 1 - 1
pc/src/lang/en/modules/service.js

@@ -5,6 +5,6 @@ module.exports = {
     "app": "APP Download",
     "clause": "Warranty Information",
     "appDownload": {
-        "downloadTip": "In the process of using 4DKanKan Pro, you are required to control the camera by 4DKanKan Pro APP. Please search [4DKanKan Pro] in mobile APP Store or scan the QR code to install the App."
+        "downloadTip": "While using the 4DKanKan Pro, requires setting up with the app to guidance the camera. Please search [4DKanKan Pro] on the mobile APP Store or scan the QR code down below to install it."
     }
 }

+ 1 - 1
pc/src/page/news/index.vue

@@ -51,7 +51,7 @@ export default {
         enHtml: 'New 3D Camera Officially Released by 4Dage',
         className: 'banner-1',
         banner: require('@/assets/images/refactor/news/banner.jpg'),
-        link: 'https://www.sohu.com/a/314620954_118392'
+        link: 'https://proapi.jingjiribao.cn/detail.html?id=177829'
       }, {
         html: '火爆美国CES:<br/>四维看看Pro获谷歌AI、LG集团等国际性企业青睐',
         enHtml: 'Prevailing in CES: <br/>4DKanKan Pro Gained the Popularity among AI Gaints',

+ 2 - 2
pc/src/store/language/en/about.js

@@ -9,7 +9,7 @@ export default{
       txt: [
         'In June 2017, 4DAGE and German Research Center for Artificial Intelligence initiated CGAII, the signing ceremony of which was witnessed by the Chinese Premier and German Chancellor. Supported by technological competence from the two countries, CGAII strongly facilitates the research and application of AI vision.',
         'As the phased product in this Chinese-German cooperation project, 4DKanKan Pro has broken into the industry monopolized by American tech enterprises with its latest technology, and greatly reduced the costs and time of 3D modeling.',
-        'Before 4DKanKan Pro, CGAII has launched the world’s first consumer 3D Camera 4DKanKan Lite in May, 2018.'
+        'Before 4DKanKan Pro, CGAII has launched the world’s first consumer 3D camera, 4D KanKan Lite, in May 2018'
       ],
       img: baseUrl + 'images/cgaii-logo-en.png'
     },
@@ -31,7 +31,7 @@ export default{
         year: '2020',
         txt: [
           '<i>2020.01</i>In January, 4DKanKan won the new generation of artificial intelligence industry innovation key tasks of the Ministry of Industry and Information Technology.',
-          '<i>2020.02</i>In February, in order to combat COVID-19, 4Dage united more than 100 local museums to initiated the “Stay at home with online 3D museums” activity voluntarily to to freely expose the resources of 3D museums to the general public, and the number of online visitors has reached 150 million.',
+          '<i>2020.02</i>In February, to combat COVID-19, 4Dage united more than 100 local museums to initiated the “Stay at home with online 3D museums” activity voluntarily to to freely expose the resources of 3D museums to the general public, and the number of online visitors has reached 150 million.',
           '<i>2020.03</i>In March, a new generation of 3D space camera 4DKanKan Pro was listed on the China Police Equipment Network, 4DKanKan Pro, as an artificial intelligence police equipment product help upgrade smart police.',
           '<i>2020.03</i>In March, 4Dage Exclusively Provides 3D Technical Support for the World\'s Top Art Fair. It was reported by the American business magazine Bloomberg Businessweek because its digital museum has provided great help to people.'
         ]

文件差異過大導致無法顯示
+ 1 - 1
pc/src/store/language/en/agent.js