123456789101112131415161718192021222324252627282930 |
- <?php namespace Psales\Manage\Lib;
- use Dever;
- class View
- {
- private $info;
- private $user;
- # 预览实体店
- public function getOffline($info)
- {
- $info['sales_type'] = 1;
- return $this->get($info);
- }
- public function get($info)
- {
- $extend = Dever::load(\Manage\Lib\Util::class)->extend();
- $result = Dever::load(\Place\Lib\Info::class)->share($extend['data_id'], $info['sales_type'], $info['id'], 0, true);
- $content[] = [
- 'type' => 'text',
- 'name' => '文本',
- //'content' => 'H5预览链接:<a href="'.$result['h5'].'" target="_blank">点击查看</a>',
- 'content' => 'H5预览链接:' . $result['h5'],
- # 样式primary success warning danger info exception
- 'style' => 'exception',
- ];
- return ['title' => '前台界面预览', 'info' => $content, 'tab' => []];
- }
- }
|