Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
1c0545e1
Commit
1c0545e1
authored
Feb 10, 2020
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我也要制作上架到按钮点击埋点事件
parent
c53c3ffe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
2 deletions
+46
-2
index.js
components/sjdbottombar/index.js
+10
-1
index.wxml
components/sjdbottombar/index.wxml
+1
-1
index.js
ucenter/index.js
+32
-0
index.wxml
ucenter/index.wxml
+3
-0
No files found.
components/sjdbottombar/index.js
View file @
1c0545e1
...
...
@@ -46,9 +46,13 @@ Component({
type
:
String
,
value
:
'/ucenter/index'
},
newpath
:
{
//来源路径
type
:
String
,
value
:
''
},
},
ready
()
{
console
.
log
(
this
.
data
.
newpath
,
'this'
)
},
methods
:
{
goUserBusiness
()
{
...
...
@@ -96,9 +100,14 @@ Component({
})
},
bindContactDialog
(){
this
.
triggerEvent
(
'opendia'
);
this
.
setData
({
showModal
:
!
this
.
data
.
showModal
})
},
godialog
()
{
console
.
log
(
'dddd'
);
this
.
triggerEvent
(
'godialog'
);
}
}
})
\ No newline at end of file
components/sjdbottombar/index.wxml
View file @
1c0545e1
...
...
@@ -10,6 +10,6 @@
<image class="icon-close" src="{{imageRoot}}2b/common/closeicon.png?{{imageVersion}}" bindtap="bindContactDialog"></image>
<view class="modal-title">进入客服消息,点击右下角,获取公众号二维码。</view>
<image class="pic" src="{{imageRoot}}service/service_enter.png?{{imageVersion}}"></image>
<button class="btn-open" open-type='contact' keyword="{{keyword}}" show-message-card="true" send-message-title="{{sharetitle}}" send-message-path="{{path}}" send-message-img="{{imageRoot}}{{coverimg}}?{{imageVersion}}">点击获取</button>
<button class="btn-open"
bindtap="godialog"
open-type='contact' keyword="{{keyword}}" show-message-card="true" send-message-title="{{sharetitle}}" send-message-path="{{path}}" send-message-img="{{imageRoot}}{{coverimg}}?{{imageVersion}}">点击获取</button>
</view>
</view>
\ No newline at end of file
ucenter/index.js
View file @
1c0545e1
...
...
@@ -585,6 +585,38 @@ Page({
})
})
},
opendia
()
{
// 点击我也要用小程序
const
{
originParams
,
originScene
,
}
=
app
.
globalData
;
behaviorLog
({
source_path
:
`ucenter/index:useqxt`
,
source_id
:
this
.
data
.
sid
,
source_type_model
:
1
,
scene
:
originScene
||
''
,
param
:
JSON
.
stringify
({
from
:
originParams
,
source
:
this
.
data
.
options
,
})
})
},
godialog
()
{
// 点击进入客服消息
const
{
originParams
,
originScene
,
}
=
app
.
globalData
;
behaviorLog
({
source_path
:
`ucenter/index:gogetqxt`
,
source_id
:
this
.
data
.
sid
,
source_type_model
:
1
,
scene
:
originScene
||
''
,
param
:
JSON
.
stringify
({
from
:
originParams
,
source
:
this
.
data
.
options
,
})
})
},
true
(){}
})
\ No newline at end of file
ucenter/index.wxml
View file @
1c0545e1
...
...
@@ -181,6 +181,9 @@
pagetitle="我也要用小程序 > "
pagetitletip="立即使用"
sharetitle="校区管理,打卡作业招生"
bind:opendia="opendia"
bind:godialog="godialog"
newpath="/ucenter/index"
coverimg="service/tosue.png"
></sjdbottombar>
<view class="modal modalUsers {{modelUsersAnimate? 'hide': ''}}" hidden="{{!modalUsers}}">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment