|
@@ -25,11 +25,16 @@ const PrototypeBindPhonePlugin = {
|
|
|
const { props = {}, slots, pass, bound, next, close } = options
|
|
|
props.visible = true
|
|
|
const needPhoneBound = Cookies.get('EXPERIENCESIGN') === 'experiencing'
|
|
|
+ // 绑定成功cookie里塞的值
|
|
|
+ const alreadyBind = Cookies.get('EXPERIENCE')
|
|
|
if (typeof pass === 'function') {
|
|
|
pass()
|
|
|
return
|
|
|
}
|
|
|
if (needPhoneBound) {
|
|
|
+ if (alreadyBind) {
|
|
|
+ return next?.()
|
|
|
+ }
|
|
|
const DialogConstructor = Vue.extend(BindPhoneDialog)
|
|
|
const instance = new DialogConstructor({ propsData: props })
|
|
|
|
|
@@ -48,8 +53,6 @@ const PrototypeBindPhonePlugin = {
|
|
|
}
|
|
|
// 绑定完清除cookie
|
|
|
Cookies.remove('EXPERIENCESIGN')
|
|
|
- Cookies.remove('EXPERIENCESIGN')
|
|
|
- Cookies.remove('EXPERIENCESIGN')
|
|
|
// 绑定成功埋点
|
|
|
try {
|
|
|
window.__EasyJTrack.addTrack(props.name, {
|