Skip to content

Commit 4160598

Browse files
committed
update index.html, include ptuple
1 parent 4910477 commit 4160598

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

index.html

+25-27
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<meta charset="utf-8">
33
<html>
44
<head>
5-
<script id="TEST-erjs" type="text/javascript">
5+
<!--script id="TEST-erjs" type="text/javascript">
66
window.onload = function(){
77
getCustomizeActionData();
88
}
@@ -15,14 +15,15 @@
1515
}
1616
console.log("qevent: "+temp_qevent);
1717
}
18-
</script>
18+
</script-->
1919
<script id="etu-recommender" type="text/javascript">
2020
var erHostname='210.63.38.209';
2121
var erUrlPrefix='210.63.38.209';//for local test
2222
var _qevents = _qevents || [];
2323

2424
_qevents.push({
2525
cid : document.getElementById("dcid").value,
26+
uid : document.getElementById("duid").value,
2627
act : document.getElementById("dact").value,
2728
pid : document.getElementById("dpid").value,
2829
cat : document.getElementById("dcat").value,
@@ -33,26 +34,31 @@
3334
unit_price : document.getElementById("dunit_price").value,
3435
pcat : document.getElementById("dpcat").value,
3536
pmk : document.getElementById("dpmk").value,
36-
}]
37+
}],
38+
ercamp : document.getElementById("dercamp").value,
39+
erad : document.getElementById("derad").value,
3740
});
3841

3942
var erUrlPrefix=('https:' == document.location.protocol ?'https://':'http://')+erHostname+'/';
4043

4144
function ERsend(){
4245
_qevents = [];
4346
_qevents.push({
44-
cid : document.getElementById("dcid").value,
45-
act : document.getElementById("dact").value,
46-
pid : document.getElementById("dpid").value,
47-
cat : document.getElementById("dcat").value,
47+
cid : document.getElementById("acid").value,
48+
uid : document.getElementById("auid").value,
49+
act : document.getElementById("aact").value,
50+
pid : document.getElementById("apid").value,
51+
cat : document.getElementById("acat").value,
4852
ptuple : [
4953
{
50-
paypid : document.getElementById("dpaypid").value,
51-
qty : document.getElementById("dqty").value,
52-
unit_price : document.getElementById("dunit_price").value,
53-
pcat : document.getElementById("dpcat").value,
54-
pmk : document.getElementById("dpmk").value,
55-
}]
54+
paypid : document.getElementById("apaypid").value,
55+
qty : document.getElementById("aqty").value,
56+
unit_price : document.getElementById("aunit_price").value,
57+
pcat : document.getElementById("apcat").value,
58+
pmk : document.getElementById("apmk").value,
59+
}],
60+
ercamp : document.getElementById("aercamp").value,
61+
erad : document.getElementById("aerad").value,
5662
});
5763

5864
_qquery1 = [];
@@ -94,7 +100,7 @@ <h1>er.js testing EC site</h1>
94100
<div id = "setDefault">
95101
<legend> default </legend>
96102
<label> fill </label>
97-
<input class = "custom-action" type = "text" id = "dcid" placeholder = "cid" value = "saas_testing_ec"/><br>
103+
<input class = "default-action" type = "text" id = "dcid" placeholder = "cid" value = "saas_testing_ec"/><br>
98104
<label> fill </label>
99105
<input class = "default-action" type = "text" id = "duid" placeholder = "uid" value = "testbot"/><br>
100106
<label> fill </label>
@@ -104,19 +110,15 @@ <h1>er.js testing EC site</h1>
104110
<label> fill </label>
105111
<input class = "default-action" type = "text" id = "dpid" placeholder = "pid" value = "test"/><br>
106112
<label> fill </label>
107-
<input class = "default-action" type = "text" id = "deruid" placeholder = "eruid" value = ""/><br>
108-
<label> fill </label>
109113
<input class = "default-action" type = "text" id = "dpcat" placeholder = "pcat" value = ""/><br>
110114
<label> fill </label>
111115
<input class = "default-action" type = "text" id = "dpaypid" placeholder = "paypid" value = ""/><br>
112116
<label> fill </label>
113-
<input class = "default-action" type = "text" id = "dqty" placeholder = "qty" value = ""/><br>
114-
<label> fill </label>
115117
<input class = "default-action" type = "text" id = "dunit_price" placeholder = "unit_price" value = ""/><br>
116118
<label> fill </label>
117-
<input class = "default-action" type = "text" id = "doid" placeholder = "oid" value = ""/><br>
119+
<input class = "default-action" type = "text" id = "dpmk" placeholder = "pmk" value = ""/><br>
118120
<label> fill </label>
119-
<input class = "default-action" type = "text" id = "damt" placeholder = "amt" value = ""/><br>
121+
<input class = "default-action" type = "text" id = "dqty" placeholder = "qty" value = ""/><br>
120122
<label> fill </label>
121123
<input class = "default-action" type = "text" id = "dercamp" placeholder = "ercamp" value = ""/><br>
122124
<label> fill </label>
@@ -139,25 +141,21 @@ <h1>er.js testing EC site</h1>
139141
<label> fill </label>
140142
<input class = "custom-action" type = "text" id = "apid" placeholder = "pid" value = ""/><br>
141143
<label> fill </label>
142-
<input class = "custom-action" type = "text" id = "aeruid" placeholder = "eruid" value = ""/><br>
143-
<label> fill </label>
144144
<input class = "custom-action" type = "text" id = "apcat" placeholder = "pcat" value = ""/><br>
145145
<label> fill </label>
146146
<input class = "custom-action" type = "text" id = "apaypid" placeholder = "paypid" value = ""/><br>
147147
<label> fill </label>
148-
<input class = "custom-action" type = "text" id = "aqty" placeholder = "qty" value = ""/><br>
149-
<label> fill </label>
150148
<input class = "custom-action" type = "text" id = "aunit_price" placeholder = "unit_price" value = ""/><br>
151149
<label> fill </label>
152-
<input class = "custom-action" type = "text" id = "aoid" placeholder = "oid" value = ""/><br>
150+
<input class = "custom-action" type = "text" id = "apmk" placeholder = "pmk" value = ""/><br>
153151
<label> fill </label>
154-
<input class = "custom-action" type = "text" id = "aamt" placeholder = "amt" value = ""/><br>
152+
<input class = "custom-action" type = "text" id = "aqty" placeholder = "qty" value = ""/><br>
155153
<label> fill </label>
156154
<input class = "custom-action" type = "text" id = "aercamp" placeholder = "ercamp" value = ""/><br>
157155
<label> fill </label>
158156
<input class = "custom-action" type = "text" id = "aerad" placeholder = "erad" value = ""/><br>
159157

160-
<button type="submit" formid="setDefault" formaction="register.html"> 送出資料 </button>
158+
<button type="submit" class = "custom-action" id="custom-click" formaction="register.html"> 送出資料 </button>
161159
</div>
162160
</body>
163161
</html>

0 commit comments

Comments
 (0)