equityInfo.html
8.84 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
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover">
<link rel="stylesheet" th:href="@{/static/css/equity.css}">
<link rel="stylesheet" th:href="@{/static/layer_mobile/need/layer.css}">
<script th:src="@{/static/js/rem.js}"></script>
<title>激活权益</title>
</head>
<body>
<div class="equity-wrapper" th:if="${info}" th:switch="${info.activeStatus}">
<div th:class="${info.activeStatus != 0 ? 'my-equity':'equity-header'}">
<span class="icon-header header-serving" th:case="1"></span>
<span class="icon-header header-expired" th:case="2"></span>
<span class="icon-header header-refunded" th:case="6"></span>
<span class="icon-header header-inactivated" th:case="*"></span>
<div class="equity-time" th:classappend="${info.activeStatus == 1 ? '':'hidden'}" th:text="'有效期至:' + ${#dates.format(info.effectEndDate,'yyyy-MM-dd')}">有效期至:2022.01.20</div>
</div>
<div class="equity-store">
<div class="equity-bg"></div>
<div class="equity-title">适用门店</div>
<div class="store-info">
<ul>
<li class="store-name"><span class="icon-name"></span><span th:text="${info.merchantInfo.merchantName}">深圳市捷豹体验店</span></li>
<li><span class="icon-message"></span>救援顾问:<span th:text="${info.counselorName}">张珊</span></li>
<li><span class="icon-phone"></span>救援电话:<span th:text="${info.collisionPhone}">15113801198</span></li>
<li><span class="icon-address"></span><span class="store-text" th:text="${info.merchantInfo.address}">深圳石福田区车公庙创建大厦</span></li>
</ul>
<div class="store-qrcode">
<img th:src="${info.qrcode}" alt="">
</div>
</div>
<div class="equity-tip">温馨提示:激活的权益可扫描上方二维码,
在小程序我的-我的权益中查看</div>
</div>
<div class="service-wrapper">
<div class="equity-title">权益服务</div>
<ul>
<li th:if="${#lists.contains(info.equityTypeList,6)}" th:switch="${info.activeStatus}">
<div><span class="icon-rescue equity-icon"></span>救援无忧服务</div>
<div class="m-l-20">如您所处的车辆发生意外事故,
拨打救援电话即可24h为您提供事故救援服务</div>
<span class="icon-serving service-icon" th:case="1" th:switch="${info.activeStatus}"></span>
<span class="icon-refunded service-icon" th:case="6"></span>
<span class="icon-expired service-icon" th:case="2"></span>
<span class="service-icon" th:case="*"></span>
</li>
<!--
<li th:if="${#lists.contains(info.equityTypeList,3)}" th:switch="${info.activeStatus}">
<div><span class="icon-driving equity-icon"></span>置换无忧服务</div>
<div class="m-l-20">车辆发生整车被盗抢经商业车损险赔付车辆实际价值后,本服务赔偿车辆折旧费、购置税、登记费、代步车费用、加装设备损失、随车行李损失及因盗窃未遂导致的车辆损失。</div>
<span class="icon-serving service-icon" th:case="1" th:switch="${info.activeStatus}"></span>
<span class="icon-refunded service-icon" th:case="6"></span>
<span class="icon-expired service-icon" th:case="2"></span>
<span class="service-icon" th:case="*"></span>
</li> -->
<li th:if="${#lists.contains(info.equityTypeList,5)}" th:switch="${info.activeStatus}">
<div><span class="icon-total-loss equity-icon"></span>全损无忧服务</div>
<div class="m-l-20">车辆因盗抢、碰撞、自燃导致全损或推定全损,
本服务赔偿车辆折旧费、购置税、登记费、代步车费用、加装设备损失、随车行李损失</div>
<span class="icon-serving service-icon" th:case="1" th:switch="${info.activeStatus}"></span>
<span class="icon-refunded service-icon" th:case="6"></span>
<span class="icon-expired service-icon" th:case="2"></span>
<span class="service-icon" th:case="*"></span>
</li>
<li th:if="${#lists.contains(info.equityTypeList,9)}" th:switch="${info.activeStatus}">
<div><span class="icon-service equity-icon"></span>维修无忧服务</div>
<div class="m-l-20">车辆发生商业车损险范围内的碰撞损失时,到
指定经销商处维修车辆的,本服务补偿维修津贴。</div>
<span class="icon-serving service-icon" th:case="1" th:switch="${info.activeStatus}"></span>
<span class="icon-refunded service-icon" th:case="6"></span>
<span class="icon-expired service-icon" th:case="2"></span>
<span class="service-icon" th:case="*"></span>
</li>
<li th:if="${#lists.contains(info.equityTypeList,7)}" th:switch="${info.activeStatus}">
<div><span class="icon-service-tip equity-icon"></span>服务提醒</div>
<div class="m-l-20">车辆定时保养、续保提醒,祝您一路畅行无忧</div>
<span class="icon-serving service-icon" th:case="1" th:switch="${info.activeStatus}"></span>
<span class="icon-refunded service-icon" th:case="6"></span>
<span class="icon-expired service-icon" th:case="2"></span>
<span class="service-icon" th:case="*"></span>
</li>
<li th:if="${#lists.contains(info.equityTypeList,8)}" th:switch="${info.activeStatus}">
<div><span class="icon-activity equity-icon"></span>活动提醒</div>
<div class="m-l-20">本店热门活动及时提醒,厂家优惠随时知晓</div>
<span class="icon-serving service-icon" th:case="1" th:switch="${info.activeStatus}"></span>
<span class="icon-refunded service-icon" th:case="6"></span>
<span class="icon-expired service-icon" th:case="2"></span>
<span class="service-icon" th:case="*"></span>
</li>
</ul>
</div>
<div class="equity-btn">
<div class="inactivated active-bg show" th:if="${info.activeStatus == 0}">
<button id="activeBtn">立即激活</button>
<div class=""><input type="checkbox" id="agreeCheckbox">我已阅读并同意授权服务<a style="color: #FF9900;text-decoration:none;" th:href="'https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/agreement.html?merchantName=' + ${info.merchantInfo.merchantName}+'&phone='+${info.merchantInfo.phone}">《用户协议》</a><a style="color: #FF9900;text-decoration:none;" th:href="'https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/privacy.html?merchantName=' + ${info.merchantInfo.merchantName}+'&phone='+${info.merchantInfo.phone}">《隐私协议》</a></div>
</div>
</div>
</div>
</body>
<script type="text/javascript" th:src="@{/static/js/common/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/static/layer_mobile/layer.js}"></script>
<script th:inline="javascript">
$(function () {
if(location.origin.includes('cgacar')) {
const uerUrl = $(".equity-btn").find('a').eq(0).attr('href')
$(".equity-btn").find('a').eq(0).attr('href',uerUrl.replace('html','html/cgacar'))
const zcUrl = $(".equity-btn").find('a').eq(1).attr('href')
$(".equity-btn").find('a').eq(1).attr('href',zcUrl.replace('html','html/cgacar'))
}
$("#agreeCheckbox").attr("checked",false)//未选中
var type = [[${ type }]], seqNo = [[${ seqNo }]], message = [[${ message }]];
if (message) {
layer.open({
content: message,
shadeClose: false,
});
}
if($("#agreeCheckbox").is(':checked')){
$(".equity-btn .inactivated").removeClass("inactive-bg").addClass("active-bg");
}else{
$(".equity-btn .inactivated").removeClass("active-bg").addClass("inactive-bg");
}
$("#agreeCheckbox").on("click",function(){
if($(this).is(':checked')){
$(".equity-btn .inactivated").removeClass("inactive-bg").addClass("active-bg");
}else{
$(".equity-btn .inactivated").removeClass("active-bg").addClass("inactive-bg");
}
});
$("#activeBtn").on("click", function () {
if(!$("#agreeCheckbox").is(':checked')){
return;
}
layer.open({ type: 2, shadeClose: false, });
$.ajax({
type: "GET",
data: { type: type, seqNo: seqNo },
url: "/web-dj-mobile/equityActiveInfo/activeEquity",
dataType: 'json',
success: function (res) {
console.log(res, res.returnCode == '0')
if (res.returnCode == '0') {
layer.open({
content: '激活成功', skin: 'msg', time: 1, end: function () {
window.location.reload();
}
});
} else {
layer.open({
content: res.message, btn: '关闭', yes: function () {
window.location.reload();
}
});
}
}, error: function () {
layer.open({
content: '激活失败,请刷新重试', btn: '关闭', yes: function () {
window.location.reload();
}
});
}
});
});
})
</script>
</html>