diff --git a/components/shopro-auth-modal/shopro-auth-modal.vue b/components/shopro-auth-modal/shopro-auth-modal.vue index cc0e076..49174fc 100644 --- a/components/shopro-auth-modal/shopro-auth-modal.vue +++ b/components/shopro-auth-modal/shopro-auth-modal.vue @@ -3,11 +3,11 @@ - + - 账号登录 + 短信登录 @@ -46,19 +46,20 @@ 立即注册 + - + 短信登录 - 未注册手机号请先点击下方立即注册 + @@ -88,7 +89,7 @@ {{ form["smsLogin"].error.code || "" }} - @@ -493,13 +494,26 @@ export default { } } }, - mounted() { }, + + watch: { + authType(newAuthType, oldAuthType) { + // 在这里执行你的逻辑,例如设置默认值 + if (newAuthType === "accountLogin") { + this.$store.commit("setAuthType", "smsLogin"); + } + } + }, + + + mounted() { + + }, methods: { ...mapActions(["getUserInfo", "showAuthModal"]), // 检测 checkValue(e, key) { - console.log("checkValue@@@@") + // this.validation(key); }, diff --git a/main.js b/main.js index 7166cfc..760391b 100644 --- a/main.js +++ b/main.js @@ -17,7 +17,7 @@ async function bootstrap() { Vue.use(uView); // 加载shopro Vue.use(shopro); -Vue.use(jsonrpc) +Vue.use(jsonrpc); const app = new Vue({ store, ...App diff --git a/pages/index/user/userinfo-card.vue b/pages/index/user/userinfo-card.vue index f7ea73c..4c65ebf 100644 --- a/pages/index/user/userinfo-card.vue +++ b/pages/index/user/userinfo-card.vue @@ -23,11 +23,12 @@ + diff --git a/pages/user/address/edit.vue b/pages/user/address/edit.vue index 59949a8..564c3d7 100644 --- a/pages/user/address/edit.vue +++ b/pages/user/address/edit.vue @@ -3,7 +3,7 @@ - +