优化添加优惠
This commit is contained in:
@@ -147,7 +147,7 @@ const submitHandle = () => {
|
||||
.userlogin(form)
|
||||
.then(async (res) => {
|
||||
// 登录成功后保存商户号
|
||||
// useStorage.set('merchantLoginAccount', form.username)
|
||||
useStorage.set('merchantLoginAccount', form.username)
|
||||
ElMessage.success("登录成功");
|
||||
goodsStore.initGoods()
|
||||
setTimeout(() => {
|
||||
@@ -155,15 +155,16 @@ const submitHandle = () => {
|
||||
name: "home",
|
||||
});
|
||||
}, 1000);
|
||||
// const douyin = await douyincheckIn({
|
||||
// token: store.token,
|
||||
// loginName: res.loginName,
|
||||
// clientType: 'pc'
|
||||
// })
|
||||
// useStorage.set('douyin', douyin.userInfo)
|
||||
const douyin = await douyincheckIn({
|
||||
token: store.token,
|
||||
loginName: form.username,
|
||||
clientType: 'pc'
|
||||
})
|
||||
useStorage.set('douyin', douyin.userInfo)
|
||||
// global.updateData(true)
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
loading.value = false;
|
||||
// 重新获取验证码
|
||||
captchaAjax()
|
||||
@@ -203,7 +204,7 @@ onMounted(() => {
|
||||
|
||||
let merchantLoginAccount = useStorage.get('merchantLoginAccount')
|
||||
if (merchantLoginAccount) {
|
||||
form.merchantName = merchantLoginAccount
|
||||
form.username = merchantLoginAccount
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user