3.25提交

This commit is contained in:
zoujiandong 2026-03-25 17:33:54 +08:00
parent 18c7f7386d
commit 8a879df4b4
32 changed files with 571 additions and 64 deletions

View File

@ -305,6 +305,15 @@ onUnload (() => {
from.value=options.from; from.value=options.from;
} }
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "会议直播",
},
},
(ret) => {
console.log(ret);
});
permissionListener.value=uni.createRequestPermissionListener(); permissionListener.value=uni.createRequestPermissionListener();
console.log('放在onLoad执行'); console.log('放在onLoad执行');
console.log(permissionListener.value); console.log(permissionListener.value);
@ -379,6 +388,7 @@ const generateMonthList = () => {
console.log("生成的月份列表:", monthList.value); console.log("生成的月份列表:", monthList.value);
}; };
const goDetail = (item) => { const goDetail = (item) => {
console.log(item);
// uni.sendNativeEvent('noticeBack', { // uni.sendNativeEvent('noticeBack', {
// msg: 'go' // msg: 'go'
// }, ret => { // }, ret => {
@ -388,7 +398,7 @@ const goDetail = (item) => {
const encoded = encodeURIComponent(item.path); const encoded = encodeURIComponent(item.path);
let imgPath=encodeURIComponent('https://doc.igandan.com/app/html/img/2016/20160714132557.png'); let imgPath=encodeURIComponent('https://doc.igandan.com/app/html/img/2016/20160714132557.png');
uni.navigateTo({ uni.navigateTo({
url: `/pages_app/webview/webview?url=${encoded}&sharetitle=${item.title}&bg=1&type=live_yugao&imgPath=${imgPath}&share=1&title=会议详情`, url: `/pages_app/webview/webview?url=${encoded}&sharetitle=${item.title}&bg=1&type=live_yugao&imgPath=${imgPath}&share=1&title=会议详情&tags=${item.tags}`,
}); });
}; };
const goBack = () => { const goBack = () => {
@ -631,6 +641,7 @@ const meetingListBySearch = async (isRefresh = false) => {
poster: item.liveimg, // 使 liveimg poster: item.liveimg, // 使 liveimg
time: timeStr, time: timeStr,
location: item.location || "线上", location: item.location || "线上",
tags: item.tags || '',
status: getStatusText(item.status), status: getStatusText(item.status),
// //
originalData: item, originalData: item,
@ -744,6 +755,7 @@ const getMeetingList = async (isRefresh = false) => {
liveurl: item.liveurl, liveurl: item.liveurl,
spareurl: item.spareurl, spareurl: item.spareurl,
path: item.path, path: item.path,
tags: item.tags || '',
status_code: item.status, status_code: item.status,
}; };
}); });

View File

@ -122,7 +122,7 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import { onShow } from "@dcloudio/uni-app"; import {onShow,onLoad,onBackPress } from "@dcloudio/uni-app";
import CustomTabbar from '@/components/tabBar/tabBar.vue'; import CustomTabbar from '@/components/tabBar/tabBar.vue';
import upImg from "@/static/cb_up.png" import upImg from "@/static/cb_up.png"
import downImg from "@/static/cb_up.png" import downImg from "@/static/cb_up.png"
@ -131,7 +131,6 @@
import api from "@/api/api.js" import api from "@/api/api.js"
import docUrl from '@/utils/docUrl.js'; import docUrl from '@/utils/docUrl.js';
import navTo from '@/utils/navTo.js'; import navTo from '@/utils/navTo.js';
import {onBackPress} from '@dcloudio/uni-app';
import navBar from "@/components/navBar/navBar.vue" import navBar from "@/components/navBar/navBar.vue"
import formatNumber from '@/utils/formatNumber.js'; import formatNumber from '@/utils/formatNumber.js';
const type=ref(1) const type=ref(1)
@ -139,7 +138,17 @@
plus.runtime.quit(); plus.runtime.quit();
return true; return true;
}); });
onLoad(() => {
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "患教文库",
},
},
(ret) => {
console.log(ret);
});
})
// //
const currentPage = ref(1); const currentPage = ref(1);
const pageSize = ref(10); const pageSize = ref(10);
@ -288,7 +297,7 @@
// //
if (article.path) { if (article.path) {
uni.navigateTo({ uni.navigateTo({
url: `/pages_app/webview/webviewClass?url=${encodeURIComponent(docUrl+article.path+'?fromtype=doctor')}&title=患教详情&uuid=${article.uuid}&sharetitle=${article.title}&summary=${article.summary}&type=huanjiao&imgPath=${encodeURIComponent(article.image)}` url: `/pages_app/webview/webviewClass?url=${encodeURIComponent(docUrl+article.path+'?fromtype=doctor')}&title=患教详情&uuid=${article.uuid}&sharetitle=${article.title}&summary=${article.summary}&type=huanjiao&imgPath=${encodeURIComponent(article.image)}&tags=${article.tags}`
}); });
} }
}; };

View File

@ -104,6 +104,7 @@ import unidialog from '@/components/dialog/dialog.vue';
const freeVisible = ref(false) const freeVisible = ref(false)
const freeContent = ref('') const freeContent = ref('')
const goods_order_id = ref('') const goods_order_id = ref('')
const goodsName = ref('');
import navTo from '@/utils/navTo'; import navTo from '@/utils/navTo';
const freeClose = () => { const freeClose = () => {
freeVisible.value = false freeVisible.value = false
@ -210,7 +211,8 @@ onLoad((opts) => {
console.log(22); console.log(22);
console.log(opts); console.log(opts);
goodsUuid.value = opts.goodsUuid goodsUuid.value = opts.goodsUuid
goodsNum.value = opts.goodsNum goodsNum.value = opts.goodsNum;
goodsName.value = opts.goodsName;
getAddress() getAddress()
}) })
@ -240,6 +242,20 @@ const submit = () => {
if (!/^1\d{10}$/.test(mobile.value)) return uni.showToast({ title: '请输入正确手机号', icon: 'none' }) if (!/^1\d{10}$/.test(mobile.value)) return uni.showToast({ title: '请输入正确手机号', icon: 'none' })
if (!regionText.value) return uni.showToast({ title: '请选择地址', icon: 'none' }) if (!regionText.value) return uni.showToast({ title: '请选择地址', icon: 'none' })
if (!detail.value) return uni.showToast({ title: '请输入详细地址', icon: 'none' }) if (!detail.value) return uni.showToast({ title: '请输入详细地址', icon: 'none' })
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "boint_jifengood",
page_type: "积分商城",
resource_name:goodsName.value,
event_val:0,
event_unit:'积分',
number:goodsNum.value,
belong:1,
},
},
(ret) => {
console.log(ret);
});
saveAddress(); saveAddress();
api.createGoodsOrder({ api.createGoodsOrder({
goodsUuid: goodsUuid.value, goodsUuid: goodsUuid.value,

View File

@ -105,7 +105,7 @@
// TODO: // TODO:
navTo({ navTo({
url:'/pages_app/buyUpan/address?goodsUuid='+goodsUuid.value+'&goodsNum='+quantity.value url:'/pages_app/buyUpan/address?goodsUuid='+goodsUuid.value+'&goodsNum='+quantity.value+'&goodsName='+goodsInfo.value.name
}) })
}; };

View File

@ -384,6 +384,20 @@ const downLoad = (item) => {
}); });
return; return;
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "magazine_donwload",
page_type: "诊疗指南",
resource_name:item.title,
belong:title.value,
number:1,
resource_option:item.tags
},
},
(ret) => {
console.log(ret);
});
addDownloadTask({ addDownloadTask({
url: docUrl + item.path, url: docUrl + item.path,
title: item.title, title: item.title,
@ -406,6 +420,18 @@ const viewGuideline = (cell) => {
console.log(downloadTasks.value); console.log(downloadTasks.value);
downloadTasks.value.forEach(item => { downloadTasks.value.forEach(item => {
if(item.id == cell.uuid) { if(item.id == cell.uuid) {
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "detail_page",
page_type: "诊疗指南",
resource_name:cell.title,
resource_option:cell.tags
},
},
(ret) => {
console.log(ret);
});
// if(isAndroid){ // if(isAndroid){
plus.runtime.openFile(item.localPath, function(e) { plus.runtime.openFile(item.localPath, function(e) {
console.log('打开成功'); console.log('打开成功');

View File

@ -82,6 +82,12 @@ onLoad((options) => {
if (options.returnTo) { if (options.returnTo) {
returnTo.value = decodeURIComponent(options.returnTo); returnTo.value = decodeURIComponent(options.returnTo);
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "常用银行卡",
},
});
}); });
onShow(() => { onShow(() => {
getBankCardList(); getBankCardList();

View File

@ -178,6 +178,14 @@
if(res.code==200){ if(res.code==200){
msgList.value.forEach(item => { msgList.value.forEach(item => {
if(item.id==id){ if(item.id==id){
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "read_message",
},
},
(ret) => {
console.log(ret);
});
item.is_read=1; item.is_read=1;
} }
}); });
@ -192,7 +200,17 @@
if (res.confirm) { if (res.confirm) {
api.appMesageRead().then(res => { api.appMesageRead().then(res => {
console.log(res); console.log(res);
getUnReadList(); getUnReadList();
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "clear_message",
},
},
(ret) => {
console.log(ret);
});
}); });
} }

View File

@ -81,6 +81,12 @@ onLoad((options) => {
if(options.from){ if(options.from){
from.value = options.from; from.value = options.from;
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "我的账户",
},
});
}); });
onBackPress(() => { onBackPress(() => {
if(!from.value){ if(!from.value){

View File

@ -178,6 +178,12 @@ const goBack = () => {
}; };
onLoad((options) => { onLoad((options) => {
from.value = options.from; from.value = options.from;
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "我的二维码",
},
});
}) })
// base64 html2canvas // base64 html2canvas

View File

@ -128,6 +128,12 @@ onLoad((options) => {
if(options.from){ if(options.from){
from.value = options.from; from.value = options.from;
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "我的课件",
},
});
}); });
onMounted(() => { onMounted(() => {
onRefresh(); onRefresh();

View File

@ -91,6 +91,12 @@ onLoad((options) => {
let userInfo= uni.getStorageSync('userInfo') let userInfo= uni.getStorageSync('userInfo')
user_uuid.value = userInfo.uuid; user_uuid.value = userInfo.uuid;
loadFirstTwoPages(); loadFirstTwoPages();
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "我的鲜花",
},
});
}); });
onBackPress(() => { onBackPress(() => {
if(!from.value){ if(!from.value){

View File

@ -208,6 +208,12 @@ onLoad((options) => {
if(options.from){ if(options.from){
from.value = options.from; from.value = options.from;
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "我的积分",
},
});
}); });
import navTo from "@/utils/navTo.js"; import navTo from "@/utils/navTo.js";
import nosigninImg from "@/static/sign_day_false.png" import nosigninImg from "@/static/sign_day_false.png"

View File

@ -250,6 +250,12 @@
if(options.from){ if(options.from){
from.value = options.from; from.value = options.from;
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "我的福利",
},
});
getWelfarePage(); getWelfarePage();
}); });
onHide(() => { onHide(() => {

View File

@ -139,6 +139,12 @@
}); });
onLoad((options) => { onLoad((options) => {
from.value = options.from; from.value = options.from;
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "利卡兑换",
},
});
}) })
const goWelfare = () => { const goWelfare = () => {
uni.setStorageSync('lookWelfare', 'useWelfare'); uni.setStorageSync('lookWelfare', 'useWelfare');

View File

@ -153,6 +153,15 @@
if(options.from){ if(options.from){
from.value = options.from; from.value = options.from;
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "肝胆新闻",
},
},
(ret) => {
console.log(ret);
});
}); });
onBackPress(() => { onBackPress(() => {
if(!from.value){ if(!from.value){

View File

@ -225,6 +225,15 @@
checkUser(); checkUser();
loadData(false); loadData(false);
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "肝胆课件",
},
},
(ret) => {
console.log(ret);
});
}) })
const goSearch = () => { const goSearch = () => {
uni.sendNativeEvent( uni.sendNativeEvent(

View File

@ -153,6 +153,7 @@ import isAndroid from "@/utils/platform.js";
const isFirstDownload = ref(false); const isFirstDownload = ref(false);
const path=ref(''); const path=ref('');
const from=ref(''); const from=ref('');
const tags = ref('');
const pptVisible = ref(false); const pptVisible = ref(false);
const nativeDownloadMaskView = ref(null); const nativeDownloadMaskView = ref(null);
const nativeDownloadPopupView = ref(null); const nativeDownloadPopupView = ref(null);
@ -640,7 +641,7 @@ onShow(() => {
console.log('canDownload'); console.log('canDownload');
console.log(canDownload.value); console.log(canDownload.value);
if(!canDownload.value){ if(!canDownload.value){
ganDanFileDetials(); ganDanFileDetials(true);
}else{ }else{
if(!hasDownload.value){ if(!hasDownload.value){
downloadGanDanFile('auto'); downloadGanDanFile('auto');
@ -991,6 +992,17 @@ const collection = () => {
title: "收藏成功", title: "收藏成功",
icon: "none", icon: "none",
}); });
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "collect",
page_type: "肝胆课件",
resource_name:shareTitle.value,
resource_option: tags.value,
},
},
(ret) => {
console.log(ret);
});
ganDanFileDetials(); ganDanFileDetials();
} }
}); });
@ -1154,19 +1166,45 @@ const downLoadByType=()=>{
const downloadGanDanFile = (type) => { const downloadGanDanFile = (type) => {
showPptDownloadTip(); showPptDownloadTip();
let order_id=''; let order_id='';
let event_val=0;
let event_unit='';
if(type=='free'){ if(type=='free'){
order_id='FREE'; order_id='FREE';
event_val=0;
event_unit='FREE';
} else if(type=='welfare'){ } else if(type=='welfare'){
order_id='USEWELFARENUM'; order_id='USEWELFARENUM';
event_val=0;
event_unit='USEWELFARENUM';
}else if(type=='freeRecord'){ }else if(type=='freeRecord'){
order_id='FREERECORD'; order_id='FREERECORD';
event_val=0;
event_unit='FREERECORD';
}else if(type=="auto"){ }else if(type=="auto"){
order_id= orderId.value; order_id= orderId.value;
event_val=orderInfo.value.price;
event_unit='分';
}else if(type=="reDownload"){ }else if(type=="reDownload"){
order_id=orderInfo.value.order.order_id+"&R"; order_id=orderInfo.value.order.order_id+"&R";
event_val=0;
event_unit='REDOWNLOAD';
} }
console.log('1218'); console.log('1218');
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "order_gdfile_download",
page_type: "肝胆课件",
resource_name:shareTitle.value,
resource_option: tags.value,
event_val:0,
event_unit:'',
number:1,
},
},
(ret) => {
console.log(ret);
});
api.downloadGanDanFileV2({ api.downloadGanDanFileV2({
file_uuid: uuid.value, file_uuid: uuid.value,
order_id: order_id, order_id: order_id,
@ -1310,11 +1348,25 @@ const base64ToFile=(base64Str, fileName, callback)=>{
const ganDanFileDetials = async () => { const ganDanFileDetials = async (flag = false) => {
const res = await api.ganDanFileDetials({ const res = await api.ganDanFileDetials({
file_uuid: uuid.value, file_uuid: uuid.value,
}); });
if (res.code == 200) {res.data if (res.code == 200) {
tags.value = res.data.tags?res.data.tags:'';
if(flag){
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "detail_page",
page_type: "肝胆课件",
resource_name:res.data.name,
resource_option: tags.value,
},
},
(ret) => {
console.log(ret);
});
}
orderInfo.value = res.data; orderInfo.value = res.data;
// //
shareTitle.value = res.data.name; shareTitle.value = res.data.name;
@ -1478,6 +1530,17 @@ const resumeDownloadingTasks = () => {
// ===== ===== // ===== =====
const shareToWechat = () => { const shareToWechat = () => {
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "share",
page_type: "肝胆课件",
resource_name:shareTitle.value,
resource_option: tags.value,
},
},
(ret) => {
console.log(ret);
});
uni.downloadFile({ uni.downloadFile({
url: 'https://doc.igandan.com/app/html/img/2016/20160714132557.png', url: 'https://doc.igandan.com/app/html/img/2016/20160714132557.png',
success: function (res) { success: function (res) {
@ -1560,6 +1623,17 @@ const shareToWechat = () => {
// ===== ===== // ===== =====
const shareToMoments = () => { const shareToMoments = () => {
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "share",
page_type: "肝胆课件",
resource_name:shareTitle.value,
resource_option: tags.value,
},
},
(ret) => {
console.log(ret);
});
uni.downloadFile({ uni.downloadFile({
url: 'https://doc.igandan.com/app/html/img/2016/20160714132557.png', url: 'https://doc.igandan.com/app/html/img/2016/20160714132557.png',
success: function (res) { success: function (res) {

View File

@ -3,7 +3,7 @@
<view class="status_bar"></view> <view class="status_bar"></view>
<uni-nav-bar <uni-nav-bar
left-icon="left" left-icon="left"
title="肝胆视频1" title="肝胆视频"
@clickLeft="goBack" @clickLeft="goBack"
color="#8B2316" color="#8B2316"
:border="false" :border="false"
@ -435,6 +435,15 @@ onLoad((options) => {
setTimeout(() => { setTimeout(() => {
loadCategoryVideos("all"); loadCategoryVideos("all");
}, 500); }, 500);
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "肝胆视频",
},
},
(ret) => {
console.log(ret);
});
}); });
// //
@ -692,7 +701,7 @@ const playVideo = (video) => {
const videoId = video.id || video.uuid; const videoId = video.id || video.uuid;
navTo({ navTo({
url: `/pages_app/videoDetail/videoDetail?id=${videoId}`, url: `/pages_app/videoDetail/videoDetail?id=${videoId}&tags=${video.tags}`,
}); });
}; };

View File

@ -273,6 +273,7 @@ import otherHost from "@/utils/otherHost";
const selectedPatients = ref([]); const selectedPatients = ref([]);
const video_uuid = ref(""); const video_uuid = ref("");
const videoInfo = ref({}); const videoInfo = ref({});
const tags = ref("");
const networkVisible = ref(false); const networkVisible = ref(false);
const networkContent = ref(""); const networkContent = ref("");
const pointVisible = ref(false); const pointVisible = ref(false);
@ -336,6 +337,7 @@ const startDownload = (index) => {
hasDownload.value = true; hasDownload.value = true;
isVideoDownloadRecord.value=true; isVideoDownloadRecord.value=true;
downLoadStatus.value = 'loading'; downLoadStatus.value = 'loading';
const task = uni.downloadFile({ const task = uni.downloadFile({
url: taskItem.url, url: taskItem.url,
success: (res1) => { success: (res1) => {
@ -471,6 +473,20 @@ const useWelfareNum = async () => {
if (res.code == 1) { if (res.code == 1) {
uni.showToast({ title: "使用次数成功", icon: "none" }); uni.showToast({ title: "使用次数成功", icon: "none" });
welfareNum.value--; welfareNum.value--;
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "viorder_deo_download",
page_type: "肝胆视频",
resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'',
event_unit:'免费次数',
number:1,
event_val:1,
},
},
(ret) => {
console.log(ret);
});
addDownloadTask({ addDownloadTask({
url: videoSrc.value, url: videoSrc.value,
id: video_uuid.value, id: video_uuid.value,
@ -487,9 +503,22 @@ const onVideoError = (e) => {
// }); // });
videoSrc.value= videoSrc.value.replace('.mp4', '.m3u8'); videoSrc.value= videoSrc.value.replace('.mp4', '.m3u8');
}; };
const videoDetail = async () => { const videoDetail = async (flag = false) => {
const res = await api.videoDetail({ video_uuid: video_uuid.value }); const res = await api.videoDetail({ video_uuid: video_uuid.value });
if (res.code == 200) { if (res.code == 200) {
if(flag) {
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "detail_page",
page_type: "肝胆视频",
resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:''
},
},
(ret) => {
console.log(ret);
});
}
const userInfo = uni.getStorageSync("userInfo"); const userInfo = uni.getStorageSync("userInfo");
videoInfo.value = res.video; videoInfo.value = res.video;
@ -519,6 +548,17 @@ const collection = async () => {
}); });
if (res.code == 200) { if (res.code == 200) {
uni.showToast({ title: "收藏成功", icon: "none" }); uni.showToast({ title: "收藏成功", icon: "none" });
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "collect",
page_type: "肝胆视频",
resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'',
},
},
(ret) => {
console.log(ret);
});
videoDetail(); videoDetail();
} }
}; };
@ -655,11 +695,10 @@ onShow(() => {
if (activeTab.value == "comment") { if (activeTab.value == "comment") {
videoCommentListV2(); videoCommentListV2();
} }
if(from.value != 'download') { if (from.value != "download") {
videoDetail(); videoDetail(true);
} }
uni.hideLoading(); uni.hideLoading();
}); });
const shareRef = ref(); const shareRef = ref();
@ -734,6 +773,18 @@ const shareToWechat = () => {
if(type.value == 'patientVideo') { if(type.value == 'patientVideo') {
addpoint(); addpoint();
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "share",
page_type: "肝胆视频",
resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'',
},
},
(ret) => {
console.log(ret);
});
// #ifdef APP-PLUS // #ifdef APP-PLUS
// 使 // 使
uni.downloadFile({ uni.downloadFile({
@ -834,6 +885,17 @@ const shareToMoments = () => {
if(type.value == 'patientVideo') { if(type.value == 'patientVideo') {
addpoint(); addpoint();
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "share",
page_type: "肝胆视频",
resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'',
},
},
(ret) => {
console.log(ret);
});
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.downloadFile({ uni.downloadFile({
url: isAndroid?docUrl + videoInfo.value.imgpath:'https://doc.igandan.com/app/html/img/2016/20160714132557.png', url: isAndroid?docUrl + videoInfo.value.imgpath:'https://doc.igandan.com/app/html/img/2016/20160714132557.png',
@ -944,6 +1006,9 @@ onLoad((options) => {
if(options.type) { if(options.type) {
type.value = options.type; type.value = options.type;
} }
if(options.tags) {
tags.value = options.tags;
}
uni.getSystemInfo({ uni.getSystemInfo({
success: function (res) { success: function (res) {
videoWidth.value = res.windowWidth; // videoWidth.value = res.windowWidth; //
@ -1008,6 +1073,20 @@ const payVideoDownload = async () => {
const res = await api.payVideoDownload({ video_uuid: video_uuid.value }); const res = await api.payVideoDownload({ video_uuid: video_uuid.value });
console.log(res); console.log(res);
if (res.code == 200) { if (res.code == 200) {
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "viorder_deo_download",
page_type: "肝胆视频",
resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'',
event_unit:'积分',
number:1,
event_val:videoInfo.value.point,
},
},
(ret) => {
console.log(ret);
});
addDownloadTask({ addDownloadTask({
url: videoSrc.value, url: videoSrc.value,
id: video_uuid.value, id: video_uuid.value,
@ -1089,6 +1168,17 @@ const addCommentV2 = async () => {
if (res.code == 200) { if (res.code == 200) {
uni.showToast({ title: "评论成功", icon: "none" }); uni.showToast({ title: "评论成功", icon: "none" });
commentText.value = ""; commentText.value = "";
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "comment",
page_type: "肝胆视频",
resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'',
},
},
(ret) => {
console.log(ret);
});
videoCommentListV2(); videoCommentListV2();
} }
}; };

View File

@ -74,6 +74,8 @@ const summary = ref("");
const shareLink = ref(""); const shareLink = ref("");
const shareImg = ref(""); const shareImg = ref("");
const shareTitle = ref(""); const shareTitle = ref("");
const type = ref("");
const tags = ref("");
const goBack = () => { const goBack = () => {
uni.navigateBack({ uni.navigateBack({
fail() { fail() {
@ -100,6 +102,12 @@ onLoad((query) => {
if (query.title) { if (query.title) {
title.value = query.title; title.value = query.title;
} }
if (query.tags) {
tags.value = query.tags;
}
if (query.type) {
type.value = query.type;
}
if (query.share == 1) { if (query.share == 1) {
canShare.value = true; canShare.value = true;
} }
@ -129,6 +137,18 @@ onLoad((query) => {
} else if (query.type == "live") { } else if (query.type == "live") {
shareTitle.value = "肝胆相照直播:" + query.sharetitle; shareTitle.value = "肝胆相照直播:" + query.sharetitle;
summary.value = shareTitle.value; summary.value = shareTitle.value;
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "detail_page",
page_type: "会议直播",
resource_name:shareTitle.value,
resource_option:tags.value,
},
},
(ret) => {
console.log(ret);
});
}else if(query.type=='news'){ }else if(query.type=='news'){
shareTitle.value = query.sharetitle; shareTitle.value = query.sharetitle;
summary.value =''; summary.value ='';
@ -668,6 +688,16 @@ function closeNativePopup() {
// //
const shareToWechat = () => { const shareToWechat = () => {
// #ifdef APP-PLUS // #ifdef APP-PLUS
if(type.value == "live"){
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "share",
page_type: "会议直播",
resource_name:shareTitle.value,
resource_option:tags.value,
},
});
}
// 使 // 使
uni.downloadFile({ uni.downloadFile({
url: shareImg.value, url: shareImg.value,
@ -770,6 +800,16 @@ onUnload(() => {
// //
const shareToMoments = () => { const shareToMoments = () => {
// #ifdef APP-PLUS // #ifdef APP-PLUS
if(type.value == "live"){
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "share",
page_type: "会议直播",
resource_name:shareTitle.value,
resource_option:tags.value,
},
});
}
uni.downloadFile({ uni.downloadFile({
url: shareImg.value, url: shareImg.value,
success: function (res) { success: function (res) {

View File

@ -132,6 +132,7 @@ const webviewTopPx = ref(88);
const webviewBottomPx = ref(WEBVIEW_BOTTOM_PX); const webviewBottomPx = ref(WEBVIEW_BOTTOM_PX);
const usePlusWebview = ref(false); const usePlusWebview = ref(false);
const appPlusWebview = ref(null); const appPlusWebview = ref(null);
const tags = ref('');
const webviewStyles = ref({ const webviewStyles = ref({
width: "100%", width: "100%",
@ -221,9 +222,21 @@ const getCollect = () => {
}); });
if (type.value == "huanjiao_news") { if (type.value == "huanjiao_news") {
getNewsDetail(); getNewsDetail();
} else { } else {
getKePuCollection(); getKePuCollection();
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "collect",
page_type: type.value == "huanjiao_news" ? "肝胆新闻" : "患教文库",
resource_name:shareTitle.value,
resource_option:tags.value,
},
},
(ret) => {
console.log(ret);
});
} }
}); });
}; };
@ -274,9 +287,21 @@ const getAgree = () => {
.then((res) => { .then((res) => {
if (type.value == "huanjiao_news") { if (type.value == "huanjiao_news") {
getNewsDetail(); getNewsDetail();
} else { } else {
getKePuCollection(); getKePuCollection();
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "like",
page_type: type.value == "huanjiao_news" ? "肝胆新闻" : "患教文库",
resource_name:shareTitle.value,
resource_option:tags.value,
},
},
(ret) => {
console.log(ret);
});
}); });
}; };
const getDisagree = () => { const getDisagree = () => {
@ -305,7 +330,7 @@ const getOutRead = () => {
console.log(res); console.log(res);
}); });
}; };
const getNewsDetail = () => { const getNewsDetail = (flag=false) => {
api api
.getNewsDetail({ .getNewsDetail({
uuid: uuid.value, uuid: uuid.value,
@ -313,6 +338,20 @@ const getNewsDetail = () => {
.then((res) => { .then((res) => {
console.log(res); console.log(res);
if (res.code == 200) { if (res.code == 200) {
tags.value = res.data.tags?res.data.tags:'';
if(flag){
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "detail_page",
page_type: "肝胆新闻",
resource_name:shareTitle.value,
resource_option:tags.value,
},
},
(ret) => {
console.log(ret);
});
}
isCollection.value = res.data.isCollection; isCollection.value = res.data.isCollection;
readnum.value = res.data.readnum; readnum.value = res.data.readnum;
agreenum.value = res.data.agreenum; agreenum.value = res.data.agreenum;
@ -327,7 +366,7 @@ const fromatNumber = (number) => {
return (number / 10000).toFixed(1) + "w"; return (number / 10000).toFixed(1) + "w";
} }
}; };
const getKePuCollection = () => { const getKePuCollection = (flag=false) => {
api api
.getKePuCollection({ .getKePuCollection({
uuid: uuid.value, uuid: uuid.value,
@ -336,6 +375,19 @@ const getKePuCollection = () => {
.then((res) => { .then((res) => {
console.log(res.data); console.log(res.data);
if (res.code == 200) { if (res.code == 200) {
if(flg){
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "detail_page",
page_type: "患教文库",
resource_name:shareTitle.value,
resource_option:tags.value,
},
},
(ret) => {
console.log(ret);
});
}
isCollection.value = res.data.isCollection; isCollection.value = res.data.isCollection;
readnum.value = res.data.readnum; readnum.value = res.data.readnum;
agreenum.value = res.data.agreenum; agreenum.value = res.data.agreenum;
@ -442,6 +494,9 @@ onLoad((query) => {
if (query.type) { if (query.type) {
type.value = query.type; type.value = query.type;
} }
if (query.tags) {
tags.value = query.tags;
}
user_uuid.value = userInfo.uuid; user_uuid.value = userInfo.uuid;
if (query.title) { if (query.title) {
title.value = query.title; title.value = query.title;
@ -458,9 +513,9 @@ onLoad((query) => {
backgroundColor.value = "linear-gradient(to bottom,'#fff' , '#398775')"; backgroundColor.value = "linear-gradient(to bottom,'#fff' , '#398775')";
} }
if (type.value == "huanjiao_news") { if (type.value == "huanjiao_news") {
getNewsDetail(); getNewsDetail(true);
} else { } else {
getKePuCollection(); getKePuCollection(true);
} }
getOutRead(); getOutRead();
@ -1303,6 +1358,18 @@ function closeSelectNativePopup() {
// //
const shareToWechat = () => { const shareToWechat = () => {
addpoint(); addpoint();
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "share",
page_type: type.value == "huanjiao_news" ? "肝胆新闻" : "患教文库",
resource_name:shareTitle.value,
resource_option:tags.value,
},
},
(ret) => {
console.log(ret);
});
// #ifdef APP-PLUS // #ifdef APP-PLUS
// 使 // 使
uni.downloadFile({ uni.downloadFile({
@ -1421,6 +1488,18 @@ onUnload(() => {
// //
const shareToMoments = () => { const shareToMoments = () => {
addpoint(); addpoint();
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "share",
page_type: type.value == "huanjiao_news" ? "肝胆新闻" : "患教文库",
resource_name:shareTitle.value,
resource_option:tags.value,
},
},
(ret) => {
console.log(ret);
});
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.downloadFile({ uni.downloadFile({
url: shareImg.value, url: shareImg.value,

View File

@ -22,7 +22,7 @@
<view class="divider"></view> <view class="divider"></view>
<view class="filter-item" @click="showFilterPopup"> <view class="filter-item" @click="showFilterPopup">
<text :class="{active: keywords}">筛选</text> <text :class="{ active: keywords }">筛选</text>
<up-image <up-image
:src="keywords ? filterOn : filter" :src="keywords ? filterOn : filter"
width="36rpx" width="36rpx"
@ -50,12 +50,20 @@
:errorIcon="lazyImg" :errorIcon="lazyImg"
:lazy-load="true" :lazy-load="true"
> >
<template #error> <template #error>
<image :src="lazyImg" class="category-icon" mode="widthFix"></image> <image
</template> :src="lazyImg"
<template v-slot:loading> class="category-icon"
<image :src="lazyImg" class="category-icon" mode="widthFix"></image> mode="widthFix"
</template> ></image>
</template>
<template v-slot:loading>
<image
:src="lazyImg"
class="category-icon"
mode="widthFix"
></image>
</template>
</up-image> </up-image>
</view> </view>
<view class="item-content"> <view class="item-content">
@ -293,7 +301,7 @@
<script setup> <script setup>
import { ref, onMounted } from "vue"; import { ref, onMounted } from "vue";
import { onShow, onBackPress,onLoad} from "@dcloudio/uni-app"; import { onShow, onBackPress, onLoad } from "@dcloudio/uni-app";
import upImg from "@/static/cb_up.png"; import upImg from "@/static/cb_up.png";
import downImg from "@/static/cb_up.png"; import downImg from "@/static/cb_up.png";
import filter from "@/static/cb_screen_no.png"; import filter from "@/static/cb_screen_no.png";
@ -341,9 +349,7 @@ onBackPress(() => {
return true; return true;
}); });
// //
onMounted(() => { onMounted(() => {});
});
const showFilter = ref(false); const showFilter = ref(false);
// //
const showFilterPopup = () => { const showFilterPopup = () => {
@ -395,32 +401,40 @@ const confirmFilter = throttle(() => {
isFilterActive.value = true; isFilterActive.value = true;
hideFilterPopup(); hideFilterPopup();
const selectedTags = filterTags.value.filter((tag) => tag.selected); const selectedTags = filterTags.value.filter((tag) => tag.selected);
let words=""; let words = "";
console.log("选中的筛选标签:", selectedTags); console.log("选中的筛选标签:", selectedTags);
for (let i = 0; i < selectedTags.length; i++) { for (let i = 0; i < selectedTags.length; i++) {
if (words) { if (words) {
words += "," + selectedTags[i].NAME; words += "," + selectedTags[i].NAME;
} else { } else {
words= selectedTags[i].NAME; words = selectedTags[i].NAME;
} }
} }
keywords.value=words; keywords.value = words;
if(!keywords.value) return; if (!keywords.value) return;
console.log(1111111); console.log(1111111);
console.log('看看执行了几次'); console.log("看看执行了几次");
navTo({ navTo({
url: "/pages_app/hot/hot?keywords="+encodeURIComponent(keywords.value) url: "/pages_app/hot/hot?keywords=" + encodeURIComponent(keywords.value),
}); });
// //
},1000); }, 1000);
onLoad(() => { onLoad(() => {
loadGuideTypes(); loadGuideTypes();
loadSearchLibrary(); loadSearchLibrary();
loadGuideTags(); loadGuideTags();
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "诊疗指南",
},
},
(ret) => {
console.log(ret);
});
}); });
onShow(() => { onShow(() => {});
});
// guideType // guideType
const loadGuideTypes = async () => { const loadGuideTypes = async () => {
@ -458,14 +472,13 @@ const loadGuideTags = async () => {
const res = await api.guideTag({ const res = await api.guideTag({
type: 3, type: 3,
}); });
if (res && res.code === 200 && res.data) { if (res && res.code === 200 && res.data) {
// API // API
filterTags.value = res.data.map((tag) => ({ filterTags.value = res.data.map((tag) => ({
...tag, ...tag,
selected: false, selected: false,
})); }));
} }
} catch (e) { } catch (e) {
console.error("加载指南标签失败:", e); console.error("加载指南标签失败:", e);
@ -670,7 +683,7 @@ $accent-color: #4a90e2;
gap: 5px; gap: 5px;
.search-text { .search-text {
font-size:36rpx; font-size: 36rpx;
color: $gray-medium; color: $gray-medium;
} }
} }
@ -690,13 +703,12 @@ $accent-color: #4a90e2;
gap: 3px; gap: 3px;
font-size: 36rpx; font-size: 36rpx;
color: #999; color: #999;
text{ text {
margin-top:-1rpx; margin-top: -1rpx;
&.active { &.active {
color: #8b2316; color: #8b2316;
}
} }
}
} }
} }
@ -1148,7 +1160,7 @@ $accent-color: #4a90e2;
.filter-tags { .filter-tags {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-bottom: 60rpx; margin-bottom: 60rpx;
max-height: 65vh; max-height: 65vh;
overflow-y: auto; overflow-y: auto;
@ -1159,7 +1171,7 @@ $accent-color: #4a90e2;
padding: 8rpx 0; /* 去掉左右padding仅保留上下 */ padding: 8rpx 0; /* 去掉左右padding仅保留上下 */
border-radius: 30rpx; border-radius: 30rpx;
font-size: 26rpx; font-size: 26rpx;
margin:8rpx 5rpx; margin: 8rpx 5rpx;
border: 2rpx solid #efefef; border: 2rpx solid #efefef;
transition: all 0.3s ease; transition: all 0.3s ease;
width: 152rpx; /* 固定宽度 */ width: 152rpx; /* 固定宽度 */

View File

@ -460,6 +460,19 @@ const downLoad = (item) => {
}); });
return; return;
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "magazine_donwload",
page_type: "诊疗指南",
resource_name:item.title,
belong:title.value,
number:1,
resource_option:item.tags
},
},
(ret) => {
console.log(ret);
});
addDownloadTask({ addDownloadTask({
url: docUrl + item.path, url: docUrl + item.path,
title: item.title, title: item.title,
@ -485,6 +498,17 @@ const viewGuideline = (cell) => {
if(item.id == cell.uuid) { if(item.id == cell.uuid) {
console.log(2222222222); console.log(2222222222);
console.log(item.localPath); console.log(item.localPath);
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "detail_page",
page_type: "诊疗指南",
resource_name:cell.title,
resource_option:cell.tags
},
},
(ret) => {
console.log(ret);
});
// if(isAndroid){ // if(isAndroid){
plus.runtime.openFile(item.localPath, function(e) { plus.runtime.openFile(item.localPath, function(e) {
console.log('打开成功'); console.log('打开成功');

View File

@ -284,6 +284,13 @@ onLoad((options) => {
const expertUuid = userInfo.uuid; const expertUuid = userInfo.uuid;
shareLink.value = other_host+'/wxPatient/index.htm#/outPatient?link=share&expertUuid='+expertUuid+'&from=doctor' shareLink.value = other_host+'/wxPatient/index.htm#/outPatient?link=share&expertUuid='+expertUuid+'&from=doctor'
SHARE_TITLE.value = userInfo.realName+'医生门诊详情' SHARE_TITLE.value = userInfo.realName+'医生门诊详情'
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "出/停诊公告",
},
});
} catch (error) { } catch (error) {
console.log(error) console.log(error)
} }

View File

@ -141,7 +141,8 @@ const email = ref('')
const editingId = ref(null) const editingId = ref(null)
const goodsUuid = ref('') const goodsUuid = ref('')
const type = ref(1) const type = ref(1)
const goodsNum = ref(1) const goodsNum = ref(1);
const goodsName = ref('');
const goBack = () => uni.navigateBack() const goBack = () => uni.navigateBack()
// [{code,label,value,children:[...] }...] // [{code,label,value,children:[...] }...]
@ -213,6 +214,7 @@ onLoad((opts) => {
goodsUuid.value = opts.goodsUuid goodsUuid.value = opts.goodsUuid
goodsNum.value = opts.goodsNum; goodsNum.value = opts.goodsNum;
type.value = opts.type; type.value = opts.type;
goodsName.value = opts.goodsName;
getAddress() getAddress()
}) })
const saveAddress = () => { const saveAddress = () => {
@ -256,6 +258,20 @@ const submit = () => {
address: regionText.value+detail.value address: regionText.value+detail.value
}).then(res => { }).then(res => {
if(res.code == 1 || res.code == 200){ if(res.code == 1 || res.code == 200){
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "boint_jifengood",
page_type: "积分商城",
resource_name:goodsName.value,
event_val:points.value,
event_unit:'积分',
number:goodsNum.value,
belong:type.value,
},
},
(ret) => {
console.log(ret);
});
points.value = res.data.pionts; points.value = res.data.pionts;
freeVisible.value = true freeVisible.value = true
goods_order_id.value = res.data.goods_order_id goods_order_id.value = res.data.goods_order_id

View File

@ -146,7 +146,7 @@ const goAddress = () => {
freeVisible.value = true freeVisible.value = true
}else{ }else{
uni.navigateTo({ uni.navigateTo({
url: '/pages_goods/exchange/address?goodsUuid='+id.value+'&type='+type.value+'&goodsNum='+qty.value url: '/pages_goods/exchange/address?goodsUuid='+id.value+'&type='+type.value+'&goodsNum='+qty.value+'&goodsName='+title.value
}) })
} }

View File

@ -263,6 +263,15 @@ onBackPress(() => {
if(opts.name){ if(opts.name){
name.value = opts.name; name.value = opts.name;
} }
uni.sendNativeEvent("portraitReport",{
msg:{
event_nickname: "list_page",
page_type: "积分商城",
},
},
(ret) => {
console.log(ret);
});
}); });
// //
const goBack = () => { const goBack = () => {

View File

@ -32,7 +32,7 @@
"**/*.vue", "**/*.vue",
"**/*.js", "**/*.js",
"**/*.jsx" "**/*.jsx"
], , "pages_app/patientMsg/patientMsg.nvue", "pages_app/patientMsg/patientMsg.nvue", "pages_app/patientMsg/patientMsg.nvue" ],
"exclude": [ "exclude": [
"node_modules", "node_modules",
"dist", "dist",

View File

@ -1,4 +1,4 @@
//let BASE_URL='https://dev-app.igandan.com/app'; let BASE_URL='https://dev-app.igandan.com/app';
let BASE_URL='https://app.igandan.com/app' //let BASE_URL='https://app.igandan.com/app'
export default BASE_URL export default BASE_URL

View File

@ -1,5 +1,5 @@
//let DOC_URL='https://dev-doc.igandan.com/app/'; let DOC_URL='https://dev-doc.igandan.com/app/';
let DOC_URL='https://doc.igandan.com/app/' //let DOC_URL='https://doc.igandan.com/app/'
// if(app.globalData.apiHost.indexOf('dev')>-1){ // if(app.globalData.apiHost.indexOf('dev')>-1){
// DOC_URL='https://dev-doc.igandan.com/app/' // DOC_URL='https://dev-doc.igandan.com/app/'
// }else{ // }else{

View File

@ -1,5 +1,5 @@
//let OTHER_HOST='https://dev-wx.igandan.com' let OTHER_HOST='https://dev-wx.igandan.com'
let OTHER_HOST='https://wx.igandan.com' //let OTHER_HOST='https://wx.igandan.com'
//const app = getApp({allowDefault: true}); //const app = getApp({allowDefault: true});
// if(app.globalData.apiHost && app.globalData.apiHost.indexOf('dev')>-1){ // if(app.globalData.apiHost && app.globalData.apiHost.indexOf('dev')>-1){
// OTHER_HOST='https://dev-wx.igandan.com' // OTHER_HOST='https://dev-wx.igandan.com'

View File

@ -1,2 +1,2 @@
const version="4.2.2" const version="4.2.3"
export default version export default version