diff --git a/src/views/card-info/index.vue b/src/views/card-info/index.vue index eccf3a3..3b8ad68 100644 --- a/src/views/card-info/index.vue +++ b/src/views/card-info/index.vue @@ -117,9 +117,12 @@ export default { return /micromessenger/.test(ua); } }, - async mounted() { + async created() { await this.getAuth(); await this.getToken(); + }, + mounted() { + this.getParams(); this.getCardInfo(); @@ -155,7 +158,7 @@ export default { if (params) { this.params = { ...params }; let url = window.location.href.split("?code=")[1]; - if (isNotNull(url) && window.location.href.indexOf("code") > -1 && this.isWeChat) { + if (isNotNull(url) || window.location.href.indexOf("code") > -1) { let timeStamp = new Date().getTime(); let code = url.split("&")[0]; this.code = code; diff --git a/src/views/package-list/index.vue b/src/views/package-list/index.vue index 8c7d26f..4aa6801 100644 --- a/src/views/package-list/index.vue +++ b/src/views/package-list/index.vue @@ -9,7 +9,7 @@
@@ -22,12 +22,7 @@

暂无相关套餐数据,请您联系管理员~

-
+
@@ -38,7 +33,8 @@
-

{{item.packageName}}

+

{{ item.packageName }} +

每月200分钟通话时长,1G流量

@@ -46,10 +42,11 @@

- ¥{{(item.packagesPrice/(item.packageIssue === 0 ? 1: item.packageIssue)).toFixed(0)}}元/月, + ¥{{ (item.packagesPrice / (item.packageIssue === 0 ? 1 : + item.packageIssue)).toFixed(0)}}元/月,

- 合计{{item.packagesPrice}}元 + 合计{{ item.packagesPrice }}元