Commit ecfe4e42 by wangzhihui

Merge branch 'develop' of http://192.168.3.233:8090/saas/mini-program/ydauto-bus…

…iness-assistant into develop
2 parents 9247317d 21f88835
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
商户管理员:15814019200 商户管理员:15814019200
区域督导:187750352053 区域督导:187750352053
销售: 15626599743(开发) 销售: 15626599743(开发)
# 生产环境跟手机号和验证码绑定 需要自己到账号中心绑定手机号成为员工或超管 # 生产环境跟手机号和验证码绑定 需要自己到账号中心绑定手机号成为员工或超管
......
/* packageEquity/pages/aiCheck/defense/defense.wxss */
\ No newline at end of file \ No newline at end of file
...@@ -1082,7 +1082,7 @@ Page({ ...@@ -1082,7 +1082,7 @@ Page({
subVal.merchantGoodsPosition != subV.upgradeGoodsPosition && subVal.merchantGoodsPosition != subV.upgradeGoodsPosition &&
subVal.upgradeGoodsId == subV.upgradeGoodsId subVal.upgradeGoodsId == subV.upgradeGoodsId
) { ) {
debugger // debugger
subV.upgradeGoodsPosition = subVal.merchantGoodsPosition; subV.upgradeGoodsPosition = subVal.merchantGoodsPosition;
} }
}); });
......
...@@ -80,14 +80,19 @@ const domain_items = { ...@@ -80,14 +80,19 @@ const domain_items = {
}, },
uat: { uat: {
dj: "https://dj.test.glsx.com.cn", dj: "https://djpadtest.glsx.com.cn",
scrm: "https://scrm.test.glsx.com.cn", scrm: "https://djpadtest.glsx.com.cn",
AI: 'https://aipractice.test.glsx.com.cn', // dj: "https://dj.test.glsx.com.cn",
// scrm: "https://scrm.test.glsx.com.cn",
// AI: 'https://aipractice.test.glsx.com.cn',
AI: 'https://aipadtest.glsx.com.cn',
merchants: "https://rop-merchant.test.glsx.com.cn", merchants: "https://rop-merchant.test.glsx.com.cn",
}, },
prod: { prod: {
dj: "https://dj.glsx.com.cn", dj: "https://djpadtest.glsx.com.cn",
scrm: "https://scrm.glsx.com.cn", scrm: "https://djpadtest.glsx.com.cn",
// dj: "https://dj.glsx.com.cn",
// scrm: "https://scrm.glsx.com.cn",
AI: 'https://aipractice.glsx.com.cn', AI: 'https://aipractice.glsx.com.cn',
merchants: "https://commodity.glsx.com.cn", merchants: "https://commodity.glsx.com.cn",
}, },
......
...@@ -34,25 +34,25 @@ class TRACK { ...@@ -34,25 +34,25 @@ class TRACK {
fun = fun.filter(e => filtered.includes(e)) fun = fun.filter(e => filtered.includes(e))
keys.map(key => { keys.map(key => {
if (typeof thisPage[key] === 'function') { if (typeof thisPage[key] === 'function') {
const FUN = thisPage[key] const FUN = thisPage[key]
thisPage[key] = function (event) { thisPage[key] = function (event) {
if (event && event.type == 'tap') { if (event && event.type == 'tap') {
let { let {
eventCode, eventCode,
track track
} = event.currentTarget.dataset } = event.currentTarget.dataset
if (eventCode) _this.setTrackData(0, eventCode, track) if (eventCode) _this.setTrackData(0, eventCode, track)
}
return FUN.apply(this, arguments)
} }
return FUN.apply(this, arguments)
} }
}) }
})
. .
thisPage.onTabItemTap = function (options) { thisPage.onTabItemTap = function (options) {
onTabItemTap && onTabItemTap.apply(this, arguments) onTabItemTap && onTabItemTap.apply(this, arguments)
// , _this.setTrackData({}, 1) // , _this.setTrackData({}, 1)
} }
thisPage.onLoad = function () { thisPage.onLoad = function () {
onLoad && onLoad.apply(this, arguments) onLoad && onLoad.apply(this, arguments)
//, _this.setTrackData({ //, _this.setTrackData({
...@@ -170,26 +170,27 @@ class TRACK { ...@@ -170,26 +170,27 @@ class TRACK {
} }
/**调取API */ /**调取API */
sendData() { sendData() {
let recordList = $Storage.get('recordList') $Storage.set('recordList', []) // 去掉埋点调用
if (recordList && recordList.length) // let recordList = $Storage.get('recordList')
api.post( // if (recordList && recordList.length)
'clue.api.burial.point.record.batch.insert', { // api.post(
recordList // 'clue.api.burial.point.record.batch.insert', {
}, // recordList
[], // },
'/rop-scrm-clue/router', // [],
"scrm", // '/rop-scrm-clue/router',
false // "scrm",
).then(({ // false
code, // ).then(({
data, // code,
message // data,
}) => { // message
if (code == 0 && data) { // }) => {
$Storage.set('recordList', []) // if (code == 0 && data) {
console.log('---------------- 埋点定时推送成功 ----------------', new Date().format('yyyy-MM-dd hh:mm:ss'), ':', recordList) // $Storage.set('recordList', [])
} else console.log('---------------- 埋点定时推送失败 ----------------', new Date().format('yyyy-MM-dd hh:mm:ss'), ':', message) // console.log('---------------- 埋点定时推送成功 ----------------', new Date().format('yyyy-MM-dd hh:mm:ss'), ':', recordList)
}) // } else console.log('---------------- 埋点定时推送失败 ----------------', new Date().format('yyyy-MM-dd hh:mm:ss'), ':', message)
// })
} }
/**获取页面对象实例 */ /**获取页面对象实例 */
getPageInstance = (size = 1) => { getPageInstance = (size = 1) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!