医生分享功能完善-0714

master
chen 2022-07-14 15:02:18 +08:00
parent 0a5480d745
commit 46e4476736
22 changed files with 54 additions and 31 deletions

View File

@ -11,7 +11,7 @@
// //
themeEv(); themeEv();
this.autoUpdate(); this.autoUpdate();
// //
toolAll.tools.currentContext(); toolAll.tools.currentContext();
toolAll.tools.isVedio(); toolAll.tools.isVedio();
}, },
@ -73,7 +73,7 @@
} else { // } else { //
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试' content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试~'
}) })
} }
}, },

View File

@ -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 = () =>{};

View File

@ -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'){
path: `/pagesB/doctorDetail/doctorDetail?invite_code=${uni.getStorageSync('invite_code')}&doctor_id=${this.doctorId}`, // / if(this.shareImg!==''){
}; let shareObj = {
return 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}`, // /
};
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