Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.counting = false;
},
vuelidate() {
if(this.mobile === ''){
this.$toast.fail('请输入号码');
return false;
}
return true;
},
saveMobile() {
console.log('保存手机号');
}
},
components: {
[Field.name]: Field
}
};
const userCouponId = this.coupons[index].id;
setLocalStorage({CouponId: couponId, UserCouponId: userCouponId});
}
this.init()
},
onExchange() {
this.$toast("兑换暂不支持");
}
},
components: {
[Toast.name]: Toast ,
[SubmitBar.name]: SubmitBar,
[Card.name]: Card,
[Field.name]: Field,
[Tag.name]: Tag,
[CouponCell.name]: CouponCell,
[CouponList.name]: CouponList,
[Popup.name]: Popup
}
};
this.counting = false;
},
vuelidate() {
if(this.mobile === ''){
this.$toast.fail('请输入号码');
return false;
}
return true;
},
saveMobile() {
console.log('保存手机号');
}
},
components: {
[Field.name]: Field
}
};
saveNick() {
if (true) {
authProfile({ nickName: this.nickName })
.then(res => {
localStorage.setItem('nickName', res.data.data.nickName);
return this.$dialog.alert({ message: '保存成功' });
})
.then(() => {
this.$router.go(-1);
});
}
}
},
components: {
[Field.name]: Field
}
};
return {
icon: 'closed-eye',
toggleMsg: '验证码登录'
}
}
return {
icon: 'eye',
toggleMsg: '密码登录'
}
},
passwordIcon: function () {
return this.passwordType === 'password' ? 'closed-eye' : 'eye'
}
},
components: {
[Field.name]: Field,
[Icon.name]: Icon,
[Button.name]: Button,
VerifyCodeBtn
}
}
<style lang="scss"></style>
]
};
},
data() {
return {
userAccount: "guest",
userPasswd: "guest"
};
},
components: {
[NavBar.name]: NavBar,
[Cell.name]: Cell,
[CellGroup.name]: CellGroup,
[Toast.name]: Toast,
[Button.name]: Button,
[Field.name]: Field
},
mounted() {},
methods: {
async onLogin() {
const userAccountEmpty = strategies.isNonEmpty(this.userAccount, this.$t("m.strategies.name"));
const userPasswdLength = strategies.isNonEmpty(this.userPasswd, 4, this.$t("m.strategies.pwdLenth"));
const result = userAccountEmpty || userPasswdLength;
if (result) {
Toast({
message: result,
position: "bottom"
});
} else {
let res = await apiLogin(this.userAccount, this.userPasswd);
if (res.data.code == 0) {
this.setReset();
this.orderInfo = data.orderInfo;
this.orderGoods = data.orderGoods;
this.handleOption = data.orderInfo.handleOption;
this.expressInfo = data.expressInfo;
});
}
},
components: {
[Dialog.name]: Dialog,
[CellGroup.name]: CellGroup,
[Cell.name]: Cell,
[Button.name]: Button,
[SubmitBar.name]: SubmitBar,
[Card.name]: Card,
[Field.name]: Field
}
};
mobile: this.mobile,
type: 'change-password'
}).then(() => {
this.$toast.success('发送成功');
this.counting = true;
}).catch(error => {
this.$toast.fail(error.data.errmsg);
this.counting = false;
})
}
},
},
components: {
[Field.name]: Field
}
};
detailAddress: "腾讯",
isDefault: false
},
areaList: null,
showArea: false,
title: this.$t("addAddressTitle"),
state: "add"
};
},
computed: {
...mapGetters(["this.$store.state.addressStatus"])
},
components: {
[NavBar.name]: NavBar,
[Area.name]: Area,
[Field.name]: Field,
[Dialog.name]: Dialog,
[SwitchCell.name]: SwitchCell,
[Cell.name]: Cell,
[CellGroup.name]: CellGroup,
[Icon.name]: Icon,
[Toast.name]: Toast
},
created() {
this.areaList = areaList;
if (this.$route.query.state == "edit") {
let data = this.$route.query.item;
this.addressInfo = data;
this.title = this.$t("editAddressTitle");
this.state = "edit";
}
},