|
|
@@ -9,7 +9,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="mt-40 text-30 text-fore-title font-bold">其他功能</view>
|
|
|
- <view class="mt-16 shadow-card rounded-8 py-10 bg-white">
|
|
|
+ <view class="mt-16 shadow-card rounded-8 bg-white">
|
|
|
<uv-cell-group :border="false">
|
|
|
<uv-cell isLink :cellStyle="cellStyle"
|
|
|
@click="handleNavigate('/pagesSystem/pages/edit-profile/edit-profile', '基本资料')">
|
|
|
@@ -20,7 +20,7 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
</uv-cell>
|
|
|
- <uv-cell isLink :cellStyle="cellStyle" @click="handleQuestion" :border="false">
|
|
|
+ <uv-cell isLink :cellStyle="cellStyle" @click="handleQuestion" :border="true">
|
|
|
<template #title>
|
|
|
<view class="flex items-center gap-x-10">
|
|
|
<uv-icon name="question-circle" size="16" color="#888888" />
|
|
|
@@ -28,6 +28,17 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
</uv-cell>
|
|
|
+ <uv-cell isLink :cellStyle="cellStyle" @click="handlePhone" :border="false">
|
|
|
+ <template #title>
|
|
|
+ <view class="flex items-center gap-x-10">
|
|
|
+ <uv-icon name="phone" size="17" color="#888888" />
|
|
|
+ <text class="text-30 text-fore-subtitle">客服电话</text>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ <template #value>
|
|
|
+ <text class="text-30 text-fore-subtitle">{{ contactPhone }}</text>
|
|
|
+ </template>
|
|
|
+ </uv-cell>
|
|
|
</uv-cell-group>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -42,6 +53,8 @@ import { useUserStore } from '@/store/userStore';
|
|
|
const { transferTo } = useTransferPage();
|
|
|
const userStore = useUserStore();
|
|
|
|
|
|
+const contactPhone = computed(() => userStore.orgInfo.contactPhone);
|
|
|
+
|
|
|
type MenuItem = {
|
|
|
name: string;
|
|
|
icon: string;
|
|
|
@@ -108,5 +121,21 @@ const handleLogout = async () => {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+const handlePhone = async () => {
|
|
|
+ if (!contactPhone.value) {
|
|
|
+ uni.$ie.showToast('暂无客服电话');
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ uni.showActionSheet({
|
|
|
+ title: '客服电话',
|
|
|
+ itemList: [`拨打电话:${contactPhone.value}`],
|
|
|
+ success: (res) => {
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: contactPhone.value
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
<style lang="scss" scoped></style>
|