优化添加优惠

This commit is contained in:
gyq
2025-03-25 00:31:50 +08:00
parent a914adc9f8
commit 3e84edbb6c
19 changed files with 402 additions and 238 deletions

View File

@@ -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>