Skip to content

Commit

Permalink
fixed customer verification
Browse files Browse the repository at this point in the history
  • Loading branch information
cybertriton committed Aug 26, 2020
1 parent 7c9c52e commit 28f23f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var env = process.env.NODE_ENV;
export const reqVerify = (cellphone) =>
ajax.get(BASE + "/public/login/phoneCode?cellphone=" + cellphone);
export const reqVerifyCustomer = (cellphone) =>
ajax.get(BASE + "/public/login/phoneCode?cellphone=" + cellphone + "&type=CUSTOMER:");
ajax.get(BASE + "/phone/verificationCode?cellphone=" + cellphone);
//登录
export const reqLogin = (values) =>
ajax.get(BASE + "/public/login", { params: values });
Expand Down
20 changes: 10 additions & 10 deletions src/views/merchant/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,19 +152,19 @@ class Merchant extends Component {
});
};
addItem = () => {
let isAdmin = storageUtils.getUser().admin;
if (!isAdmin) {
notification.info({ message: "对不起,您没有权限!" });
return false;
}
// let isAdmin = storageUtils.getUser().admin;
// if (!isAdmin) {
// notification.info({ message: "对不起,您没有权限!" });
// return false;
// }
this.props.history.push("/admin/merchant/edit/new");
};
delItem = async (uid) => {
let isAdmin = storageUtils.getUser().admin;
if (!isAdmin) {
notification.info({ message: "对不起,您没有权限!" });
return false;
}
// let isAdmin = storageUtils.getUser().admin;
// if (!isAdmin) {
// notification.info({ message: "对不起,您没有权限!" });
// return false;
// }
const result = await reqDelMerchant(uid);
this.setState({
currentPage: 1,
Expand Down

0 comments on commit 28f23f6

Please sign in to comment.