7.15(优化

This commit is contained in:
Hong
2024-07-15 18:58:39 +08:00
parent 2fda34bd3a
commit 5ae3b4196c

View File

@@ -59,7 +59,8 @@
<script>
import {
getSendCode
getSendCode,
updateGetuiCid
} from '@/api/login';
export default {
data() {
@@ -175,17 +176,23 @@
uni.setStorageSync('userType', 'repair')
uni.switchTab({
url: '/pages/tab/tab'
// url: '/pages/repair/tabbar/repair'
})
})
} else if (this.form.sid == 'carDealers') {
this.$store.dispatch('CarShopLogin', this.form).then(res => {
console.log(res, 'dddddd');
uni.getPushClientId({
success: (res) => {
updateGetuiCid(res.cid).then(res=>{
})
},
fail(err) {
console.log(err)
}
})
uni.hideLoading()
uni.setStorageSync('userType', 'carDealers')
uni.switchTab({
url: '/pages/tab/tab'
// url: '/pages/carShop/community/community'
})
})
}