|
@@ -55,9 +55,194 @@ |
|
@@ -55,9 +55,194 @@ |
55
|
margin-top: 1.49rem;
|
55
|
margin-top: 1.49rem;
|
56
|
|
56
|
|
57
|
}
|
57
|
}
|
|
|
58
|
+
|
|
|
59
|
+ /*赠送积分弹出层*/
|
|
|
60
|
+ .sendwrapper{
|
|
|
61
|
+ width:100%;
|
|
|
62
|
+ height:100%;
|
|
|
63
|
+ background-color: rgba(0,0,0,0.5);
|
|
|
64
|
+ position:fixed;
|
|
|
65
|
+ left:0;
|
|
|
66
|
+ right:0;
|
|
|
67
|
+ z-index: 5;
|
|
|
68
|
+ }
|
|
|
69
|
+ .sendpop{
|
|
|
70
|
+ width:5.2rem;
|
|
|
71
|
+ height:4.2rem;
|
|
|
72
|
+ background: #ffffff;
|
|
|
73
|
+ border-radius: 10px;
|
|
|
74
|
+ position: absolute;
|
|
|
75
|
+ z-index: 6;
|
|
|
76
|
+ /*left:0.4rem;*/
|
|
|
77
|
+ /*top: 3rem;*/
|
|
|
78
|
+ top:40%;
|
|
|
79
|
+ left:50%;
|
|
|
80
|
+ transform: translate(-50%,-50%);
|
|
|
81
|
+ display: flex;
|
|
|
82
|
+ flex-direction: column;
|
|
|
83
|
+ align-items: center;
|
|
|
84
|
+ overflow: hidden;
|
|
|
85
|
+ padding-top: 0.36rem;
|
|
|
86
|
+ }
|
|
|
87
|
+ .remaininter{
|
|
|
88
|
+ color:#1A1A1A;
|
|
|
89
|
+ font-size: 0.28rem;
|
|
|
90
|
+ margin: 0 auto;
|
|
|
91
|
+ }
|
|
|
92
|
+ .give{
|
|
|
93
|
+ width:4.8rem;
|
|
|
94
|
+ color:#1A1A1A;
|
|
|
95
|
+ font-size: 0.28rem;
|
|
|
96
|
+ font-weight: bold;
|
|
|
97
|
+ text-align: left;
|
|
|
98
|
+ margin-top: 0.35rem;
|
|
|
99
|
+ }
|
|
|
100
|
+ .enterinter{
|
|
|
101
|
+ width:4.81rem;
|
|
|
102
|
+ height:0.7rem;
|
|
|
103
|
+ border:1px solid rgba(235,235,235,1);
|
|
|
104
|
+ border-radius:0.05rem;
|
|
|
105
|
+ font-size: 0;
|
|
|
106
|
+ margin-top: 0.19rem;
|
|
|
107
|
+ }
|
|
|
108
|
+ .pleaseenter{
|
|
|
109
|
+ width:4.6rem;
|
|
|
110
|
+ height:0.6rem;
|
|
|
111
|
+ border-radius:0.05rem;
|
|
|
112
|
+ font-size: 0.28rem;
|
|
|
113
|
+ color:#97A0A8;
|
|
|
114
|
+ border:none;
|
|
|
115
|
+ outline:none;
|
|
|
116
|
+ padding-left: 0.23rem;
|
|
|
117
|
+
|
|
|
118
|
+ }
|
|
|
119
|
+ .attention{
|
|
|
120
|
+ color: #97A0A8;
|
|
|
121
|
+ font-size: 0.24rem;
|
|
|
122
|
+ height:0.68rem;
|
|
|
123
|
+ border-bottom: 1px solid #f5f5f5;
|
|
|
124
|
+ padding: 0.1rem 0.18rem 0.24rem 0.18rem;
|
|
|
125
|
+ margin-top: 0.1rem;
|
|
|
126
|
+ }
|
|
|
127
|
+ .sure{
|
|
|
128
|
+ color:#FF0000;
|
|
|
129
|
+ font-size: 0.32rem;
|
|
|
130
|
+ padding: 0.31rem 1.91rem;
|
|
|
131
|
+ }
|
|
|
132
|
+
|
|
|
133
|
+ /*输入密码弹出层*/
|
|
|
134
|
+ .passwordwrap{
|
|
|
135
|
+ width:100%;
|
|
|
136
|
+ height:100%;
|
|
|
137
|
+ background-color: rgba(0,0,0,0.5);
|
|
|
138
|
+ position:fixed;
|
|
|
139
|
+ left:0;
|
|
|
140
|
+ right:0;
|
|
|
141
|
+ z-index: 5;
|
|
|
142
|
+ }
|
|
|
143
|
+ .passwordpop{
|
|
|
144
|
+ width:5.2rem;
|
|
|
145
|
+ height:2.84rem;
|
|
|
146
|
+ background: #ffffff;
|
|
|
147
|
+ border-radius: 10px;
|
|
|
148
|
+ position: absolute;
|
|
|
149
|
+ z-index: 6;
|
|
|
150
|
+ /*left:0.4rem;*/
|
|
|
151
|
+ /*top: 3rem;*/
|
|
|
152
|
+ top:40%;
|
|
|
153
|
+ left:50%;
|
|
|
154
|
+ transform: translate(-50%,-50%);
|
|
|
155
|
+ display: flex;
|
|
|
156
|
+ flex-direction: column;
|
|
|
157
|
+ align-items: center;
|
|
|
158
|
+ overflow: hidden;
|
|
|
159
|
+ padding-top: 0.16rem;
|
|
|
160
|
+ }
|
|
|
161
|
+ .enterpassword{
|
|
|
162
|
+ display:flex;
|
|
|
163
|
+ justify-content: space-between;
|
|
|
164
|
+ align-items: center;
|
|
|
165
|
+ font-size: 0;
|
|
|
166
|
+ /*margin-top: 0.48rem;*/
|
|
|
167
|
+ margin: 0.48rem auto 0;
|
|
|
168
|
+ }
|
|
|
169
|
+ .enterpassword li{
|
|
|
170
|
+ width:0.8rem;
|
|
|
171
|
+ height:0.8rem;
|
|
|
172
|
+ list-style: none;
|
|
|
173
|
+ border:1px solid rgba(153,153,153,1);
|
|
|
174
|
+ text-align: center;
|
|
|
175
|
+ border-right:0;
|
|
|
176
|
+ }
|
|
|
177
|
+ .enterpassword li:last-child{
|
|
|
178
|
+ border-right:1px solid rgba(153,153,153,1) ;
|
|
|
179
|
+ }
|
|
|
180
|
+ .enterpassword li input{
|
|
|
181
|
+ width:0.77rem;
|
|
|
182
|
+ height:0.76rem;
|
|
|
183
|
+ list-style: none;
|
|
|
184
|
+ text-align: center;
|
|
|
185
|
+ border:none;
|
|
|
186
|
+ }
|
|
|
187
|
+ .pleaseenterword{
|
|
|
188
|
+ font-size: 0.32rem;
|
|
|
189
|
+ color:#1A1A1A;
|
|
|
190
|
+ }
|
|
|
191
|
+ .icon-quxiao{
|
|
|
192
|
+ width:5rem;
|
|
|
193
|
+ color:#999999;
|
|
|
194
|
+ font-size: 0.3rem;
|
|
|
195
|
+ text-align: right;
|
|
|
196
|
+ }
|
|
|
197
|
+
|
|
|
198
|
+ #pwd {
|
|
|
199
|
+ position: absolute;
|
|
|
200
|
+ left: -22rem;
|
|
|
201
|
+ bottom:-22rem;
|
|
|
202
|
+ opacity: 0;
|
|
|
203
|
+ width: 80%;
|
|
|
204
|
+ color:#f00;
|
|
|
205
|
+
|
|
|
206
|
+ }
|
|
|
207
|
+ .enterword{
|
|
|
208
|
+ display:flex;
|
|
|
209
|
+ align-items: center;
|
|
|
210
|
+ }
|
58
|
</style>
|
211
|
</style>
|
59
|
</head>
|
212
|
</head>
|
60
|
<body>
|
213
|
<body>
|
|
|
214
|
+<!--输入支付密码-->
|
|
|
215
|
+<div class="passwordwrap" style="display:none">
|
|
|
216
|
+ <div class="passwordpop">
|
|
|
217
|
+ <p class="iconfont icon-quxiao"></p>
|
|
|
218
|
+ <p class="pleaseenterword">输入支付密码</p>
|
|
|
219
|
+ <div class="pwd_box enterword">
|
|
|
220
|
+
|
|
|
221
|
+ <ul class="password_box enterpassword">
|
|
|
222
|
+ <li class=""><i></i></li>
|
|
|
223
|
+ <li><i></i></li>
|
|
|
224
|
+ <li><i></i></li>
|
|
|
225
|
+ <li><i></i></li>
|
|
|
226
|
+ <li><i></i></li>
|
|
|
227
|
+ <li><i></i></li>
|
|
|
228
|
+ </ul>
|
|
|
229
|
+ </div>
|
|
|
230
|
+ </div>
|
|
|
231
|
+</div>
|
|
|
232
|
+<!--好友弹出层-->
|
|
|
233
|
+<div class="sendwrapper" style="display:none">
|
|
|
234
|
+ <div class="sendpop">
|
|
|
235
|
+ <p class="remaininter">您还剩余<span id="BALANCE">{$balance}</span>积分</p>
|
|
|
236
|
+ <P class="give">赠送好友积分</P>
|
|
|
237
|
+ <div class="enterinter">
|
|
|
238
|
+ <input type="text" class="pleaseenter" placeholder="赠送积分为500的倍数" >
|
|
|
239
|
+ </div>
|
|
|
240
|
+ <div class="attention">
|
|
|
241
|
+ 积分赠送属个人操作,赠送错误平台概不负责
|
|
|
242
|
+ </div>
|
|
|
243
|
+ <div class="sure">确定赠送</div>
|
|
|
244
|
+ </div>
|
|
|
245
|
+</div>
|
61
|
<div class="container">
|
246
|
<div class="container">
|
62
|
<div class="friendlist">
|
247
|
<div class="friendlist">
|
63
|
<volist name="list" id="vo">
|
248
|
<volist name="list" id="vo">
|
|
@@ -81,6 +266,96 @@ |
|
@@ -81,6 +266,96 @@ |
81
|
</body>
|
266
|
</body>
|
82
|
<script type="text/javascript" src="__INDEX__/js/jquery.min.js"></script>
|
267
|
<script type="text/javascript" src="__INDEX__/js/jquery.min.js"></script>
|
83
|
<script>
|
268
|
<script>
|
|
|
269
|
+ $(".fri_list").click(function(){
|
|
|
270
|
+ $(".sendwrapper").css("display","block");
|
|
|
271
|
+ })
|
|
|
272
|
+
|
|
|
273
|
+ //取消弹出层
|
|
|
274
|
+ $(".sendwrapper").click(function(){
|
|
|
275
|
+ $(this).css("display","none")
|
|
|
276
|
+ })
|
|
|
277
|
+
|
|
|
278
|
+ $(".pleaseenter").click(function(){
|
|
|
279
|
+ window.event.stopPropagation();
|
|
|
280
|
+ })
|
|
|
281
|
+
|
|
|
282
|
+ //确定赠送
|
|
|
283
|
+ $(".sure").click(function(){
|
|
|
284
|
+ total = $(".pleaseenter").val();
|
|
|
285
|
+ if(parseInt(total) > 0) {
|
|
|
286
|
+ window.event.stopPropagation()
|
|
|
287
|
+ $(".sendwrapper").css("display", "none");
|
|
|
288
|
+ $(".passwordwrap").css("display", "block")
|
|
|
289
|
+ }
|
|
|
290
|
+ })
|
|
|
291
|
+ $(".icon-quxiao").click(function(){
|
|
|
292
|
+ window.event.stopPropagation();
|
|
|
293
|
+ $(".pleaseenter").val("");
|
|
|
294
|
+ $(".passwordwrap").css("display","none")
|
|
|
295
|
+ })
|
|
|
296
|
+
|
|
|
297
|
+
|
|
|
298
|
+ $("#pwd").focus();
|
|
|
299
|
+ $('.password_box').on('click','li',function(){
|
|
|
300
|
+ $('#pwd').focus();
|
|
|
301
|
+ if($('body').hasClass('mui-ios')){
|
|
|
302
|
+ $('.order_box').css('marginTop','200px')
|
|
|
303
|
+ }else{
|
|
|
304
|
+ $('.order_box').css('marginTop','50px')
|
|
|
305
|
+ }
|
|
|
306
|
+
|
|
|
307
|
+ })
|
|
|
308
|
+ $('#pwd').on('input',function(){
|
|
|
309
|
+ var leng = 0;
|
|
|
310
|
+ if(/[^\d]/g.test($(this).val())){
|
|
|
311
|
+ val = $(this).val().replace(/[^\d]/g,'');
|
|
|
312
|
+ }else{
|
|
|
313
|
+ leng = $(this).val().length;
|
|
|
314
|
+ console.log(leng)
|
|
|
315
|
+ caseItem(leng)
|
|
|
316
|
+ }
|
|
|
317
|
+ })
|
|
|
318
|
+
|
|
|
319
|
+ // 模拟效果
|
|
|
320
|
+ function caseItem(i){
|
|
|
321
|
+ $('.password_box li').removeClass('active')
|
|
|
322
|
+ for(var j = 0; j < i ; j++){
|
|
|
323
|
+ $('.password_box li').eq(j).addClass('active');
|
|
|
324
|
+ if(j == 5){
|
|
|
325
|
+ $('#pwd').blur();
|
|
|
326
|
+ var str= $('#pwd').val();
|
|
|
327
|
+ $.ajax({
|
|
|
328
|
+ url:"{:url('friendship/Friend/donateIntegral')}",
|
|
|
329
|
+ data:{
|
|
|
330
|
+ friend_id:friend_id,
|
|
|
331
|
+ total:$(".pleaseenter").val(),
|
|
|
332
|
+ integral_pwd:str
|
|
|
333
|
+ },
|
|
|
334
|
+ type:"POST",
|
|
|
335
|
+ dataType:"JSON",
|
|
|
336
|
+
|
|
|
337
|
+ success: function (data) {
|
|
|
338
|
+ if(data.status === true) {
|
|
|
339
|
+ window.event.stopPropagation()
|
|
|
340
|
+ $(".passwordwrap").css("display","none")
|
|
|
341
|
+ $("#BALANCE").html(data.data);
|
|
|
342
|
+ $(".pleaseenter").val("");
|
|
|
343
|
+ alert(data.msg);
|
|
|
344
|
+ }else {
|
|
|
345
|
+ alert(data.msg);
|
|
|
346
|
+ }
|
|
|
347
|
+ //清空数据
|
|
|
348
|
+ for (var i = 0; i < txts.length; i++) {
|
|
|
349
|
+ $(txts[i]).val("")
|
|
|
350
|
+ }
|
|
|
351
|
+ }
|
|
|
352
|
+ })
|
|
|
353
|
+ }
|
|
|
354
|
+ }
|
|
|
355
|
+ }
|
|
|
356
|
+
|
|
|
357
|
+
|
|
|
358
|
+
|
84
|
$(".search").click(function(){
|
359
|
$(".search").click(function(){
|
85
|
window.location.href="{:url('friendship/Friend/friendList')}";
|
360
|
window.location.href="{:url('friendship/Friend/friendList')}";
|
86
|
})
|
361
|
})
|