Commit d898d51dd1ba99a653068ee58d85c5dca416a081
1 parent
733f421c
版本升级弹出层代码优化
Showing
1 changed file
with
6 additions
and
10 deletions
src/pages/goodDetails/goodDetails.vue
| @@ -374,10 +374,6 @@ export default { | @@ -374,10 +374,6 @@ export default { | ||
| 374 | showCancelButton: true, | 374 | showCancelButton: true, |
| 375 | cancelButtonText: "取消" | 375 | cancelButtonText: "取消" |
| 376 | }; | 376 | }; |
| 377 | - // 调用showModal层参数 | ||
| 378 | - this.$set(this.$parent, "showOptions", options); | ||
| 379 | - // 显示通用浮层 | ||
| 380 | - this.$parent.$refs.showModal.showLayer(); | ||
| 381 | } | 377 | } |
| 382 | } else if (this.isiPhone.value) { | 378 | } else if (this.isiPhone.value) { |
| 383 | if (this.version != "") { | 379 | if (this.version != "") { |
| @@ -401,13 +397,13 @@ export default { | @@ -401,13 +397,13 @@ export default { | ||
| 401 | showCancelButton: true, | 397 | showCancelButton: true, |
| 402 | cancelButtonText: "取消" | 398 | cancelButtonText: "取消" |
| 403 | }; | 399 | }; |
| 404 | - // 调用showModal层参数 | ||
| 405 | - this.$set(this.$parent, "showOptions", options); | ||
| 406 | - // 显示通用浮层 | ||
| 407 | - this.$parent.$refs.showModal.showLayer(); | ||
| 408 | } | 400 | } |
| 409 | - } | ||
| 410 | - } | 401 | + } |
| 402 | + // 调用showModal层参数 | ||
| 403 | + this.$set(this.$parent, "showOptions", options); | ||
| 404 | + // 显示通用浮层 | ||
| 405 | + this.$parent.$refs.showModal.showLayer(); | ||
| 406 | + } | ||
| 411 | }, | 407 | }, |
| 412 | // App升级跳转 | 408 | // App升级跳转 |
| 413 | appUpdate(){ | 409 | appUpdate(){ |