Browse Source

feat: 兑换码 增加弹窗邮件模板配置

Sven_x 6 months ago
parent
commit
c18fa1bf1c
1 changed files with 11 additions and 0 deletions
  1. 11 0
      application/views/exchange/index.php

+ 11 - 0
application/views/exchange/index.php

@@ -40,6 +40,7 @@
                                                 <th style="width: 120px">注册时间范围(小时)</th>
                                                 <th>备注</th>
                                                 <th>祝福语模板</th>
+                                                <th>弹窗邮件模板</th>
                                             </tr>
                                             </thead>
                                             <tbody></tbody>
@@ -238,6 +239,10 @@
     <?php foreach ($blessings as $blessing){?>
     $blessingsMap[<?=$blessing['iid']?>] = '<?=$blessing['title']?>'
     <?php }?>
+    let $mailMap = {};
+    <?php foreach ($mailList as $row){?>
+        $mailMap[<?=$row['id']?>] = '<?=$row['title']?>'
+    <?php }?>
     propsJs.initTag('formPropsRewardsTag', SCENE_EXCHANGECODE)
 
     $('.addOrDelControl').on("click",'.deleteParent',function(){
@@ -323,6 +328,12 @@
                         return $blessingsMap[data] ?? '-';
                     }
                 },
+                {
+                    "data": "pop_up_id", render: function (data) {
+                        console.log(data, $mailMap[data])
+                        return $mailMap[data] ?? '-';
+                    }
+                },
             ]
         });