|
|
|
@ -9,9 +9,9 @@
|
|
|
|
<switch :checked="isInBlacklist" @change="(checked) => handleSwitchChange(checked)" />
|
|
|
|
<switch :checked="isInBlacklist" @change="(checked) => handleSwitchChange(checked)" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="userInfo-item">
|
|
|
|
<div class="userInfo-item">
|
|
|
|
<div class="item-left">{{ "客服手机号" }}</div>
|
|
|
|
<div class="item-left">{{ "手机号" }}</div>
|
|
|
|
<div class="g_flex_row_end" @click="takeTel">
|
|
|
|
<div class="g_flex_row_end" @click="takeTel">
|
|
|
|
<div class="">{{ userInfo.tel || '-' }}</div>
|
|
|
|
<div class="">{{ tel || "-" }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -93,6 +93,7 @@ import Icon from "../../../components/Icon.vue";
|
|
|
|
import G from "../../../../../utils/ajax.js";
|
|
|
|
import G from "../../../../../utils/ajax.js";
|
|
|
|
|
|
|
|
|
|
|
|
const userInfo = ref<V2NIMUser>();
|
|
|
|
const userInfo = ref<V2NIMUser>();
|
|
|
|
|
|
|
|
const tel = ref();
|
|
|
|
const relation = ref<Relation>("stranger");
|
|
|
|
const relation = ref<Relation>("stranger");
|
|
|
|
const isInBlacklist = ref(false);
|
|
|
|
const isInBlacklist = ref(false);
|
|
|
|
|
|
|
|
|
|
|
|
@ -122,12 +123,12 @@ onLoad((props) => {
|
|
|
|
console.log(G, "123131231231232");
|
|
|
|
console.log(G, "123131231231232");
|
|
|
|
G.Post("/wyyx/user/findUser", { accid: userInfo.value.accountId }, (res) => {
|
|
|
|
G.Post("/wyyx/user/findUser", { accid: userInfo.value.accountId }, (res) => {
|
|
|
|
console.log("resresresresresres", res);
|
|
|
|
console.log("resresresresresres", res);
|
|
|
|
userInfo.value.tel = res.data.tel;
|
|
|
|
tel.value = res.data.tel;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
function takeTel() {
|
|
|
|
function takeTel() {
|
|
|
|
uni.makePhoneCall({
|
|
|
|
uni.makePhoneCall({
|
|
|
|
phoneNumber: userInfo.value.tel,
|
|
|
|
phoneNumber: tel,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const handleSwitchChange = async (e: any) => {
|
|
|
|
const handleSwitchChange = async (e: any) => {
|
|
|
|
|