|
@@ -403,12 +403,9 @@ export default {
|
|
|
standardReq.setShopid(localStorage.shopId);
|
|
standardReq.setShopid(localStorage.shopId);
|
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
|
- console.log(standardReq.getJsonstr());
|
|
|
|
|
that.client.vipMainPhoneCheck(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.vipMainPhoneCheck(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply)
|
|
let res = JSON.parse(StandardReply)
|
|
|
- console.log(res);
|
|
|
|
|
if (res.code == 20101) {//该手机号在本店已存在
|
|
if (res.code == 20101) {//该手机号在本店已存在
|
|
|
that.$message.error('用户已存在,手机号不能重复添加');
|
|
that.$message.error('用户已存在,手机号不能重复添加');
|
|
|
that.addDisabled = true;
|
|
that.addDisabled = true;
|
|
@@ -451,7 +448,6 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
let res = err;
|
|
let res = err;
|
|
|
that.$message.error(res.message + ',错误代码:' + res.code);
|
|
that.$message.error(res.message + ',错误代码:' + res.code);
|
|
|
- console.log(res);
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -460,7 +456,6 @@ export default {
|
|
|
this.$router.push({path: '/relevancePhone', query: {userId: row.uu_user_id,shopId: row.shop_id}});
|
|
this.$router.push({path: '/relevancePhone', query: {userId: row.uu_user_id,shopId: row.shop_id}});
|
|
|
},
|
|
},
|
|
|
cutDown(e) {
|
|
cutDown(e) {
|
|
|
- console.log(e);
|
|
|
|
|
this.imageUrl = e.dataURL;
|
|
this.imageUrl = e.dataURL;
|
|
|
this.upqiniu(e);
|
|
this.upqiniu(e);
|
|
|
},
|
|
},
|
|
@@ -493,13 +488,10 @@ export default {
|
|
|
standardReq.setShopid(localStorage.shopId);
|
|
standardReq.setShopid(localStorage.shopId);
|
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
|
- console.log(standardReq.getJsonstr());
|
|
|
|
|
that.client.vipUserClassQuery(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.vipUserClassQuery(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply);
|
|
let res = JSON.parse(StandardReply);
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
- console.log(res);
|
|
|
|
|
that.userClassInfo = res.rs;
|
|
that.userClassInfo = res.rs;
|
|
|
} else {
|
|
} else {
|
|
|
that.$message.error(res.memo + ',错误代码:' + res.code);
|
|
that.$message.error(res.memo + ',错误代码:' + res.code);
|
|
@@ -507,7 +499,6 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
let res = err;
|
|
let res = err;
|
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
|
- console.log("err:" + err);
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -551,10 +542,8 @@ export default {
|
|
|
standardReq.setShopid(localStorage.shopId);
|
|
standardReq.setShopid(localStorage.shopId);
|
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
|
- console.log(standardReq.getJsonstr());
|
|
|
|
|
that.client.shopVipUserStatusEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.shopVipUserStatusEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply);
|
|
let res = JSON.parse(StandardReply);
|
|
|
|
|
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
@@ -575,7 +564,6 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
let res = err;
|
|
let res = err;
|
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
|
- console.log("err:" + err);
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
@@ -602,10 +590,8 @@ export default {
|
|
|
standardReq.setShopid(localStorage.shopId);
|
|
standardReq.setShopid(localStorage.shopId);
|
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
|
- console.log(standardReq.getJsonstr());
|
|
|
|
|
that.client.shopVipUserStatusEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.shopVipUserStatusEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply);
|
|
let res = JSON.parse(StandardReply);
|
|
|
|
|
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
@@ -626,7 +612,6 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
let res = err;
|
|
let res = err;
|
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
|
- console.log("err:" + err);
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -654,7 +639,6 @@ export default {
|
|
|
standardReq.setShopid(localStorage.shopId);
|
|
standardReq.setShopid(localStorage.shopId);
|
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
|
- console.log(standardReq.getJsonstr());
|
|
|
|
|
|
|
|
|
|
this.$confirm('此操作将永久删除该会员, 是否继续?', '提示', {
|
|
this.$confirm('此操作将永久删除该会员, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -663,7 +647,6 @@ export default {
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
that.client.shopVipUserStatusEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.shopVipUserStatusEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply);
|
|
let res = JSON.parse(StandardReply);
|
|
|
|
|
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
@@ -684,7 +667,6 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
let res = err;
|
|
let res = err;
|
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
|
- console.log("err:" + err);
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
@@ -768,14 +750,11 @@ export default {
|
|
|
standardReq.setShopid(localStorage.shopId);
|
|
standardReq.setShopid(localStorage.shopId);
|
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
|
- console.log(standardReq.getJsonstr());
|
|
|
|
|
that.client.vipUserClassQuery(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.vipUserClassQuery(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply);
|
|
let res = JSON.parse(StandardReply);
|
|
|
|
|
|
|
|
if (res.rs) {
|
|
if (res.rs) {
|
|
|
- console.log(res);
|
|
|
|
|
res.rs.map(function (item) {
|
|
res.rs.map(function (item) {
|
|
|
that.form.dialogValue.push(item.class_id)
|
|
that.form.dialogValue.push(item.class_id)
|
|
|
})
|
|
})
|
|
@@ -783,7 +762,6 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
let res = err;
|
|
let res = err;
|
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
|
- console.log("err:" + JSON.parse(err));
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -858,10 +836,8 @@ export default {
|
|
|
standardReq.setShopid(localStorage.shopId);
|
|
standardReq.setShopid(localStorage.shopId);
|
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
|
- console.log(standardReq.getJsonstr());
|
|
|
|
|
that.client.shopVipUserAdd(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.shopVipUserAdd(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply);
|
|
let res = JSON.parse(StandardReply);
|
|
|
|
|
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
@@ -880,7 +856,6 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
let res = err;
|
|
let res = err;
|
|
|
that.$message.error(res.message + ',错误代码:' + res.code);
|
|
that.$message.error(res.message + ',错误代码:' + res.code);
|
|
|
- console.log(res);
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -940,10 +915,8 @@ export default {
|
|
|
standardReq.setShopid(localStorage.shopId);
|
|
standardReq.setShopid(localStorage.shopId);
|
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
|
- console.log(standardReq.getJsonstr());
|
|
|
|
|
that.client.shopVipUserEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.shopVipUserEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply);
|
|
let res = JSON.parse(StandardReply);
|
|
|
|
|
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
@@ -961,7 +934,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
let res = err;
|
|
let res = err;
|
|
|
- console.log(err);
|
|
|
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -980,10 +952,8 @@ export default {
|
|
|
standardReq.setShopid(localStorage.shopId);
|
|
standardReq.setShopid(localStorage.shopId);
|
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
|
- console.log(standardReq.getJsonstr());
|
|
|
|
|
that.client.vipHourEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.vipHourEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply);
|
|
let res = JSON.parse(StandardReply);
|
|
|
|
|
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
@@ -1002,7 +972,6 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
let res = err;
|
|
let res = err;
|
|
|
that.$message.error(res.message + ',错误代码:' + res.code);
|
|
that.$message.error(res.message + ',错误代码:' + res.code);
|
|
|
- console.log(res);
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -1023,14 +992,11 @@ export default {
|
|
|
standardReq.setShopid(localStorage.shopId);
|
|
standardReq.setShopid(localStorage.shopId);
|
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
|
- console.log(standardReq.getJsonstr());
|
|
|
|
|
that.client.vipClassRelationEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.vipClassRelationEdit(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply);
|
|
let res = JSON.parse(StandardReply);
|
|
|
|
|
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
- console.log(res);
|
|
|
|
|
// 关闭弹窗
|
|
// 关闭弹窗
|
|
|
that.dialogVisible = false;
|
|
that.dialogVisible = false;
|
|
|
// 重载列表
|
|
// 重载列表
|
|
@@ -1046,7 +1012,6 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
let res = err;
|
|
let res = err;
|
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
that.$message.error(res.message + ',错误码:' + res.code);
|
|
|
- console.log("err:" + err);
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -1067,7 +1032,6 @@ export default {
|
|
|
|
|
|
|
|
that.client.classQuery(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.classQuery(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply);
|
|
let res = JSON.parse(StandardReply);
|
|
|
if (res.code ==0) {
|
|
if (res.code ==0) {
|
|
|
that.form.dialogdata = turnClassResToOption(res.rs);
|
|
that.form.dialogdata = turnClassResToOption(res.rs);
|
|
@@ -1075,7 +1039,6 @@ export default {
|
|
|
that.$message.error(res.memo + ',错误代码:' + res.code);
|
|
that.$message.error(res.memo + ',错误代码:' + res.code);
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
- console.log("err:" + err.toObject);
|
|
|
|
|
let res = JSON.parse(err);
|
|
let res = JSON.parse(err);
|
|
|
that.$message.error(res.message + ',错误代码:' + res.code);
|
|
that.$message.error(res.message + ',错误代码:' + res.code);
|
|
|
}
|
|
}
|
|
@@ -1153,15 +1116,12 @@ export default {
|
|
|
standardReq.setShopid(localStorage.shopId);
|
|
standardReq.setShopid(localStorage.shopId);
|
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
standardReq.setSign(getSignStr(jsonStr));
|
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
standardReq.setJsonstr(JSON.stringify(jsonStr));
|
|
|
- console.log(standardReq.getJsonstr());
|
|
|
|
|
- console.log(localStorage.token);
|
|
|
|
|
|
|
|
|
|
that.allTableData = [];
|
|
that.allTableData = [];
|
|
|
that.recordsTotal = 0;
|
|
that.recordsTotal = 0;
|
|
|
|
|
|
|
|
that.client.shopVipUserQuery(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
that.client.shopVipUserQuery(standardReq, {"Token": localStorage.token}, (err, StandardReply) => {
|
|
|
if (err == null) {
|
|
if (err == null) {
|
|
|
- console.log(StandardReply.getJsonrst());
|
|
|
|
|
let res = JSON.parse(StandardReply);
|
|
let res = JSON.parse(StandardReply);
|
|
|
|
|
|
|
|
that.loading = false;
|
|
that.loading = false;
|
|
@@ -1177,7 +1137,6 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
let res = err;
|
|
let res = err;
|
|
|
that.$message.error(res.message + ',错误代码:' + res.code);
|
|
that.$message.error(res.message + ',错误代码:' + res.code);
|
|
|
- console.log(res);
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|