chore(电子名片): 支持展示视频号

This commit is contained in:
2026-01-10 17:38:55 +08:00
parent 68bc853dff
commit 26af083839

View File

@@ -4,6 +4,7 @@
<view class="bg border-top"></view>
<view class="list_cotact padding-top">
<view class="container">
<!-- 专属客服 + 在线留言 -->
<!-- #ifdef H5 -->
<view class="view_ul view_ul_one clearfix">
<view @click="tapMessage" class="view_li w50_li text-center"
@@ -14,7 +15,6 @@
</view>
</view>
</view>
<!-- <view @click="test()">Test</view> -->
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<view class="view_ul view_ul_one clearfix">
@@ -33,6 +33,8 @@
</view>
</view>
<!-- #endif -->
<!-- 人员信息/名片 -->
<view class="view_ul_100" v-for="(item, index) in dataList" :key="index"
style="margin-bottom: 20rpx;">
@@ -64,20 +66,21 @@
</view>
</view>
</view>
<!-- <view class="view_ul view_ul_two clearfix " v-if="dataList.length > 3" >
<view @click="Tel(item.mobile)" class="view_li w50_li" v-for="(item,index) in dataList" >
<view class="bl bor" hoverClass="none" url="" style="box-shadow: 5rpx 5rpx 10rpx #dcdcdc;height: 230rpx;position: relative;">
<view class="contact_name" v-if="item.position">{{item.position_text}}{{item.position}}</view>
<view class="contact_name">{{item.title_text}}{{item.realname}}</view>
<view class="contact_name">{{item.mobile_text}}{{item.mobile}}</view>
<view class="contact_name" style="padding-bottom:10rpx;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;">{{item.address_text}}{{item.address}}</view>
<view class="contact_name" style="padding-top:10rpx;padding-bottom:0rpx;border-top: solid 1px #eee;position: absolute;bottom: 0;display: flex">
<image mode="widthFix":src="$util.img('public/static/img/boda.png')"></image>
<view style="margin-top: -6rpx;margin-left: 10rpx;font-size: 24rpx;color:rgba(71,71,71,.79)">点击拨打电话</view>
</view>
</view>
</view>
</view> -->
<!-- 企业文件 -->
<!-- 企业视频 -->
<!-- 视频号视频列表 -->
<view class="view_channel_container">
<diy-channel-list :value="{
showStyle: 'fixed',
rowCount: 3,
list: channelList
}" />
</view>
<!-- 地图 -->
<map v-if="shop.longitude > 0 && shop.latitude > 0 && ismessage == 0" id="map"
style="width: 100%; height:400rpx" scale="12" :markers="markers" bindupdated="bindupdated"
:longitude="shop.longitude" :latitude="shop.latitude" show-location>
@@ -88,19 +91,7 @@
</map>
</view>
</view>
<!-- <view wx:if="landline !=0">
<button bindtap="contact">
<view class="message">
<image mode="widthFix" src="{{contactbg}}"></image>
</view>
</button>
</view> -->
</view>
<!--留言弹窗-->
<view class="goods-sku">
@@ -177,7 +168,10 @@ export default {
data() {
return {
minScrollTop: 100,
dataList: [],
dataList: [], // 电子名片信息
fileList: [], // 企业文件
videoList: [], // 企业视频
channelList: [], // 视频号
ismessage: 0,
Form: {
realname: '',
@@ -214,7 +208,10 @@ export default {
url: '/api/member/personnel',
success: res => {
if (res.code == 0) {
this.dataList = res.data;
this.dataList = res.data; // 电子名片信息
this.fileList = res.file_list; // 企业文件
this.videoList = res.video_list; // 企业视频
this.channelList = res.channel_list.map(item => this.$util.snakeToCamelForObj(item)); // 视频号
this.shop = res.shop;
this.personnel_bg = res.set.personnel_bg ? res.set.personnel_bg : 'public/static/img/diy_view/member_info_bg.png';
this.markers = [{
@@ -228,23 +225,6 @@ export default {
});
},
methods: {
test() {
// channelReady(function(bAvailable) {
// alert('是否存在框架服务:' + bAvailable)
// })
// window.location.href = 'https://hapjs.org/app//[path][?key=value] hap://app//[path][?key=value] '
//参数说明: package: 应用包名,必选 path: 应用内页面的 path可选默认为首页 key-value: 希望传给页面的参数,可选,可以有多个
// const isQuickAppEnv = navigator.userAgent.includes('HuaweiQuickApp');
// let quickAppBridge;
// console.log(window.quickapp)
// if (isQuickAppEnv) {
// quickAppBridge = window.quickapp;
// }
// quickAppBridge.invoke('startQuickAppPage', { page: '/NativePage' });
// window.postMessage({ action: 'someAction', data: 'some data' }, '*');
// window.open('https://xcx10.5g-quickapp.com/test.php')
},
save() {
if (!this.Form.realname.trim()) {
uni.showToast({ title: '请填写姓名', icon: 'none' });