display.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. use yii\widgets\ActiveForm;
  3. use common\widgets\webuploader\Files;
  4. use common\helpers\Url;
  5. $this->title = '参数设置';
  6. $this->params['breadcrumbs'][] = ['label' => $this->title];
  7. ?>
  8. <div class="row">
  9. <div class="col-lg-12">
  10. <div class="box">
  11. <div class="box-header with-border">
  12. <h3 class="box-title">微信分享设置</h3>
  13. </div>
  14. <?php $form = ActiveForm::begin([]); ?>
  15. <div class="box-body">
  16. <div class="col-sm-12">
  17. <?= $form->field($model, 'share_title')->textInput(); ?>
  18. <?= $form->field($model, 'share_cover')->widget(Files::class, [
  19. 'type' => 'images',
  20. 'theme' => 'default',
  21. 'themeConfig' => [],
  22. 'config' => [
  23. 'pick' => [
  24. 'multiple' => false,
  25. ],
  26. ]
  27. ]); ?>
  28. <?= $form->field($model, 'share_desc')->textarea(); ?>
  29. <?= $form->field($model, 'share_link')->textInput(); ?>
  30. </div>
  31. </div>
  32. <div class="box-footer text-center">
  33. <button class="btn btn-primary" type="submit">保存</button>
  34. <span class="btn btn-white" onclick="history.go(-1)">返回</span>
  35. </div>
  36. <?php ActiveForm::end(); ?>
  37. </div>
  38. </div>
  39. </div>
粤ICP备19079148号