Commit 91b24b5f by 杨明

埋点

1 parent 4f9e74ef

2.42 MB | W: | H:

2.44 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<!--
* @Author: yangming@didihu.com.cn yangming@didihu.com.cn
* @Date: 2025-05-01 10:52:25
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-05-01 16:24:52
* @FilePath: \gl-tape\components\HomeFrame\components\Attendance\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<view class="attendance-container">
<Calendar></Calendar>
......@@ -5,12 +13,18 @@
</template>
<script type="text/ecmascript-6">
import Calendar from './Calendar.vue'
import pointTrack from '@/mixin/pointTrack'
export default {
mixins: [pointTrack],
data() {
return {
pageName: '我的考勤'
}
},
components: {Calendar}
}
</script>
<style scoped lang="scss">
.attendance-container {
}
</style>
\ No newline at end of file
</style>
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 09:51:43
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-03-07 09:57:20
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-05-01 15:01:50
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Tips.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -41,7 +41,7 @@
</view>
</view>
</view>
<Dailog @close="calDaliog = false" v-if="calDaliog" width="1600rpx" title="职级晋升、渗透率提升后收入测算">
<Dailog @close="closeCalDaliog" v-if="calDaliog" width="1600rpx" title="职级晋升、渗透率提升后收入测算">
<view class="dailog-body" slot="content">
<view :class="{ 'input-box select-container': true, row_2: form.sceneType === '0' }">
<template v-for="(item, index) in selectList">
......@@ -81,7 +81,7 @@
</view>
</template>
</Dailog>
<Dailog @close="show = false" v-if="show" class="result-dailog" width="1400rpx" title="收入测算结果">
<Dailog @close="closeResultDailog" v-if="show" class="result-dailog" width="1400rpx" title="收入测算结果">
<view class="dailog-body result-body flex" slot="content">
<view :class="{ 'output-box': true, 'output-one': form.sceneType == 1 }">
<view class="month-box" v-if="form.sceneType == 1">
......@@ -204,7 +204,7 @@
>
再测一次
</view>
<view class="dailog-btn disabled" @click="show = false">关闭</view>
<view class="dailog-btn disabled" @click="closeResultDailog">关闭</view>
</view>
</template>
</Dailog>
......@@ -222,8 +222,9 @@
import dayjs from 'dayjs'
import Dailog from './Dailog'
import point from '@/mixin/point'
import pointTrack from '@/mixin/pointTrack'
export default {
mixins: [point],
mixins: [point, pointTrack],
components: {
Dailog
},
......@@ -240,6 +241,7 @@ export default {
},
data() {
return {
pageName: '收入测算试算页',
errorTip: false,
isClick: false,
list: [],
......@@ -385,6 +387,14 @@ export default {
}
},
methods: {
closeResultDailog() {
this.show = false
this.leavePage()
},
closeCalDaliog() {
this.calDaliog = false
this.leavePage()
},
getOutput(output, item) {
return this.salaryDetail.commissionRecord ? this.salaryDetail.commissionRecord[output.value] : (this.salaryDetail.goodsTypeList[this.getIndex(item)] && this.salaryDetail.goodsTypeList[this.getIndex(item)][output.value]) || 0
},
......@@ -393,6 +403,7 @@ export default {
return idx
},
IncomeCal() {
this.enterPage()
this.calDaliog = true
this.form = {
shouldToShopCount: '',
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-07 13:49:15
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-04-29 17:14:35
* @LastEditTime: 2025-05-01 13:40:39
* @FilePath: \gl-tape\components\HomeFrame\components\Income\History.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -12,7 +12,9 @@
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title"><text>历史收入记录</text></view>
<view class="title">
<text>{{ pageName }}</text>
</view>
</view>
<view class="history-box">
<view class="chart-box">
......@@ -120,8 +122,9 @@ import Question from './Question.vue'
import firstTime from '@/mixin/firstTime'
import baseDialog from './baseDialog'
import baseDetail from './baseDetail'
import pointTrack from '@/mixin/pointTrack'
export default {
mixins: [point, firstTime],
mixins: [point, firstTime, pointTrack],
components: {
Detail,
Dailog,
......@@ -131,6 +134,7 @@ export default {
},
data() {
return {
pageName: '历史收入记录',
title: '学习数据',
show: false,
isExist: false,
......
......@@ -244,7 +244,7 @@ export default {
icon: 'none'
})
}
this.$emit('close')
this.$emit('close', false, true)
}
},
// keyUp(ev) {
......
......@@ -48,11 +48,14 @@
import DayTips from './DayTips'
import Password from './Password.vue'
import MyStore from './MyStore'
import pointTrack from '@/mixin/pointTrack'
export default {
mixins: [pointTrack],
components: { DayTips, Password, MyStore },
data() {
return {
showPassword: true,
pageName: '',
// showPassword: false,
jobTypeList: {
0: '实习生(理论)',
......@@ -98,10 +101,14 @@ export default {
clearInterval(this.interval)
},
methods: {
closePassword(val) {
closePassword(val, page) {
if (val) {
this.close()
}
if (page) {
this.pageName = '收入测算首页'
this.enterPage()
}
this.showPassword = false
},
/**
......
......@@ -11,7 +11,7 @@
<view class="tab-box">
<view @click="selectTab(index)" :class="{ 'tab-item': true, active: activeIndex == index }" v-for="(i, index) in tabList" :key="index">{{ i.name }}</view>
</view>
<component :is="tabName" @selectTab="selectTab"></component>
<component :is="tabName" ref="centerRef" @selectTab="selectTab"></component>
</view>
</template>
......
......@@ -2,8 +2,8 @@
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-21 15:02:22
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-05-01 13:33:26
-->
<template>
<view class="point-box">
......@@ -64,10 +64,12 @@
<script>
import point from '@/mixin/point'
import utils from '@/utils/utils'
import pointTrack from '@/mixin/pointTrack'
export default {
mixins: [point],
mixins: [point, pointTrack],
data() {
return {
pageName: '本月积分',
pointClassification: ['C001', 'C003', 'C002'],
pointClassName: ['培训类', '行为类', '学习类'],
statistics: {},
......
......@@ -11,7 +11,9 @@
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title"><text>每日积分</text></view>
<view class="title">
<text>{{ pageName }}</text>
</view>
</view>
<view class="finish-title">
已完成
......@@ -48,10 +50,12 @@
</template>
<script>
import point from '@/mixin/point'
import pointTrack from '@/mixin/pointTrack'
export default {
mixins: [point],
mixins: [point, pointTrack],
data() {
return {
pageName: '每日积分',
second: 3,
timer: null,
selectItem: {},
......@@ -103,7 +107,7 @@ export default {
})
},
handleGo(val) {
console.log(val);
console.log(val)
this.selectItem = val
if (val.jump) {
this.timer = setInterval(() => {
......
......@@ -2,8 +2,8 @@
* @Description:
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-03-12 10:40:21
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-05-01 13:36:41
-->
<template>
<view class="point-box">
......@@ -81,10 +81,12 @@ const GROUP_LIST = [
{ title: '平板接待精英', style: 'background: #FFFAED;', medalType: 3, logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), content: '平板接待月度无扣分记录' }
]
import point from '@/mixin/point'
import pointTrack from '@/mixin/pointTrack'
export default {
mixins: [point],
mixins: [point, pointTrack],
data() {
return {
pageName: '成长勋章',
selectItem: {},
detail: [],
isHigh: false,
......@@ -94,7 +96,7 @@ export default {
couponList: [],
badgeList: [],
tabelTh: [{ title: '积分区间', width: 8 }],
tabelTr: [{ content: '奖惩规则(每月)' }],
tabelTr: [{ content: '奖惩规则(每月)' }]
}
},
props: {
......@@ -106,7 +108,7 @@ export default {
mounted() {
const { isHigh } = this.transfer || {}
this.isHigh = isHigh
console.log(this.transfer);
console.log(this.transfer)
this.getLevelConfig()
},
methods: {
......
......@@ -36,12 +36,10 @@
<view class="item-body" :style="item.style">
<view class="item-logo" v-if="item.ranking > 3">{{ item.ranking }}</view>
<view class="item-image" v-else>
<image
:src="require(`@/assets/images/point/${index == 0 ? 'crown_' : 'prize_'}${item.ranking || 1}.png`)" />
<image :src="require(`@/assets/images/point/${index == 0 ? 'crown_' : 'prize_'}${item.ranking || 1}.png`)" />
</view>
<view class="item-name">{{ item.staffName }}</view>
<view v-if="item.badgeList && item.badgeList.length"
:class="{ 'item-prize': index == 0, 'item-medal': index != 0 }">
<view v-if="item.badgeList && item.badgeList.length" :class="{ 'item-prize': index == 0, 'item-medal': index != 0 }">
<image :src="index == 0 ? pointImg[item.badgeList[0].growthType - 1] : starImg[index - 1]" />
</view>
<view class="item-num">{{ item.pointValue }}</view>
......@@ -50,12 +48,10 @@
<view class="item-body" v-for="(l, i) in item.list" :key="i">
<view class="item-logo" v-if="l.ranking > 3">{{ l.ranking }}</view>
<view class="item-image" v-else>
<image
:src="require(`@/assets/images/point/${index == 0 ? 'crown_' : 'prize_'}${l.ranking || 0}.png`)" />
<image :src="require(`@/assets/images/point/${index == 0 ? 'crown_' : 'prize_'}${l.ranking || 0}.png`)" />
</view>
<view class="item-name">{{ l.staffName }}</view>
<view v-if="l.badgeList && l.badgeList.length"
:class="{ 'item-prize': index == 0, 'item-medal': index != 0 }">
<view v-if="l.badgeList && l.badgeList.length" :class="{ 'item-prize': index == 0, 'item-medal': index != 0 }">
<image :src="index == 0 ? pointImg[l.badgeList[0].growthType - 1] : starImg[index - 1]" />
</view>
<view class="item-num">{{ l.pointValue }}</view>
......@@ -95,27 +91,26 @@ const POINT_LIST = [
}
]
import point from '@/mixin/point'
import { get } from 'lodash'
import pointTrack from '@/mixin/pointTrack'
export default {
mixins: [point],
mixins: [point, pointTrack],
data() {
return {
pageName: '本月排名',
selectItem: {},
detail: [],
currentIndex: 0,
pointImg: [require('@/assets/images/point/bronze_ranking.png'), require('@/assets/images/point/silver_ranking.png'), require('@/assets/images/point/masonry_ranking.png')],
starImg: [require('@/assets/images/point/study_star.png'), require('@/assets/images/point/time_star.png'), require('@/assets/images/point/elite_star.png')],
pointList: [],
pointList: []
}
},
props: {
transfer: {
type: Object,
default: () => { }
default: () => {}
}
},
mounted() {
},
methods: {
getLevelConfig(countDate) {
let i = 0
......@@ -142,7 +137,7 @@ export default {
const params = {
countDate
}
if (rankingType!= 0) params.rankingType = rankingType
if (rankingType != 0) params.rankingType = rankingType
uni.$api.pointApi.pointMonthRanking(params).then(res => {
const userInfo = uni.$storage.get('userInfo')
let myInfo = res.find(i => i.staffPhone == userInfo.phone)
......
......@@ -4,7 +4,9 @@
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title"><text>积分规则</text></view>
<view class="title">
<text>{{ pageName }}</text>
</view>
</view>
<view class="rule-table">
<view class="table-box">
......@@ -30,10 +32,12 @@
</template>
<script>
import point from '@/mixin/point'
import pointTrack from '@/mixin/pointTrack'
export default {
mixins: [point],
mixins: [point, pointTrack],
data() {
return {
pageName: '积分规则',
selectItem: {},
tabelTh: [
{ title: '分类', width: 6 },
......
......@@ -32,8 +32,7 @@
<view class="card-title">成长勋章</view>
</view>
<view class="card-content star-box">
<view :class="{ 'card-item': true, grey: !myStar.includes(index + 1) }"
v-for="(item, index) in starList" :key="index">
<view :class="{ 'card-item': true, grey: !myStar.includes(index + 1) }" v-for="(item, index) in starList" :key="index">
<image :src="myStar.includes(item.medalType) ? item.logo : item.logo_grey" />
<view class="card-text">{{ item.title }}</view>
</view>
......@@ -52,17 +51,13 @@
<view class="card-content">
<template v-if="couponCount">
<view class="coupon-card">
<view v-for="item in couponList" :key="item.id" class="card-bg"
:class="item.couponState == 2 ? 'claimed-bg' : 'unclaimed-bg'">
<view v-for="item in couponList" :key="item.id" class="card-bg" :class="item.couponState == 2 ? 'claimed-bg' : 'unclaimed-bg'">
<view class="coupon-img">
<image mode="aspectFit" :src="item.couUrl || require('@/assets/images/point/default-coupon.png')"
alt="" />
<image mode="aspectFit" :src="item.couUrl || require('@/assets/images/point/default-coupon.png')" alt="" />
</view>
<view class="coupon-right">
<view :class="['coupon-name', item.couponState == 1 ? 'unclaimed-name' : '']">{{ item.couponName }}
</view>
<view :class="['coupon-price', item.couponState == 1 ? 'unclaimed-price' : '']">价值¥{{
item.lineationPrice }}</view>
<view :class="['coupon-name', item.couponState == 1 ? 'unclaimed-name' : '']">{{ item.couponName }}</view>
<view :class="['coupon-price', item.couponState == 1 ? 'unclaimed-price' : '']">价值¥{{ item.lineationPrice }}</view>
</view>
</view>
</view>
......@@ -91,8 +86,7 @@
<text>/{{ pointDetail.todo ? pointDetail.done + pointDetail.todo : 0 }}</text>
</view>
<view class="process-box">
<view class="process-inter"
:style="{ width: (100 * pointDetail.done) / (pointDetail.done + pointDetail.todo) + '%' }"></view>
<view class="process-inter" :style="{ width: (100 * pointDetail.done) / (pointDetail.done + pointDetail.todo) + '%' }"></view>
</view>
</view>
<view class="point-record">
......@@ -127,10 +121,13 @@
const START_LIST = [{ title: '学习之星', medalType: 1, logo: require('@/assets/images/point/study_star.png'), logo_grey: require('@/assets/images/point/study_grey.png'), },
{ title: '全勤之星', medalType: 2, logo: require('@/assets/images/point/time_star.png'), logo_grey: require('@/assets/images/point/time_grey.png'), },
{ title: '平板接待精英', medalType: 4, logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), }]
import pointTrack from '@/mixin/pointTrack'
export default {
mixins: [pointTrack],
name: '',
data() {
return {
pageName: '积分首页',
level: 1,
month: '',
date: '',
......@@ -166,7 +163,7 @@ export default {
}
],
starList: [],
myStar: [],
recordList: [{ title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }, { title: '签到', time: '2021-09-09', num: 10 }],
couponList: [
......@@ -242,6 +239,7 @@ export default {
this.showPage(name, {
levelConfig: this.levelConfig
})
this.leavePage()
}
}
}
......
......@@ -15,10 +15,10 @@
</view>
</template>
<template v-else-if="tabIndex == 99">
<component is="Point" :userInfo="userInfo" @showPage="handleShowPage" />
<component is="Point" ref="pointRef" :userInfo="userInfo" @showPage="handleShowPage" />
</template>
<template v-else>
<component :is="componentName" :userInfo="userInfo" @showPage="handleShowPage" />
<component :is="componentName" ref="pointRef" :userInfo="userInfo" @showPage="handleShowPage" />
</template>
<view class="store-addr" v-if="footerBox">
<view class="icon-addr sprite-icon icon-addr"></view>
......@@ -58,8 +58,7 @@
<update-box />
<slot name="content" />
<web-view @message="handlerMessage" ref="webview" src="/hybrid/html/index.html"></web-view>
<image v-if="showLeadPage" @click="showLeadPage = false" class="lead-page" src="../../assets/images/noviceGuide/lead-page.png" mode="scaleToFill"
/>
<image v-if="showLeadPage" @click="showLeadPage = false" class="lead-page" src="../../assets/images/noviceGuide/lead-page.png" mode="scaleToFill" />
</view>
</template>
<script>
......@@ -136,6 +135,10 @@ export default {
},
backHome() {
this.showHome = true
console.log(this.$refs.pointRef)
Promise.resolve().then(() => {
this.$refs.pointRef?.$refs?.centerRef?.init && this.$refs.pointRef.$refs.centerRef.init()
})
},
jump(val) {
this.showHome = true
......@@ -157,8 +160,8 @@ export default {
// const version = 14.57 // 浏览器
console.log(version, '---version')
if (version == '2.9.0') {
console.log(leadPage, typeof(leadPage), '===leadPage')
if(leadPage && leadPage.length) {
console.log(leadPage, typeof leadPage, '===leadPage')
if (leadPage && leadPage.length) {
if (!leadPage.includes(phone)) {
this.showLeadPage = true
leadPage.push(phone)
......
/*
* @Author: yangming@didihu.com.cn yangming@didihu.com.cn
* @Date: 2025-05-01 11:00:20
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-05-01 16:36:35
* @FilePath: \gl-tape\mixin\pointTrack.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const FILTER_PAGE = ['收入测算试算页']
export default {
data() {
return {
currentTime: null
}
},
mounted() {
if (!FILTER_PAGE.includes(this.pageName) && this.pageName) {
this.enterPage()
}
},
methods: {
init() {
this.enterPage()
},
// 上报埋点
report() {
const { phone: phoneNumber, uuid, sceneType: bussinessType } = uni.$storage.get('userInfo')
const params = {
phoneNumber,
uuid,
bussinessType,
pageName: this.pageName,
enterTime: this.currentTime,
leaveTime: new Date(),
systemSource: 'app'
}
},
// 离开页面埋点
leavePage() {
console.log('离开页面', this.pageName, this.currentTime, new Date())
},
// 进入页面埋点
enterPage() {
this.currentTime = new Date()
console.log('进入页面', this.pageName, new Date())
}
},
beforeDestroy() {
if (!FILTER_PAGE.includes(this.pageName) && this.pageName) {
this.leavePage()
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!