小程序详情适配

feat/task1-c-wallet
devil_gong 2019-08-07 09:34:48 +08:00
parent af0c84c51a
commit 658df2447c
2 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,7 @@ class Goods extends Common
{
// 参数
$params = input();
print_r($params);
// 商品信息
$data = [];

View File

@ -83,6 +83,7 @@ class Goods extends Common
'/section>',
'<p>',
'<div>',
'<table ',
];
$replace = [
'<img style="max-width:100%;margin:0;display:block;" ',
@ -90,6 +91,7 @@ class Goods extends Common
'/div>',
'<p style="margin:0;">',
'<div style="margin:0;">',
'<table style="width:100%;margin:0;" ',
];
$ret['data'][0]['content_web'] = str_replace($search, $replace, $ret['data'][0]['content_web']);
}