From 0f411d4067efde1c582bbdc6009e083a77dcbc0e Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Mon, 17 Apr 2023 17:42:00 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20cardInfo=20=20=20=20=20-=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20code=E9=87=8D=E5=A4=8D=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++-- src/views/buy-record/index.vue | 2 +- src/views/card-info/index.vue | 8 +++++--- src/views/package-buy/index.vue | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a191a96..f6f031a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -378,4 +378,6 @@ update `2023.4.17` update - packageHome - - 增加 进入充值首页时已充值跳转到话费查询页面 \ No newline at end of file + - 增加 进入充值首页时已充值跳转到话费查询页面 +- cardInfo + - 修复 code重复的问题 \ No newline at end of file diff --git a/src/views/buy-record/index.vue b/src/views/buy-record/index.vue index 63fc945..a44f111 100644 --- a/src/views/buy-record/index.vue +++ b/src/views/buy-record/index.vue @@ -95,7 +95,7 @@ export default { onNavBack() { this.$router.replace({ name: "cardInfo", - query: { imei: this.$route.query.imei, iccid: this.$route.query.iccid, isShowMenu: true} + query: { imei: this.$route.query.imei, iccid: this.$route.query.iccid, isShowMenu: true, isHasCode: true} }); }, // 复制订单号 diff --git a/src/views/card-info/index.vue b/src/views/card-info/index.vue index 3f627a5..8f13f82 100644 --- a/src/views/card-info/index.vue +++ b/src/views/card-info/index.vue @@ -1,7 +1,7 @@ @@ -145,7 +145,9 @@ export default { let code = url.split("&")[0]; if (isNotNull(code)) { this.isShowPage = true; - this.getOpenId(code); + if(!params.isHasCode) { + this.getOpenId(code); + } } else { this.$dialog({ message: '系统繁忙,请重新进入' @@ -183,7 +185,7 @@ export default { this.$toast.loading({ message: '查询中...' }); let reqBody = { imei: this.$route.query.imei, - iccid: '' || this.$route.query.iccid + iccid: this.$route.query.iccid || '' } APIWx.GetCardInfo(reqBody) .then(res => { diff --git a/src/views/package-buy/index.vue b/src/views/package-buy/index.vue index dcce03a..f306129 100644 --- a/src/views/package-buy/index.vue +++ b/src/views/package-buy/index.vue @@ -153,7 +153,7 @@ export default { onNavBack() { this.$router.replace({ name: "cardInfo", - query: { imei: this.$route.query.imei, iccid: this.$route.query.iccid, isShowMenu: true} + query: { imei: this.$route.query.imei, iccid: this.$route.query.iccid, isShowMenu: true, isHasCode: true} }); }, // 获取core token