diff --git a/pages_tool/contact/contact.vue b/pages_tool/contact/contact.vue index 70ae2b0..afa4a2b 100644 --- a/pages_tool/contact/contact.vue +++ b/pages_tool/contact/contact.vue @@ -4,6 +4,7 @@ + - @@ -33,6 +33,8 @@ + + @@ -64,20 +66,21 @@ - + + + + + + + + + + + @@ -88,19 +91,7 @@ - - - - - - @@ -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' });