diff --git a/plugins/rebate/src/PluginApplication.php b/plugins/rebate/src/PluginApplication.php index e0ec831f..53a89677 100644 --- a/plugins/rebate/src/PluginApplication.php +++ b/plugins/rebate/src/PluginApplication.php @@ -74,6 +74,10 @@ class PluginApplication extends \app\common\services\PluginApplication{ public function getWidgetItems() { return [ + 'withdraw.rebate_commission' => [ + 'title' => '消费返利提现', + 'class' => 'Yunshop\Rebate\admin\widget\RebateWithdrawWidget' + ], 'vue-goods.rebate' => [ 'title' => '消费返利', 'class' => \Yunshop\Rebate\admin\widget\RebateWidget::class, diff --git a/plugins/rebate/src/admin/widget/RebateWithdrawWidget.php b/plugins/rebate/src/admin/widget/RebateWithdrawWidget.php new file mode 100644 index 00000000..569d620b --- /dev/null +++ b/plugins/rebate/src/admin/widget/RebateWithdrawWidget.php @@ -0,0 +1,18 @@ + '', 'poundage_rate' => '']); + + return view('Yunshop\Rebate::widget.withdraw.set', [ + 'set' => $set, + ])->render(); + } +} \ No newline at end of file diff --git a/plugins/rebate/views/widget/withdraw/set.blade.php b/plugins/rebate/views/widget/withdraw/set.blade.php new file mode 100644 index 00000000..6fc13bb0 --- /dev/null +++ b/plugins/rebate/views/widget/withdraw/set.blade.php @@ -0,0 +1,57 @@ +