Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 44f42185
authored
Oct 25, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
1f34d98b
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
54 additions
and
23 deletions
mixins/index.js
mixins/shareTrackMixin.js
pages/activityApplication/activityApplication.js
pages/activityApplication/activityApplication.wxss
pages/productDetail/ambientLighting/ambientLighting.js
pages/productDetail/arNavigation/arNavigation.js
pages/productDetail/carBeauty/carBeauty.js
pages/productDetail/changingFilm/changingFilm.js
pages/productDetail/equity/equity.js
pages/productDetail/lossPhase/lossPhase.js
pages/productDetail/navigationArround/navigationArround.js
pages/productDetail/paintProtect/paintProtect.js
pages/productDetail/seatVentilate/seatVentilate.js
pages/productDetail/solarFilm/solarFilm.js
pages/tab/index/index.js
utils/Track.js
mixins/index.js
View file @
44f4218
import
componentsMixin
from
'./componentsMixin'
import
componentsMixin
from
'./componentsMixin'
import
menuMixin
from
'./menuMixin'
import
menuMixin
from
'./menuMixin'
import
shareTrackMixin
from
'./shareTrackMixin'
module
.
exports
=
{
module
.
exports
=
{
componentsMixin
,
componentsMixin
,
menuMixin
menuMixin
,
shareTrackMixin
}
}
\ No newline at end of file
\ No newline at end of file
mixins/shareTrackMixin.js
0 → 100644
View file @
44f4218
module
.
exports
=
Behavior
({
methods
:{
shareTrack
()
{
console
.
log
(
77777
);
}
}
})
\ No newline at end of file
\ No newline at end of file
pages/activityApplication/activityApplication.js
View file @
44f4218
...
@@ -193,7 +193,7 @@ Page({
...
@@ -193,7 +193,7 @@ Page({
params
.
productItems
=
productItems
.
join
(
','
)
params
.
productItems
=
productItems
.
join
(
','
)
}
}
params
.
cardId
=
wx
.
$util
.
getStorageSync
(
"scene"
).
cardId
params
.
cardId
=
wx
.
$util
.
getStorageSync
(
"scene"
).
cardId
params
.
merchant
=
wx
.
$util
.
getStorageSync
(
"scene"
).
merchant
Id
params
.
merchant
=
wx
.
$util
.
getStorageSync
(
"scene"
).
merchant
params
.
openId
=
wx
.
$util
.
getStorageSync
(
'aicard_info'
).
openId
params
.
openId
=
wx
.
$util
.
getStorageSync
(
'aicard_info'
).
openId
params
.
unionId
=
wx
.
$util
.
getStorageSync
(
'aicard_info'
).
unionId
params
.
unionId
=
wx
.
$util
.
getStorageSync
(
'aicard_info'
).
unionId
entmicroApi
.
activityApply
(
params
).
then
(({
entmicroApi
.
activityApply
(
params
).
then
(({
...
@@ -207,6 +207,12 @@ Page({
...
@@ -207,6 +207,12 @@ Page({
msg
:
'提交成功'
msg
:
'提交成功'
})
})
wx
.
$router
.
go
(
"applySuccess"
);
wx
.
$router
.
go
(
"applySuccess"
);
}
else
{
wx
.
hideLoading
()
wx
.
showModal
({
content
:
message
,
showCancel
:
false
,
})
}
}
})
})
},
},
...
...
pages/activityApplication/activityApplication.wxss
View file @
44f4218
...
@@ -96,6 +96,7 @@
...
@@ -96,6 +96,7 @@
height: 216rpx;
height: 216rpx;
margin-right: 16rpx;
margin-right: 16rpx;
margin-bottom: 20rpx;
margin-bottom: 20rpx;
box-shadow: 0 6rpx 24rpx 0 rgba(175,181,219,0.40);
}
}
.product-img:nth-child(3n) {
.product-img:nth-child(3n) {
...
@@ -269,7 +270,8 @@
...
@@ -269,7 +270,8 @@
}
}
.item {
.item {
width: 216rpx;
/* width: 216rpx; */
width: calc((100% - 24rpx)/3);
height: 64rpx;
height: 64rpx;
background: #F5F5FA;
background: #F5F5FA;
border-radius: 8rpx;
border-radius: 8rpx;
...
@@ -280,7 +282,7 @@
...
@@ -280,7 +282,7 @@
letter-spacing: 0;
letter-spacing: 0;
text-align: center;
text-align: center;
line-height: 64rpx;
line-height: 64rpx;
margin-right: 1
4
rpx;
margin-right: 1
2
rpx;
margin-bottom: 20rpx;
margin-bottom: 20rpx;
position: relative;
position: relative;
box-sizing: border-box;
box-sizing: border-box;
...
...
pages/productDetail/ambientLighting/ambientLighting.js
View file @
44f4218
// pages/productDetail/ambientLighting/ambientLighting.js
// pages/productDetail/ambientLighting/ambientLighting.js
import
{
trackData
}
from
"../../../utils/data"
;
import
{
trackData
}
from
"../../../utils/data"
;
import
util
from
'../../../utils/util'
import
util
from
'../../../utils/util'
import
shareTrackMixin
from
"../../../mixins/index"
;
Page
({
Page
({
behavior
:
[
shareTrackMixin
],
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
...
@@ -14,7 +15,7 @@ Page({
...
@@ -14,7 +15,7 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
},
},
/**
/**
...
@@ -28,6 +29,8 @@ Page({
...
@@ -28,6 +29,8 @@ Page({
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
()
{
onShow
()
{
console
.
log
(
333
);
this
.
shareTrack
()
const
options
=
wx
.
getEnterOptionsSync
()
const
options
=
wx
.
getEnterOptionsSync
()
if
(
options
.
query
.
cardId
)
{
if
(
options
.
query
.
cardId
)
{
wx
.
$trackData
=
options
.
query
wx
.
$trackData
=
options
.
query
...
@@ -73,9 +76,10 @@ Page({
...
@@ -73,9 +76,10 @@ Page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
onShareAppMessage
()
{
let
merchant
=
util
.
getStorageSync
(
"scene"
).
merchant
||
util
.
getStorageSync
(
"scene"
).
merchantId
return
{
return
{
title
:
trackData
.
LIGHT
.
pageName
,
title
:
trackData
.
LIGHT
.
pageName
,
path
:
'pages/productDetail/ambientLighting/ambientLighting?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
util
.
getStorageSync
(
"scene"
).
merchantId
+
'&detailShare='
+
trackData
.
LIGHT
.
pageName
path
:
'pages/productDetail/ambientLighting/ambientLighting?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
merchant
+
'&detailShare='
+
trackData
.
LIGHT
.
pageName
}
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
pages/productDetail/arNavigation/arNavigation.js
View file @
44f4218
...
@@ -73,9 +73,10 @@ Page({
...
@@ -73,9 +73,10 @@ Page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
onShareAppMessage
()
{
let
merchant
=
util
.
getStorageSync
(
"scene"
).
merchant
||
util
.
getStorageSync
(
"scene"
).
merchantId
return
{
return
{
title
:
trackData
.
ARNAVIGATION
.
pageName
,
title
:
trackData
.
ARNAVIGATION
.
pageName
,
path
:
'pages/productDetail/arNavigation/arNavigation?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
util
.
getStorageSync
(
"scene"
).
merchantId
+
'&detailShare='
+
trackData
.
ARNAVIGATION
.
pageName
path
:
'pages/productDetail/arNavigation/arNavigation?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
merchant
+
'&detailShare='
+
trackData
.
ARNAVIGATION
.
pageName
}
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
pages/productDetail/carBeauty/carBeauty.js
View file @
44f4218
...
@@ -58,11 +58,12 @@ Page({
...
@@ -58,11 +58,12 @@ Page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
onShareAppMessage
()
{
let
merchant
=
util
.
getStorageSync
(
"scene"
).
merchant
||
util
.
getStorageSync
(
"scene"
).
merchantId
return
{
return
{
title
:
trackData
.
CARBEAUTY
.
pageName
,
title
:
trackData
.
CARBEAUTY
.
pageName
,
path
:
path
:
"pages/productDetail/carBeauty/carBeauty?cardId="
+
"pages/productDetail/carBeauty/carBeauty?cardId="
+
util
.
getStorageSync
(
"scene"
).
cardId
+
"&merchant="
+
util
.
getStorageSync
(
"scene"
).
merchantId
+
'&detailShare='
+
trackData
.
CARBEAUTY
.
pageName
util
.
getStorageSync
(
"scene"
).
cardId
+
"&merchant="
+
merchant
+
'&detailShare='
+
trackData
.
CARBEAUTY
.
pageName
};
};
},
},
});
});
pages/productDetail/changingFilm/changingFilm.js
View file @
44f4218
...
@@ -73,9 +73,10 @@ Page({
...
@@ -73,9 +73,10 @@ Page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
onShareAppMessage
()
{
let
merchant
=
util
.
getStorageSync
(
"scene"
).
merchant
||
util
.
getStorageSync
(
"scene"
).
merchantId
return
{
return
{
title
:
trackData
.
CHANGEFILM
.
pageName
,
title
:
trackData
.
CHANGEFILM
.
pageName
,
path
:
'pages/productDetail/changingFilm/changingFilm?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
util
.
getStorageSync
(
"scene"
).
merchantId
+
'&detailShare='
+
trackData
.
CHANGEFILM
.
pageName
path
:
'pages/productDetail/changingFilm/changingFilm?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
merchant
+
'&detailShare='
+
trackData
.
CHANGEFILM
.
pageName
}
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
pages/productDetail/equity/equity.js
View file @
44f4218
...
@@ -29,6 +29,7 @@ Page({
...
@@ -29,6 +29,7 @@ Page({
*/
*/
onShow
()
{
onShow
()
{
const
options
=
wx
.
getEnterOptionsSync
()
const
options
=
wx
.
getEnterOptionsSync
()
if
(
options
.
query
.
cardId
)
{
if
(
options
.
query
.
cardId
)
{
wx
.
$trackData
=
options
.
query
wx
.
$trackData
=
options
.
query
}
}
...
@@ -75,9 +76,10 @@ Page({
...
@@ -75,9 +76,10 @@ Page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
onShareAppMessage
()
{
let
merchant
=
util
.
getStorageSync
(
"scene"
).
merchant
||
util
.
getStorageSync
(
"scene"
).
merchantId
return
{
return
{
title
:
trackData
.
EQUITYCARD
.
pageName
,
title
:
trackData
.
EQUITYCARD
.
pageName
,
path
:
'pages/productDetail/equity/equity?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
util
.
getStorageSync
(
"scene"
).
merchantId
+
'&detailShare='
+
trackData
.
EQUITYCARD
.
pageName
path
:
'pages/productDetail/equity/equity?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
merchant
+
'&detailShare='
+
trackData
.
EQUITYCARD
.
pageName
}
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
pages/productDetail/lossPhase/lossPhase.js
View file @
44f4218
...
@@ -73,9 +73,10 @@ Page({
...
@@ -73,9 +73,10 @@ Page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
onShareAppMessage
()
{
let
merchant
=
util
.
getStorageSync
(
"scene"
).
merchant
||
util
.
getStorageSync
(
"scene"
).
merchantId
return
{
return
{
title
:
trackData
.
LOSSPGASE
.
pageName
,
title
:
trackData
.
LOSSPGASE
.
pageName
,
path
:
'pages/productDetail/lossPhase/lossPhase?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
util
.
getStorageSync
(
"scene"
).
merchantId
+
'&detailShare='
+
trackData
.
LOSSPGASE
.
pageName
path
:
'pages/productDetail/lossPhase/lossPhase?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
merchant
+
'&detailShare='
+
trackData
.
LOSSPGASE
.
pageName
}
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
pages/productDetail/navigationArround/navigationArround.js
View file @
44f4218
...
@@ -73,9 +73,10 @@ Page({
...
@@ -73,9 +73,10 @@ Page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
onShareAppMessage
()
{
let
merchant
=
util
.
getStorageSync
(
"scene"
).
merchant
||
util
.
getStorageSync
(
"scene"
).
merchantId
return
{
return
{
title
:
trackData
.
NAVIGATIONARROUND
.
pageName
,
title
:
trackData
.
NAVIGATIONARROUND
.
pageName
,
path
:
'pages/productDetail/navigationArround/navigationArround?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
util
.
getStorageSync
(
"scene"
).
merchantId
+
'&detailShare='
+
trackData
.
NAVIGATIONARROUND
.
pageName
path
:
'pages/productDetail/navigationArround/navigationArround?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
merchant
+
'&detailShare='
+
trackData
.
NAVIGATIONARROUND
.
pageName
}
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
pages/productDetail/paintProtect/paintProtect.js
View file @
44f4218
...
@@ -73,9 +73,10 @@ Page({
...
@@ -73,9 +73,10 @@ Page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
onShareAppMessage
()
{
let
merchant
=
util
.
getStorageSync
(
"scene"
).
merchant
||
util
.
getStorageSync
(
"scene"
).
merchantId
return
{
return
{
title
:
trackData
.
PAINTPROTECT
.
pageName
,
title
:
trackData
.
PAINTPROTECT
.
pageName
,
path
:
'pages/productDetail/paintProtect/paintProtect?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
util
.
getStorageSync
(
"scene"
).
merchantId
+
'&detailShare='
+
trackData
.
PAINTPROTECT
.
pageName
path
:
'pages/productDetail/paintProtect/paintProtect?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
merchant
+
'&detailShare='
+
trackData
.
PAINTPROTECT
.
pageName
}
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
pages/productDetail/seatVentilate/seatVentilate.js
View file @
44f4218
...
@@ -73,9 +73,10 @@ Page({
...
@@ -73,9 +73,10 @@ Page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
onShareAppMessage
()
{
let
merchant
=
util
.
getStorageSync
(
"scene"
).
merchant
||
util
.
getStorageSync
(
"scene"
).
merchantId
return
{
return
{
title
:
trackData
.
SEATVENTILATE
.
pageName
,
title
:
trackData
.
SEATVENTILATE
.
pageName
,
path
:
'pages/productDetail/seatVentilate/seatVentilate?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
util
.
getStorageSync
(
"scene"
).
merchantId
+
'&detailShare='
+
trackData
.
SEATVENTILATE
.
pageName
path
:
'pages/productDetail/seatVentilate/seatVentilate?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
merchant
+
'&detailShare='
+
trackData
.
SEATVENTILATE
.
pageName
}
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
pages/productDetail/solarFilm/solarFilm.js
View file @
44f4218
...
@@ -75,10 +75,10 @@ Page({
...
@@ -75,10 +75,10 @@ Page({
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
()
{
onShareAppMessage
()
{
console
.
log
(
util
.
getStorageSync
(
'scene'
))
let
merchant
=
util
.
getStorageSync
(
"scene"
).
merchant
||
util
.
getStorageSync
(
"scene"
).
merchantId
return
{
return
{
title
:
trackData
.
SOLARFILM
.
pageName
,
title
:
trackData
.
SOLARFILM
.
pageName
,
path
:
'pages/productDetail/solarFilm/solarFilm?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
util
.
getStorageSync
(
"scene"
).
merchantId
+
'&detailShare='
+
trackData
.
SOLARFILM
.
pageName
path
:
'pages/productDetail/solarFilm/solarFilm?cardId='
+
util
.
getStorageSync
(
'scene'
).
cardId
+
"&merchant="
+
merchant
+
'&detailShare='
+
trackData
.
SOLARFILM
.
pageName
}
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
pages/tab/index/index.js
View file @
44f4218
...
@@ -34,11 +34,11 @@ Page({
...
@@ -34,11 +34,11 @@ Page({
icon
:
"icon-video"
,
icon
:
"icon-video"
,
icon1
:
"icon-video"
,
icon1
:
"icon-video"
,
},
},
{
//
{
name
:
"展业测算"
,
//
name: "展业测算",
icon
:
"icon-measure"
,
//
icon: "icon-measure",
icon1
:
"icon-measure"
,
//
icon1: "icon-measure",
},
//
},
],
],
curTabIndex
:
0
,
curTabIndex
:
0
,
// 0-员工,1-代理商
// 0-员工,1-代理商
...
...
utils/Track.js
View file @
44f4218
...
@@ -122,10 +122,11 @@ class TRACK {
...
@@ -122,10 +122,11 @@ class TRACK {
/**定时发送埋点数据 */
/**定时发送埋点数据 */
sendTrack
(
p
,
info
)
{
sendTrack
(
p
,
info
)
{
console
.
log
(
info
)
console
.
log
(
info
)
console
.
log
(
wx
.
$trackData
);
let
params
=
{
let
params
=
{
method
:
'entmicro.api.business.card.cardRecord'
,
method
:
'entmicro.api.business.card.cardRecord'
,
cardId
:
wx
.
$trackData
.
cardId
,
cardId
:
wx
.
$trackData
.
cardId
,
merchant
:
wx
.
$trackData
.
merchant
||
wx
.
$trackData
.
merchantId
,
merchant
:
wx
.
$trackData
.
merchant
||
wx
.
$trackData
.
merchantId
||
wx
.
$util
.
getStorageSync
(
"scene"
).
merchant
,
type
:
wx
.
$trackData
.
type
type
:
wx
.
$trackData
.
type
}
}
let
userInfo
=
{
}
let
userInfo
=
{
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment