@@ -17,7 +17,7 @@ def check_token(func=None): |
||
| 17 | 17 |
vtoken = request.GET.get('vtoken', '') or request.POST.get('vtoken', '')
|
| 18 | 18 |
if not settings.DEBUG: |
| 19 | 19 |
if not request.wechat: |
| 20 |
- return render(request, 'django_we/errmsg.html', {'title': '错误', 'errmsg': '请在微信中打开'})
|
|
| 20 |
+ return render(request, 'django_we/errmsg.html', {'title': '错误', 'errmsg': '请在微信中打开'})
|
|
| 21 | 21 |
token_check_key = request.GET.get(settings.TOKEN_CHECK_KEY, '') or request.POST.get(settings.TOKEN_CHECK_KEY, '') |
| 22 | 22 |
if not r.token_exists(token_check_key, vtoken): |
| 23 | 23 |
# 3rd OAuth |
@@ -40,16 +40,33 @@ |
||
| 40 | 40 |
font-size: 12px; |
| 41 | 41 |
color: #999; |
| 42 | 42 |
} |
| 43 |
+ |
|
| 43 | 44 |
.video_select_item {
|
| 44 | 45 |
width: 100%; |
| 45 |
- text-align: center; |
|
| 46 | 46 |
height: 40px; |
| 47 |
- line-height: 40px; |
|
| 47 |
+ min-height: 40px; |
|
| 48 |
+ text-align: center; |
|
| 49 |
+ font-size: 0; |
|
| 50 |
+ line-height: 20px; |
|
| 48 | 51 |
color: #020001; |
| 52 |
+ padding: 5px; |
|
| 49 | 53 |
border: 1px solid #e1e1e1; |
| 50 | 54 |
border-radius: 5px; |
| 51 | 55 |
margin-bottom: 15px; |
| 52 | 56 |
} |
| 57 |
+ .video_select_item:before {
|
|
| 58 |
+ width: 0; |
|
| 59 |
+ height: 100%; |
|
| 60 |
+ display: inline-block; |
|
| 61 |
+ vertical-align: middle; |
|
| 62 |
+ content: ''; |
|
| 63 |
+ } |
|
| 64 |
+ .video_select_item_inner {
|
|
| 65 |
+ font-size:16px; |
|
| 66 |
+ color: #020001; |
|
| 67 |
+ display: inline-block; |
|
| 68 |
+ vertical-align: middle; |
|
| 69 |
+ } |
|
| 53 | 70 |
.video_selected {
|
| 54 | 71 |
color: #ce8f8a !important; |
| 55 | 72 |
border: 1px solid #ce8f8a; |
@@ -69,7 +86,9 @@ |
||
| 69 | 86 |
<div class="video_select"> |
| 70 | 87 |
<div class="video_select_text">选择视频</div> |
| 71 | 88 |
{% for video in videos %}
|
| 72 |
- <div id="video{{ forloop.counter }}" class="video_select_item {% ifequal forloop.counter 1 %}video_selected{% endifequal %}" data-src="{{ video.course_video_url }}">{{ video.course_video_type }}</div>
|
|
| 89 |
+ <div id="video{{ forloop.counter }}" class="video_select_item {% ifequal forloop.counter 1 %}video_selected{% endifequal %}" data-src="{{ video.course_video_url }}">
|
|
| 90 |
+ <p class="video_select_item_inner">{{ video.course_video_type }}</p>
|
|
| 91 |
+ </div> |
|
| 73 | 92 |
{% endfor %}
|
| 74 | 93 |
</div> |
| 75 | 94 |
</div> |
@@ -31,6 +31,7 @@ |
||
| 31 | 31 |
font-size: 18px; |
| 32 | 32 |
font-weight: bold; |
| 33 | 33 |
color: #020001; |
| 34 |
+ padding-bottom: 5px; |
|
| 34 | 35 |
} |
| 35 | 36 |
.course_time {
|
| 36 | 37 |
font-size: 12px; |