Yansen преди 2 години
родител
ревизия
299a196432
променени са 2 файла, в които са добавени 32 реда и са изтрити 29 реда
  1. 29
    2
      public/config.js
  2. 3
    27
      src/pages/pg3/index.vue

+ 29
- 2
public/config.js Целия файл

@@ -9,5 +9,32 @@ const shareOptTpl = {
9 9
 const link1URL = 'http://h5.njyunzhi.com/wenhua818-2/index.html';
10 10
 
11 11
 // 分享接口地址
12
-// const API_BASE = 'http://api.h5.zijincao.njyunzhi.com';
13
-const API_BASE = '';
12
+const API_BASE = 'http://api.h5.zijincao.njyunzhi.com';
13
+// const API_BASE = '';
14
+
15
+const FAMOUS_LINKS = [
16
+  {      
17
+    image: './images/pg3/1.png',
18
+    link: 'http://m2.nbs.cn/article/564333.html?id=564333&mid=1',
19
+  },
20
+  {      
21
+    image: './images/pg3/2.png',
22
+    link: 'http://m2.nbs.cn/article/564367.html?id=564367&mid=1',
23
+  },
24
+  {      
25
+    image: './images/pg3/3.png',
26
+    link: 'http://m2.nbs.cn/article/564359.html?id=564359&mid=1',
27
+  },
28
+  {      
29
+    image: './images/pg3/4.png',
30
+    link: 'http://m2.nbs.cn/article/564351.html?id=564351&mid=1',
31
+  },
32
+  {      
33
+    image: './images/pg3/5.png',
34
+    link: 'http://m2.nbs.cn/article/565523.html?id=565523&mid=1',
35
+  },
36
+  {      
37
+    image: './images/pg3/6.png',
38
+    link: '',
39
+  },
40
+]

+ 3
- 27
src/pages/pg3/index.vue Целия файл

@@ -132,34 +132,11 @@
132 132
     interval: 5000,
133 133
   }
134 134
 
135
-  const famous = ref([
136
-    {      
137
-      image: './images/pg3/1.png',
138
-      link: 'http://m2.nbs.cn/article/564333.html?id=564333&mid=1',
139
-    },
140
-    {      
141
-      image: './images/pg3/2.png',
142
-      link: 'http://m2.nbs.cn/article/564367.html?id=564367&mid=1',
143
-    },
144
-    {      
145
-      image: './images/pg3/3.png',
146
-      link: 'http://m2.nbs.cn/article/564359.html?id=564359&mid=1',
147
-    },
148
-    {      
149
-      image: './images/pg3/4.png',
150
-      link: 'http://m2.nbs.cn/article/564351.html?id=564351&mid=1',
151
-    },
152
-    {      
153
-      image: './images/pg3/5.png',
154
-      link: '',
155
-    },
156
-    {      
157
-      image: './images/pg3/6.png',
158
-      link: '',
159
-    },
160
-  ]);
135
+  const famous = FAMOUS_LINKS;
161 136
 
162 137
   const onFamous = (famousItem) => {
138
+    if (!famousItem.link) return;
139
+
163 140
     personLink.value = famousItem.link;
164 141
     showPerson.value = true;
165 142
   }
@@ -173,7 +150,6 @@
173 150
   }
174 151
 
175 152
   const onBtnClick = () => {
176
-    console.log('--------------')
177 153
     router.push('/pg4')
178 154
   }
179 155
 </script>