Showing
1 changed file
with
31 additions
and
30 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-09-29 14:26:41 | 2 | * @Date: 2024-09-29 14:26:41 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-11-01 08:15:53 | 4 | + * @LastEditTime: 2024-11-01 08:36:00 |
| 5 | * @FilePath: /hager/src/views/product/detail.vue | 5 | * @FilePath: /hager/src/views/product/detail.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -146,35 +146,7 @@ export default { | ... | @@ -146,35 +146,7 @@ export default { |
| 146 | mixins: [mixin.init], | 146 | mixins: [mixin.init], |
| 147 | data () { | 147 | data () { |
| 148 | return { | 148 | return { |
| 149 | - download_list: [{ | 149 | + download_list: [], |
| 150 | - id: 1, | ||
| 151 | - type: 'yangben', | ||
| 152 | - name: '产品样本', | ||
| 153 | - show: false, | ||
| 154 | - list: [], | ||
| 155 | - checked_sum: 0, | ||
| 156 | - }, { | ||
| 157 | - id: 2, | ||
| 158 | - type: 'canshu', | ||
| 159 | - name: '技术参数', | ||
| 160 | - show: false, | ||
| 161 | - list: [], | ||
| 162 | - checked_sum: 0, | ||
| 163 | - }, { | ||
| 164 | - id: 3, | ||
| 165 | - type: 'shuomingshu', | ||
| 166 | - name: '产品说明书', | ||
| 167 | - show: false, | ||
| 168 | - list: [], | ||
| 169 | - checked_sum: 0, | ||
| 170 | - }, { | ||
| 171 | - id: 4, | ||
| 172 | - type: 'jiaocheng', | ||
| 173 | - name: '安装教程', | ||
| 174 | - show: false, | ||
| 175 | - list: [], | ||
| 176 | - checked_sum: 0, | ||
| 177 | - }], | ||
| 178 | info: {}, | 150 | info: {}, |
| 179 | info_images: [], | 151 | info_images: [], |
| 180 | product_advantages: [], | 152 | product_advantages: [], |
| ... | @@ -210,6 +182,35 @@ export default { | ... | @@ -210,6 +182,35 @@ export default { |
| 210 | }, | 182 | }, |
| 211 | methods: { | 183 | methods: { |
| 212 | async getInfo () { | 184 | async getInfo () { |
| 185 | + this.download_list = [{ | ||
| 186 | + id: 1, | ||
| 187 | + type: 'yangben', | ||
| 188 | + name: '产品样本', | ||
| 189 | + show: false, | ||
| 190 | + list: [], | ||
| 191 | + checked_sum: 0, | ||
| 192 | + }, { | ||
| 193 | + id: 2, | ||
| 194 | + type: 'canshu', | ||
| 195 | + name: '技术参数', | ||
| 196 | + show: false, | ||
| 197 | + list: [], | ||
| 198 | + checked_sum: 0, | ||
| 199 | + }, { | ||
| 200 | + id: 3, | ||
| 201 | + type: 'shuomingshu', | ||
| 202 | + name: '产品说明书', | ||
| 203 | + show: false, | ||
| 204 | + list: [], | ||
| 205 | + checked_sum: 0, | ||
| 206 | + }, { | ||
| 207 | + id: 4, | ||
| 208 | + type: 'jiaocheng', | ||
| 209 | + name: '安装教程', | ||
| 210 | + show: false, | ||
| 211 | + list: [], | ||
| 212 | + checked_sum: 0, | ||
| 213 | + }]; | ||
| 213 | const { code, data } = await getProductInfoAPI( { id: this.$route.query.id }); | 214 | const { code, data } = await getProductInfoAPI( { id: this.$route.query.id }); |
| 214 | if (code) { | 215 | if (code) { |
| 215 | this.info = data; | 216 | this.info = data; | ... | ... |
-
Please register or login to post a comment