aa
jiangping
2024-08-02 7dc29ed74ebaa8a0e66f68264d9a13f95dc3af21
wechat_staff/api/index.js
@@ -11,6 +11,7 @@
}
// 验证码登录
export const loginByPhone = (data) => {
  console.log(data)
  return request({
    url: '/web/personnel/loginByPhone',
    data
@@ -56,9 +57,10 @@
  })
}
// 获取会员信息
export const getMemberInfo = () => {
export const getMemberInfo = (data) => {
  return request({
    url: '/web/personnel/getUserDetail',
    data:data
  })
}
// 更新会员信息
@@ -193,6 +195,13 @@
export const getShopDetail = (data) => {
  return request({
    url: '/web/personnel/shopDetail?shopId='+data,
    data
  })
}
// 获取门店详情
export const loadShopList= (data) => {
  return request({
    url: '/web/personnel/userShopList',
    data
  })
}
@@ -331,4 +340,12 @@
  if(child){ 
    child.freshData();
  }
  var {info} = obj.data ;
  if(info){
    const enjoyList = wx.getStorageSync('enjoyList') || [];
    const index = enjoyList.findIndex( i => i.id === info.id );
    info.isEnjoy = index > -1;
    obj.setData({ info:info}) ;
  }
}