show.vm
20.1 KB
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
#set($page_title="服务详情")
#set($crumbs="首页:/home,开店申请:/openStore/list.do,审核信息")
<div class="page-content">
<input type="hidden" id="urlOkId" value="${webUtils.getLocalPath("openStore/list.do")} " >
<input type="hidden" value="${webUtils.getLocalPath("openStore/shopAudit.do?shopId=$!{shopInfo.id}&shopName=$!{shopInfo.shopName}")}" id="urlId">
<div class="page-header">
<span class="pull-right"><a href="${webUtils.getLocalPath("openStore/list.do")}" class="btn btn-white btn-default">返回</a></span>
##<span class="pull-right"><a href="javascript:history.back();" class="btn btn-white btn-default">返回</a></span>
<h1>
<small>
<i class="icon-double-angle-right"></i>
店铺信息
</small>
</h1>
</div>
<!-- /.page-header -->
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->
<div class="profile-user-info profile-user-info-striped">
<div class="profile-info-row">
<div class="profile-info-name">申请编号:</div>
<div class="profile-info-value">
<span >$!{shopInfo.id} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name">申请状态:</div>
<div class="profile-info-value">
<span >
#if($!{shopInfo.shopState} == 2)
审核通过
#end
#if($!{shopInfo.shopState} == 3)
审核未通过
#end
#if($!{shopInfo.shopState} == 1)
审核中
#end
</span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 申请时间: </div>
<div class="profile-info-value">
<span>
$!{dateFormatUtils.format($!{shopInfo.created},"yyyy-MM-dd HH:mm:ss")}
</span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 店铺名称: </div>
<div class="profile-info-value">
<span >$!{shopInfo.shopName} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 账户名:</div>
<div class="profile-info-value">
<span >
$!{shopInfo.accountName}
</span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 店铺域名: </div>
<div class="profile-info-value">
<span >$!{webUtils.getShopDomain($!{shopInfo.shopDomain})} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 店铺标志: </div>
<div class="profile-info-value">
<span>
<img style="max-height: 300px;max-width: 500px;" src="$!{shopInfo.shopLogo}"/>
</span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 会员认证:</div>
<div class="profile-info-value">
<span>
#set($objUser = $userAuth.list.get(0))
#if($!{objUser.userStatus} == 102)
已实名认证
## #else
## 未实名认证
#end
#if($!{objUser.emailStatus} == 2)
已验证邮箱
## #else
## 未验证邮箱
#end
#if($!{objUser.mobileStatus} == 1)
已绑定手机
## #else
## 未绑定手机
#end
#if($!{objUser.companyStatus} == 102)
已企业认证
## #else
## 未企业认证
#end
</span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 联系人:</div>
<div class="profile-info-value">
<span >$!{shopInfo.contactUser} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 联系电话: </div>
<div class="profile-info-value">
<span >$!{shopInfo.contactPhone} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 联系地址: </div>
<div class="profile-info-value">
<span >
$!{countryAddress}$!{shopInfo.addressText}
</span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 店铺类型 </div>
<div class="profile-info-value">
<span >#if($shopInfo.shopSource==1)
批发商户
#elseif($shopInfo.shopSource==2)
产地商户
#elseif($shopInfo.shopSource==3)
农户商户
#elseif($shopInfo.shopSource==4)
零售商户
#elseif($shopInfo.shopSource==5)
代购商户
#elseif($shopInfo.shopSource==6)
物流商户
#end
</span>
</div>
</div>
#if($shopInfo.shopSource==1||$shopInfo.shopSource==2||$shopInfo.shopSource==3||$shopInfo.shopSource==4)
<div class="profile-info-row">
<div class="profile-info-name"> 经营类型 </div>
<div class="profile-info-value">
<span >$!{manageType} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 主营产品 </div>
<div class="profile-info-value">
<span >$!{shopInfo.categoryName} </span>
</div>
</div>
#end
#if($shopInfo.shopSource==5)
<div class="profile-info-row">
<div class="profile-info-name"> 代购类型 </div>
<div class="profile-info-value">
<span >
#if($!{shopInfo.purchasingType}==1)
市场
#else
产地
#end
</span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 代购品类 </div>
<div class="profile-info-value">
#foreach($!{buyCategory} in $!{buyCategoryList})
<span >$!{buyCategory.cname}</span>
#end
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 代购辐射区域 </div>
<div class="profile-info-value">
#foreach($!{cityArea} in $!{cityAreaList})
<span >$!{cityArea}</span>
#end
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 代购市场 </div>
<div class="profile-info-value">
#foreach($!{buyMarketName} in $!{buyMarketNameList})
<span >$!{buyMarketName}</span>
#end
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 服务费用 </div>
<div class="profile-info-value">
<span >$!{shopInfo.buyPrice} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 是否支持代买货 </div>
<div class="profile-info-value">
#if($!{shopInfo.buySupportBuy}==2)
<span > 支持 </span>
#else
<span > 不支持 </span>
#end
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 是否支持代检货 </div>
<div class="profile-info-value">
#if($!{shopInfo.buySupportCheck}==2)
<span > 支持 </span>
#else
<span > 不支持 </span>
#end
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 是否支持代集货 </div>
<div class="profile-info-value">
#if($!{shopInfo.buySupportCollection}==2)
<span > 支持 </span>
#else
<span > 不支持 </span>
#end
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 是否支持代物流 </div>
<div class="profile-info-value">
#if($!{shopInfo.buySupportLogistics}==2)
<span > 支持 </span>
#else
<span > 不支持 </span>
#end
</div>
</div>
#end
#if($shopInfo.shopSource==1)
<div class="profile-info-row">
<div class="profile-info-name"> 所在市场 </div>
<div class="profile-info-value">
<span >$!{pickName} </span>
</div>
</div>
#end
#if($shopInfo.shopSource==4)
<div class="profile-info-row">
<div class="profile-info-name"> 商户类型 </div>
<div class="profile-info-value">
<span >$!{merchantType} </span>
</div>
</div>
#end
#if($shopInfo.shopSource==6)
<div class="profile-info-row">
<div class="profile-info-name"> 物流类型 </div>
<div class="profile-info-value">
<span >$!{logistics} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 主营线路 </div>
<div class="profile-info-value">
<span >$!{shopInfo.majorLine} </span>
</div>
</div>
## <div class="profile-info-row">
## <div class="profile-info-name"> 服务费用 </div>
## <div class="profile-info-value">
## <span >$!{shopInfo.logisticsPrice} </span>
## </div>
## </div>
<div class="profile-info-row">
<div class="profile-info-name"> 价格范围 </div>
<div class="profile-info-value">
<span >($!{shopInfo.logisticsPriceMin} - $!{shopInfo.logisticsPriceMax})元</span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 是否支持代验货 </div>
<div class="profile-info-value">
#if($!{shopInfo.logisticsSupportCheck}==2)
<span > 支持 </span>
#else
<span > 不支持 </span>
#end
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 是否支持代集货 </div>
<div class="profile-info-value">
#if($!{shopInfo.logisticsSupportCollection}==2)
<span > 支持 </span>
#else
<span > 不支持 </span>
#end
</div>
</div>
#end
<div class="profile-info-row">
<div class="profile-info-name"> 店铺介绍 :</div>
<div class="profile-info-value">
<span >#noescape($!{shopInfo.remark}) </span>
</div>
</div>
#if($!{shopInfo.shopState} == 2)
<div class="profile-info-row">
<div class="profile-info-name"> 审批人:</div>
<div class="profile-info-value">
<span >$!{operateLog.operateName} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 审批时间:</div>
<div class="profile-info-value">
<span > $!{dateFormatUtils.format($!{operateLog.operateTime},"yyyy-MM-dd HH:mm:ss")} </span>
</div>
</div>
#end
#if($!{shopInfo.shopState} == 3)
<div class="profile-info-row">
<div class="profile-info-name"> 审批人:</div>
<div class="profile-info-value">
<span >$!{operateLog.operateName} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 审批时间:</div>
<div class="profile-info-value">
<span > $!{dateFormatUtils.format($!{operateLog.operateTime},"yyyy-MM-dd HH:mm:ss")} </span>
</div>
</div>
<div class="profile-info-row">
<div class="profile-info-name"> 拒绝原因:</div>
<div class="profile-info-value">
<span >$!{shopInfo.auditRemark} </span>
</div>
</div>
#end
#if($!{shopInfo.shopState} == 1)
<div class="profile-info-name"> 审批结果 :</div>
<div class="profile-info-value">
<input type="radio" name="operate" checked="checked" onclick="operata(2);">同意</input>
<input type="radio" name="operate" onclick="operata(3);">拒绝</input>
<input type="hidden" id="opId" value="2">
<div id="rfId" style="display: none;">
拒绝原因: <select id="reasonId" onchange="change();">
#foreach($obj in $list)
<option value="$obj.name">$obj.name</option>
#end
</select>
<span id="spId" style="display: none;"> 填写其它原因:<input type="text" id="otherId" style="width:200px;"/></span>
</div>
</div>
#end
</div>
</div>
</div>
#if($!{shopInfo.shopState} == 1)
<div class="clearfix form-actions">
<div class="col-md-offset-3 col-md-9">
<a class="btn btn-info" onclick="sure();">
<i class="icon-reply bigger-110"></i>
确认
</a>
<a class="btn btn-white btn-default" href="${webUtils.getLocalPath("openStore/list.do")}">返回</a>
##<a class="btn btn-white btn-default" href="javascript:history.back();">返回</a>
</div>
</div>
#end
</div>
<script type="text/javascript">
function change(){
if($("#reasonId").val().trim()=="其它"||$("#reasonId").val().trim()=="其他"){
$("#spId").css('display','block');
}else{
$("#spId").css('display','none');
}
}
function operata(status){
$("#opId").val(status);
if($("#reasonId").val().trim()=="其它"||$("#reasonId").val().trim()=="其他"){
$("#spId").css('display','block');
}else{
$("#spId").css('display','none');
}
if(status=="3"){
$("#rfId").css('display','block');
}else{
$("#spId").css('display','none');
$("#rfId").css('display','none');
}
}
function sure(){
var reason =$("#reasonId").val();
if($("#reasonId").val().trim()=="其它"||$("#reasonId").val().trim()=="其他"){
reason = $("#otherId").val();
}
if($("#opId").val()=="2"){
reason="";
}
if(reason.length>60){
alert("审核不能够超过60个字符!");
return;
}
var url = $("#urlId").val();
url =url+"&status="+$("#opId").val()+"&auditRemark= "+reason;
$.ajax({
type : 'post',
url : url,
success : function(data) {
if (data.msg != null && data.msg != "") {
alert(data.msg);
}else{
location.href = document.referrer;
}
},
error : function() {
alert("网络超时!");
}
});
}
</script>