Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
0526f8e215573ddf66653077c1a306713dc41b18
2 parents
86b4fefd
b9a8dcbe
Merge branch 'feature/deletepy'
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
2 additions
and
92 deletions
assets/emailback.html
assets/phoneback.html
assets/signin.html
library/WebPlugin/Helpers.php
template/www.yohobuy.com/actions/cart/index/cart.phtml
template/www.yohobuy.com/actions/shopping/pay/cashondelivery.phtml
template/www.yohobuy.com/actions/shopping/pay/index.phtml
template/www.yohobuy.com/actions/shopping/pay/notneedpay.phtml
template/www.yohobuy.com/partials/layout/analysis.phtml
template/www.yohobuy.com/partials/shopping/pinyou-analysis.phtml
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
assets/emailback.html
View file @
0526f8e
...
...
@@ -75,18 +75,4 @@
}
window
.
addEventListener
(
'load'
,
async_load
,
false
);
</script>
<script>
window
.
_py
=
window
.
_py
||
[];
window
.
_py
.
push
([
'a'
,
'MC..o8vMMWxEXDCiqYckD81lUX'
]);
window
.
_py
.
push
([
'domain'
,
'stats.ipinyou.com'
]);
window
.
_py
.
push
([
'e'
,
''
]);
if
(
typeof
_goodsData
!=
'undefined'
){
window
.
_py
.
push
([
'pi'
,
_goodsData
]);
}
-
function
(
d
){
var
f
=
'https:'
==
d
.
location
.
protocol
;
var
c
=
d
.
createElement
(
'script'
);
c
.
type
=
'text/javascript'
;
c
.
async
=
1
;
c
.
src
=
(
f
?
'https'
:
'http'
)
+
'://'
+
(
f
?
'fm.ipinyou.com'
:
'fm.p0y.cn'
)
+
'/j/t/adv.js'
;
var
h
=
d
.
getElementsByTagName
(
"script"
)[
0
];
h
.
parentNode
.
insertBefore
(
c
,
h
);
}(
document
);
</script>
</html>
\ No newline at end of file
...
...
assets/phoneback.html
View file @
0526f8e
...
...
@@ -93,18 +93,4 @@
}
window
.
addEventListener
(
'load'
,
async_load
,
false
);
</script>
<script>
window
.
_py
=
window
.
_py
||
[];
window
.
_py
.
push
([
'a'
,
'MC..o8vMMWxEXDCiqYckD81lUX'
]);
window
.
_py
.
push
([
'domain'
,
'stats.ipinyou.com'
]);
window
.
_py
.
push
([
'e'
,
''
]);
if
(
typeof
_goodsData
!=
'undefined'
){
window
.
_py
.
push
([
'pi'
,
_goodsData
]);
}
-
function
(
d
){
var
f
=
'https:'
==
d
.
location
.
protocol
;
var
c
=
d
.
createElement
(
'script'
);
c
.
type
=
'text/javascript'
;
c
.
async
=
1
;
c
.
src
=
(
f
?
'https'
:
'http'
)
+
'://'
+
(
f
?
'fm.ipinyou.com'
:
'fm.p0y.cn'
)
+
'/j/t/adv.js'
;
var
h
=
d
.
getElementsByTagName
(
"script"
)[
0
];
h
.
parentNode
.
insertBefore
(
c
,
h
);
}(
document
);
</script>
</html>
\ No newline at end of file
...
...
assets/signin.html
View file @
0526f8e
...
...
@@ -107,18 +107,4 @@
}
window
.
addEventListener
(
'load'
,
async_load
,
false
);
</script>
<script>
window
.
_py
=
window
.
_py
||
[];
window
.
_py
.
push
([
'a'
,
'MC..o8vMMWxEXDCiqYckD81lUX'
]);
window
.
_py
.
push
([
'domain'
,
'stats.ipinyou.com'
]);
window
.
_py
.
push
([
'e'
,
''
]);
if
(
typeof
_goodsData
!=
'undefined'
){
window
.
_py
.
push
([
'pi'
,
_goodsData
]);
}
-
function
(
d
){
var
f
=
'https:'
==
d
.
location
.
protocol
;
var
c
=
d
.
createElement
(
'script'
);
c
.
type
=
'text/javascript'
;
c
.
async
=
1
;
c
.
src
=
(
f
?
'https'
:
'http'
)
+
'://'
+
(
f
?
'fm.ipinyou.com'
:
'fm.p0y.cn'
)
+
'/j/t/adv.js'
;
var
h
=
d
.
getElementsByTagName
(
"script"
)[
0
];
h
.
parentNode
.
insertBefore
(
c
,
h
);
}(
document
);
</script>
</html>
\ No newline at end of file
...
...
library/WebPlugin/Helpers.php
View file @
0526f8e
...
...
@@ -757,8 +757,6 @@ class Helpers
// 分析用: 商品ID列表
$analysis
[
'ids'
][]
=
$value
[
'product_id'
];
// 分析用: 品友
$analysis
[
'ipinyou'
]
.=
$value
[
'product_skn'
]
.
','
.
$value
[
'buy_number'
]
.
';'
;
//iponyou变更为skn
// 分析用: CRITEO
$analysis
[
'criteo'
][]
=
array
(
'id'
=>
$value
[
'product_skn'
],
...
...
@@ -769,8 +767,6 @@ class Helpers
else
{
// 分析用: 商品ID列表
$analysis
[
'ids'
][]
=
$value
[
'product_id'
];
// 分析用: 品友
$analysis
[
'ipinyou'
]
.=
$value
[
'product_skn'
]
.
','
.
$value
[
'buy_number'
]
.
';'
;
// 分析用: CRITEO
$analysis
[
'criteo'
][]
=
array
(
'id'
=>
$value
[
'product_skn'
],
...
...
template/www.yohobuy.com/actions/cart/index/cart.phtml
View file @
0526f8e
...
...
@@ -377,12 +377,4 @@ _mvq.push(['$logConversion']);
_mvq.push(
[
'$addItem'
,
''
,
/*商品id*/
'
{
{cartEnsure.ids
}
}'
,
''
,
''
]
);
_mvq.push(
[
'$logData'
]
);
</script>
<script>
!function(w,d,e)
{
var
_money='{{cartEnsure.ipinyouAmount
}
}';
var
_productList='
{
{cartEnsure.ipinyou
}
}';
var
b=location.href,c=d.referrer,f,s,g=d.cookie,h=g.match(/(^|;)\s*ipycookie=(
[
^;
]
*)/),i=g.match(/(^|;)\s*ipysession=(
[
^;
]
*)/);if
(w.parent!=w)
{
f=b;b=c;c=f;
}
;u='//stats.ipinyou.com/cvt?a='+e('MC.Ok.
7
NFMIlCH_F_LE
2
riRlF
2
r_')+'&c='+e(h?h
[
2
]
:'')+'&s='+e(i?i
[
2
]
.match(/jump\%
3
D(\d+)/)
[
1
]
:'')+'&u='+e(b)+'&r='+e(c)+'&rd='+(new
Date()).getTime()+'&Money='+e(_money)+'&ProductList='+e(_productList)+'&e=';
function
_()
{
if(!d.body){setTimeout(_(),100);
}
else
{
s=
d.createElement('script');s.src
=
u;d.body.insertBefore(s,d.body.firstChild);
}
}_();
}(window,document,encodeURIComponent);
</script>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/actions/shopping/pay/cashondelivery.phtml
View file @
0526f8e
...
...
@@ -62,9 +62,6 @@
{
{/
shoppingpay
}
}
</div>
{
{!--
品有统计代码
--
}
}
{
{>
shopping/pinyou-analysis
}
}
{
{!--
criteo统计代码
--
}
}
{
{>
pay/pay-analysis
}
}
...
...
template/www.yohobuy.com/actions/shopping/pay/index.phtml
View file @
0526f8e
...
...
@@ -148,7 +148,4 @@
{
{>
shopping/box-buy-analysis
}
}
{
{/
shoppingpay
}
}
{
{!--
品有统计代码
--
}
}
{
{>
shopping/pinyou-analysis
}
}
{
{>
layout/footer
}
}
...
...
template/www.yohobuy.com/actions/shopping/pay/notneedpay.phtml
View file @
0526f8e
...
...
@@ -26,9 +26,6 @@
</script>
{
{/shoppingpay
}
}
{
{!--
品有统计代码
--
}
}
{
{>
shopping/pinyou-analysis
}
}
{
{!--
criteo统计代码
--
}
}
{
{>
pay/pay-analysis
}
}
...
...
template/www.yohobuy.com/partials/layout/analysis.phtml
View file @
0526f8e
...
...
@@ -31,18 +31,4 @@ var _gaq = _gaq || [];
window.attachEvent('onload', async_load);
}
})();
</script>
<script>
window._py = window._py||[];
window._py.push(['a', 'MC..o8vMMWxEXDCiqYckD81lUX']);
window._py.push(['domain','stats.ipinyou.com']);
window._py.push(['e','']);
if(typeof _goodsData!='undefined'){
window._py.push(['pi',_goodsData]);
}
-function(d){
var f = 'https:' == d.location.protocol;var c = d.createElement('script');c.type='text/javascript';c.async=1;
c.src=(f ? 'https' : 'http') + '://'+(f?'fm.ipinyou.com':'fm.p0y.cn')+'/j/t/adv.js';
var h = d.getElementsByTagName("script")[0];h.parentNode.insertBefore(c, h);
}(document);
</script>
\ No newline at end of file
...
...
template/www.yohobuy.com/partials/shopping/pinyou-analysis.phtml
deleted
100644 → 0
View file @
86b4fef
{
{#
pinyou
}
}
<script>
!function(w,d,e)
{
var
_orderno='{{orderNum
}
}';
var
_money='
{
{count
}
}';
var
_productList='
{
{productList
}
}';
var
b=location.href,c=d.referrer,f,s,g=d.cookie,h=g.match(/(^|;)\s*ipycookie=(
[
^;
]
*)/),i=g.match(/(^|;)\s*ipysession=(
[
^;
]
*)/);if
(w.parent!=w)
{
f=b;b=c;c=f;
}
;u='//stats.ipinyou.com/cvt?a='+e('MC.
2
z.Rg-AQqSqQi
2
GykX
12
LUxI
0
')+'&c='+e(h?h
[
2
]
:'')+'&s='+e(i?i
[
2
]
.match(/jump\%
3
D(\d+)/)
[
1
]
:'')+'&u='+e(b)+'&r='+e(c)+'&rd='+(new
Date()).getTime()+'&OrderNo='+e(_orderno)+'&Money='+e(_money)+'&ProductList='+e(_productList)+'&e=';
function
_()
{
if(!d.body){setTimeout(_(),100);
}
else
{
s=
d.createElement('script');s.src
=
u;d.body.insertBefore(s,d.body.firstChild);
}
}_();
}(window,document,encodeURIComponent);
</script>
{
{/
pinyou
}
}
\ No newline at end of file
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
View file @
0526f8e
...
...
@@ -42,7 +42,7 @@ class CartModel
$result
=
array
();
// 存放分析用的数据
$analysisData
=
array
(
'ipinyou'
=>
''
);
$analysisData
=
array
();
do
{
$result
[
'isEmpty'
]
=
false
;
...
...
@@ -200,8 +200,6 @@ class CartModel
// 增加第三方分析用的数据
$result
[
'ids'
]
=
empty
(
$analysisData
[
'ids'
])
?
''
:
implode
(
','
,
$analysisData
[
'ids'
]);
$result
[
'ipinyou'
]
=
empty
(
$analysisData
[
'ipinyou'
])
?
''
:
$analysisData
[
'ipinyou'
];
$result
[
'ipinyouAmount'
]
=
isset
(
$result
[
'productAllA'
])
?
$result
[
'productAllA'
]
:
'0.00'
;
$result
[
'criteo'
]
=
empty
(
$analysisData
[
'criteo'
])
?
"''"
:
json_encode
(
$analysisData
[
'criteo'
]);
return
$result
;
...
...
@@ -707,7 +705,7 @@ class CartModel
private
static
function
filterCartPay
(
$pay
,
$cartType
,
$isAdvanceCart
,
$uid
)
{
// 存放分析用的数据
$analysisData
=
array
(
'ipinyou'
=>
''
);
$analysisData
=
array
();
$result
=
array
();
do
{
...
...
Please
register
or
login
to post a comment