|
@@ -2,6 +2,7 @@ import React, { Component } from "react";
|
|
import { View, Button } from "@tarojs/components";
|
|
import { View, Button } from "@tarojs/components";
|
|
import { AtModal, AtModalContent, AtSearchBar, AtList, AtListItem } from "taro-ui";
|
|
import { AtModal, AtModalContent, AtSearchBar, AtList, AtListItem } from "taro-ui";
|
|
import { getadminByName } from "../../../utils/servers/servers";
|
|
import { getadminByName } from "../../../utils/servers/servers";
|
|
|
|
+import { isOneself } from "../../../utils/tools"
|
|
import './index.less';
|
|
import './index.less';
|
|
import "taro-ui/dist/style/components/modal.scss";
|
|
import "taro-ui/dist/style/components/modal.scss";
|
|
import Taro from "@tarojs/taro";
|
|
import Taro from "@tarojs/taro";
|
|
@@ -96,7 +97,10 @@ class UserQuery extends Component {
|
|
title={v.name}
|
|
title={v.name}
|
|
onClick={() => {
|
|
onClick={() => {
|
|
if (coorderList.includes(v.id)) {
|
|
if (coorderList.includes(v.id)) {
|
|
- Taro.showToast({ title: "你已经邀请过Ta了", icon: "none" });
|
|
|
|
|
|
+ Taro.showToast({ title: "你已经邀请过Ta了~", icon: "none" });
|
|
|
|
+ return
|
|
|
|
+ } else if (isOneself(v.id)) {
|
|
|
|
+ Taro.showToast({ title: "你不能邀请自己哦~", icon: "none" });
|
|
return
|
|
return
|
|
} else {
|
|
} else {
|
|
coorderList.push(v.id);
|
|
coorderList.push(v.id);
|