医生分享功能完善-0714
parent
0a5480d745
commit
46e4476736
2
App.vue
2
App.vue
|
@ -73,7 +73,7 @@
|
||||||
} else { // 如果希望用户在最新版本的客户端上体验您的小程序,可以这样子提示
|
} else { // 如果希望用户在最新版本的客户端上体验您的小程序,可以这样子提示
|
||||||
wx.showModal({
|
wx.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
|
content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试~'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -341,6 +341,8 @@ const tools = {
|
||||||
// (开发版,体验版)-配置全局域名
|
// (开发版,体验版)-配置全局域名
|
||||||
uni.setStorageSync('hostapi','https://hengmei.scdxtc.cn/api/');
|
uni.setStorageSync('hostapi','https://hengmei.scdxtc.cn/api/');
|
||||||
// uni.setStorageSync('hostapi','https://hm.hmzfyy.cn/api/');
|
// uni.setStorageSync('hostapi','https://hm.hmzfyy.cn/api/');
|
||||||
|
// 开启埋点倒计时
|
||||||
|
this.daoTime();//开启埋点倒计时
|
||||||
} else {
|
} else {
|
||||||
// 清除所有输出日志
|
// 清除所有输出日志
|
||||||
console.log = () =>{};
|
console.log = () =>{};
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<view :style="{paddingTop: statusHeight+'px'}" class=" pad-x180">
|
<view :style="{paddingTop: statusHeight+'px'}" class=" pad-x180">
|
||||||
<!-- 新闻视频 -->
|
<!-- 新闻视频 -->
|
||||||
<view class="news-video-img" v-if="video!=''">
|
<view class="news-video-img" v-if="video!=''">
|
||||||
<image :src="videoImg" mode="widthFix"></image>
|
<image :src="videoImg==''?doctorObj.doctor_extra.headImg:videoImg" mode="widthFix"></image>
|
||||||
<view class="news-video-btn" @tap.stop="playEv(video)">
|
<view class="news-video-btn" @tap.stop="playEv(video)">
|
||||||
<image src="/static/public/video.png" mode="widthFix"></image>
|
<image src="/static/public/video.png" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -67,10 +67,10 @@
|
||||||
detailInfo:'',
|
detailInfo:'',
|
||||||
peopleJian:'',
|
peopleJian:'',
|
||||||
doctorId:'',//医生id
|
doctorId:'',//医生id
|
||||||
video:'', //视频链接
|
|
||||||
videoImg:'', //视频封面
|
|
||||||
videoPlay:'', //视频播放
|
|
||||||
shareFlag:true, //分享
|
shareFlag:true, //分享
|
||||||
|
videoImg:'', //视频封面图
|
||||||
|
video:'', //视频链接
|
||||||
|
shareImg:'', //分享图
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -82,11 +82,29 @@
|
||||||
return this.$store.state.statusHeight
|
return this.$store.state.statusHeight
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage(e) {
|
||||||
var shareObj = {
|
if(e.from == 'menu'){
|
||||||
|
if(this.shareImg!==''){
|
||||||
|
let shareObj = {
|
||||||
|
title: this.doctorObj.doctor_extra.name,
|
||||||
|
path: `/pagesB/doctorDetail/doctorDetail?invite_code=${uni.getStorageSync('invite_code')}&doctor_id=${this.doctorId}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||||
|
imageUrl: this.$hostApi + this.shareImg,
|
||||||
|
};
|
||||||
|
return shareObj;
|
||||||
|
}else{
|
||||||
|
let shareObj = {
|
||||||
|
title: this.doctorObj.doctor_extra.name,
|
||||||
path: `/pagesB/doctorDetail/doctorDetail?invite_code=${uni.getStorageSync('invite_code')}&doctor_id=${this.doctorId}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
path: `/pagesB/doctorDetail/doctorDetail?invite_code=${uni.getStorageSync('invite_code')}&doctor_id=${this.doctorId}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||||
};
|
};
|
||||||
return shareObj;
|
return shareObj;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(e.from == 'button'){
|
||||||
|
let shareObj = {
|
||||||
|
path: `/pagesB/doctorDetail/doctorDetail?invite_code=${uni.getStorageSync('invite_code')}&doctor_id=${this.doctorId}`, // 默认是当前页面,必须是以‘/’开头的完整路径
|
||||||
|
};
|
||||||
|
return shareObj;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
if((this.chuTop - this.statusHNH) - e.scrollTop*1 <= 0) this.isTop = true
|
if((this.chuTop - this.statusHNH) - e.scrollTop*1 <= 0) this.isTop = true
|
||||||
|
@ -191,7 +209,10 @@
|
||||||
this.peopleJian = this.$toolAll.tools.escape2Html(this.doctorObj.doctor_extra.summary);
|
this.peopleJian = this.$toolAll.tools.escape2Html(this.doctorObj.doctor_extra.summary);
|
||||||
this.detailInfo = this.$toolAll.tools.escape2Html(this.doctorObj.doctor_extra.content);
|
this.detailInfo = this.$toolAll.tools.escape2Html(this.doctorObj.doctor_extra.content);
|
||||||
this.video = this.doctorObj.doctor_extra.video;
|
this.video = this.doctorObj.doctor_extra.video;
|
||||||
this.videoImg = this.doctorObj.doctor_extra.headimg;
|
if(this.doctorObj.doctor_extra.video_img){
|
||||||
|
this.videoImg = this.$hostApi + this.doctorObj.doctor_extra.video_img;
|
||||||
|
}
|
||||||
|
this.shareImg = this.doctorObj.doctor_extra.share_img;
|
||||||
// console.log('视频链接',this.video,this.videoImg)
|
// console.log('视频链接',this.video,this.videoImg)
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue