Commit c9404aba authored by kisszxc's avatar kisszxc

Merge branch 'showroom-order' of http://gitlab2.dui88.com/fh/20250528_FHQ1 into showroom-order

parents 84ecfcd2 62311f9e
{ {
"pages": [ "pages": [
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/person/person", "path": "pages/postnatalCheckUp/postnatalCheckUp",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "产检提醒"
"navigationStyle": "custom" }
} },
}, {
{ "path": "pages/person/person",
"path": "pages/webview/webview", "style": {
"style": { "navigationBarTitleText": "",
"navigationBarTitleText": "", "navigationStyle": "custom"
"navigationStyle": "custom" }
} },
}, {
{ "path": "pages/webview/webview",
"path": "pages/search/search", "style": {
"style": { "navigationBarTitleText": "",
"navigationStyle": "custom", "navigationStyle": "custom"
"usingComponents": { }
"van-tab": "../../wxcomponents/vant/tab/index", },
"van-tabs": "../../wxcomponents/vant/tabs/index" {
"path": "pages/search/search",
"style": {
"navigationStyle": "custom",
"usingComponents": {
"van-tab": "../../wxcomponents/vant/tab/index",
"van-tabs": "../../wxcomponents/vant/tabs/index"
}
}
},
{
"path": "pages/product/product",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/library/ContentLibrary",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/goodsDetail/goodsDetail",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/rightsDetail/rightsDetail",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/naming/naming",
"style": {
"navigationBarTitleText": "星妈起名",
"enablePullDownRefresh": false
}
},
{
"path": "pages/naming/namingResult",
"style": {
"navigationBarTitleText": "星妈起名",
"enablePullDownRefresh": false
}
},
{
"path": "pages/expertTeamPage/expertTeamPage",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/syWebview/syWebview",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
},
{
"path": "pages/feedingRecord/feedingRecord",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
},
{
"path": "pages/addPostnatal/addPostnatal",
"style": {
"navigationBarTitleText": "新增产检",
"navigationBarBackgroundColor": "#ffffff",
"enablePullDownRefresh": false
}
},
{
"path": "pages/myReportCard/myReportCard",
"style": {
"navigationBarTitleText": "我的报告单",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},
{
"path": "pages/productionCalendar/productionCalendar",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},
{
"path": "pages/productionDetails/productionDetails",
"style": {
"navigationBarTitleText": "产检详情",
"navigationBarBackgroundColor": "#ffffff",
"enablePullDownRefresh": false
}
},
{
"path": "pages/editPostnatal/editPostnatal",
"style": {
"navigationBarTitleText": "产检项目",
"navigationBarBackgroundColor": "#ffffff",
"enablePullDownRefresh": false
}
},
{
"path": "pages/shengzhangTools/shengzhangTools",
"style": {
"navigationBarTitleText": "生长测评"
}
},
{
"path": "pages/feedingAnalysis/feedingAnalysis",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
},
{
"path": "pages/feedingIndex/feedingIndex",
"style": {
"navigationBarTitleText": "添加喂养记录"
}
},
{
"path": "pages/shengzhangTestResult/shengzhangTestResult",
"style": {
"navigationBarTitleText": "生长测评"
} }
} }
}, ],
{ "subPackages": [
"path": "pages/product/product", {
"style": { "root": "reservation",
"navigationBarTitleText": "", "pages": [
"navigationBarBackgroundColor": "#ffffff", {
"navigationBarTextStyle": "black" "path": "home/index",
} "style": {
}, "navigationBarTitleText": "飞鹤奶粉"
{ }
"path": "pages/library/ContentLibrary", },
"style": { {
"navigationStyle": "custom" "path": "subscribe/index",
} "style": {
}, "navigationBarTitleText": "预约信息"
{ }
"path": "pages/goodsDetail/goodsDetail", },
"style": { {
"navigationBarTitleText": "" "path": "record/index",
} "style": {
}, "navigationBarTitleText": "工业游预约记录"
{ }
"path": "pages/rightsDetail/rightsDetail", },
"style": { {
"navigationBarTitleText": "" "path": "record/detail",
} "style": {
}, "navigationBarTitleText": "预约详情"
{ }
"path": "pages/naming/naming", },
"style": { {
"navigationBarTitleText": "宝宝取名", "path": "status/index",
"enablePullDownRefresh": false, "style": {
"navigationStyle": "custom" "navigationBarTitleText": "预约状态"
}
},
{
"path": "sign/index",
"style": {
"navigationBarTitleText": "签到"
}
}
]
} }
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8",
"navigationStyle": "default"
}, },
{ "uniIdRouter": {}
"path": "pages/naming/namingResult", }
"style": { \ No newline at end of file
"navigationBarTitleText": "AI-宝宝取名",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}
],
"subPackages": [
{
"root": "reservation",
"pages": [
{
"path": "home/index",
"style": {
"navigationBarTitleText": "飞鹤奶粉"
}
},
{
"path": "subscribe/index",
"style": {
"navigationBarTitleText": "预约信息"
}
},
{
"path": "record/index",
"style": {
"navigationBarTitleText": "工业游预约记录"
}
},
{
"path": "record/detail",
"style": {
"navigationBarTitleText": "预约详情"
}
},
{
"path": "status/index",
"style": {
"navigationBarTitleText": "预约状态"
}
},
{
"path": "sign/index",
"style": {
"navigationBarTitleText": "签到"
}
}
]
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8",
"navigationStyle": "default"
},
"uniIdRouter": {}
}
...@@ -146,6 +146,7 @@ import { ...@@ -146,6 +146,7 @@ import {
// 导入日期选择器组件 // 导入日期选择器组件
import DatePicker from '@/components/DatePicker.vue' import DatePicker from '@/components/DatePicker.vue'
import { useUserStore } from "@/stores/user"; import { useUserStore } from "@/stores/user";
import md from '../../md';
// 获取用户信息 // 获取用户信息
const userStore = useUserStore(); const userStore = useUserStore();
...@@ -190,6 +191,11 @@ const onPopupClose2 = () => { ...@@ -190,6 +191,11 @@ const onPopupClose2 = () => {
} }
// 修改时间 // 修改时间
const onChangeTime = () => { const onChangeTime = () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "新增产检页",
buttonName: "产检时间选择",
});
visible.value = true; visible.value = true;
} }
// 选择日期回调确认 // 选择日期回调确认
...@@ -200,6 +206,11 @@ const handleDateConfirm = (date) => { ...@@ -200,6 +206,11 @@ const handleDateConfirm = (date) => {
} }
// 添加项目 // 添加项目
const onAdd = () => { const onAdd = () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "新增产检页",
buttonName: "产检项目添加",
});
wx.setPageStyle({ wx.setPageStyle({
style: { style: {
overflow: 'hidden' overflow: 'hidden'
...@@ -259,6 +270,12 @@ const saveSelection = () => { ...@@ -259,6 +270,12 @@ const saveSelection = () => {
// }; // };
// 删除所选产品项目 // 删除所选产品项目
const onDelete = (id) => { const onDelete = (id) => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "新增产检页",
buttonName: "删除产检项目",
});
listData.value.filter((item, index) => { listData.value.filter((item, index) => {
if (item.id == id) { if (item.id == id) {
listData.value.splice(index, 1) listData.value.splice(index, 1)
...@@ -283,6 +300,12 @@ const onImageDel = (e) => { ...@@ -283,6 +300,12 @@ const onImageDel = (e) => {
} }
// 上传图片 // 上传图片
const onUpload = throttleTap(() => { const onUpload = throttleTap(() => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "新增产检页",
buttonName: "上传报告单",
});
if (bgdImgList.value.length == 15) { if (bgdImgList.value.length == 15) {
uni.showToast({ uni.showToast({
title: "最多上传15张图片", title: "最多上传15张图片",
...@@ -322,6 +345,11 @@ const onUpload = throttleTap(() => { ...@@ -322,6 +345,11 @@ const onUpload = throttleTap(() => {
// 保存 // 保存
const onSave = throttleTap( async () => { const onSave = throttleTap( async () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "新增产检页",
buttonName: "保存",
});
if (listData.value.length == 0) { if (listData.value.length == 0) {
uni.showToast({ uni.showToast({
title: '还没有添加产检项哦', title: '还没有添加产检项哦',
...@@ -363,6 +391,12 @@ const onSave = throttleTap( async () => { ...@@ -363,6 +391,12 @@ const onSave = throttleTap( async () => {
// 查看更多 // 查看更多
const onSeeBtn = () => { const onSeeBtn = () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "新增产检页",
buttonName: "查看全部",
});
// 跳转 // 跳转
uni.navigateTo({ uni.navigateTo({
url: '/pages/myReportCard/myReportCard' url: '/pages/myReportCard/myReportCard'
...@@ -378,6 +412,10 @@ const getList = async () => { ...@@ -378,6 +412,10 @@ const getList = async () => {
} }
} }
onLoad((options) => { onLoad((options) => {
md.sensorLogTake({
xcxPage: "小程序页面浏览事件",
pageName: "新增产检页"
});
if (Object.keys(options).length > 0 && options.time) { if (Object.keys(options).length > 0 && options.time) {
time.value = options.time time.value = options.time
} else { } else {
......
...@@ -93,6 +93,7 @@ import { ...@@ -93,6 +93,7 @@ import {
hideLoading hideLoading
} from '@/utils/index.js'; } from '@/utils/index.js';
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import md from '../../md';
import { import {
getUpdate, getUpdate,
...@@ -133,6 +134,12 @@ const onPopupClose2 = () => { ...@@ -133,6 +134,12 @@ const onPopupClose2 = () => {
// 添加项目 // 添加项目
const onAdd = () => { const onAdd = () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "修改产检项目页",
buttonName: "添加产检项目",
});
wx.setPageStyle({ wx.setPageStyle({
style: { style: {
overflow: 'hidden' overflow: 'hidden'
...@@ -192,6 +199,12 @@ const saveSelection = () => { ...@@ -192,6 +199,12 @@ const saveSelection = () => {
// }; // };
// 删除所选产品项目 // 删除所选产品项目
const onDelete = (id) => { const onDelete = (id) => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "修改产检项目页",
buttonName: "删除产检项目",
});
listData.value.filter((item, index) => { listData.value.filter((item, index) => {
if (item.id == id) { if (item.id == id) {
listData.value.splice(index, 1) listData.value.splice(index, 1)
...@@ -202,6 +215,12 @@ const onDelete = (id) => { ...@@ -202,6 +215,12 @@ const onDelete = (id) => {
// 保存 // 保存
const onSave = throttleTap(async () => { const onSave = throttleTap(async () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "修改产检项目页",
buttonName: "保存",
});
if (listData.value.length == 0) { if (listData.value.length == 0) {
uni.showToast({ uni.showToast({
title: '还没有添加产检项哦', title: '还没有添加产检项哦',
...@@ -249,6 +268,10 @@ const getList = async () => { ...@@ -249,6 +268,10 @@ const getList = async () => {
} }
} }
onLoad((options) => { onLoad((options) => {
md.sensorLogTake({
xcxPage: "小程序页面浏览事件",
pageName: "修改产检项目页"
});
const { id, examinationItems } = JSON.parse(options.item) const { id, examinationItems } = JSON.parse(options.item)
console.log(id, examinationItems) console.log(id, examinationItems)
editId.value = id editId.value = id
......
...@@ -189,6 +189,7 @@ import { ref, computed, onMounted, onUnmounted, watch, nextTick, getCurrentInsta ...@@ -189,6 +189,7 @@ import { ref, computed, onMounted, onUnmounted, watch, nextTick, getCurrentInsta
import { onLoad, onShow } from '@dcloudio/uni-app' import { onLoad, onShow } from '@dcloudio/uni-app'
import { feedingRecordsStatisticsPeriod, feedingRecordsByDate, feedingRecords as feedingRecordsAPI, feedingRecordsDelete } from '@/api/feeding.js' import { feedingRecordsStatisticsPeriod, feedingRecordsByDate, feedingRecords as feedingRecordsAPI, feedingRecordsDelete } from '@/api/feeding.js'
import { useUserStore } from '@/stores/user.js' import { useUserStore } from '@/stores/user.js'
import md from '../../md';
// API 集成说明: // API 集成说明:
// 1. 使用 /c/feeding/statistics/period GET 方法查询统计图表数据 // 1. 使用 /c/feeding/statistics/period GET 方法查询统计图表数据
...@@ -737,6 +738,11 @@ function calculateBabyAge(birthday) { ...@@ -737,6 +738,11 @@ function calculateBabyAge(birthday) {
// 编辑记录 // 编辑记录
function editRecord(index) { function editRecord(index) {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "统计页",
buttonName: "修改",
});
console.log('编辑记录:', index) console.log('编辑记录:', index)
const record = todayRecords.value[index] const record = todayRecords.value[index]
...@@ -811,6 +817,11 @@ function editRecord(index) { ...@@ -811,6 +817,11 @@ function editRecord(index) {
// 删除记录 // 删除记录
async function deleteRecord(record) { async function deleteRecord(record) {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "统计页",
buttonName: "删除",
});
console.log('删除记录:', record) console.log('删除记录:', record)
deletingRecord.value = record deletingRecord.value = record
showDelPopup.value = true showDelPopup.value = true
...@@ -861,6 +872,11 @@ async function confirmDelRecord() { ...@@ -861,6 +872,11 @@ async function confirmDelRecord() {
// 返回上一页 // 返回上一页
function goBack() { function goBack() {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "统计页",
buttonName: "返回",
});
// uni.navigateBack() // uni.navigateBack()
uni.redirectTo({ uni.redirectTo({
url: '/pages/feedingRecord/feedingRecord' url: '/pages/feedingRecord/feedingRecord'
...@@ -936,12 +952,22 @@ function generateWeekData(weekOffset = 0, targetDate = null) { ...@@ -936,12 +952,22 @@ function generateWeekData(weekOffset = 0, targetDate = null) {
// 上一周 // 上一周
async function prevWeek() { async function prevWeek() {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "统计页",
buttonName: "日期切换按钮左",
});
currentWeek.value-- currentWeek.value--
await updateChartData(false) // 切换周时使用默认选择 await updateChartData(false) // 切换周时使用默认选择
} }
// 下一周 // 下一周
async function nextWeek() { async function nextWeek() {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "统计页",
buttonName: "日期切换按钮右",
});
currentWeek.value++ currentWeek.value++
await updateChartData(false) // 切换周时使用默认选择 await updateChartData(false) // 切换周时使用默认选择
} }
...@@ -1011,6 +1037,11 @@ async function updateChartData(keepCurrentSelection = false) { ...@@ -1011,6 +1037,11 @@ async function updateChartData(keepCurrentSelection = false) {
// 点击柱状图切换日期 // 点击柱状图切换日期
async function onBarClick(day) { async function onBarClick(day) {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "统计页",
buttonName: "日期选择按钮",
});
console.log('柱状图点击事件触发:', day) console.log('柱状图点击事件触发:', day)
console.log('当前 chartData:', chartData.value) console.log('当前 chartData:', chartData.value)
console.log('当前 selectedDate:', selectedDate.value) console.log('当前 selectedDate:', selectedDate.value)
...@@ -1278,6 +1309,12 @@ async function initializeApiData() { ...@@ -1278,6 +1309,12 @@ async function initializeApiData() {
// 页面挂载时初始化数据 // 页面挂载时初始化数据
onMounted(async () => { onMounted(async () => {
md.sensorLogTake({
xcxPage: "小程序页面浏览事件",
pageName: "统计页",
});
// 加载宝宝信息 // 加载宝宝信息
await userStore.loadBabyInfo() await userStore.loadBabyInfo()
console.log('宝宝信息加载完成:', userStore.babyInfo) console.log('宝宝信息加载完成:', userStore.babyInfo)
......
This diff is collapsed.
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<!-- 日期选择器和统计按钮 --> <!-- 日期选择器和统计按钮 -->
<view class="date-stats-row"> <view class="date-stats-row">
<view class="date-selector"> <view class="date-selector" @click="showDatePicker">
<uni-datetime-picker ref="datePickerRef" v-model="currentSelectedDate" type="date" :start="earliestDateString" <uni-datetime-picker ref="datePickerRef" v-model="currentSelectedDate" type="date" :start="earliestDateString"
:end="todayDateString" @change="onDateChange" :clear-icon="false" :border="false"> :end="todayDateString" @change="onDateChange" :clear-icon="false" :border="false">
<view class="date-display"> <view class="date-display">
...@@ -204,6 +204,7 @@ import { onLoad, onShow } from '@dcloudio/uni-app' ...@@ -204,6 +204,7 @@ import { onLoad, onShow } from '@dcloudio/uni-app'
import BabySwitchPopup from '@/components/BabySwitchPopup.vue' import BabySwitchPopup from '@/components/BabySwitchPopup.vue'
import { feedingRecordsByDate, feedingRecordsCalendarStatus, feedingRecords as feedingRecordsAPI, feedingRecordsDelete } from '@/api/feeding.js' import { feedingRecordsByDate, feedingRecordsCalendarStatus, feedingRecords as feedingRecordsAPI, feedingRecordsDelete } from '@/api/feeding.js'
import { useUserStore } from '@/stores/user.js' import { useUserStore } from '@/stores/user.js'
import md from '../../md'
// API 集成说明: // API 集成说明:
// 1. 使用 /c/feeding/records GET 方法查询指定日期的喂养记录列表 // 1. 使用 /c/feeding/records GET 方法查询指定日期的喂养记录列表
...@@ -398,6 +399,16 @@ const calendarDates = computed(() => { ...@@ -398,6 +399,16 @@ const calendarDates = computed(() => {
return dates return dates
}) })
function showDatePicker() {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "喂养记录页",
buttonName: "日期下拉按钮",
});
}
function goToFeedingIndex() { function goToFeedingIndex() {
uni.navigateBack() uni.navigateBack()
} }
...@@ -515,6 +526,11 @@ function selectDate(dateObj) { ...@@ -515,6 +526,11 @@ function selectDate(dateObj) {
} }
function toggleCalendarExpand() { function toggleCalendarExpand() {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "喂养记录页",
buttonName: "日历展开按钮",
});
isCalendarExpanded.value = !isCalendarExpanded.value isCalendarExpanded.value = !isCalendarExpanded.value
} }
...@@ -629,6 +645,11 @@ function getRecordBgColor(type) { ...@@ -629,6 +645,11 @@ function getRecordBgColor(type) {
} }
async function deleteRecord(recordId) { async function deleteRecord(recordId) {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "喂养记录页",
buttonName: "删除",
});
console.log('删除记录:', recordId) console.log('删除记录:', recordId)
// 设置要删除的记录ID并显示确认弹窗 // 设置要删除的记录ID并显示确认弹窗
deletingRecordId.value = recordId deletingRecordId.value = recordId
...@@ -636,6 +657,11 @@ async function deleteRecord(recordId) { ...@@ -636,6 +657,11 @@ async function deleteRecord(recordId) {
} }
function editRecord(index) { function editRecord(index) {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "喂养记录页",
buttonName: "修改",
});
const record = todayRecords.value[index] const record = todayRecords.value[index]
if (!record) return if (!record) return
...@@ -870,6 +896,11 @@ async function saveEditRecord() { ...@@ -870,6 +896,11 @@ async function saveEditRecord() {
} }
function goToFeedingAnalysis() { function goToFeedingAnalysis() {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "喂养记录页",
buttonName: "统计",
});
uni.redirectTo({ uni.redirectTo({
url: '/pages/feedingAnalysis/feedingAnalysis' url: '/pages/feedingAnalysis/feedingAnalysis'
}) })
...@@ -877,11 +908,22 @@ function goToFeedingAnalysis() { ...@@ -877,11 +908,22 @@ function goToFeedingAnalysis() {
// 返回上一页 // 返回上一页
function goBack() { function goBack() {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "喂养记录页",
buttonName: "返回",
});
uni.navigateBack() uni.navigateBack()
} }
// 宝宝切换相关方法 // 宝宝切换相关方法
function showBabySwitch() { function showBabySwitch() {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "喂养记录页",
buttonName: "切换宝宝",
});
// 只有当有多个宝宝时才显示切换弹窗 // 只有当有多个宝宝时才显示切换弹窗
if (babyList.value.length > 1) { if (babyList.value.length > 1) {
showBabySwitchPopup.value = true showBabySwitchPopup.value = true
...@@ -1496,6 +1538,12 @@ watch(currentDate, (newDate, oldDate) => { ...@@ -1496,6 +1538,12 @@ watch(currentDate, (newDate, oldDate) => {
}, { immediate: false }) }, { immediate: false })
onMounted(async () => { onMounted(async () => {
md.sensorLogTake({
xcxPage: "小程序页面浏览事件",
pageName: "喂养记录页",
});
// 组件挂载后的操作 // 组件挂载后的操作
// 加载宝宝信息 // 加载宝宝信息
await userStore.loadBabyInfo() await userStore.loadBabyInfo()
......
...@@ -118,6 +118,11 @@ const listData = ref([]) ...@@ -118,6 +118,11 @@ const listData = ref([])
// 跳转小程序 // 跳转小程序
const onJump = async () => { const onJump = async () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "我的报告单页",
buttonName: '专家在线咨询'
});
const res = await getHealthField(); const res = await getHealthField();
if (!res.success) { if (!res.success) {
...@@ -172,6 +177,11 @@ const getProject = (projects) => { ...@@ -172,6 +177,11 @@ const getProject = (projects) => {
// 删除事件 // 删除事件
const onDelete = throttleTap((id) => { const onDelete = throttleTap((id) => {
console.log(id) console.log(id)
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "我的报告单页",
buttonName: '删除'
});
uni.showModal({ uni.showModal({
// title: '提示', // title: '提示',
content: '确认删除吗?', content: '确认删除吗?',
...@@ -187,6 +197,11 @@ const onDelete = throttleTap((id) => { ...@@ -187,6 +197,11 @@ const onDelete = throttleTap((id) => {
}) })
// 返回上一页面 // 返回上一页面
const backHandler = () => { const backHandler = () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "我的报告单页",
buttonName: '返回'
});
uni.navigateBack(); uni.navigateBack();
} }
// 删除报告单 // 删除报告单
...@@ -221,6 +236,10 @@ const getReportListFn = async () => { ...@@ -221,6 +236,10 @@ const getReportListFn = async () => {
} }
onLoad(() => { onLoad(() => {
md.sensorLogTake({
xcxPage: "小程序页面浏览事件",
pageName: "我的报告单页"
});
// 我的报告单 // 我的报告单
getReportListFn() getReportListFn()
}) })
......
...@@ -257,6 +257,26 @@ const backHandler = () => { ...@@ -257,6 +257,26 @@ const backHandler = () => {
// 点击轮播图事件 // 点击轮播图事件
const handleBannerClick = (item, index) => { const handleBannerClick = (item, index) => {
console.log(item) console.log(item)
let buttonName = '';
switch(index){
case 0:
buttonName = '第一张焦点图';
break;
case 1:
buttonName = '第二张焦点图';
break;
case 2:
buttonName = '第三张焦点图';
break;
case 3:
buttonName = '第四张焦点图';
break;
}
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检提醒首页",
buttonName: buttonName,
});
// 跳转 // 跳转
if (item?.url != "") { if (item?.url != "") {
jump({ jump({
...@@ -265,26 +285,15 @@ const handleBannerClick = (item, index) => { ...@@ -265,26 +285,15 @@ const handleBannerClick = (item, index) => {
}) })
} }
// let buttonName = '';
// switch(index){
// case 0:
// buttonName = '第一张焦点图';
// break;
// case 1:
// buttonName = '第二张焦点图';
// break;
// case 2:
// buttonName = '第三张焦点图';
// break;
// }
// md.sensorLogTake({
// xcxClick: "产品提醒页-首屏页面点击",
// pageName: "产品提醒页-首屏",
// buttonName: buttonName,
// });
} }
// 新增体检 // 新增体检
const onAdd = () => { const onAdd = () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检提醒首页",
buttonName: '添加'
});
uni.navigateTo({ uni.navigateTo({
url: '/pages/addPostnatal/addPostnatal' url: '/pages/addPostnatal/addPostnatal'
}) })
...@@ -293,24 +302,36 @@ const onAdd = () => { ...@@ -293,24 +302,36 @@ const onAdd = () => {
const onBtn = (type) => { const onBtn = (type) => {
// const items = JSON.stringify(homeInfo.value) // const items = JSON.stringify(homeInfo.value)
// type 0 提醒 1 报告单 2 日历 // type 0 提醒 1 报告单 2 日历
let buttonName = ''
switch (type) { switch (type) {
case 0: case 0:
// 如果授权就不弹出提醒 // 如果授权就不弹出提醒
showPicker.value = isWxNotification.value ? true : false showPicker.value = isWxNotification.value ? true : false
buttonName = '提醒'
break; break;
case 1: case 1:
uni.navigateTo({ uni.navigateTo({
url: '/pages/myReportCard/myReportCard' url: '/pages/myReportCard/myReportCard'
}) })
buttonName = '报告单'
break; break;
case 2: case 2:
uni.navigateTo({ uni.navigateTo({
url: `/pages/productionCalendar/productionCalendar` url: `/pages/productionCalendar/productionCalendar`
}) })
buttonName = '日历'
break; break;
default: default:
break; break;
} }
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检提醒首页",
buttonName: buttonName,
});
} }
// 提醒关闭 // 提醒关闭
const close = () => { const close = () => {
...@@ -341,6 +362,12 @@ const handleConfirm = () => { ...@@ -341,6 +362,12 @@ const handleConfirm = () => {
// 编辑时间 // 编辑时间
const onEdit = (id, newTime) => { const onEdit = (id, newTime) => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检提醒首页",
buttonName: '选择时间',
});
console.log(id, newTime) console.log(id, newTime)
time.value = newTime time.value = newTime
visible.value = true visible.value = true
...@@ -503,6 +530,13 @@ onShow(async () => { ...@@ -503,6 +530,13 @@ onShow(async () => {
console.log('宝宝信息加载完成:', userStore.babyInfo) console.log('宝宝信息加载完成:', userStore.babyInfo)
publicFn() publicFn()
}) })
onMounted(() => {
md.sensorLogTake({
xcxPage: "小程序页面浏览事件",
pageName: "产检提醒首页"
});
})
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -131,7 +131,8 @@ import { ...@@ -131,7 +131,8 @@ import {
import { import {
getInfo getInfo
} from '../../api/obstetric.js'; } from '../../api/obstetric.js';
import { console } from 'inspector';
import md from '../../md';
// 获取用户信息 // 获取用户信息
const userStore = useUserStore(); const userStore = useUserStore();
const babyInfo =ref(userStore?.babyInfo || {}) const babyInfo =ref(userStore?.babyInfo || {})
...@@ -379,10 +380,20 @@ const calendarDates = computed(() => { ...@@ -379,10 +380,20 @@ const calendarDates = computed(() => {
}) })
// 返回 // 返回
const backHandler = () => { const backHandler = () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检日历页",
buttonName: '返回'
});
uni.navigateBack() uni.navigateBack()
} }
// 跳转新增产检页面 // 跳转新增产检页面
const onAdd = () => { const onAdd = () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检日历页",
buttonName: '新增产检'
});
uni.navigateTo({ uni.navigateTo({
url: `/pages/addPostnatal/addPostnatal?time=${currentSelectedDate.value}` url: `/pages/addPostnatal/addPostnatal?time=${currentSelectedDate.value}`
}) })
...@@ -423,17 +434,12 @@ const getInfoFn = async () => { ...@@ -423,17 +434,12 @@ const getInfoFn = async () => {
}); });
} }
} }
// onLoad((option) => { onLoad((option) => {
// console.log('option:', option) md.sensorLogTake({
// info.value = JSON.parse(option.item) xcxPage: "小程序页面浏览事件",
// // 使用真实的今天日期 pageName: "产检日历页"
// const today = new Date() });
// const todayString = formatDateString(today) })
// currentSelectedDate.value = todayString
// currentDate.value = new Date(today.getFullYear(), today.getMonth(), 1) // 当前月份的第一天
// currentMonthKey.value = `${today.getFullYear()}-${today.getMonth()}` // 设置月份键
// console.log('初始化今日日期:', todayString, '当前月份:', currentDate.value, '月份键:', currentMonthKey.value)
// })
onShow(() => { onShow(() => {
// 使用真实的今天日期 // 使用真实的今天日期
const today = new Date() const today = new Date()
......
...@@ -170,6 +170,7 @@ import { ...@@ -170,6 +170,7 @@ import {
getDeleteReportImg getDeleteReportImg
} from '../../api/obstetric.js'; } from '../../api/obstetric.js';
import { useUserStore } from "@/stores/user"; import { useUserStore } from "@/stores/user";
import md from '../../md';
// 用户信息 // 用户信息
const userStore = useUserStore(); const userStore = useUserStore();
const babyId = ref(userStore.babyInfo?.content?.id) const babyId = ref(userStore.babyInfo?.content?.id)
...@@ -288,6 +289,27 @@ const updateActiveTab = (scrollTop) => { ...@@ -288,6 +289,27 @@ const updateActiveTab = (scrollTop) => {
// 点击tab滚动到对应区域 // 点击tab滚动到对应区域
const scrollToSection = (index) => { const scrollToSection = (index) => {
let buttonName = ''
switch (index) {
case 0:
buttonName = '产检须知';
break;
case 1:
buttonName = '产检项目';
break;
case 2:
buttonName = '本次报告单';
break;
default:
break;
}
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检详情页",
buttonName: buttonName,
});
activeIndex.value = index; activeIndex.value = index;
scrolling.value = true; scrolling.value = true;
...@@ -354,6 +376,12 @@ const onImageDel = (id) => { ...@@ -354,6 +376,12 @@ const onImageDel = (id) => {
} }
// 上传图片 // 上传图片
const onUpload = throttleTap(() => { const onUpload = throttleTap(() => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检详情页",
buttonName: "上传报告单",
});
if (bgdImgList.value.length == 15) { if (bgdImgList.value.length == 15) {
uni.showToast({ uni.showToast({
title: "最多上传15张图片", title: "最多上传15张图片",
...@@ -401,6 +429,12 @@ const onUpload = throttleTap(() => { ...@@ -401,6 +429,12 @@ const onUpload = throttleTap(() => {
// 查看更多 // 查看更多
const onSeeBtn = () => { const onSeeBtn = () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检详情页",
buttonName: "查看全部",
})
uni.navigateTo({ uni.navigateTo({
url: '/pages/myReportCard/myReportCard' url: '/pages/myReportCard/myReportCard'
}) })
...@@ -408,6 +442,12 @@ const onSeeBtn = () => { ...@@ -408,6 +442,12 @@ const onSeeBtn = () => {
// 打开提醒弹窗 // 打开提醒弹窗
const onRemind = () => { const onRemind = () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检详情页",
buttonName: "提醒",
})
// 产检时间 // 产检时间
const checkupDate = new Date(infoData.value.checkupDate) const checkupDate = new Date(infoData.value.checkupDate)
...@@ -475,6 +515,12 @@ const getWxNotificationFn = async (notificationDate, wxTemplateId, babyId) => { ...@@ -475,6 +515,12 @@ const getWxNotificationFn = async (notificationDate, wxTemplateId, babyId) => {
} }
// 完成检查 // 完成检查
const onComplete = () => { const onComplete = () => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检详情页",
buttonName: "完成检查",
})
if (infoData.value.checkupDate == '') { if (infoData.value.checkupDate == '') {
uni.showToast({ uni.showToast({
title: '请选择产检日期', title: '请选择产检日期',
...@@ -495,6 +541,12 @@ const onComplete = () => { ...@@ -495,6 +541,12 @@ const onComplete = () => {
// 修改时间 // 修改时间
const onChangeTime = throttleTap((date) => { const onChangeTime = throttleTap((date) => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检详情页",
buttonName: "选择时间",
})
visible.value = true visible.value = true
time.value = date time.value = date
}) })
...@@ -512,6 +564,11 @@ const handleDateConfirm = (date) => { ...@@ -512,6 +564,11 @@ const handleDateConfirm = (date) => {
// 修改项目 // 修改项目
const onModify = (item) => { const onModify = (item) => {
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "产检详情页",
buttonName: "修改项目",
})
console.log(item) console.log(item)
const items = JSON.stringify(item) const items = JSON.stringify(item)
uni.navigateTo({ uni.navigateTo({
...@@ -582,6 +639,10 @@ const getSettingFn = () => { ...@@ -582,6 +639,10 @@ const getSettingFn = () => {
} }
// 获取传过来的参数 // 获取传过来的参数
onLoad((options) => { onLoad((options) => {
md.sensorLogTake({
xcxPage: "小程序页面浏览事件",
pageName: "产检详情页"
});
console.log(options) console.log(options)
// 获取传过来的参数:id // 获取传过来的参数:id
editId.value = options.id editId.value = options.id
......
...@@ -315,6 +315,7 @@ import { getGrowthHistoryList,getGrowthAssessmentDetail } from '../../api/shengz ...@@ -315,6 +315,7 @@ import { getGrowthHistoryList,getGrowthAssessmentDetail } from '../../api/shengz
import ShengzhangQuxianTipsPopup from '../../components/shengzhangQuxianTipsPopup.vue'; import ShengzhangQuxianTipsPopup from '../../components/shengzhangQuxianTipsPopup.vue';
import { useUserStore } from "@/stores/user"; import { useUserStore } from "@/stores/user";
import { getHealthField } from "@/api/common"; import { getHealthField } from "@/api/common";
import md from '../../md';
const isRecords = ref(false); const isRecords = ref(false);
...@@ -474,6 +475,23 @@ const statusImgMap = { ...@@ -474,6 +475,23 @@ const statusImgMap = {
* @param {string} tab - 要切换的标签名称('latest'|'history') * @param {string} tab - 要切换的标签名称('latest'|'history')
*/ */
const switchTab = (tab) => { const switchTab = (tab) => {
switch(tab){
case 'latest':
md.sensorLogTake({
xcxClick: "测评结果页-最新",
pageName: "测评结果页",
buttonName: "测评结果页-最新-点击",
});
break;
case 'history':
md.sensorLogTake({
xcxClick: "测评结果页-历史",
pageName: "测评结果页",
buttonName: "测评结果页-历史-点击",
});
break;
}
activeTab.value = tab activeTab.value = tab
console.log('切换到标签:', tab) console.log('切换到标签:', tab)
// if(tab === 'latest' && isRecords.value){ // if(tab === 'latest' && isRecords.value){
...@@ -504,10 +522,25 @@ const switchCurveTab = (tab) => { ...@@ -504,10 +522,25 @@ const switchCurveTab = (tab) => {
// 根据不同的标签更新曲线数据 // 根据不同的标签更新曲线数据
if (tab === 'height') { if (tab === 'height') {
md.sensorLogTake({
xcxClick: "测评结果页-身高",
pageName: "测评结果页",
buttonName: "测评结果页-身高-点击",
});
curveData.value = curveDataConvert(shengzhangStore.getGrowthCurveDataInfoHeight.userDataPoints,'height'); curveData.value = curveDataConvert(shengzhangStore.getGrowthCurveDataInfoHeight.userDataPoints,'height');
} else if (tab === 'weight') { } else if (tab === 'weight') {
md.sensorLogTake({
xcxClick: "测评结果页-体重",
pageName: "测评结果页",
buttonName: "测评结果页-体重-点击",
});
curveData.value = curveDataConvert(shengzhangStore.getGrowthCurveDataInfoWeight.userDataPoints,'weight'); curveData.value = curveDataConvert(shengzhangStore.getGrowthCurveDataInfoWeight.userDataPoints,'weight');
} else if (tab === 'head') { } else if (tab === 'head') {
md.sensorLogTake({
xcxClick: "测评结果页-头围",
pageName: "测评结果页",
buttonName: "测评结果页-头围-点击",
});
curveData.value = curveDataConvert(shengzhangStore.getGrowthCurveDataInfoHead.userDataPoints,'head'); curveData.value = curveDataConvert(shengzhangStore.getGrowthCurveDataInfoHead.userDataPoints,'head');
} }
...@@ -574,6 +607,12 @@ const getYTicks = () => { ...@@ -574,6 +607,12 @@ const getYTicks = () => {
* 显示生长曲线说明弹窗 * 显示生长曲线说明弹窗
*/ */
const showCurveTips = () => { const showCurveTips = () => {
md.sensorLogTake({
xcxClick: "测评结果页-什么是生长曲线",
pageName: "测评结果页",
buttonName: "测评结果页-什么是生长曲线-点击",
});
console.log('显示生长曲线提示') console.log('显示生长曲线提示')
showTipsPopup.value = true showTipsPopup.value = true
} }
...@@ -591,6 +630,12 @@ const closeTipsPopup = () => { ...@@ -591,6 +630,12 @@ const closeTipsPopup = () => {
* 处理专家咨询按钮点击事件 * 处理专家咨询按钮点击事件
*/ */
const consultExpert = async () => { const consultExpert = async () => {
md.sensorLogTake({
xcxClick: "测评结果页-专家在线咨询",
pageName: "测评结果页",
buttonName: "测评结果页-专家在线咨询-点击",
});
console.log('专家在线咨询') console.log('专家在线咨询')
const res = await getHealthField(); const res = await getHealthField();
...@@ -663,6 +708,12 @@ onShareAppMessage(() => { ...@@ -663,6 +708,12 @@ onShareAppMessage(() => {
const shengzhangStore = useShengzhangStore(); const shengzhangStore = useShengzhangStore();
// const headCircumference = ref(0); // const headCircumference = ref(0);
onMounted(async () => { onMounted(async () => {
md.sensorLogTake({
xcxPage: "测评结果页",
pageName: "测评结果页"
});
//获取历史记录 //获取历史记录
const historyListData = await getGrowthHistoryList(); const historyListData = await getGrowthHistoryList();
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
class="banner-img" class="banner-img"
:src="`${$baseUrl}${item?.img}`" :src="`${$baseUrl}${item?.img}`"
mode="aspectFill" mode="aspectFill"
@click="bannerHandler(item)" @click="bannerHandler(item, index)"
/> />
</swiper-item> </swiper-item>
</swiper> </swiper>
...@@ -267,6 +267,7 @@ import { onLoad,onShow } from "@dcloudio/uni-app"; ...@@ -267,6 +267,7 @@ import { onLoad,onShow } from "@dcloudio/uni-app";
import { throttleTap,jump, JumpType, formatDate } from '../../utils/index.js'; import { throttleTap,jump, JumpType, formatDate } from '../../utils/index.js';
import { useShengzhangStore } from '../../stores/shengzhangResult.js'; import { useShengzhangStore } from '../../stores/shengzhangResult.js';
import { useUserStore } from "@/stores/user"; import { useUserStore } from "@/stores/user";
import md from '../../md';
const isTip = ref(false); const isTip = ref(false);
...@@ -283,8 +284,30 @@ const showLoading = ref(false); ...@@ -283,8 +284,30 @@ const showLoading = ref(false);
const bannerHandler = (item) => { const bannerHandler = (item, index) => {
console.log(item) console.log(item)
let buttonName = '';
switch(index){
case 0:
buttonName = '第一张焦点图';
break;
case 1:
buttonName = '第二张焦点图';
break;
case 2:
buttonName = '第三张焦点图';
break;
case 3:
buttonName = '第四张焦点图';
break;
}
md.sensorLogTake({
xcxClick: "生长曲线首页-banner资源位",
pageName: "生长曲线首页",
buttonName: buttonName,
});
if(item?.url != ""){ if(item?.url != ""){
jump({ jump({
type: item.type, type: item.type,
...@@ -350,6 +373,12 @@ const showDatePickerPopup = ref(false) ...@@ -350,6 +373,12 @@ const showDatePickerPopup = ref(false)
const selectedDate = ref() const selectedDate = ref()
const showDatePicker = () => { const showDatePicker = () => {
md.sensorLogTake({
xcxClick: "生长曲线首页-本次测评日期",
pageName: "生长曲线首页",
buttonName: "生长曲线首页-本次测评日期-点击",
});
console.log('显示日期选择器') console.log('显示日期选择器')
showDatePickerPopup.value = true showDatePickerPopup.value = true
} }
...@@ -362,6 +391,12 @@ const onDateChange = (date) => { ...@@ -362,6 +391,12 @@ const onDateChange = (date) => {
} }
const showFeedingPopup = () => { const showFeedingPopup = () => {
md.sensorLogTake({
xcxClick: "生长曲线首页-宝宝喂养方式选择",
pageName: "生长曲线首页",
buttonName: "生长曲线首页-宝宝喂养方式选择-点击",
});
console.log('显示喂养方式弹窗') console.log('显示喂养方式弹窗')
showFeedSwitchPopup.value = true showFeedSwitchPopup.value = true
currentFeedIndex.value = 1 // 默认选中"母乳+奶粉混合喂养" currentFeedIndex.value = 1 // 默认选中"母乳+奶粉混合喂养"
...@@ -494,12 +529,24 @@ const onHeadFocus = () => { ...@@ -494,12 +529,24 @@ const onHeadFocus = () => {
// 其他方法保持不变 // 其他方法保持不变
const changeBaby = () => { const changeBaby = () => {
md.sensorLogTake({
xcxClick: "生长曲线首页-切换宝宝",
pageName: "生长曲线首页",
buttonName: "生长曲线首页-切换宝宝-点击",
});
console.log('切换宝宝') console.log('切换宝宝')
showBabySwitchPopup.value = true showBabySwitchPopup.value = true
// currentBabyIndex.value = 0 // 默认选中第一个宝宝 // currentBabyIndex.value = 0 // 默认选中第一个宝宝
} }
//测评记录
const viewRecords = () => { const viewRecords = () => {
md.sensorLogTake({
xcxClick: "生长曲线首页-测评记录",
pageName: "生长曲线首页",
buttonName: "生长曲线首页-测评记录-点击",
});
jump({ jump({
type: JumpType.INNER, type: JumpType.INNER,
url: "/pages/shengzhangTestResult/shengzhangTestResult?isRecords=false" url: "/pages/shengzhangTestResult/shengzhangTestResult?isRecords=false"
...@@ -520,6 +567,12 @@ const convertFeedingType = (type) => { ...@@ -520,6 +567,12 @@ const convertFeedingType = (type) => {
} }
} }
const submitData = throttleTap(async () => { const submitData = throttleTap(async () => {
md.sensorLogTake({
xcxClick: "生长曲线首页-确认提交",
pageName: "生长曲线首页",
buttonName: "生长曲线首页-确认提交-点击",
});
showLoading.value = true; showLoading.value = true;
if(headCircumference.value == 0){ if(headCircumference.value == 0){
...@@ -683,6 +736,12 @@ const pushCount = (val) => { ...@@ -683,6 +736,12 @@ const pushCount = (val) => {
const showBabyTestTipsPopup = ref(false) const showBabyTestTipsPopup = ref(false)
const onClickTips = () => { const onClickTips = () => {
md.sensorLogTake({
xcxClick: "生长曲线首页-(如何确认身高、体重、头围)",
pageName: "生长曲线首页",
buttonName: "生长曲线首页-(如何确认身高、体重、头围)-点击",
});
console.log('显示宝宝测评提示弹窗') console.log('显示宝宝测评提示弹窗')
showBabyTestTipsPopup.value = true showBabyTestTipsPopup.value = true
} }
...@@ -749,6 +808,12 @@ const shengzhangToolsData = ref({activeInfo:[ ...@@ -749,6 +808,12 @@ const shengzhangToolsData = ref({activeInfo:[
const swiperData = ref([]); const swiperData = ref([]);
onMounted(async () => { onMounted(async () => {
md.sensorLogTake({
xcxPage: "生长曲线首页",
pageName: "生长曲线首页"
});
const {data} = await fetchShengzhangToolsJSON(); const {data} = await fetchShengzhangToolsJSON();
if(data){ if(data){
shengzhangToolsData.value = {...data}; shengzhangToolsData.value = {...data};
......
...@@ -113,6 +113,12 @@ onLoad(async (options) => { ...@@ -113,6 +113,12 @@ onLoad(async (options) => {
const openId = globalStore.openId const openId = globalStore.openId
const unionId = globalStore.unionId const unionId = globalStore.unionId
// scene 需要使用 decodeURIComponent 才能获取到生成二维码时传入的 scene
// const scene = decodeURIComponent(options.scene)
// options.scene = null
// console.warn("scene", scene)
// 将 options 的所有参数原样作为查询参数传给 H5,并补齐 cuk // 将 options 的所有参数原样作为查询参数传给 H5,并补齐 cuk
const params = { ...(options || {}) } const params = { ...(options || {}) }
if (cuk && !params.cuk) params.cuk = cuk if (cuk && !params.cuk) params.cuk = cuk
......
...@@ -1023,8 +1023,11 @@ ...@@ -1023,8 +1023,11 @@
padding-left: 38rpx; padding-left: 38rpx;
.tools_maintitle { .tools_maintitle {
font-size: 42rpx; // font-size: 42rpx;
color: #000; // color: #000;
color: @color-black-deep;
font-size: 38rpx;
font-weight: bold;
} }
.tools_subtitle { .tools_subtitle {
...@@ -1151,8 +1154,11 @@ ...@@ -1151,8 +1154,11 @@
padding-left: 38rpx; padding-left: 38rpx;
.et_maintitle { .et_maintitle {
font-size: 42rpx; // font-size: 42rpx;
color: #000; // color: #000;
color: @color-black-deep;
font-size: 38rpx;
font-weight: bold;
} }
.et_subtitle { .et_subtitle {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
class="banner-img" class="banner-img"
:src="$baseUrl + `integral/${tupianBanben}/${item?.bannerImg}`" :src="$baseUrl + `integral/${tupianBanben}/${item?.bannerImg}`"
mode="aspectFill" mode="aspectFill"
@click="bannerHandler(item)" @click="bannerHandler(item, index)"
/> />
</swiper-item> </swiper-item>
</swiper> </swiper>
...@@ -1462,12 +1462,27 @@ ...@@ -1462,12 +1462,27 @@
//banner点击事件 //banner点击事件
const bannerHandler = (item) => { const bannerHandler = (item, index) => {
let buttonName = '';
switch(index){
case 0:
buttonName = '第一张焦点图';
break;
case 1:
buttonName = '第二张焦点图';
break;
case 2:
buttonName = '第三张焦点图';
break;
case 3:
buttonName = '第四张焦点图';
break;
}
md.sensorLogTake({ md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击", xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏", pageName: "积分服务页-首屏",
buttonName: "第一张焦点图", buttonName: buttonName,
}); });
if(item?.url != ""){ if(item?.url != ""){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment