小程序详情适配
parent
af0c84c51a
commit
658df2447c
|
|
@ -106,6 +106,7 @@ class Goods extends Common
|
|||
{
|
||||
// 参数
|
||||
$params = input();
|
||||
print_r($params);
|
||||
|
||||
// 商品信息
|
||||
$data = [];
|
||||
|
|
|
|||
|
|
@ -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']);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue