mini-program/pages/details/details.vue
@@ -55,7 +55,9 @@ <script> import { mapState } from 'vuex' import Login from '@/components/login/login.vue' export default { components: { Login }, computed: { ...mapState(['userInfo']) }, @@ -69,7 +71,12 @@ onLoad(option) { this.id = option.id this.getDetails() this.cardNum() }, onShow() { if (this.userInfo) { this.cardNum() } }, methods: { shoucang() {