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