完善商品分类及商品管理
This commit is contained in:
@ -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']),
|
||||
|
||||
Reference in New Issue
Block a user