转账成功页面添加埋点
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') || {}
|
||||
app.config.globalProperties.$system = systemInfo.platform == 'ios' ? 'iOS' : 'Android'
|
||||
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.use(globalMethods);
|
||||
|
|
|
|||
|
|
@ -202,15 +202,18 @@
|
|||
import {
|
||||
ref,
|
||||
onMounted,
|
||||
reactive
|
||||
reactive,
|
||||
getCurrentInstance
|
||||
} from 'vue';
|
||||
import {
|
||||
onShow
|
||||
onShow,
|
||||
onLoad
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
util,
|
||||
numberUtil
|
||||
} from '@/utils/common.js';
|
||||
const { appContext, proxy } = getCurrentInstance();
|
||||
|
||||
const statusBarHeight = ref(0);
|
||||
const editPopup = ref(null);
|
||||
|
|
@ -227,6 +230,15 @@ const transferData = reactive({
|
|||
promoPrice: '8'
|
||||
});
|
||||
|
||||
onLoad(() => {
|
||||
// 进入转账页面埋点
|
||||
proxy.$apiUserEvent('all', {
|
||||
type: 'click',
|
||||
key: 'transfer',
|
||||
value: "转账"
|
||||
})
|
||||
})
|
||||
|
||||
// 从缓存加载数据
|
||||
const loadStorageData = () => {
|
||||
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">
|
||||
<template v-slot:center>
|
||||
<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>
|
||||
</template>
|
||||
</nav-bar>
|
||||
|
|
@ -15,14 +17,31 @@
|
|||
</script>
|
||||
|
||||
<style lang="less">
|
||||
::v-deep .uni-navbar__header-btns {
|
||||
width: auto !important;
|
||||
::v-deep .uni-navbar__header-btns {
|
||||
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%;
|
||||
height: 60rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 12rpx;
|
||||
|
||||
::v-deep .input-placeholder {
|
||||
font-size: 26rpx;
|
||||
line-height: 26rpx;
|
||||
color: #CCCCCC;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in New Issue