|
@@ -179,6 +179,12 @@ const handleSetUserInfo=()=>{
|
|
|
|
|
|
// 我的收藏
|
|
|
let showCollect=ref(false)
|
|
|
+// 是否在小程序环境中 区分网页版和PC小程序
|
|
|
+const isInMini=ref(false)
|
|
|
+
|
|
|
+wx.miniProgram.getEnv(res=>{
|
|
|
+ isInMini.value=res.miniprogram
|
|
|
+})
|
|
|
|
|
|
const goYBPCEN=()=>{
|
|
|
let href = import.meta.env.VITE_EN_YB_PC
|
|
@@ -194,7 +200,7 @@ const goYBPCEN=()=>{
|
|
|
<span>弘则研报</span>
|
|
|
</div>
|
|
|
<div class="flex-col-center userinfo-wrap">
|
|
|
- <img src="@/assets/icon-yben.png" class="yben-icon" @click="goYBPCEN" />
|
|
|
+ <img src="@/assets/icon-yben.png" class="yben-icon" @click="goYBPCEN" v-if="!isInMini"/>
|
|
|
<!-- 我的收藏 -->
|
|
|
<el-popover trigger="click" @show="showCollect=true" @hide="showCollect=false" :width="460" popper-style="box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;">
|
|
|
<template #reference>
|