20 lines
498 B
PHP
20 lines
498 B
PHP
<?php
|
|
namespace Yunshop\AreaDividend\widgets;
|
|
|
|
|
|
use app\common\components\Widget;
|
|
use app\common\facades\Setting;
|
|
use Yunshop\AreaDividend\models\AreaDividendGoods;
|
|
|
|
class DividendWidget extends Widget
|
|
{
|
|
public function run()
|
|
{
|
|
$set = Setting::get('plugin.area_dividend');
|
|
$item = AreaDividendGoods::getGoodsSet($this->goods_id);
|
|
return view('Yunshop\AreaDividend::admin.goods', [
|
|
'set' => $set,
|
|
'item' => $item,
|
|
])->render();
|
|
}
|
|
} |