小程序详情适配
parent
242029406d
commit
1a6c3978c1
|
|
@ -84,6 +84,7 @@ class Goods extends Common
|
|||
'<p>',
|
||||
'<div>',
|
||||
'<table ',
|
||||
'<td ',
|
||||
];
|
||||
$replace = [
|
||||
'<img style="max-width:100%;margin:0;display:block;" ',
|
||||
|
|
@ -92,6 +93,7 @@ class Goods extends Common
|
|||
'<p style="margin:0;">',
|
||||
'<div style="margin:0;">',
|
||||
'<table style="width:100%;margin:0;border:1px solid #ddd;" ',
|
||||
'<td style="padding:5px;border:1px solid #ddd;" ',
|
||||
];
|
||||
$ret['data'][0]['content_web'] = str_replace($search, $replace, $ret['data'][0]['content_web']);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue