|
@@ -123,16 +123,18 @@
|
|
|
/*===========================================================*/
|
|
|
// 获取商家信息
|
|
|
async getMerchantAuth() {
|
|
|
- let res = await getMerchantAuthData();
|
|
|
- console.log(res, "获取商家信息")
|
|
|
- this.$store.dispatch('SwitchIdentity', 'MERCHANT')
|
|
|
- // 将数据存储到vuex中
|
|
|
- this.merchantInfo = Object.assign({}, {
|
|
|
- ...res.data,
|
|
|
- mobileNumber: res.data.mobileNumber,
|
|
|
- });
|
|
|
- this.$store.commit('SET_MERCHANTINFO', res.data);
|
|
|
+
|
|
|
if (res.code === 'OK' && res.data) {
|
|
|
+
|
|
|
+ let res = await getMerchantAuthData();
|
|
|
+ console.log(res, "获取商家信息")
|
|
|
+ this.$store.dispatch('SwitchIdentity', 'MERCHANT')
|
|
|
+ // 将数据存储到vuex中
|
|
|
+ this.merchantInfo = Object.assign({}, {
|
|
|
+ ...res.data,
|
|
|
+ mobileNumber: res.data.mobileNumber,
|
|
|
+ });
|
|
|
+ this.$store.commit('SET_MERCHANTINFO', res.data);
|
|
|
if (res.data.reviewStatus == 2) {
|
|
|
//跳转认证中页面
|
|
|
uni.navigateTo({
|