|
@@ -4,6 +4,7 @@ import { useRoute } from 'vue-router'
|
|
|
import { Message } from 'tdesign-mobile-vue';
|
|
|
import apiCommon from '@/api/modules/common'
|
|
|
import apiUser from '@/api/modules/user'
|
|
|
+import { ref } from 'vue';
|
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
@@ -20,11 +21,11 @@ function getSystemConfig() {
|
|
|
getSystemConfig()
|
|
|
|
|
|
// 获取用户信息
|
|
|
-let userInfo = null
|
|
|
+let userInfo = ref(null)
|
|
|
async function getUserInfo() {
|
|
|
const res = await apiUser.userInfo()
|
|
|
if (res.Ret === 200) {
|
|
|
- userInfo = res.Data
|
|
|
+ userInfo.value = res.Data
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -63,7 +64,7 @@ const callShow = ref(false)
|
|
|
const phoneList = ref([])
|
|
|
function handleCallShow() {
|
|
|
callShow.value = true
|
|
|
- phoneList.value = userInfo.SellerDepartmentPhone || []
|
|
|
+ phoneList.value = userInfo.value.SellerDepartmentPhone || []
|
|
|
console.log(phoneList.value);
|
|
|
|
|
|
}
|
|
@@ -73,7 +74,7 @@ function visiblechange(val) {
|
|
|
// 拨打电话
|
|
|
function handleCallPhone(tel) {
|
|
|
visiblechange()
|
|
|
- // let tel = userInfo.SellerPhone
|
|
|
+ // let tel = userInfo.value.SellerPhone
|
|
|
// if (!tel) {
|
|
|
// systemConfig.forEach(item => {
|
|
|
// if (item.ConfKey === 'ServicePhone') {
|
|
@@ -175,7 +176,7 @@ function handleTips () {
|
|
|
@click="handleCollect"
|
|
|
class="item collect-icon"
|
|
|
:name="reportCollected ? 'collected' : 'collect'"
|
|
|
- v-if="reportStatus === 4"
|
|
|
+ v-if="reportStatus === 4 && userInfo?.Status === 2"
|
|
|
/>
|
|
|
<!-- 返回顶部 -->
|
|
|
<div class="item back-top-img">
|