|
@@ -179,7 +179,17 @@ 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
|
|
|
+ window.open(href,'_blank');
|
|
|
+}
|
|
|
|
|
|
</script>
|
|
|
|
|
@@ -190,6 +200,7 @@ let showCollect=ref(false)
|
|
|
<span>弘则研报</span>
|
|
|
</div>
|
|
|
<div class="flex-col-center userinfo-wrap">
|
|
|
+ <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>
|
|
@@ -311,6 +322,11 @@ let showCollect=ref(false)
|
|
|
float: right;
|
|
|
// width: 120px;
|
|
|
height: 100%;
|
|
|
+ .yben-icon{
|
|
|
+ height: 26px;
|
|
|
+ margin-right: 21px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
.icon-scan {
|
|
|
width: 26px;
|
|
|
height: 26px;
|