Przeglądaj źródła

feat: EK-2806: 会员端Promo和banner图增加分国家设置.

kevin 3 miesięcy temu
rodzic
commit
bc7971ff84

+ 12 - 12
backendApi/modules/v1/models/lists/ad/AdIndexList.php

@@ -43,13 +43,13 @@ class AdIndexList extends \common\libs\dataList\DataList implements DataListInte
                     'headerOther' => ['width' => '150'],
                     'headerOther' => ['width' => '150'],
                 ],
                 ],
                 'TYPE' => null,
                 'TYPE' => null,
-                'TYPE_NAME' => [
-                    'label' => '类型',
-                    'type' => function($data){
-                        $value = $data['value'];
-                        return $value==1 ? 'External Link' : 'Article';
-                    },
-                ],
+//                'TYPE_NAME' => [
+//                    'label' => '类型',
+//                    'type' => function($data){
+//                        $value = $data['value'];
+//                        return $value==1 ? 'External Link' : 'Article';
+//                    },
+//                ],
                 'LID' => [
                 'LID' => [
                     'label' => '广告位',
                     'label' => '广告位',
                     'type' => function($data){
                     'type' => function($data){
@@ -90,11 +90,11 @@ class AdIndexList extends \common\libs\dataList\DataList implements DataListInte
                 'TITLE'=> ['name'=> Yii::t('ctx', 'title')],
                 'TITLE'=> ['name'=> Yii::t('ctx', 'title')],
                 'CONTENT' => ['name'=> Yii::t('ctx', 'content')],
                 'CONTENT' => ['name'=> Yii::t('ctx', 'content')],
                 // 确保这里的键名与getColumn()方法中的列名一致
                 // 确保这里的键名与getColumn()方法中的列名一致
-                'COUNTRY_ID'=> [
-                    'name'=> \Yii::t('ctx', 'country'),
-                    'other'=> 'select',
-                    'selectData'=> self::getCountry()
-                ],
+//                'COUNTRY_ID'=> [
+//                    'name'=> \Yii::t('ctx', 'country'),
+//                    'other'=> 'select',
+//                    'selectData'=> self::getCountry()
+//                ],
                 'STATUS'=> [
                 'STATUS'=> [
                     'name'=> Yii::t('ctx', 'status'),
                     'name'=> Yii::t('ctx', 'status'),
                     'other'=> 'select',
                     'other'=> 'select',