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