增加用户行为
parent
3bf4926b5d
commit
42a48ac3b3
|
|
@ -104,6 +104,7 @@
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getSearch(this.keyword)
|
this.getSearch(this.keyword)
|
||||||
|
this.setInsert()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getHighlight(val) {
|
getHighlight(val) {
|
||||||
|
|
@ -184,8 +185,20 @@
|
||||||
uni.$showMsg()
|
uni.$showMsg()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
},
|
||||||
,
|
async setInsert () {
|
||||||
|
try {
|
||||||
|
const params = {
|
||||||
|
createId: uni.getStorageSync('value').userId,
|
||||||
|
loginType:1,
|
||||||
|
menu1:'通讯录',
|
||||||
|
menu2:'通讯录',
|
||||||
|
}
|
||||||
|
|
||||||
|
const { data } = await uni.$http.post('/gunshiApp/xfflood/visitMenuLog/insert',params)
|
||||||
|
console.log('用户行为',params,data)
|
||||||
|
} catch (error) {}
|
||||||
|
},
|
||||||
itemClick(item,index) {
|
itemClick(item,index) {
|
||||||
this.treeData = item.children,
|
this.treeData = item.children,
|
||||||
this.treePath = [...this.treePath,{
|
this.treePath = [...this.treePath,{
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
<!-- nav -->
|
<!-- nav -->
|
||||||
<view class="navBar">
|
<view class="navBar">
|
||||||
<div class="navList" v-for="(item, index) in getNavList" :key="index">
|
<div class="navList" v-for="(item, index) in getNavList" :key="index">
|
||||||
<div @click="myNavigateTo(item.url)">
|
<div @click="myNavigateTo(item.url,item.value)">
|
||||||
<div class="navIcon">
|
<div class="navIcon">
|
||||||
<image
|
<image
|
||||||
style="width: 100%; height: 100%"
|
style="width: 100%; height: 100%"
|
||||||
|
|
@ -691,6 +691,19 @@ export default {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async setInsert (menu2) {
|
||||||
|
try {
|
||||||
|
const params = {
|
||||||
|
createId: uni.getStorageSync('value').userId,
|
||||||
|
loginType:1,
|
||||||
|
menu1:'首页',
|
||||||
|
menu2: menu2||'首页',
|
||||||
|
}
|
||||||
|
|
||||||
|
const { data } = await uni.$http.post('/gunshiApp/xfflood/visitMenuLog/insert',params)
|
||||||
|
console.log('用户行为',params,data)
|
||||||
|
} catch (error) {}
|
||||||
|
},
|
||||||
jumpHdDetail (params) {
|
jumpHdDetail (params) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/hdDetail/hdDetail?stcd=${params.stcd}&stnm=${params.stnm}&source=${params.source}&wrz=${params.wrz}&grz=${params.grz}`
|
url: `/pages/hdDetail/hdDetail?stcd=${params.stcd}&stnm=${params.stnm}&source=${params.source}&wrz=${params.wrz}&grz=${params.grz}`
|
||||||
|
|
@ -905,10 +918,11 @@ export default {
|
||||||
uni.$showMsg()
|
uni.$showMsg()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
myNavigateTo (url) {
|
myNavigateTo (url,menu2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: url // 跳转到对应路径的页面
|
url: url // 跳转到对应路径的页面
|
||||||
})
|
})
|
||||||
|
this.setInsert(menu2)
|
||||||
}
|
}
|
||||||
// 响应级别
|
// 响应级别
|
||||||
},
|
},
|
||||||
|
|
@ -923,6 +937,7 @@ export default {
|
||||||
this.getReadStatus()
|
this.getReadStatus()
|
||||||
this.getResponseLevel()
|
this.getResponseLevel()
|
||||||
this.getDispatchStatus()
|
this.getDispatchStatus()
|
||||||
|
this.setInsert()
|
||||||
if (this.limit == 1) {
|
if (this.limit == 1) {
|
||||||
this.getYjRead()
|
this.getYjRead()
|
||||||
// this.getInterval()
|
// this.getInterval()
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,9 @@
|
||||||
default_src: uni.getStorageSync('avatar'),
|
default_src: uni.getStorageSync('avatar'),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
this.setInsert()
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.default_src = uni.getStorageSync('avatar')
|
this.default_src = uni.getStorageSync('avatar')
|
||||||
this.userList = uni.getStorageSync('value')
|
this.userList = uni.getStorageSync('value')
|
||||||
|
|
@ -80,6 +83,19 @@
|
||||||
})
|
})
|
||||||
// console.log('click',index,func[index].url)
|
// console.log('click',index,func[index].url)
|
||||||
},
|
},
|
||||||
|
async setInsert () {
|
||||||
|
try {
|
||||||
|
const params = {
|
||||||
|
createId: uni.getStorageSync('value').userId,
|
||||||
|
loginType:1,
|
||||||
|
menu1:'我的',
|
||||||
|
menu2:'我的',
|
||||||
|
}
|
||||||
|
|
||||||
|
const { data } = await uni.$http.post('/gunshiApp/xfflood/visitMenuLog/insert',params)
|
||||||
|
console.log('用户行为',params,data)
|
||||||
|
} catch (error) {}
|
||||||
|
},
|
||||||
logout(){
|
logout(){
|
||||||
if(uni.getStorageSync('loginChecked')===true){
|
if(uni.getStorageSync('loginChecked')===true){
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue