From 16e5dc7ea5c79157ae7b82dbf875badd91bedfb5 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 15 Jul 2020 11:12:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=AE=E4=BF=A1=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/wechat/view/api/review/image.html | 2 +- app/wechat/view/api/review/music.html | 2 +- app/wechat/view/api/review/news.html | 19 ++++++++----------- app/wechat/view/api/review/text.html | 2 +- app/wechat/view/keys/form.html | 13 +++++++------ vendor/services.php | 2 +- 6 files changed, 19 insertions(+), 21 deletions(-) diff --git a/app/wechat/view/api/review/image.html b/app/wechat/view/api/review/image.html index 1680f0201..4cc7be1e5 100644 --- a/app/wechat/view/api/review/image.html +++ b/app/wechat/view/api/review/image.html @@ -3,7 +3,7 @@ {block name='content'}
{:date('H:i')}
- +
img
{/block} diff --git a/app/wechat/view/api/review/music.html b/app/wechat/view/api/review/music.html index 7ae325581..b043348dc 100644 --- a/app/wechat/view/api/review/music.html +++ b/app/wechat/view/api/review/music.html @@ -3,7 +3,7 @@ {block name='content'}
{:date('H:i')}
- +
{$title|default=''}
{$desc|default=''}
diff --git a/app/wechat/view/api/review/news.html b/app/wechat/view/api/review/news.html index cfe2752b1..53c76415e 100644 --- a/app/wechat/view/api/review/news.html +++ b/app/wechat/view/api/review/news.html @@ -3,9 +3,7 @@ {block name='content'}
{:date('H:i')}
- {notempty name='news.articles'} - {foreach $news.articles as $k => $v} - {if $k < 1} + {notempty name='news.articles'} {foreach $news.articles as $k => $v} {if $k < 1} {if $v.title}{$v.title}{/if} @@ -16,9 +14,7 @@
- {/if} - {/foreach} - {else} + {/if} {/foreach} {else}

404

访问资源不存在哦!
{/notempty}
@@ -32,10 +28,11 @@ } .header span { - padding: 5px; - font-size: 8px; - background: #ccc; - border-radius: 10% + padding: 1px 5px; + font-size: 12px; + line-height: 12px; + background: #aaa; + box-shadow: 0 0 3px #666 } .container { @@ -43,7 +40,7 @@ display: block; margin: 5vw auto; position: relative; - box-shadow: 0 0 3px #ccc + box-shadow: 0 0 3px #333 } .container a { diff --git a/app/wechat/view/api/review/text.html b/app/wechat/view/api/review/text.html index eadfb6a9f..2ad1439f5 100644 --- a/app/wechat/view/api/review/text.html +++ b/app/wechat/view/api/review/text.html @@ -3,7 +3,7 @@ {block name='content'}
{:date('H:i')}
- +
{$content|default=''}
{/block} \ No newline at end of file diff --git a/app/wechat/view/keys/form.html b/app/wechat/view/keys/form.html index 47258bc8a..adc8b2dd3 100644 --- a/app/wechat/view/keys/form.html +++ b/app/wechat/view/keys/form.html @@ -37,8 +37,8 @@
公众号
-
- +
+
@@ -203,13 +203,14 @@ var $body = $('body'); // 刷新预览显示 - function showReview(params, src) { + function showReview(params, location) { if (params['type'] === 'news') { - src = '{:url("@wechat/api.review/news")}?id=_id_'.replace('_id_', params.content); + location = '{:url("@wechat/api.review/news")}?id=_id_'.replace('_id_', params.content); } else { - src = '{:url("@wechat/api.review/_type_")}?'.replace('_type_', params.type) + $.param(params || {}); + location = '{:url("@wechat/api.review/_type_")}?'.replace('_type_', params.type) + $.param(params || {}); } - $('#phone-preview').attr('src', src); + var iframe = ''; + $('[data-iframe-box]').empty().append($(iframe).attr('src', location)); } $body.off('change', '[name="news_id"]').on('change', '[name="news_id"]', function () { diff --git a/vendor/services.php b/vendor/services.php index a6413e096..dd5be9e5c 100644 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'think\\app\\Service',