-
Notifications
You must be signed in to change notification settings - Fork 433
/
popup.html
220 lines (213 loc) · 9.99 KB
/
popup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="static/jquery.js"></script>
<script src="static/garlic.js"></script>
<!-- head 中 -->
<link rel="stylesheet" href="static/style/weui.min.css">
<link rel="stylesheet" href="static/style/popup.css">
</head>
<body>
<div class="popup">
<div class="settings">
<div class="page__hd">
<div class="logo">
<img src="static/image/48.png" height="48px">
</div>
<p class="page__desc">京价宝 - 自动监控京东15天内的订单商品价格变化并自动提交价格保护申请。
<a href="#" id="pay" class="weui-btn weui-btn_mini weui-btn_primary">打赏</a>
</p>
</div>
<form id="settings" method="POST">
<div class="weui-cells__title">通知</div>
<div class="weui-cells weui-cells_form">
<div class="weui-cell weui-cell_switch">
<div class="weui-cell__bd">不再提示签到通知</div>
<div class="weui-cell__ft">
<input class="weui-switch" type="checkbox" name="mute_checkin" data-persist="garlic" class="garlic-auto-save" data-domain="true">
</div>
</div>
<div class="weui-cell weui-cell_switch">
<div class="weui-cell__bd">不再提示领券通知</div>
<div class="weui-cell__ft">
<input class="weui-switch" type="checkbox" name="mute_coupon" data-persist="garlic" class="garlic-auto-save" data-domain="true">
</div>
</div>
</div>
<div class="weui-cells__title">频率</div>
<div class="weui-cells weui-cells_form">
<div id="job1" class="weui-cell weui-cell_select weui-cell_select-after">
<div class="weui-cell__bd">价格保护
<i class="reload"></i>
</div>
<div class="weui-cell__bd">
<select class="weui-select" data-persist="garlic" class="garlic-auto-save" data-domain="true" name="job1_frequency">
<option value="2h">每2小时</option>
<option value="5h">每5小时</option>
<option value="daily">每天</option>
<option value="never">从不</option>
</select>
</div>
</div>
<div id="job2" class="weui-cell weui-cell_select weui-cell_select-after">
<div class="weui-cell__bd">精选优惠券
<i class="reload"></i>
</div>
<div class="weui-cell__bd">
<select class="weui-select" data-persist="garlic" class="garlic-auto-save" data-domain="true" name="job2_frequency">
<option value="2h">每2小时</option>
<option value="5h">每5小时</option>
<option value="daily">每天</option>
<option value="never">从不</option>
</select>
</div>
</div>
<div id="job3" class="weui-cell weui-cell_select weui-cell_select-after">
<div class="weui-cell__bd">PLUS券
<i class="reload"></i>
</div>
<div class="weui-cell__bd">
<select class="weui-select" data-persist="garlic" class="garlic-auto-save" data-domain="true" name="job3_frequency">
<option value="2h">每2小时</option>
<option value="5h">每5小时</option>
<option value="daily">每天</option>
<option value="never">从不</option>
</select>
</div>
</div>
<div id="job4" class="weui-cell weui-cell_select weui-cell_select-after">
<div class="weui-cell__bd">白条券
<i class="reload"></i>
</div>
<div class="weui-cell__bd">
<select class="weui-select" data-persist="garlic" class="garlic-auto-save" data-domain="true" name="job4_frequency">
<option value="2h">每2小时</option>
<option value="5h">每5小时</option>
<option value="daily">每天</option>
<option value="never">从不</option>
</select>
</div>
</div>
<div id="job5" class="weui-cell weui-cell_select weui-cell_select-after">
<div class="weui-cell__bd">京豆签到
<i class="reload"></i>
</div>
<div class="weui-cell__bd">
<select class="weui-select" data-persist="garlic" class="garlic-auto-save" data-domain="true" name="job5_frequency">
<option value="daily">每天</option>
<option value="never">从不</option>
</select>
</div>
</div>
<div id="job6" class="weui-cell weui-cell_select weui-cell_select-after">
<div class="weui-cell__bd">钢镚签到
<i class="reload"></i>
</div>
<div class="weui-cell__bd">
<select class="weui-select" data-persist="garlic" class="garlic-auto-save" data-domain="true" name="job6_frequency">
<option value="daily">每天</option>
<option value="never">从不</option>
</select>
</div>
</div>
<div id="job7" class="weui-cell weui-cell_select weui-cell_select-after">
<div class="weui-cell__bd">店铺签到
<i class="reload"></i>
</div>
<div class="weui-cell__bd">
<select class="weui-select" data-persist="garlic" class="garlic-auto-save" data-domain="true" name="job7_frequency">
<option value="daily">每天</option>
<option value="never">从不</option>
</select>
</div>
</div>
<div id="job8" class="weui-cell weui-cell_select weui-cell_select-after">
<div class="weui-cell__bd">京东支付签到
<i class="reload"></i>
</div>
<div class="weui-cell__bd">
<select class="weui-select" data-persist="garlic" class="garlic-auto-save" data-domain="true" name="job8_frequency">
<option value="daily">每天</option>
<option value="never">从不</option>
</select>
</div>
</div>
</div>
</form>
</div>
<div class="orderlist">
<p>
<a id="login" href="javascript:;" class="weui-btn weui-btn_mini weui-btn_primary" style="display: none">登录京东</a>
</p>
<div class="weui-cells__title">
<a href="https://order.jd.com/center/list.action" target="_blank">最近订单</a>
</div>
<div class="weui-cells orders">
<div class="no_order"> 暂时还没有订单 </div>
</div>
</div>
<div id="dialogs">
<!--BEGIN dialog1-->
<div class="js_dialog" id="iosDialog1" style="opacity: 1;">
<div class="weui-mask"></div>
<div class="weui-dialog">
<div class="weui-dialog__hd"><strong class="weui-dialog__title">打赏任意金额</strong></div>
<ul class="segmented-control">
<li class="segmented-control__item">
<input class="segmented-control__input" id="payMethod-weixin" type="radio" value="weixin" name="payMethod" checked="">
<label class="segmented-control__label" for="payMethod-weixin">微信</label>
</li>
<li class="segmented-control__item">
<input class="segmented-control__input" id="payMethod-phone" type="radio" value="alipay" name="payMethod">
<label class="segmented-control__label" for="payMethod-phone">支付宝</label>
</li>
</ul>
<div class="weui-dialog__bd weixin_pay"><img src="static/image/weixin_pay.png" height="248px"></div>
<div class="weui-dialog__bd alipay_pay"><img src="static/image/alipay_pay.png" height="200px"></div>
<div class="weui-dialog__bd">
<p>京东页面经常更新,唯有你的支持才能让京价宝保持更新</p>
</div>
<div class="weui-dialog__ft">
<a class="weui-dialog__btn weui-dialog__btn_primary" data-action="paid">付好了</a>
<a class="weui-dialog__btn weui-dialog__btn_default" data-action="dismiss">下次吧</a>
</div>
</div>
</div>
</div>
</div>
<script id="tpl-orders" type="text/html">
{{if orders && orders.length > 0}}
{{each orders order index}}
<div class="weui-cells__title time"> 下单时间: {{order.time}}</div>
{{each order.goods good i}}
<div class="weui-cell good">
<div class="weui-cell__bd">
<p class="good_title">{{good.name}}</p>
</div>
<div class="weui-cell__ft">
<span class="order_price">¥{{good.order_price}}</span>
{{if good.order_price > good.new_price}}
<span class="new_price down">¥{{good.new_price}}</span>
{{else if good.order_price < good.new_price}}
<span class="new_price up">¥{{good.new_price}}</span>
{{else}}
<span class="new_price">¥{{good.new_price}}</span>
{{/if}}
</div>
</div>
{{each good.success_log log}}
<p class="success_log">{{log}}</p>
{{/each}}
{{/each}}
{{/each}}
{{else}}
<div class="no_order"> 暂时还没有订单 </div>
{{/if}}
</script>
<!-- body 最后 -->
<script src="static/moment.min.js"></script>
<script src="static/template-web.js"></script>
<script src="static/popup.js"></script>
</body>
</html>