3.30解决bug

This commit is contained in:
zoujiandong 2026-03-30 16:12:38 +08:00
parent e3a852cb43
commit 7180e176eb
28 changed files with 429 additions and 425 deletions

View File

@ -2,8 +2,8 @@
"name" : "肝胆相照专家版", "name" : "肝胆相照专家版",
"appid" : "__UNI__89F511F", "appid" : "__UNI__89F511F",
"description" : "", "description" : "",
"versionName" : "4.2.3", "versionName" : "4.2.4",
"versionCode" : 423, "versionCode" : 424,
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {
/* 5+App */ /* 5+App */

View File

@ -139,15 +139,15 @@
return true; return true;
}); });
onLoad(() => { onLoad(() => {
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "list_page", // event_nickname: "list_page",
page_type: "患教文库", // page_type: "",
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
}) })
// //
const currentPage = ref(1); const currentPage = ref(1);

View File

@ -242,20 +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",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "boint_jifengood", // event_nickname: "boint_jifengood",
page_type: "积分商城", // page_type: "",
resource_name:goodsName.value, // resource_name:goodsName.value,
event_val:0, // event_val:0,
event_unit:'积分', // event_unit:'',
number:goodsNum.value, // number:goodsNum.value,
belong:'U盘', // belong:'U',
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
saveAddress(); saveAddress();
api.createGoodsOrder({ api.createGoodsOrder({
goodsUuid: goodsUuid.value, goodsUuid: goodsUuid.value,

View File

@ -385,19 +385,19 @@ const downLoad = (item) => {
return; return;
} }
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "magazine_donwload", // event_nickname: "magazine_donwload",
page_type: "诊疗指南", // page_type: "",
resource_name:item.title, // resource_name:item.title,
belong:title.value, // belong:title.value,
number:1, // number:1,
resource_option:item.tags // resource_option:item.tags
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
addDownloadTask({ addDownloadTask({
url: docUrl + item.path, url: docUrl + item.path,
title: item.title, title: item.title,
@ -421,17 +421,17 @@ const viewGuideline = (cell) => {
downloadTasks.value.forEach(item => { downloadTasks.value.forEach(item => {
if(item.id == cell.uuid) { if(item.id == cell.uuid) {
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "detail_page", // event_nickname: "detail_page",
page_type: "诊疗指南", // page_type: "",
resource_name:cell.title, // resource_name:cell.title,
resource_option:cell.tags // resource_option:cell.tags
}, // },
}, // },
(ret) => { // (ret) => {
console.log(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,12 +82,12 @@ onLoad((options) => {
if (options.returnTo) { if (options.returnTo) {
returnTo.value = decodeURIComponent(options.returnTo); returnTo.value = decodeURIComponent(options.returnTo);
} }
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "list_page", // event_nickname: "list_page",
page_type: "常用银行卡", // page_type: "",
}, // },
}); // });
}); });
onShow(() => { onShow(() => {
getBankCardList(); getBankCardList();

View File

@ -178,14 +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",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "read_message", // event_nickname: "read_message",
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
item.is_read=1; item.is_read=1;
} }
}); });

View File

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

View File

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

View File

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

View File

@ -91,12 +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",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "list_page", // event_nickname: "list_page",
page_type: "我的鲜花", // page_type: "",
}, // },
}); // });
}); });
onBackPress(() => { onBackPress(() => {
if(!from.value){ if(!from.value){

View File

@ -208,12 +208,12 @@ onLoad((options) => {
if(options.from){ if(options.from){
from.value = options.from; from.value = options.from;
} }
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "list_page", // event_nickname: "list_page",
page_type: "我的积分", // 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,12 +250,12 @@
if(options.from){ if(options.from){
from.value = options.from; from.value = options.from;
} }
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "list_page", // event_nickname: "list_page",
page_type: "我的福利", // page_type: "",
}, // },
}); // });
getWelfarePage(); getWelfarePage();
}); });
onHide(() => { onHide(() => {

View File

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

View File

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

View File

@ -25,10 +25,10 @@
</view> </view>
</view> </view>
<view class="form-block" @click="goGroup"> <view class="form-block" @click="goGroup">
<view class="label">分组</view> <view class="label" @click.stop="goGroup">分组</view>
<view class="iptbox readonly"> <view class="iptbox readonly">
<input class="input readonly-input" v-model.trim="groupName" :placeholder="groupInfo.name || '通过分组给患者分类'" placeholder-class="ph" maxlength="20" readonly disabled/> <view class="input readonly-input" :class="{'ph':!groupInfo.name}" @click.stop="goGroup">{{groupInfo.name || '通过分组给患者分类'}}</view>
<uni-icons type="right" size="20" color="#666"></uni-icons> <uni-icons type="right" size="20" color="#666" @click.stop="goGroup"></uni-icons>
</view> </view>
</view> </view>
<view class="form-block"> <view class="form-block">
@ -60,6 +60,7 @@
const noteLength = computed(() => (note.value || '').length) const noteLength = computed(() => (note.value || '').length)
const isRemarkEmpty = computed(() => !(remark.value || '').trim()) const isRemarkEmpty = computed(() => !(remark.value || '').trim())
const nickname = ref('') const nickname = ref('')
const tempName=ref('')
const goBack = () => { const goBack = () => {
uni.navigateBack() uni.navigateBack()
@ -88,7 +89,7 @@
patientCardData.value = res patientCardData.value = res
groupInfo.value = res.group || {} groupInfo.value = res.group || {}
// //
remark.value = res.group?.nickname || '' remark.value = res.group?.nickname || remark.value
note.value = res.group?.note || '' note.value = res.group?.note || ''
groupName.value = res.group?.name || '' groupName.value = res.group?.name || ''
} }
@ -179,7 +180,10 @@
color: #333; color: #333;
&.readonly-input { &.readonly-input {
background: transparent; background: transparent;
color: #999; color: #333;
}
&.ph{
color: #808080;
} }
} }
.textarea{ .textarea{

View File

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

View File

@ -992,17 +992,17 @@ const collection = () => {
title: "收藏成功", title: "收藏成功",
icon: "none", icon: "none",
}); });
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "collect", // event_nickname: "collect",
page_type: "肝胆课件", // page_type: "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option: tags.value, // resource_option: tags.value,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
ganDanFileDetials(); ganDanFileDetials();
} }
}); });
@ -1191,20 +1191,20 @@ const downloadGanDanFile = (type) => {
} }
console.log('1218'); console.log('1218');
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "order_gdfile_download", // event_nickname: "order_gdfile_download",
page_type: "肝胆课件", // page_type: "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option: tags.value, // resource_option: tags.value,
event_val:event_val, // event_val:event_val,
event_unit:'分', // event_unit:'',
number:1, // number:1,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
api.downloadGanDanFileV2({ api.downloadGanDanFileV2({
file_uuid: uuid.value, file_uuid: uuid.value,
order_id: order_id, order_id: order_id,
@ -1366,23 +1366,23 @@ const ganDanFileDetials = async (flag = false) => {
order.value = res.data.order; order.value = res.data.order;
let money = res.data.price/ 100; let money = res.data.price/ 100;
price.value = money > 1 ? money.toFixed(1) : money.toFixed(2); price.value = money > 1 ? money.toFixed(1) : money.toFixed(2);
if(flag){ // if(flag){
try { // try {
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "detail_page", // event_nickname: "detail_page",
page_type: "肝胆课件", // page_type: "",
resource_name:res.data.name, // resource_name:res.data.name,
resource_option: tags.value, // resource_option: tags.value,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
} catch (error) { // } catch (error) {
} // }
} // }
downloadTasks.value.forEach(item => { downloadTasks.value.forEach(item => {
if (item.id == uuid.value) { if (item.id == uuid.value) {
uni.getSavedFileInfo({ uni.getSavedFileInfo({
@ -1534,17 +1534,17 @@ const resumeDownloadingTasks = () => {
// ===== ===== // ===== =====
const shareToWechat = () => { const shareToWechat = () => {
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "share", // event_nickname: "share",
page_type: "肝胆课件", // page_type: "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option: tags.value, // resource_option: tags.value,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(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) {
@ -1627,17 +1627,17 @@ const shareToWechat = () => {
// ===== ===== // ===== =====
const shareToMoments = () => { const shareToMoments = () => {
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "share", // event_nickname: "share",
page_type: "肝胆课件", // page_type: "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option: tags.value, // resource_option: tags.value,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(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

@ -435,15 +435,15 @@ onLoad((options) => {
setTimeout(() => { setTimeout(() => {
loadCategoryVideos("all"); loadCategoryVideos("all");
}, 500); }, 500);
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "list_page", // event_nickname: "list_page",
page_type: "肝胆视频", // page_type: "",
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
}); });
// //

View File

@ -473,20 +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",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "viorder_deo_download", // event_nickname: "viorder_deo_download",
page_type: type.value == 'patientVideo' ? '患教视频' : "肝胆视频", // page_type: type.value == 'patientVideo' ? '' : "",
resource_name:videoInfo.value.name, // resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'', // resource_option:tags.value?tags.value:'',
event_unit:'分', // event_unit:'',
number:1, // number:1,
event_val:0, // event_val:0,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
addDownloadTask({ addDownloadTask({
url: videoSrc.value, url: videoSrc.value,
id: video_uuid.value, id: video_uuid.value,
@ -506,19 +506,19 @@ const onVideoError = (e) => {
const videoDetail = async (flag = false) => { 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) { // if(flag) {
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "detail_page", // event_nickname: "detail_page",
page_type: type.value == 'patientVideo' ? '患教视频' : "肝胆视频", // page_type: type.value == 'patientVideo' ? '' : "",
resource_name:videoInfo.value.name, // resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'' // resource_option:tags.value?tags.value:''
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
} // }
const userInfo = uni.getStorageSync("userInfo"); const userInfo = uni.getStorageSync("userInfo");
videoInfo.value = res.video; videoInfo.value = res.video;
@ -548,17 +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",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "collect", // event_nickname: "collect",
page_type: type.value == 'patientVideo' ? '患教视频' : "肝胆视频", // page_type: type.value == 'patientVideo' ? '' : "",
resource_name:videoInfo.value.name, // resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'', // resource_option:tags.value?tags.value:'',
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
videoDetail(); videoDetail();
} }
}; };
@ -774,17 +774,17 @@ const shareToWechat = () => {
addpoint(); addpoint();
} }
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "share", // event_nickname: "share",
page_type: type.value == 'patientVideo' ? '患教视频' : "肝胆视频", // page_type: type.value == 'patientVideo' ? '' : "",
resource_name:videoInfo.value.name, // resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'', // resource_option:tags.value?tags.value:'',
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
// #ifdef APP-PLUS // #ifdef APP-PLUS
// 使 // 使
uni.downloadFile({ uni.downloadFile({
@ -885,17 +885,17 @@ const shareToMoments = () => {
if(type.value == 'patientVideo') { if(type.value == 'patientVideo') {
addpoint(); addpoint();
} }
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "share", // event_nickname: "share",
page_type: type.value == 'patientVideo' ? '患教视频' : "肝胆视频", // page_type: type.value == 'patientVideo' ? '' : "",
resource_name:videoInfo.value.name, // resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'', // resource_option:tags.value?tags.value:'',
}, // },
}, // },
(ret) => { // (ret) => {
console.log(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',
@ -1073,20 +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",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "viorder_deo_download", // event_nickname: "viorder_deo_download",
page_type: type.value == 'patientVideo' ? '患教视频' : "肝胆视频", // page_type: type.value == 'patientVideo' ? '' : "",
resource_name:videoInfo.value.name, // resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'', // resource_option:tags.value?tags.value:'',
event_unit:'积分', // event_unit:'',
number:1, // number:1,
event_val:videoInfo.value.point, // event_val:videoInfo.value.point,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
addDownloadTask({ addDownloadTask({
url: videoSrc.value, url: videoSrc.value,
id: video_uuid.value, id: video_uuid.value,
@ -1168,17 +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",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "comment", // event_nickname: "comment",
page_type: type.value == 'patientVideo' ? '患教视频' : "肝胆视频", // page_type: type.value == 'patientVideo' ? '' : "",
resource_name:videoInfo.value.name, // resource_name:videoInfo.value.name,
resource_option:tags.value?tags.value:'', // resource_option:tags.value?tags.value:'',
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
videoCommentListV2(); videoCommentListV2();
} }
}; };

View File

@ -138,17 +138,17 @@ onLoad((query) => {
shareTitle.value = "肝胆相照直播:" + query.sharetitle; shareTitle.value = "肝胆相照直播:" + query.sharetitle;
summary.value = shareTitle.value; summary.value = shareTitle.value;
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "detail_page", // event_nickname: "detail_page",
page_type: "会议直播", // page_type: "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option:tags.value, // resource_option:tags.value,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(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 ='';
@ -689,14 +689,14 @@ function closeNativePopup() {
const shareToWechat = () => { const shareToWechat = () => {
// #ifdef APP-PLUS // #ifdef APP-PLUS
if(type.value == "live"){ if(type.value == "live"){
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "share", // event_nickname: "share",
page_type: "会议直播", // page_type: "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option:tags.value, // resource_option:tags.value,
}, // },
}); // });
} }
// 使 // 使
uni.downloadFile({ uni.downloadFile({
@ -801,14 +801,14 @@ onUnload(() => {
const shareToMoments = () => { const shareToMoments = () => {
// #ifdef APP-PLUS // #ifdef APP-PLUS
if(type.value == "live"){ if(type.value == "live"){
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "share", // event_nickname: "share",
page_type: "会议直播", // page_type: "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option:tags.value, // resource_option:tags.value,
}, // },
}); // });
} }
uni.downloadFile({ uni.downloadFile({
url: shareImg.value, url: shareImg.value,

View File

@ -226,17 +226,17 @@ const getCollect = () => {
} else { } else {
getKePuCollection(); getKePuCollection();
} }
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "collect", // event_nickname: "collect",
page_type: type.value == "huanjiao_news" ? "肝胆新闻" : "患教文库", // page_type: type.value == "huanjiao_news" ? "" : "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option:tags.value, // resource_option:tags.value,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
} }
}); });
}; };
@ -291,17 +291,17 @@ const getAgree = () => {
} else { } else {
getKePuCollection(); getKePuCollection();
} }
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "like", // event_nickname: "like",
page_type: type.value == "huanjiao_news" ? "肝胆新闻" : "患教文库", // page_type: type.value == "huanjiao_news" ? "" : "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option:tags.value, // resource_option:tags.value,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
}); });
}; };
const getDisagree = () => { const getDisagree = () => {
@ -340,17 +340,17 @@ const getNewsDetail = (flag=false) => {
if (res.code == 200) { if (res.code == 200) {
tags.value = res.data.tags?res.data.tags:''; tags.value = res.data.tags?res.data.tags:'';
if(flag){ if(flag){
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "detail_page", // event_nickname: "detail_page",
page_type: "肝胆新闻", // page_type: "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option:tags.value, // resource_option:tags.value,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
} }
isCollection.value = res.data.isCollection; isCollection.value = res.data.isCollection;
readnum.value = res.data.readnum; readnum.value = res.data.readnum;
@ -376,17 +376,17 @@ const getKePuCollection = (flag=false) => {
console.log(res.data); console.log(res.data);
if (res.code == 200) { if (res.code == 200) {
if(flag){ if(flag){
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "detail_page", // event_nickname: "detail_page",
page_type: "患教文库", // page_type: "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option:tags.value, // resource_option:tags.value,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
} }
isCollection.value = res.data.isCollection; isCollection.value = res.data.isCollection;
readnum.value = res.data.readnum; readnum.value = res.data.readnum;
@ -1359,17 +1359,17 @@ function closeSelectNativePopup() {
const shareToWechat = () => { const shareToWechat = () => {
addpoint(); addpoint();
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "share", // event_nickname: "share",
page_type: type.value == "huanjiao_news" ? "肝胆新闻" : "患教文库", // page_type: type.value == "huanjiao_news" ? "" : "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option:tags.value, // resource_option:tags.value,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
// #ifdef APP-PLUS // #ifdef APP-PLUS
// 使 // 使
uni.downloadFile({ uni.downloadFile({
@ -1488,17 +1488,17 @@ onUnload(() => {
// //
const shareToMoments = () => { const shareToMoments = () => {
addpoint(); addpoint();
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "share", // event_nickname: "share",
page_type: type.value == "huanjiao_news" ? "肝胆新闻" : "患教文库", // page_type: type.value == "huanjiao_news" ? "" : "",
resource_name:shareTitle.value, // resource_name:shareTitle.value,
resource_option:tags.value, // resource_option:tags.value,
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.downloadFile({ uni.downloadFile({

View File

@ -424,15 +424,15 @@ onLoad(() => {
loadGuideTypes(); loadGuideTypes();
loadSearchLibrary(); loadSearchLibrary();
loadGuideTags(); loadGuideTags();
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "list_page", // event_nickname: "list_page",
page_type: "诊疗指南", // page_type: "",
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
}); });
onShow(() => {}); onShow(() => {});

View File

@ -460,19 +460,19 @@ const downLoad = (item) => {
}); });
return; return;
} }
uni.sendNativeEvent("portraitReport",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "magazine_donwload", // event_nickname: "magazine_donwload",
page_type: "诊疗指南", // page_type: "",
resource_name:item.title, // resource_name:item.title,
belong:title.value, // belong:title.value,
number:1, // number:1,
resource_option:item.tags // resource_option:item.tags
}, // },
}, // },
(ret) => { // (ret) => {
console.log(ret); // console.log(ret);
}); // });
addDownloadTask({ addDownloadTask({
url: docUrl + item.path, url: docUrl + item.path,
title: item.title, title: item.title,
@ -498,17 +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",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "detail_page", // event_nickname: "detail_page",
page_type: "诊疗指南", // page_type: "",
resource_name:cell.title, // resource_name:cell.title,
resource_option:cell.tags // resource_option:cell.tags
}, // },
}, // },
(ret) => { // (ret) => {
console.log(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

@ -285,12 +285,12 @@ onLoad((options) => {
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",{ // uni.sendNativeEvent("portraitReport",{
msg:{ // msg:{
event_nickname: "list_page", // event_nickname: "list_page",
page_type: "出/停诊公告", // page_type: "/",
}, // },
}); // });
} catch (error) { } catch (error) {
console.log(error) console.log(error)
} }

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.3" const version="4.2.4"
export default version export default version