| | |
| | | let state = ref(null) |
| | | let orderNo = "" |
| | | let partyId = "" |
| | | onMounted(() => { |
| | | // 美洽客服 |
| | | // const _ll="&id="+_id.value+"&name="+_name.value |
| | | const _ll="" |
| | | // console.log(_ll) |
| | | const _uull='https://cdn.chat20gm.cfd/chat_online/index?channelId=1958101585091772416'+_ll; |
| | | window.location.href=_uull |
| | | |
| | | }) |
| | | // onMounted_bak(() => { |
| | | // orderNo = "" |
| | | // partyId = "" |
| | | // navHeight.value = navEl.value.$el.getBoundingClientRect().height |
| | | // if (route.query.order_no) { |
| | | // getc2cOrderDetails(route.query.order_no, (data) => { |
| | | // console.log("getc2cOrderDetails = " + JSON.stringify(data)) |
| | | // orderNo = data.orderNo; |
| | | // partyId = data.partyId; |
| | | // fetchList() |
| | | // }) |
| | | // } else { |
| | | // if (!homesStore.kefu_url) { |
| | | // fetchList() |
| | | // } |
| | | // } |
| | | // setInterval(() => { |
| | | // getCountdown() |
| | | // }, 1000) |
| | | // const model = navigator.userAgent; |
| | | // // 判断是否是安卓手机,是则是true |
| | | // androidAttrs.value = model.indexOf('Android') > -1 || model.indexOf('Linux') > -1 |
| | | // window.addEventListener('scroll', handleScroll, true) |
| | | // onMounted(() => { |
| | | // // 美洽客服 |
| | | // // const _ll="&id="+_id.value+"&name="+_name.value |
| | | // // const _ll="" |
| | | |
| | | // // const _uull='https://cdn.chat20gm.cfd/chat_online/index?channelId=1958101585091772416'+_ll; |
| | | // // window.location.href=_uull |
| | | // }) |
| | | |
| | | onMounted(() => { |
| | | orderNo = "" |
| | | partyId = "" |
| | | navHeight.value = navEl.value.$el.getBoundingClientRect().height |
| | | if (route.query.order_no) { |
| | | getc2cOrderDetails(route.query.order_no, (data) => { |
| | | console.log("getc2cOrderDetails = " + JSON.stringify(data)) |
| | | orderNo = data.orderNo; |
| | | partyId = data.partyId; |
| | | fetchList() |
| | | }) |
| | | } else { |
| | | if (!homesStore.kefu_url) { |
| | | fetchList() |
| | | } |
| | | } |
| | | setInterval(() => { |
| | | getCountdown() |
| | | }, 1000) |
| | | const model = navigator.userAgent; |
| | | // 判断是否是安卓手机,是则是true |
| | | androidAttrs.value = model.indexOf('Android') > -1 || model.indexOf('Linux') > -1 |
| | | window.addEventListener('scroll', handleScroll, true) |
| | | }) |
| | | |
| | | onBeforeMount(() => { |
| | | homesStore[SET_KEFU]() |
| | | }) |