|
@@ -17,7 +17,8 @@ Page({
|
|
|
shopAuditStatus: null, //店铺审核状态:0 未审核 1已通过 -1未通过 null 未开店
|
|
|
shopStatus: null, // 店铺运营状态: -1:未开通 0: 停业中 1:营业中 2:平台下线 3:平台下线待审核
|
|
|
isSetPassword: false, //是否已经设置过支付密码
|
|
|
- loginResult: {}
|
|
|
+ loginResult: {},
|
|
|
+ shopName:'',
|
|
|
},
|
|
|
|
|
|
/**
|
|
@@ -45,6 +46,7 @@ Page({
|
|
|
})
|
|
|
// 查看是否授权,然后加载订单数据
|
|
|
util.checkAuthInfo(this._loadOrderCount, true)
|
|
|
+ util.checkAuthInfo(this.getUserInfo, true)
|
|
|
this.getUserLevelInfo()
|
|
|
this.getDistInfo()
|
|
|
},
|
|
@@ -285,6 +287,24 @@ Page({
|
|
|
url: '/pages/binding-phone/binding-phone',
|
|
|
})
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 获取用户信息
|
|
|
+ */
|
|
|
+ getUserInfo: function() {
|
|
|
+ var that = this;
|
|
|
+
|
|
|
+ var param = {
|
|
|
+ url: '/p/user/userInfo',
|
|
|
+ method: 'GET',
|
|
|
+ data: {},
|
|
|
+ callBack: (res) => {
|
|
|
+ that.setData({
|
|
|
+ shopName: res.enterprise || ''
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ http.request(param)
|
|
|
+ },
|
|
|
|
|
|
toOrderListPage: function(e) {
|
|
|
console.log(this.data.isAuthInfo);
|