chore(电子名片): 支持展示视频号
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
<view class="bg border-top"></view>
|
<view class="bg border-top"></view>
|
||||||
<view class="list_cotact padding-top">
|
<view class="list_cotact padding-top">
|
||||||
<view class="container">
|
<view class="container">
|
||||||
|
<!-- 专属客服 + 在线留言 -->
|
||||||
<!-- #ifdef H5 -->
|
<!-- #ifdef H5 -->
|
||||||
<view class="view_ul view_ul_one clearfix">
|
<view class="view_ul view_ul_one clearfix">
|
||||||
<view @click="tapMessage" class="view_li w50_li text-center"
|
<view @click="tapMessage" class="view_li w50_li text-center"
|
||||||
@@ -14,7 +15,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view @click="test()">Test</view> -->
|
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<!-- #ifdef MP-WEIXIN -->
|
<!-- #ifdef MP-WEIXIN -->
|
||||||
<view class="view_ul view_ul_one clearfix">
|
<view class="view_ul view_ul_one clearfix">
|
||||||
@@ -33,6 +33,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
|
|
||||||
|
<!-- 人员信息/名片 -->
|
||||||
<view class="view_ul_100" v-for="(item, index) in dataList" :key="index"
|
<view class="view_ul_100" v-for="(item, index) in dataList" :key="index"
|
||||||
style="margin-bottom: 20rpx;">
|
style="margin-bottom: 20rpx;">
|
||||||
|
|
||||||
@@ -64,20 +66,21 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</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="view_channel_container">
|
||||||
<view class="contact_name" style="padding-top:10rpx;padding-bottom:0rpx;border-top: solid 1px #eee;position: absolute;bottom: 0;display: flex">
|
<diy-channel-list :value="{
|
||||||
<image mode="widthFix":src="$util.img('public/static/img/boda.png')"></image>
|
showStyle: 'fixed',
|
||||||
<view style="margin-top: -6rpx;margin-left: 10rpx;font-size: 24rpx;color:rgba(71,71,71,.79)">点击拨打电话</view>
|
rowCount: 3,
|
||||||
</view>
|
list: channelList
|
||||||
</view>
|
}" />
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
|
||||||
|
<!-- 地图 -->
|
||||||
<map v-if="shop.longitude > 0 && shop.latitude > 0 && ismessage == 0" id="map"
|
<map v-if="shop.longitude > 0 && shop.latitude > 0 && ismessage == 0" id="map"
|
||||||
style="width: 100%; height:400rpx" scale="12" :markers="markers" bindupdated="bindupdated"
|
style="width: 100%; height:400rpx" scale="12" :markers="markers" bindupdated="bindupdated"
|
||||||
:longitude="shop.longitude" :latitude="shop.latitude" show-location>
|
:longitude="shop.longitude" :latitude="shop.latitude" show-location>
|
||||||
@@ -88,19 +91,7 @@
|
|||||||
</map>
|
</map>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<!-- <view wx:if="landline !=0">
|
|
||||||
<button bindtap="contact">
|
|
||||||
<view class="message">
|
|
||||||
<image mode="widthFix" src="{{contactbg}}"></image>
|
|
||||||
</view>
|
|
||||||
</button>
|
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
<!--留言弹窗-->
|
<!--留言弹窗-->
|
||||||
<view class="goods-sku">
|
<view class="goods-sku">
|
||||||
@@ -177,7 +168,10 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
minScrollTop: 100,
|
minScrollTop: 100,
|
||||||
dataList: [],
|
dataList: [], // 电子名片信息
|
||||||
|
fileList: [], // 企业文件
|
||||||
|
videoList: [], // 企业视频
|
||||||
|
channelList: [], // 视频号
|
||||||
ismessage: 0,
|
ismessage: 0,
|
||||||
Form: {
|
Form: {
|
||||||
realname: '',
|
realname: '',
|
||||||
@@ -214,7 +208,10 @@ export default {
|
|||||||
url: '/api/member/personnel',
|
url: '/api/member/personnel',
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.code == 0) {
|
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.shop = res.shop;
|
||||||
this.personnel_bg = res.set.personnel_bg ? res.set.personnel_bg : 'public/static/img/diy_view/member_info_bg.png';
|
this.personnel_bg = res.set.personnel_bg ? res.set.personnel_bg : 'public/static/img/diy_view/member_info_bg.png';
|
||||||
this.markers = [{
|
this.markers = [{
|
||||||
@@ -228,23 +225,6 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
save() {
|
||||||
if (!this.Form.realname.trim()) {
|
if (!this.Form.realname.trim()) {
|
||||||
uni.showToast({ title: '请填写姓名', icon: 'none' });
|
uni.showToast({ title: '请填写姓名', icon: 'none' });
|
||||||
|
|||||||
Reference in New Issue
Block a user