-
Notifications
You must be signed in to change notification settings - Fork 0
/
PotentialCustomerDetail.html
77 lines (74 loc) · 2.53 KB
/
PotentialCustomerDetail.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
{{define "PotentialCustomerDetail"}}
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<title>潜在客户信息</title>
<link rel="stylesheet" href="/static/WeUI_files/weui.css">
<link rel="stylesheet" href="/static/WeUI_files/example.css">
</head>
<body style="margin:1em ;">
<div class="weui-cells page__category-content">
<div class="page__hd">
<h1 class="page__title">潜在客户信息</h1>
<p class="page__desc">潜在客户信息</p>
</div>
</div>
<div class="weui-cells page__category-content">
{{range .}}
<div class="weui-cell weui-cell_swiped">
<div class="weui-flex">
<div class="weui-flex__item">
<a href="{{.Url}}" target="_blank" class="urlClean">{{.Url}}</a>
</div>
<div class="weui-flex__item">
<a href="{{.ContactUrl}}" target="_blank" class="urlClean">{{.ContactUrl}}</a>
</div>
<div class="weui-flex__item">
<div class="placeholder" class="urlClean">{{.ComInfo}}</div>
</div>
<div class="weui-flex__item">
<div class="placeholder" class="urlClean">{{.ComInfoTxt}}</div>
</div>
<div class="weui-flex__item" class="urlClean">
<img src="{{.TelImg}}" class="urlClean"></div>
<div class="weui-flex__item">
<img src="{{.PhoneImg}}" class="urlClean"></div>
<div class="weui-flex__item">
<img src="{{.WxImg}}" class="urlClean"></div>
</div>
</div>
{{end}}
</div>
<div class="weui-cells page__category-content">
<div class="page__hd">
<div id="goSimple"></div>
</div>
</div>
</body>
</html>
<script>
let s = document.getElementsByClassName('urlClean')
let c = 0
let len = s.length
for (let i in s) {
console.log(i)
let h = i.href
s[c].href = h.replace('%0a', '')
c += 1
if (c === len) {
break
}
}
</script>
<script>
const Ymd = () =>
{
const date = new Date()
const m = ('0' + (date.getMonth() + 1)).slice(-2)
return date.getFullYear() + m + date.getDate()
}
document.getElementById('goSimple').innerHTML = '<a href="/PotentialCustomer/' + Ymd() + '" target="_blank"> 去简页</a>'
</script>
{{end}}