From b2e21cfe9095b1f0de43c7d935b7bcf2526fd889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 16 Jun 2017 21:14:37 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E5=A4=8D=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E8=8F=9C=E5=8D=95=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/view/menu.index.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/application/wechat/view/menu.index.html b/application/wechat/view/menu.index.html index 50ef850d0..207b01ff1 100644 --- a/application/wechat/view/menu.index.html +++ b/application/wechat/view/menu.index.html @@ -240,9 +240,9 @@ switch (type) { case 'miniprogram': var tpl = '
\ -
appid
\ -
url
\ -
pagepath
\ +
appid
\ +
url
\ +
pagepath
\
'; var _appid = '', _pagepath = '', _url = ''; if (content.indexOf(',') > 0) { @@ -250,7 +250,8 @@ _url = content.split(',')[1] || ''; _pagepath = content.split(',')[2] || ''; } - return tpl.replace(/\{appid\}/ig, _appid).replace(/\{_url\}/ig, _url).replace(/\{pagepath\}/ig, _pagepath); + $span.data('appid',_appid),$span.data('url',_url),$span.data('pagepath',_pagepath); + return tpl.replace('{appid}', _appid).replace('{url}', _url).replace('{pagepath}', _pagepath); case 'customservice': case 'text': return '
回复内容
'.replace('{content}', content);