转账成功页面添加埋点
This commit is contained in:
parent
4dbe88a024
commit
3fd398ffa4
2
main.js
2
main.js
|
|
@ -27,7 +27,7 @@ export function createApp() {
|
||||||
const systemInfo = uni.getStorageSync('systemInfo') || {}
|
const systemInfo = uni.getStorageSync('systemInfo') || {}
|
||||||
app.config.globalProperties.$system = systemInfo.platform == 'ios' ? 'iOS' : 'Android'
|
app.config.globalProperties.$system = systemInfo.platform == 'ios' ? 'iOS' : 'Android'
|
||||||
app.config.globalProperties.$systemInfo = systemInfo
|
app.config.globalProperties.$systemInfo = systemInfo
|
||||||
uni.setStorageSync('version', '1.0.3.sp12')
|
uni.setStorageSync('version', '1.0.3.sp13')
|
||||||
app.config.globalProperties.$version = uni.getStorageSync('version')
|
app.config.globalProperties.$version = uni.getStorageSync('version')
|
||||||
|
|
||||||
app.use(globalMethods);
|
app.use(globalMethods);
|
||||||
|
|
|
||||||
|
|
@ -202,15 +202,18 @@
|
||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
onMounted,
|
onMounted,
|
||||||
reactive
|
reactive,
|
||||||
|
getCurrentInstance
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import {
|
import {
|
||||||
onShow
|
onShow,
|
||||||
|
onLoad
|
||||||
} from '@dcloudio/uni-app';
|
} from '@dcloudio/uni-app';
|
||||||
import {
|
import {
|
||||||
util,
|
util,
|
||||||
numberUtil
|
numberUtil
|
||||||
} from '@/utils/common.js';
|
} from '@/utils/common.js';
|
||||||
|
const { appContext, proxy } = getCurrentInstance();
|
||||||
|
|
||||||
const statusBarHeight = ref(0);
|
const statusBarHeight = ref(0);
|
||||||
const editPopup = ref(null);
|
const editPopup = ref(null);
|
||||||
|
|
@ -227,6 +230,15 @@ const transferData = reactive({
|
||||||
promoPrice: '8'
|
promoPrice: '8'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onLoad(() => {
|
||||||
|
// 进入转账页面埋点
|
||||||
|
proxy.$apiUserEvent('all', {
|
||||||
|
type: 'click',
|
||||||
|
key: 'transfer',
|
||||||
|
value: "转账"
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
// 从缓存加载数据
|
// 从缓存加载数据
|
||||||
const loadStorageData = () => {
|
const loadStorageData = () => {
|
||||||
const savedData = uni.getStorageSync(STORAGE_KEY);
|
const savedData = uni.getStorageSync(STORAGE_KEY);
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -3,7 +3,9 @@
|
||||||
<nav-bar title="京东" bgColor="#F0F4F9">
|
<nav-bar title="京东" bgColor="#F0F4F9">
|
||||||
<template v-slot:center>
|
<template v-slot:center>
|
||||||
<view class="search-box">
|
<view class="search-box">
|
||||||
<input type="text" placeholder="" />
|
<image class="search-icon" src="/static/image/shopping/jingdong/search-icon.png" mode="aspectFit">
|
||||||
|
</image>
|
||||||
|
<input class="input" type="text" placeholder="搜索我的订单" disabled />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</nav-bar>
|
</nav-bar>
|
||||||
|
|
@ -15,14 +17,31 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
::v-deep .uni-navbar__header-btns {
|
::v-deep .uni-navbar__header-btns {
|
||||||
width: auto !important;
|
width: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-box {
|
||||||
|
width: 100%;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 12rpx;
|
||||||
|
padding: 12rpx 16rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
border: 1rpx solid #E5E5E5;
|
||||||
|
|
||||||
|
.search-icon {
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-right: 14rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-box {
|
|
||||||
width: 100%;
|
::v-deep .input-placeholder {
|
||||||
height: 60rpx;
|
font-size: 26rpx;
|
||||||
background-color: #fff;
|
line-height: 26rpx;
|
||||||
border-radius: 12rpx;
|
color: #CCCCCC;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in New Issue