Commit 733f421ce4c81ba389ad3985efbddfb3f66a4ac2
1 parent
5b437362
去更新弹框内容优化
Showing
1 changed file
with
8 additions
and
4 deletions
src/pages/goodDetails/goodDetails.vue
| @@ -369,8 +369,10 @@ export default { | @@ -369,8 +369,10 @@ export default { | ||
| 369 | options = { | 369 | options = { |
| 370 | message: "当前版本过旧,请升级最新版本", | 370 | message: "当前版本过旧,请升级最新版本", |
| 371 | messageAlign: "center", | 371 | messageAlign: "center", |
| 372 | - confirmButtonText: "我知道了", | ||
| 373 | - confirmButtonCallback:this.appUpdate | 372 | + confirmButtonText: "去更新", |
| 373 | + confirmButtonCallback:this.appUpdate, | ||
| 374 | + showCancelButton: true, | ||
| 375 | + cancelButtonText: "取消" | ||
| 374 | }; | 376 | }; |
| 375 | // 调用showModal层参数 | 377 | // 调用showModal层参数 |
| 376 | this.$set(this.$parent, "showOptions", options); | 378 | this.$set(this.$parent, "showOptions", options); |
| @@ -394,8 +396,10 @@ export default { | @@ -394,8 +396,10 @@ export default { | ||
| 394 | options = { | 396 | options = { |
| 395 | message: "当前版本过旧,请升级最新版本", | 397 | message: "当前版本过旧,请升级最新版本", |
| 396 | messageAlign: "center", | 398 | messageAlign: "center", |
| 397 | - confirmButtonText: "我知道了", | ||
| 398 | - confirmButtonCallback:this.appUpdate | 399 | + confirmButtonText: "去更新", |
| 400 | + confirmButtonCallback:this.appUpdate, | ||
| 401 | + showCancelButton: true, | ||
| 402 | + cancelButtonText: "取消" | ||
| 399 | }; | 403 | }; |
| 400 | // 调用showModal层参数 | 404 | // 调用showModal层参数 |
| 401 | this.$set(this.$parent, "showOptions", options); | 405 | this.$set(this.$parent, "showOptions", options); |