|
@@ -76,10 +76,20 @@ Page({
|
|
|
mobile: getMobileCache(),
|
|
|
});
|
|
|
if(resStaff.data.found){
|
|
|
- let staffString = JSON.stringify(resStaff)
|
|
|
+ let staffInfo = resStaff.data;
|
|
|
+ let shopowner = "no";
|
|
|
+ if(staffInfo.staffList != null && staffInfo.staffList.length >0){
|
|
|
+ for(var i=0;i<staffInfo.staffList.length;i++){
|
|
|
+ //判断员工是否是店长
|
|
|
+ if(1 == staffInfo.staffList[i].staff.isShopowner){
|
|
|
+ shopowner = "have";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
setTimeout(function () {
|
|
|
wx.redirectTo({
|
|
|
- url:"../staff/isStaff?resStaff="+staffString,
|
|
|
+ url:"../staff/isStaff?shopowner="+shopowner,
|
|
|
})
|
|
|
}, 2000) //延迟时间
|
|
|
|