完善商品分类及商品管理

This commit is contained in:
2025-05-03 17:48:41 +08:00
parent 9c7e8b59c2
commit 889f2b8fca
115 changed files with 1418 additions and 272 deletions

View File

@ -18,6 +18,8 @@
<view>
<u-button @click="mobileLogin" hover-class="none" :customStyle="{color: themeColor, border: '1px solid ' + themeColor, padding: '16rpx 0'}" :plain="true" :hair-line="false" shape="circle">手机号登录/注册</u-button>
</view>
<u-button @click="testLogin" hover-class="none" :customStyle="{backgroundColor: themeColor, color: '#fff', border: 'none', padding: '16rpx 0'}" :hair-line="false" shape="circle">测试账号一键登录</u-button>
</view>
<view class="u-m-t-32 u-flex u-row-center">
@ -49,6 +51,7 @@
import { mapMutations, mapActions, mapGetters } from 'vuex'
import { uploadFile } from "@/utils/tools";
import {
accountLogin,
authLogin,
updateUser,
mobileLogin
@ -171,6 +174,18 @@
})
//#endif
},
// 测试账号一键登录
async testLogin() {
const { code, data } = await accountLogin({
account: '15005837859',
password: 'wang199765',
client
})
if (code == 1) {
this.loginHandle(data)
}
}
},
computed: {
...mapGetters(['appConfig']),