|
@@ -147,16 +147,15 @@ const handlePlayAudio=(index)=>{
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-// 复制号码
|
|
|
-const handleCopyTel=(e)=>{
|
|
|
- navigator.clipboard.writeText(e)
|
|
|
- ElMessage('复制成功')
|
|
|
-}
|
|
|
-
|
|
|
//返回
|
|
|
const goBack=()=>{
|
|
|
- router.go(-1)
|
|
|
+ if(window.history.state.back){
|
|
|
+ console.log('返回上一页');
|
|
|
+ router.go(-1)
|
|
|
+ }else{
|
|
|
+ console.log('返回首页');
|
|
|
+ router.push({path:'/'})
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 申请
|
|
@@ -307,17 +306,7 @@ const cancelRegister=async ()=>{
|
|
|
item.type == 'copy' && 'link',
|
|
|
]"
|
|
|
>
|
|
|
- <template v-if="item.type=='tel'||item.type=='copy'">
|
|
|
- <el-popover
|
|
|
- placement="right-end"
|
|
|
- trigger="hover"
|
|
|
- width="90px"
|
|
|
- >
|
|
|
- <template #reference> {{ item.text }} </template>
|
|
|
- <template #default><span @click="handleCopyTel(item.text)">复制{{item.type=='tel'?'号码':'链接'}}</span></template>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
- <template v-else>{{item.text}}</template>
|
|
|
+ {{item.text}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|