sendStatistics(title?:string, name?: string){
// todo 处理shopId 不实时问题
let localShopInfo = JSON.parse(localStorage.getItem('snailShopInfo'));
let shopID = localShopInfo.shop_id;
let sendData = {
shop_id: Number(shopID),
ex_current_page: title,
ex_kind: '点击',
ex_next_page: name,
ex_title: name,
}
let connect = this._api.getApi({
apiUrl: XXXXX,
sendData: sendData,
type: 'post'
})
connect.then(res => {
if (res) {
console.log('统计',name)
}
})
}sendStatistics(title?:string, name?: string){
// todo 处理shopId 不实时问题
let localShopInfo = JSON.parse(localStorage.getItem('snailShopInfo'));
let shopID = localShopInfo.shop_id;
let sendData = {
shop_id: Number(shopID),
ex_current_page: title,
ex_kind: '点击',
ex_next_page: name,
ex_title: name,
}
let connect = this._api.getApi({
apiUrl: XXXXX,
sendData: sendData,
type: 'post'
})
connect.then(res => {
if (res) {
console.log('统计',name)
}
})
}sendStatistics(title?:string, name?: string){
// todo 处理shopId 不实时问题
let localShopInfo = JSON.parse(localStorage.getItem('snailShopInfo'));
let shopID = localShopInfo.shop_id;
let sendData = {
shop_id: Number(shopID),
ex_current_page: title,
ex_kind: '点击',
ex_next_page: name,
ex_title: name,
}
let connect = this._api.getApi({
apiUrl: XXXXX,
sendData: sendData,
type: 'post'
})
connect.then(res => {
if (res) {
console.log('统计',name)
}
})
}